:root {
    --primary-color: #2960e6;    
    --secondary-color: #FF9F43;  
    --tertiary-color: #f7d146;  
    --light-bg-color: #FF9F43;     
    --dark-grey: #1f2937;
    --medium-grey: #4b5563;
    --border-color: #e5e7eb;
    --text-color: #374151;
    --serif-font: 'Lora', serif;
    --sans-font: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--serif-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.3rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; }
img { max-width: 100%; height: auto; }
.text-center { text-align: center; }
.section-subtitle { max-width: 600px; margin: 0 auto 2rem auto; color: var(--medium-grey); }

/* Add a separator to all sections except the last one */
section:not(:last-of-type) {
    border-bottom: 1px solid var(--border-color);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 9999px;
    font-family: var(--sans-font);
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: #1e4bd1; /* Darker blue */
    border-color: #1e4bd1;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.btn-secondary:hover {
    background-color: #fff;
    color: var(--dark-grey);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 45px;       /* adjust size */
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    font-family: var(--sans-font);
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: var(--medium-grey);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-bottom: none;    
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-buttons .btn {
    margin: 0 10px;
    margin-top: 2rem; /* adjust: 1rem, 1.5rem, 2rem */
}

/* ================================== */
/* 🚀 HERO SECTION UPDATES (Fix Space) */
/* ================================== */

/* Style for the new logo image in the Hero Section (Replacing H1) */
.hero-logo-img {
    max-width: 400px; 
    height: auto;
    display: block;
    margin: 0 auto 5px auto; /* REDUCED top/bottom margin */
}

/* Style for the main description text */
.hero-content p:first-of-type {
    max-width: 600px;
    margin: 10px auto 0.5rem auto; /* REDUCED SPACE ABOVE THIS LINE (FROM LOGO) */
    font-size: 1.25rem;
    font-family: var(--serif-font);
    font-weight: 400;
}

/* Fix: Increase spacing below the tagline text before buttons */
.hero-tagline-text {
    max-width: 600px;
    margin: 1.5rem auto 2.5rem auto; /* top | left/right | bottom */
    font-size: 1.15rem;  
    font-family: var(--sans-font);
    font-weight: 500;
    color: #fff;
    opacity: 0.9;
}


/* --- Features Section (Old structure - now used for CAROUSEL slides) --- */
.features-section {
    padding: 80px 0;
    background-color: var(--light-bg-color);
}

/* ================================== */
/* 🎠 FINAL CAROUSEL STYLING (Image stacked on top of text/button) */
/* ================================== */

.carousel-section {
    padding: 80px 0;
    background-color: var(--light-bg-color); 
    border-bottom: 1px solid var(--border-color);
}

.carousel-section h2 {
    color: var(--dark-grey);
    margin-bottom: 3rem;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* This block enforces the Image > Headline > Body > Button order */
.feature-slide {
    min-width: 100%; 
    flex-shrink: 0;
    
    display: flex;
    /* Enforce stacking, Picture (HTML order) -> Text */
    flex-direction: column; 
    align-items: center;
    gap: 2rem; 
    padding: 0 20px;
    margin-bottom: 0; 
}

/* Ensure the reverse class is DISABLED for this stacked view */
.feature-slide.reverse {
    flex-direction: column !important; 
}

/* Constrain and center content */
.feature-slide .feature-text, 
.feature-slide .feature-illustration {
    flex: none; /* Disable flex distribution */
    max-width: 600px; /* Constrain content width */
    width: 100%;
    border-radius: 8px;
    text-align: center;
}

.feature-slide .feature-illustration {
    order: 1; /* Image comes first (top) */
    width: 100%;
    max-width: 800px; /* Constrain image size */
    margin-bottom: 1rem;
}

.feature-slide .feature-text {
    order: 2; /* Text block comes second */
}

/* Center text elements & Fix word-wrapping issue */
.feature-slide .feature-text h2 {
    text-align: center; 
    /* Increase width slightly to prevent word-break on short words like Adventure */
    padding: 0 10px; 
    /* Allow wrapping if the word is still too long */
    word-break: normal;
}

.feature-slide .feature-text p {
    text-align: center; 
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    /* Ensure body text doesn't flow past the edges of the screen/container */
    padding: 0 10px; 
}

/* Button margin */
.feature-slide .btn {
    margin-top: 15px;
}


/* --- Controls --- */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
}

.prev-btn, .next-btn {
    background: var(--dark-grey);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: var(--primary-color);
}

.nav-dots .dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-dots .dot.active-dot {
    background-color: var(--dark-grey);
}


/* ================================== */
/* ✨ REMOVED: FEATURES GRID SECTION (Obsolete) */
/* ================================== */

/* Removing .features-grid-section styles as content was moved to the carousel */
.features-grid-section {
    padding: 0; 
    border-bottom: none; 
}
.features-grid {
    display: none; 
}

/* ================================== */
/* 🎮 NEW SECTION: THE GAME STYLING */
/* ================================== */
.the-game-section {
    padding: 80px 0;
    background-color: #fff; 
}
.the-game-section h2 {
    margin-bottom: 40px; 
}

/* Feature Container - Holds the whole row (image + text) */
.game-feature-item-container {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px dashed var(--border-color);
}

/* Flex Wrapper for Image and Text */
.game-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px; /* Space between image and text */
}

