/* ADDED CSS VARIABLES FOR EASY MAINTENANCE */
:root {
    --primary-blue: #003366;
    --secondary-yellow: #ffcc00;
    --background-gradient: linear-gradient(135deg, var(--primary-blue), var(--secondary-yellow));
}

/* Universal and Header/Nav Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--background-gradient);
    /* Removed background-size: cover as no background image is declared */
    background-attachment: fixed;
    color: #333;
}

header {
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 30px 0;
}

header h1 {
    margin: 0;
    font-size: 36px;
}

.logo {
    width: 120px;
    margin-bottom: 10px;
}

nav {
    background-color: var(--secondary-yellow);
    padding: 15px 0;
    text-align: center;
}

nav a {
    color: var(--primary-blue);
    text-decoration: none;
    padding: 12px 20px;
    margin: 0 10px;
    font-size: 18px;
    border-radius: 5px;
}

nav a:hover {
    background-color: var(--primary-blue);
    color: var(--secondary-yellow);
}

/* Home Page Specific Styles */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background-color: rgba(0, 0, 0, 0.6);
    margin-bottom: 30px;
}

.hero-section h2 {
    font-size: 40px;
    color: white;
}

.hero-section p {
    font-size: 24px;
    color: #f7f7f7;
}

.intro-text {
    text-align: center;
    padding: 40px;
    color: white;
}

.intro-text p {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
}

.intro-text ul {
    text-align: left;
    margin: 0 auto;
    max-width: 700px;
    font-size: 18px;
}

.intro-text ul li {
    margin-bottom: 15px;
}

.buttons-container {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.button-container {
    width: 200px;
    text-align: center;
    margin-bottom: 30px;
}

.button {
    background-color: var(--primary-blue);
    color: white;
    padding: 20px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
}

.button:hover {
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
    transform: translateY(-5px);
}

.button-description {
    font-size: 14px;
    color: white;
    margin-top: 10px;
    text-align: center;
}

.callback-button-description {
    font-size: 16px;
    color: white;
    text-align: center;
    max-width: 500px;
    margin-top: 15px;
}

/* Testimonial Slideshow */
.testimonial-slideshow {
    position: relative;
    margin-top: 50px;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slideshow .slide {
    display: none;
    padding: 20px;
    font-size: 18px;
    line-height: 1.5;
}

.testimonial-slideshow .active {
    display: block;
    animation: slide-in 1s ease-out;
}

.testimonial-author {
    font-weight: bold;
    margin-top: 15px;
}

.testimonial-country-flag {
    margin-left: 10px;
    vertical-align: middle;
    height: 20px;
}

.testimonial-country-emoji {
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes slide-in {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0);
    }
}

/* New Scrollable Sections Styling */
.new-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    padding: 40px 20px;
    margin-bottom: 30px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 10px;
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    gap: 20px;
}

