html {
    scroll-behavior: smooth;
}

/* --- GLOBAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* --- NEW STACKED HEADER SYSTEM --- */
/* --- CLEAN STACKED HEADER SYSTEM --- */
.main-header {
    background: #ffffff;
    padding: 20px 20px 5px 20px; /* Restored breathing room at the top */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.logo-container {
    width: 100%;
    background: #ffffff; /* Clean, minimal white background */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0; /* Balanced padding for the logo */
}

.site-logo {
    max-width: 220px; /* Clean scale for the logo */
    height: auto;
    display: block;
}
/* The distinct colored block holding your links & button */
.nav-bar-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 1400px;
    background: #0F172A; 
    border-radius: 50px; 
    overflow: hidden; 
    padding-left: 40px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.15rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #FFDD00;
}

/* Golden Call-To-Action nested on the right side of the nav bar */
.nav-cta-btn {
    background: #FFDD00;
    color: #0F172A; /* Changed text color to dark navy for readable contrast against gold */
    text-decoration: none;
    font-weight: bold;
    padding: 18px 35px;
    display: inline-flex;
    align-items: center;
    height: 100%;
    transition: background 0.3s ease;
}

.nav-cta-btn:hover {
    background: #e6c600;
}

/* --- UPDATED HERO SECTION CONTAINER --- */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; 
    /* Changed width to 95% and max-width to 1400px to exactly match your .nav-bar-block setting */
    width: 95%; 
    max-width: 1400px; 
    margin: 30px auto 60px auto; /* Decreased top margin to pull the whole section slightly upwards */
    align-items: center;
}

/* --- RIGHT COLUMN ALIGNMENT <<<--- */
.hero-image-content {
    width: 100%;
    display: flex;
    justify-content: flex-start; /* Forces the image container flush against the far-left grid line */
}

.hero-img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- RIGHT COLUMN ALIGNMENT & UPWARD MOVE --- */
.hero-text-content {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: -20px; /* Slight negative margin pulls text upward to tighten white space */
}

/* --- ADD THIS NEW BLOCK HERE --- */
.accent-line-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Keeps the line pushed tight against the right edge */
    margin-bottom: 10px;
}

.gold-accent-line {
    width: 100%;               /* Changed from 85% to 100% */
    max-width: 180px;          /* Changed from 500px to 180px so it perfectly caps its length */
    height: 5px;
    background-color: #FFDD00;
}

.hero-title {
    font-size: 3.8rem; 
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.gold-text { color: #FFDD00; }
.black-text { color: #0B132B; }

.hero-subtitle {
    color: #0F172A;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 15px;
}

.hero-badge {
    font-weight: bold;
    color: #0F172A;
    margin-bottom: 25px;
}

/* Contact Button Wrapper Alignment */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end; /* FIXED: Set to flex-end so the button correctly right-aligns with text */
}

/* Main standalone standard button settings */
.button {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.whatsapp-btn {
    background: white;
    color: #0F172A;
    border: 2px solid #0F172A;
}

.whatsapp-btn:hover {
    background: #0F172A;
    color: white;
    transform: translateY(-2px);
}

/* --- SECTIONS, CARDS & FORMS --- */
section {
    padding: 80px 20px;
    max-width: 1300px;
    margin: auto;
}

.card {
    background: white;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* --- NEW MODERN ABOUT SECTION STYLES --- */
#about {
    max-width: 1400px; /* Aligns container layout to match your navbar and hero width */
    width: 95%;
    margin: 80px auto;
    padding: 40px 20px;
}

/* --- UPDATED ABOUT CORES --- */
#about h2 {
    text-align: center; /* Explicitly forces the main heading to stay centered */
    font-size: 2.5rem;
    color: #0F172A;
    margin-bottom: 50px;
    font-weight: 800;
}

/* New Split Grid Layer matching the width of your navbar (95% width, 1400px max) */
.about-split-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Gives the text side slightly more room than the image */
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-content {
    text-align: left; /* Flushes sentences leftward */
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.about-content p {
    margin-bottom: 20px;
}

/* Right-side image formatting */
.about-graphic-side {
    display: flex;
    justify-content: flex-end; /* Pushes the graphic flush with the right edge of the nav bar */
    width: 100%;
}

.about-calculus-img {
    width: 100%;
    max-width: 450px; /* Caps size so it doesn't distort */
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.about-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px auto;
}

.about-header h2 {
    font-size: 2.5rem;
    color: #0F172A;
    margin-bottom: 15px;
    font-weight: 800;
}

.about-intro {
    font-size: 1.15rem;
    color: #4b5563;
    line-height: 1.6;
}

/* 3-Column Grid Layout */
.about-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal side-by-side columns */
    gap: 30px;
}

/* Individual Feature Cards */
.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0; /* Subtle premium border border */
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(15, 23, 42, 0.08);
    border-color: #FFDD00; /* Subtle highlight border on hover */
}

/* Rounded circular emblem badge for your icons */
.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.feature-card h3 {
    font-size: 1.4rem;
    color: #0F172A;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.5;
}

/* --- UPDATED MEET YOUR TUTOR STYLES --- */
#tutor {
    max-width: 1400px; 
    width: 95%;
    margin: 80px auto;
    padding: 40px 20px;
}