/* Image Column */
.game-illustration {
    flex: 1; 
    max-width: 40%;
    /* Ensure image is vertically centered relative to text block */
    align-self: flex-end;
}

.game-illustration img:nth-of-type(2) {
  /* This specifically targets the second element that is an <img> tag */
  margin-left: -100px; 
}


.game-img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Target the container that holds one image/video and its text description */
.coping-technique-block {
  /* Add space below the entire block to separate it from the next one */
  margin-bottom: 30px; /* Adjust 30px to your desired spacing */
}

/* Text Column */
.game-feature-item {
    flex: 1.5; /* Gives text more space than the image */
}

/* Alternating Layout: Image on Right, Text on Left */
.reverse-item .game-content-wrapper {
    flex-direction: row-reverse;
}


/* Text Styling (Left aligned) */
.game-feature-item h3 {
    color: var(--primary-color);
    font-family: var(--serif-font);
    text-align: left;
}

.game-feature-item h4 {
    color: var(--dark-grey);
    font-family: var(--sans-font);
    font-weight: 700;
    text-align: left;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.game-feature-item .section-subtitle {
    margin: 0 0 1rem 0;
    color: var(--dark-grey);
    font-weight: 500;
    max-width: 100%; 
    text-align: left;
}

.game-feature-item p {
    text-align: left;
    font-family: var(--sans-font);
    color: var(--text-color);
}

.btn-text-link {
    display: inline-block;
    margin-top: 10px;
    font-family: var(--sans-font);
    font-weight: bold;
    color: var(--primary-color);
}


/* --- Mobile Adjustments (Ensure stacking on small screens) --- */
@media (max-width: 768px) {
    
    /* Force stacking for all game features (Image on top) */
    .game-content-wrapper,
    .reverse-item .game-content-wrapper {
        flex-direction: column; 
        gap: 20px;
    }
    
    /* Center text content */
    .game-feature-item h3,
    .game-feature-item h4,
    .game-feature-item .section-subtitle,
    .game-feature-item p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Reduce image size for mobile display */
    .game-illustration {
        display: flex;
        gap: 10px;
        max-width: 80%;
        margin-bottom: 10px;
        order: -1; /* Keep illustration on top in stacked mobile view */
    }
}


/* --- Download Section --- */
.download-section {
    padding: 80px 0;
}

.download-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

/* REMOVED: All obsolete .phone-mockup styles */
/* REMOVED: All obsolete .qr-code styles */

/* --- Download Section Updates (Enlarged Image & Text Swap) --- */

/* 1. ENLARGE IMAGE SIZE (from 300px to 400px max width) */
.download-image-container {
    flex-shrink: 0;
    width: 600px; /* Increased size to 400px */
    max-width: 600px; 
    height: auto;
}

/* 2. ADJUST SPACING AFTER SWAP */
.download-details {
    flex-grow: 1;
    max-width: 400px;
    text-align: center; 
}

/* Ensure proper spacing between the swapped blocks */
.download-requirements {
    margin-top: 0; /* Remove top margin from the requirements block */
    margin-bottom: 20px; /* Add margin below the requirements block */
}

.download-details p {
    margin-top: 0; /* Remove default top margin from the paragraph */
    margin-bottom: 1rem;
    font-family: var(--sans-font);
    color: var(--medium-grey);
}

.app-store-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.app-store-button {
    display: block;
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--sans-font);
    font-weight: 500;
}