.new-section picture {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.new-section picture img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.new-section-text {
    flex: 1;
    padding: 20px;
    font-size: 20px;
    line-height: 1.6;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.new-section-left {
    flex-direction: row-reverse;
}

.visible {
    opacity: 1;
}

/* New styles for the Latest Blog Posts section */
.blog-posts-section {
    background-color: white;
    padding: 40px 20px;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
    text-align: center;
}

.blog-posts-section h2 {
    color: var(--primary-blue);
    font-size: 32px;
    margin-bottom: 30px;
}

.blog-posts-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.blog-post-card {
    background-color: #f7f7f7;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
    text-align: left;
    transition: transform 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.blog-post-card h3 {
    color: var(--primary-blue);
    font-size: 20px;
    margin-top: 0;
}

.blog-post-card p {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

.blog-post-card a {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--secondary-yellow);
    transition: border-color 0.3s ease;
}

.blog-post-card a:hover {
    border-color: var(--primary-blue);
}

/* Common Styles */
.call-to-action {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    flex-direction: column;
    text-align: center;
}

.callback-button {
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
    padding: 25px 50px;
    font-size: 24px;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: auto;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.callback-button:hover {
    background-color: var(--primary-blue);
    color: var(--secondary-yellow);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.callback-button i {
    margin-right: 10px;
}

footer {
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    /* Added to ensure social icons center properly on small screens */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* WhatsApp Button Styles */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    padding: 20px;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    transform: translateY(-5px);
}

.whatsapp-button i {
    font-size: 30px;
}

/* About Page Specific Styles */
.about-section {
    padding: 60px 20px;
    background-color: rgba(0, 0, 0, 0.6);
    text-align: center;
    color: white;
}

.about-section h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 20px;
    line-height: 1.8;
    margin: 20px 0;
}

.image-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.image-container div {
    flex: 1;
    margin: 10px;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.photo-caption {
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
}

/* Subjects Page Specific Styles */
.section-title {
    text-align: center;
    font-size: 32px;
    color: white;
    margin-top: 50px;
}

.subjects-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.subject-category {
    background-color: #fff;
    color: var(--primary-blue);
    width: 280px;
    margin: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.subject-category:hover {
    transform: translateY(-10px);
}

.subject-category h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.subject-category ul {
    list-style-type: none;
    padding: 0;
}

.subject-category ul li {
    margin: 5px 0;
    font-size: 18px;
}

.cta-button {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.cta-button a {
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
    padding: 20px 40px;
    font-size: 24px;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.cta-button a:hover {
    background-color: var(--primary-blue);
    color: var(--secondary-yellow);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.section-intro {
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 800px;
    margin: 20px auto;
    font-size: 18px;
}

/* Team Page Specific Styles */
.content-container {
    padding: 40px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
}

.content-container h2 {
    font-size: 36px;
}

.content-container p {
    font-size: 18px;
    line-height: 1.8;
    color: #f7f7f7;
}

.content-container img {
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
    border-radius: 10px;
}

.team-section {
    padding: 40px 20px;
}

.team-member {
    background-color: var(--primary-blue);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.team-member h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.team-member p {
    font-size: 16px;
    color: #f7f7f7;
    margin-bottom: 15px;
}

.team-member ul {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
}

.team-member li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Exams Page Specific Styles */
.exams-intro {
    text-align: center;
    font-size: 20px;
    color: white;
    margin-top: 10px;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.exam-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.exam-category {
    background-color: #fff;
    color: var(--primary-blue);
    width: 280px;
    margin: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

.exam-category:hover {
    transform: translateY(-10px);
    background-color: var(--primary-blue);
    color: white;
}

/* 🌟 THE CRUCIAL FIX: TARGET LINKS INSIDE HOVERED BOX 🌟 */
.exam-category:hover a {
    color: white; 
    text-decoration: underline; 
}

.exam-category h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.exam-category ul {
    list-style-type: none;
    padding: 0;
}

.exam-category ul li {
    margin: 5px 0;
    font-size: 18px;
}

/* Students Page Specific Styles */
.intro-text p {
    font-size: 18px;
    margin-bottom: 20px;
}

.testimonials-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

.testimonial-box {
    background-color: var(--primary-blue);
    color: #fff;
    width: 320px;
    margin: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
    height: 100%;
}

.testimonial-box:hover {
    transform: translateY(-10px);
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
}

.testimonial-box h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.testimonial-box p {
    font-size: 18px;
    margin: 15px 0;
    line-height: 1.5;
}

.testimonial-box .flag {
    width: 40px;
    height: auto;
    margin-right: 10px;
    vertical-align: middle;
}

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Page Specific Styles */
.contact-form {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 40px;
    width: 60%;
    margin: 30px auto;
    border-radius: 10px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background-color: #f0f0f0;
    font-size: 16px;
}

.contact-form button {
    background-color: var(--secondary-yellow);
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--primary-blue);
    color: var(--secondary-yellow);
}

.contact-details-section {
    /* *** MODIFIED SECTION: Removed background-color: var(--primary-blue) and color: white *** */
    text-align: center;
    padding: 40px;
    margin-top: 30px;
    border-radius: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    /* Now, it takes the page's light background, and we style the H2 separately */
}

/* *** NEW SECTION: Styles the heading to be clearly visible against the light background *** */
.contact-details-section h2 {
    color: var(--primary-blue); /* Sets the title color to the dark blue */
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-info-section {
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 40px;
    margin-top: 30px;
    border-radius: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.contact-info-section p {
    font-size: 20px;
    line-height: 1.6;
}

.contact-info-section a {
    color: var(--secondary-yellow);
    text-decoration: underline;
    font-weight: bold;
}

/* --- NEW STYLES FOR VISIBLE CONTACT BOX (info-box) --- */
.info-box {
    /* Using styles similar to .subject-category or .exam-category for consistency */
    background-color: #fff;
    color: var(--primary-blue);
    padding: 25px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */
    max-width: 500px; /* Constrain width to make it a distinct box */
    text-align: left;
    border: 2px solid var(--primary-blue); /* Optional blue border for emphasis */
}

.info-box address,
.info-box p {
    /* Reset text color inside the white box */
    color: #333; 
    font-size: 18px;
    line-height: 1.6;
}

.info-box a {
    /* Style links inside the box */
    color: var(--primary-blue);
    font-weight: bold;
    text-decoration: underline;
}

.info-box a:hover {
    color: var(--secondary-yellow);
}

.info-box i {
    /* Style Font Awesome icons */
    margin-right: 8px;
    color: var(--primary-blue);
}
/* ------------------------------------------------------------- */


/* Blog Page Specific Styles */
.blog-header {
    text-align: center;
    padding: 60px 20px;
    background-color: rgba(0, 0, 0, 0.6);
    margin-bottom: 30px;
}

.blog-header h2 {
    font-size: 40px;
    color: white;
    margin: 0;
}

.blog-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post {
    background-color: white;
    color: black;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 350px;
    text-align: left;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.blog-post h3 {
    margin-top: 0;
    font-size: 26px;
    color: var(--primary-blue);
    text-decoration: none;
}

.blog-post p {
    font-size: 16px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease-in-out;
}

.read-more:hover {
    border-color: var(--secondary-yellow);
}

.blog-article-content {
    background-color: white; 
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    margin-bottom: 30px;
}

/* Cookie Policy Page Styles */
.policy-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.policy-container h1 {
    color: var(--primary-blue);
    font-size: 32px;
    border-bottom: 2px solid var(--secondary-yellow);
    padding-bottom: 10px;
}
.policy-container h2 {
    color: var(--primary-blue);
    font-size: 24px;
    margin-top: 30px;
}
.policy-container p, .policy-container ul {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}
.policy-container ul {
    padding-left: 20px;
}

/* 404 Page Styles */
.not-found-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 60px 40px;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.not-found-container h1 {
    font-size: 80px;
    color: var(--primary-blue);
    margin: 0;
}
.not-found-container p {
    font-size: 24px;
    color: #555;
    margin-bottom: 30px;
}
.not-found-container a.home-link {
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
    padding: 15px 30px;
    font-size: 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.not-found-container a.home-link:hover {
    background-color: var(--primary-blue);
    color: var(--secondary-yellow);
}

/* --- NEW STYLES FOR COOKIE BANNER --- */
#cookie-banner {
    /* Using the exact inline styles from the HTML to define the base */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-blue); /* Deep Blue */
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

#cookie-banner p {
    margin: 0;
    font-size: 16px;
}

#cookie-banner a {
    color: var(--secondary-yellow); /* Yellow accent color */
    text-decoration: underline;
    font-weight: bold;
}

#cookie-banner button {
    background-color: var(--secondary-yellow); /* Yellow accent color */
    color: var(--primary-blue); /* Deep Blue text */
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#cookie-banner button:hover {
    background-color: #ffffff; /* White on hover for contrast */
    color: var(--primary-blue);
}
/* ----------------------------------- */


/* Responsive Fixes */
@media (max-width: 768px) {
    .new-section {
        flex-direction: column;
        align-items: center;
    }

    .new-section-text,
    .new-section picture {
        width: 100%;
    }

    .blog-posts-container {
        flex-direction: column;
        align-items: center;
    }

    .blog-post-card {
        max-width: 100%;
    }
    
    .intro-text,
    .intro-text ul {
        font-size: 16px;
    }
    
    .button-description {
        font-size: 16px;
    }
    
    .callback-button {
        font-size: 20px;
        padding: 20px 40px;
    }
    
    .image-container {
        flex-direction: column;
    }

    .subjects-list {
        flex-direction: column;
        align-items: center;
    }

    .subject-category {
        width: 90%;
        margin: 10px 0;
    }

    .cta-button a {
        padding: 15px 30px;
        font-size: 20px;
    }
    
    .content-container h2 {
        font-size: 28px;
    }

    .content-container p {
        font-size: 16px;
    }
    
    .exam-section {
        flex-direction: column;
        align-items: center;
    }

    .exam-category {
        width: 90%;
        margin: 10px 0;
    }
    
    .testimonials-list {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-box {
        width: 90%;
        margin: 10px 0;
    }
    
    .contact-form {
        width: 90%;
    }
    
    .contact-form button {
        width: 100%;
    }

    .blog-post {
        max-width: 100%;
    }

    /* Responsive Fix for Policy Page */
    .policy-container {
        margin: 20px;
        padding: 20px;
    }
}