#tutor h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #0F172A;
    margin-bottom: 50px;
    font-weight: 800;
}

.tutor-split-container {
    display: grid;
    /* EDIT: Changed from 0.8fr 1.2fr to 1fr 1fr to bring the columns closer together */
    grid-template-columns: 1fr 1fr; 
    gap: 40px;                      /* EDIT: Tightened gap slightly from 60px to 40px */
    align-items: center;
}

.tutor-image-side {
    display: flex;
    justify-content: flex-start; /* Keeps the circle hugging the left boundary line */
    width: 100%;
}

.profile-pic {
    width: 420px;                   /* EDIT: Bumped up from 320px to fill the space beautifully */
    height: 420px;                  /* EDIT: Bumped up from 320px to maintain the perfect circle */
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.tutor-content {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.tutor-greeting {
    font-size: 1.8rem;
    color: #0F172A;
    font-weight: 700;
}

.tutor-subtitle-role {
    color: #d98206; /* Nice gold subtitle tag */
    font-weight: bold;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.tutor-content p {
    margin-bottom: 20px;
}

/* --- PREMIUM QUOTE SECTION --- */
#quote {
    max-width: 1400px;
    width: 95%;
    margin: 60px auto;
    padding: 60px 40px;
    background: #f8fafc; /* Ultra-light premium background frame */
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    text-align: center;
}

#quote h2 {
    font-size: 2.2rem;
    color: #0F172A;
    font-weight: 800;
    margin-bottom: 12px;
}

#quote p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Styled real interactive button to replace that loose purple link */
.quote-action-btn {
    display: inline-block;
    background: #FFDD00;
    color: #0F172A;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 16px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 221, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.quote-action-btn:hover {
    background: #e6c600;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 221, 0, 0.3);
}

/* --- PREMIUM CONTACT US SPLIT SECTION --- */
#contact {
    max-width: 1400px;
    width: 95%;
    margin: 40px auto 80px auto;
    padding: 40px 20px;
}

.contact-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-text-side {
    text-align: left;
}

.contact-text-side h2 {
    font-size: 2.5rem;
    color: #0F172A;
    font-weight: 800;
    margin-bottom: 15px;
}

.contact-text-side p {
    font-size: 1.15rem;
    color: #4b5563;
    line-height: 1.6;
}

/* --- EXTRA STYLING FOR ADDRESS & EMAIL ITEMS --- */
.contact-details-block {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: #374151;
}

.detail-icon {
    font-size: 1.3rem;
}

.detail-text {
    font-weight: 500;
}

.detail-link {
    color: #0F172A;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.detail-link:hover {
    color: #FFDD00; /* Subtle golden highlight on hover */
}

/* Ensure icons align centrally on mobile viewport stack */
@media (max-width: 768px) {
    .contact-details-block {
        align-items: center;
        margin-bottom: 10px;
    }
}

/* Floating Action Card for WhatsApp on the Right Side */
.contact-card-side {
    display: flex;
    justify-content: flex-end;
}