/* New Requirements Styling */
.download-requirements {
    margin-top: 20px;
    margin-bottom: 10px;
}
.download-requirements h4 {
    font-family: var(--sans-font);
    font-size: 1rem;
    color: var(--dark-grey);
    margin-bottom: 5px;
}
.download-requirements p {
    font-family: var(--sans-font);
    font-size: 0.9rem;
    color: var(--medium-grey);
    margin-bottom: 0;
}

/* Mobile Adjustments for Download Section */
@media (max-width: 768px) {
    .download-content {
        flex-direction: column; /* Stack image above details on mobile */
        gap: 3rem;
    }
    .download-image-container {
        width: 50%; /* Make image smaller on mobile */
        max-width: 250px;
    }
}

#brave-badge-showcase {
    background: #f9f9f9;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
}

#stories {
    margin-top: 20px;
}

.story-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


#brave-badge-showcase h2 {
    text-align: center;
    color: var(--primary-color); 
}

#brave-badge-showcase form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#brave-badge-showcase input,
#brave-badge-showcase textarea {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#brave-badge-showcase button {
    padding: 0.5rem;
    background: var(--primary-color); 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#brave-badge-showcase button:hover {
    background: #357ab7;
}

#badgeList p {
    background: #fff;
    padding: 0.5rem;
    border-radius: 5px;
    margin: 0.5rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* --- Education Hub Section --- */
.education-section {
    padding: 80px 0;
}

/* Grid layout for cards */
.edu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
}

/* --- FLIP CARD WRAPPER --- */
.edu-card {
    width: 300px;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

/* Inner wrapper for flip animation */
.edu-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 20px;
}

/* Flipped state */
.edu-card.flipped .edu-card-inner {
    transform: rotateY(180deg);
}

/* Both sides */
.edu-card-front,
.edu-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* --- FRONT CARD --- */
.edu-card-front {
    background: #fafafa;
    color: black;
}

/* Icon circle */
.edu-icon {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Icon circle color helpers */
.circle.yellow { background-color: var(--tertiary-color); }
.circle.blue     { background-color: var(--primary-color); }
.circle.green  { background-color: #3bbf63; }
.circle.orange { background-color: var(--secondary-color); }

.edu-card-front h3 {
    font-family: var(--serif-font);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.edu-card-front p {
    color: var(--medium-grey);
    font-family: var(--sans-font);
    font-size: 1rem;
}

/* --- BACK CARD --- */
.edu-card-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.edu-card-back h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-decoration: underline;
}

/* Clean list */
.edu-card-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* List items on back */
.edu-card-back li {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 8px;
    text-align: center;
}

.card-body-text {
    font-size: 1rem;
    line-height: 1.6;
    color: white;
    text-align: center;
}

/* Tap hint for mobile users */
.tap-hint {
    font-size: 0.8rem;
    color: #e0e0e0;
    margin-top: 15px;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 80px 0;
    background-color: var(--light-bg-color);
}

.faq-accordion {
    max-width: 800px;
    margin: 2rem auto 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--sans-font);
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--dark-grey);
}

.faq-question span {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    /* FIX: Replaced 'display: none;' with max-height/overflow for smooth animation */
    max-height: 0;  
    overflow: hidden;
    /* Transition max-height and padding for a smooth effect */
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; 
    
    /* FIX: Set vertical padding to 0 when closed, JS will set it to 1rem when open */
    padding-top: 0; 
    padding-bottom: 0;
    
    color: var(--medium-grey);
}



/* --- About Section --- */
.about-section {
    padding: 80px 0;
}

.founders {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.founder-card {
    font-family: var(--sans-font);
}

.founder-portrait {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 0 auto;
}

.founder-card h4 {
    margin-top: 1rem;
    font-size: 1.1rem;
}

.founder-card p {
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Founder Portrait Styling */
.founder-portrait {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Specific team photos */
.founder-portrait.anne {
    background-image: url("images/anne.png");
}

.founder-portrait.stanley {
    background-image: url("images/stanley.jpg");
}

.founder-portrait.owen {
    background-image: url("images/owen.png");
}

.founder-portrait.ian {
    background-image: url("images/ian.png");
}

/* Mission & Vision Section */
.mv-section {
    padding: 80px 0;
    background-color: var(--tertiary-color);  
    text-align: center;
}

/* Updated H2 to be White for better contrast against Orange */
.mv-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
    color: #1f2937;  
}

.mv-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.mv-card {
    background: #ffffff; /* Cards remain white to pop against the orange */
    padding: 40px 30px;
    width: 450px; /* Wider width since you only have 2 cards */
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Slightly darker shadow for contrast */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mv-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mv-card p {
    line-height: 1.6;
    font-size: 1rem;
    color: #555;
}

/* --- Icon Styling --- */

.mv-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

/* Colors for Icons/Titles */
.text-red { color: #ff0055; }
.icon-red svg { stroke: #ff0055; }

.text-blue { color: #0099ff; }
.icon-blue svg { stroke: #0099ff; }

/* Mobile responsive */
@media (max-width: 900px) {
    .mv-content {
        flex-direction: column;
        align-items: center;
    }

    .mv-card {
        width: 90%;
        max-width: 450px;
    }
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 0;
    border-bottom: none;  
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-item h3 {
    font-family: var(--sans-font);
    color: var(--dark-grey);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-item a, .contact-item p {
    font-family: var(--sans-font);
    font-size: 1.2rem;
    color: var(--medium-grey);
}

.contact-item a {
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* --- Footer --- */
.footer-section {
    background-color: var(--dark-grey);
    color: #fff;
    padding: 40px 0;
    font-family: var(--sans-font);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-links a, .footer-social a {
    color: #ccc;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-social a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--medium-grey);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #ccc;
}

.footer-bottom a {
    color: #ccc;
}
.footer-bottom a:hover {
    color: #fff;
}

/* --- DESKTOP STYLES (Default) --- */

/* 1. Hide the hamburger icon on big screens */
.hamburger {
    display: none; 
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

/* ================================== */
/* 🚀 NEW STYLES: HERO SECTION UPDATES */
/* ================================== */

/* Style for the new logo image in the Hero Section (Replacing H1) */
.hero-logo-img {
    max-width: 400px; 
    height: auto;
    display: block;
    margin: 0 auto 5px auto; 
}

/* Style for the new tagline text (Learn more about vaccines through play:) */
.hero-tagline-text {
    max-width: 600px;
    margin: 1.5rem auto 2.5rem auto;
    font-size: 1.15rem;  
    font-family: var(--sans-font);
    font-weight: 500;
    color: #fff;
    opacity: 0.9;
}

/* Ensure the main tagline paragraph (Play, learn...) is styled */
.hero-content p:first-of-type {
    max-width: 600px;
    margin: 1.5rem auto 0.5rem auto;
    font-size: 1.25rem;
    font-family: var(--serif-font);
    font-weight: 400;
}


/* --- Features Section (Old structure - now used for CAROUSEL slides) --- */
.features-section {
    padding: 80px 0;
    background-color: var(--light-bg-color);
}

/* ================================== */
/* 🎠 FINAL CAROUSEL STYLING (Picture Left, Text Right - with Image as peer) */
/* ================================== */

.carousel-section {
    padding: 80px 0;
    background-color: var(--light-bg-color); 
    border-bottom: 1px solid var(--border-color);
}

.carousel-section h2 {
    color: var(--dark-grey);
    margin-bottom: 3rem;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Side-by-Side Layout for Desktop */
.feature-slide {
    min-width: 100%; 
    flex-shrink: 0;
    
    display: flex;
    /* Default: Image Left, Text Right */
    flex-direction: row; 
    align-items: center;
    justify-content: center;
    gap: 4rem; 
    padding: 0 20px;
    margin-bottom: 0; 
}

/* Text and Image Block Sizing */
.feature-slide .feature-illustration {
    order: 1; 
    flex: 1;
    max-width: 400px; 
    text-align: center;
}

.feature-slide .feature-text {
    order: 2; 
    flex: 1.2; 
    max-width: 500px; 
    text-align: left; /* Left align text block content */
}

/* Ensure text is left-aligned within the block */
.feature-slide .feature-text h2, 
.feature-slide .feature-text p {
    text-align: left; 
}

/* Button needs to be centered relative to the text block's width */
.feature-slide .feature-text .btn-primary {
    display: block; 
    margin-top: 15px;
    margin-left: auto; /* Center button within the left-aligned text block */
    margin-right: auto;
    width: fit-content;
}

/* Handle the 'reverse' case for symmetry if used in HTML */
.feature-slide.reverse {
    flex-direction: row-reverse !important; 
}


/* --- Controls --- */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
}

.prev-btn, .next-btn {
    background: var(--dark-grey);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: var(--primary-color);
}

.nav-dots .dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-dots .dot.active-dot {
    background-color: var(--dark-grey);
}


/* ================================== */
/* ✨ REMOVED: FEATURES GRID SECTION (Obsolete) */
/* ================================== */

.features-grid-section {
    padding: 0; 
    border-bottom: none; 
}
.features-grid {
    display: none; 
}


/* --- Download Section --- */
.download-section {
    padding: 80px 0;
}

.download-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.phone-mockup {
    width: 250px;
    height: 500px;
    background-color: var(--dark-grey);
    border-radius: 40px;
    border: 10px solid var(--dark-grey);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.qr-code {
    width: 150px;
    height: 150px;
    background-color: #eee;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 0 auto;
}

.download-details p {
    margin-top: 1rem;
    font-family: var(--sans-font);
    color: var(--medium-grey);
}

.app-store-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.app-store-button {
    display: block;
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--sans-font);
    font-weight: 500;
}

/* Brave Badge Section */
.badges-section {
    padding: 80px 0;
    background-color: #7C9CD1;
}

.badges-preview {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 30px 0;
}

.badges-preview img {
    width: 120px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.download-all-btn {
    font-family: sans-serif;
    display: inline-block;
    padding: 12px 24px;
    background: #4b5563;
    color: #fff;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.2s ease-in-out;
}

.download-all-btn:hover {
    background: #1f2937;
}

#brave-badge-showcase {
    background: #f9f9f9;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
}

#stories {
    margin-top: 20px;
}

.story-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


#brave-badge-showcase h2 {
    text-align: center;
    color: var(--primary-color); 
}

#brave-badge-showcase form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#brave-badge-showcase input,
#brave-badge-showcase textarea {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#brave-badge-showcase button {
    padding: 0.5rem;
    background: var(--primary-color); 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#brave-badge-showcase button:hover {
    background: #357ab7;
}

#badgeList p {
    background: #fff;
    padding: 0.5rem;
    border-radius: 5px;
    margin: 0.5rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* --- Education Hub Section --- */
.education-section {
    padding: 80px 0;
    text-align: center;
}

/* Grid layout for cards */
.edu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
}

/* --- FLIP CARD WRAPPER --- */
.edu-card {
    width: 300px;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

/* Inner wrapper for flip animation */
.edu-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 20px;
}

/* Flipped state */
.edu-card.flipped .edu-card-inner {
    transform: rotateY(180deg);
}

/* Both sides */
.edu-card-front,
.edu-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* --- FRONT CARD --- */
.edu-card-front {
    background: #fafafa;
    color: black;
}

/* Icon circle */
.edu-icon {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Icon circle color helpers */
.circle.yellow { background-color: var(--tertiary-color); }
.circle.blue     { background-color: var(--primary-color); }
.circle.green  { background-color: #3bbf63; }
.circle.orange { background-color: var(--secondary-color); }

.edu-card-front h3 {
    font-family: var(--serif-font);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.edu-card-front p {
    color: var(--medium-grey);
    font-family: var(--sans-font);
    font-size: 1rem;
}

/* --- BACK CARD --- */
.edu-card-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.edu-card-back h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-decoration: underline;
}

/* Clean list */
.edu-card-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* List items on back */
.edu-card-back li {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 8px;
    text-align: center;
}

.card-body-text {
    font-size: 1rem;
    line-height: 1.6;
    color: white;
    text-align: center;
}

/* Tap hint for mobile users */
.tap-hint {
    font-size: 0.8rem;
    color: #e0e0e0;
    margin-top: 15px;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 80px 0;
    background-color: var(--light-bg-color);
}

.faq-accordion {
    max-width: 800px;
    margin: 2rem auto 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--sans-font);
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--dark-grey);
}

.faq-question span {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    /* FIX: Replaced 'display: none;' with max-height/overflow for smooth animation */
    max-height: 0;  
    overflow: hidden;
    /* Transition max-height and padding for a smooth effect */
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; 
    
    /* FIX: Set vertical padding to 0 when closed, JS will set it to 1rem when open */
    padding-top: 0; 
    padding-bottom: 0;
    
}



/* --- About Section --- */
.about-section {
    padding: 80px 0;
}

.founders {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.founder-card {
    font-family: var(--sans-font);
}

.founder-portrait {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 0 auto;
}

.founder-card h4 {
    margin-top: 1rem;
    font-size: 1.1rem;
}

.founder-card p {
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Founder Portrait Styling */
.founder-portrait {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Specific team photos */
.founder-portrait.anne {
    background-image: url("images/anne.png");
}

.founder-portrait.stanley {
    background-image: url("images/stanley.jpg");
}

.founder-portrait.owen {
    background-image: url("images/owen.png");
}

.founder-portrait.ian {
    background-image: url("images/ian.png");
}

/* Mission & Vision Section */
.mv-section {
    padding: 80px 0;
    background-color: var(--tertiary-color);  
    text-align: center;
}

/* Updated H2 to be White for better contrast against Orange */
.mv-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
    color: #1f2937;  
}

.mv-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.mv-card {
    background: #ffffff; /* Cards remain white to pop against the orange */
    padding: 40px 30px;
    width: 450px; /* Wider width since you only have 2 cards */
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Slightly darker shadow for contrast */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mv-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mv-card p {
    line-height: 1.6;
    font-size: 1rem;
    color: #555;
}

/* --- Icon Styling --- */

.mv-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

/* Colors for Icons/Titles */
.text-red { color: #ff0055; }
.icon-red svg { stroke: #ff0055; }

.text-blue { color: #0099ff; }
.icon-blue svg { stroke: #0099ff; }

/* Mobile responsive */
@media (max-width: 900px) {
    .mv-content {
        flex-direction: column;
        align-items: center;
    }

    .mv-card {
        width: 90%;
        max-width: 450px;
    }
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 0;
    border-bottom: none;  
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-item h3 {
    font-family: var(--sans-font);
    color: var(--dark-grey);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-item a, .contact-item p {
    font-family: var(--sans-font);
    font-size: 1.2rem;
    color: var(--medium-grey);
}

.contact-item a {
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* --- Footer --- */
.footer-section {
    background-color: var(--dark-grey);
    color: #fff;
    padding: 40px 0;
    font-family: var(--sans-font);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-links a, .footer-social a {
    color: #ccc;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-social a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--medium-grey);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #ccc;
}

.footer-bottom a {
    color: #ccc;
}
.footer-bottom a:hover {
    color: #fff;
}

/* --- DESKTOP STYLES (Default) --- */

/* 1. Hide the hamburger icon on big screens */
.hamburger {
    display: none; 
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {

    .hero-buttons {
        display: flex;
        flex-direction: column; 
        align-items: center;      
        gap: 20px;               
        width: 100%;
    }

    .hero-buttons .btn {
        margin: 0;        
        width: 200px;      
    }

    /* --- Typography Fixes --- */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    /* Reduce huge padding on sections */
    .features-section,  
    .download-section,  
    .education-section,  
    .faq-section,  
    .about-section,  
    .contact-section,
    .mv-section,
    .badges-section,
    .carousel-section,
    #brave-badge-showcase {
        padding: 50px 0;
    }

    /* Hero Logo sizing adjustment for smaller screens */
    .hero-logo-img {
        max-width: 250px; 
    }
    /* Hero Tagline sizing adjustment for smaller screens */
    .hero-tagline-text {
        font-size: 1rem;
        margin: 1rem auto 2rem auto;
    }
    .hero-content p:first-of-type {
        font-size: 1.15rem;
    }


    /* Center text for Education Hub on mobile */
    .education-section h1,
    .education-section p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* --- Navbar (Your existing logic) --- */
    .hamburger {
        display: block;
        margin-left: auto;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.open {
        display: flex !important;
    }

    .nav-menu li {
        text-align: center;
        margin: 15px 0;
    }

    /* --- FIX: Features Item (for old content structure/carousel slides) --- */
    /* Mobile should stack vertically */
    .feature-slide {
        flex-direction: column !important; /* Forces Image -> Text/Button */
        text-align: center;
        gap: 2rem;
        margin-bottom: 0 !important; 
    }
    
    .feature-slide .feature-text h2,
    .feature-slide .feature-text p {
        text-align: center; /* Center the text inside the carousel slides */
    }

    /* Ensure the placeholder images don't look too tall */
    .feature-illustration .placeholder-shape {
        height: 250px;  
    }

    /* --- FIX: Download Section --- */
    .download-content {
        flex-direction: column; 
        gap: 3rem;
    }
    
    .phone-mockup {
        width: 100%; 
        max-width: 260px; 
        height: auto;
        aspect-ratio: 1/2; 
        margin: 0 auto;
    }

    /* --- FIX: Founders & Contact --- */
    .founders {
        gap: 2rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 2rem;
    }

    /* Mobile specific for badges */
    .badges-preview img {
        width: 90px;
    }
}

@media (max-width: 500px) {
    /* Remove features grid styling remnants */
    .features-grid {
        display: none;
    }
}