.whatsapp-action-card {
    background: #0F172A; /* Match the dark premium navbar block */
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.whatsapp-card-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.whatsapp-card-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Re-styled your button to be prominent, centered, and premium inside the card */
.contact-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #0F172A;
    text-decoration: none;
    font-weight: bold;
    padding: 15px 35px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.contact-whatsapp-btn:hover {
    background: transparent;
    color: #FFDD00;
    border-color: #FFDD00;
    transform: translateY(-2px);
}

footer {
    background: #0F172A;
    color: white;
    text-align: center;
    padding: 20px;
}

/* --- ANIMATION SEQUENCING --- */
/* FIXED: Forced elements to remain inline blocks inside the flex layout to avoid rendering bugs during transforms */
.hero-text-content > * {
    opacity: 0;
    animation: fadeUp 1s ease forwards;
    display: inline-block; 
}

.gold-accent-line { animation-delay: 0.2s; display: block; }
.hero-title        { animation-delay: 0.4s; display: block; }
.hero-subtitle     { animation-delay: 0.6s; display: block; }
.hero-description  { animation-delay: 0.7s; display: block; }
.hero-badge        { animation-delay: 0.8s; display: block; }
.hero-buttons      { animation-delay: 0.9s; display: flex; }

@keyframes logoFade {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- NEW COMPLEMENTARY BUTTON ACTIONS --- */
.hero-action-ctas {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    width: 100%;
    margin-top: 10px;
}

.enrol-btn {
    background: #0F172A;
    color: white;
    border: 2px solid #0F172A;
}

.enrol-btn:hover {
    background: #FFDD00;
    color: #0F172A;
    border-color: #FFDD00;
    transform: translateY(-2px);
}

.inquire-btn {
    background: #FFDD00;
    color: #0F172A;
    border: 2px solid #FFDD00;
}

.inquire-btn:hover {
    background: #0F172A;
    color: white;
    border-color: #0F172A;
    transform: translateY(-2px);
}

/* --- NEW PREMIUM TESTIMONIALS SECTION STYLES --- */
#testimonials {
    max-width: 1400px;
    width: 95%;
    margin: 80px auto;
    padding: 40px 20px;
}

#testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #0F172A;
    margin-bottom: 50px;
    font-weight: 800;
}

/* 2-Column Flex-Grid matching the core system layout */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch; /* Forces both cards to match heights perfectly */
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(15, 23, 42, 0.08);
    border-color: #FFDD00;
}

/* Family Box Highlight */
.family-badge {
    position: absolute;
    top: -12px;
    left: 30px;
    background: #0F172A;
    color: #FFDD00;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Internals spacing */
.quote-sub-block {
    position: relative;
}

.quote-icon {
    font-family: Georgia, serif;
    font-size: 4rem;
    color: #FFDD00;
    line-height: 1;
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.3;
    pointer-events: none;
}

.quote-text {
    font-size: 1.1rem;
    color: #374151;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.reviewer-name {
    font-weight: bold;
    color: #0F172A;
    font-size: 0.95rem;
}

.reviewer-grade {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Divider line between parent and learner quotes inside the box */
.block-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 25px 0;
    width: 100%;
}

.standard-layout {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Animation alignment updates */
.hero-action-ctas { animation-delay: 0.9s; display: flex; }

/* --- FIXED AND UPDATED SERVICES SECTION STYLES --- */
#services {
    max-width: 1400px;
    width: 95%;
    margin: 80px auto;
    padding: 40px 20px;
}

#services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #0F172A;
    margin-bottom: 50px;
    font-weight: 800;
}

/* 3-Column Desktop Grid Layout Container */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important; /* Force layout injection over existing styles */
    gap: 30px;
    align-items: stretch; /* Keeps all cards exactly the same height */
}

/* Individual Premium Presentation Cards */
.service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden; /* Clips the image cleanly to the card's rounded corners */
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -5px rgba(15, 23, 42, 0.08);
    border-color: #FFDD00; /* Gold highlight pop on hover */
}

/* Rectangular Image Banner Frame */
.service-icon-box {
    width: 100%;
    height: 240px; /* Perfect uniform banner height proportions */
    background: #f8fafc;
    margin: 0; /* Clears old circle-specific offsets */
    border-radius: 0; /* Changes structure from circle badge to full-width card banner */
    border: none;
    overflow: hidden;
}

/* Heavy Stock Photo Sizing & Format Rules */
.service-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* Crops graphics into perfect responsive frames without distortion */
}

.service-card h3 {
    font-size: 1.4rem;
    color: #0F172A;
    margin: 25px 20px 12px 20px;
    font-weight: 700;
    text-align: left; /* Flushes titles perfectly to the left margins */
}

.service-card p {
    font-size: 0.98rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 20px 25px 20px;
    text-align: left; /* Aligns paragraph text to match the header copy */
}

/* --- MOBILE RESPONSIVENESS BREAKPOINT --- */
@media (max-width: 768px) {
    /* Kept from your original code to save your nav styles */
    .nav-bar-block {
        flex-direction: column;
        padding: 20px 0 0 0;
        border-radius: 15px;
        width: 95%;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding-bottom: 20px;
    }
    
    .nav-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }
    
    /* Updated hero layout rules */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        width: 95%;
        margin: 30px auto;
        gap: 30px;
    }
    
    .hero-text-content {
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .hero-image-content {
        justify-content: center;
    }

    /* Updated extended line settings for mobile views */
    .accent-line-wrapper {
        justify-content: center;
    }
    
    .gold-accent-line {
        width: 60px; /* Snaps back to a clean decorative dash on mobile layouts */
        margin: 0 auto 20px auto;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    /* New stacked styles for your twin CTA buttons */
    .hero-action-ctas {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    
    .hero-action-ctas .button {
        width: 100%;
        text-align: center;
    }

    /* Add this inside your existing @media (max-width: 768px) block */
    .about-features-grid {
        grid-template-columns: 1fr; /* Force the 3 columns to safely stack into 1 column on mobile */
        gap: 20px;
    }
    
    .about-header h2 {
        font-size: 2rem;
    }

    /* Add these layout overrides inside your existing mobile media query */
    .about-split-container {
        grid-template-columns: 1fr; /* Stack text and image vertically on phones */
        gap: 30px;
        text-align: center;
    }

    .about-content {
        text-align: center; /* Center-align the text layout cleanly on phones */
    }

    .about-graphic-side {
        justify-content: center;
    }

    /* Add these layout overrides inside your existing mobile media query */
    .tutor-split-container {
        grid-template-columns: 1fr; /* Drop to vertical stacked layout on mobile */
        gap: 30px;
    }

    .tutor-image-side {
        justify-content: center; /* Center the profile circle on mobile */
    }

    .profile-pic {
        width: 240px; /* Slightly smaller size so it sits comfortably on mobile screens */
        height: 240px;
    }

    .tutor-content {
        text-align: center; /* Centered bio text on mobile */
    }

    /* Add these layout overrides inside your existing mobile media query */
    .testimonials-grid {
        grid-template-columns: 1fr; /* Stacks the two testimonial cards vertically on mobile */
        gap: 30px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }

    /* Stacks the three service panels vertically on mobile layouts safely */
    .services-grid {
        grid-template-columns: 1fr !important; /* Overrides forced desktop multi-column injections */
        gap: 25px;
    }
    
    .service-card {
        padding: 0 0 10px 0; /* Reduces padding to support inner left-aligned card text constraints */
    }

    /* Add this right at the bottom inside your max-width: 768px brackets */
    #quote {
        padding: 40px 20px;
    }

    #quote h2 {
        font-size: 1.8rem;
    }

    .contact-split-container {
        grid-template-columns: 1fr; /* Stack vertically on small screens */
        gap: 35px;
        text-align: center;
    }

    .contact-text-side {
        text-align: center;
    }

    .contact-text-side h2 {
        font-size: 2rem;
    }

    .contact-card-side {
        justify-content: center;
    }
    
    .whatsapp-action-card {
        padding: 30px 20px;
    }
}
}
