/* CSS Variables for easy color changes */
:root {
    --navy: #0e1b29;
    --green: #1F8A70;
    --light-bg: #f8f9fa;
    --text-dark: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navigation */
nav {
    background: var(--navy);
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    /* Spaced out: Logo | Links | Login */
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo,
.nav-auth {
    flex: 1;
    /* These take up equal space to force links to the center */
}

.nav-links {
    flex: 2;
    /* Takes up more space */
    text-align: center;
}

nav img {
    height: 60px;
    vertical-align: middle;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

/* The Green Highlight for the current page */
.nav-links a.active {
    color: var(--green) !important; /* Forces the brand green */
    font-weight: 700;
}

.nav-links a:hover {
    color: var(--green);
}

.nav-auth {
    text-align: right;
}

/* Smaller login button for the nav */
.btn-login {
    border: 1.5px solid var(--green);
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-login:hover {
    background: var(--green);
}








/* Hero Home with Teacher Background */
.hero-home {
    position: relative;
    height: 800px;
    /* Reduced height to effectively 'crop' the image */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Using background-position: top center to crop the bottom */
    background: linear-gradient(rgba(201, 214, 229, 0.5), rgba(184, 207, 232, 0.5)), url('images/teacher.jpeg') no-repeat;
    background-size: cover;
    background-position: top center;

    /* Blur Effect */
    filter: blur(3px);
    transform: scale(1.1);
    /* Prevents white edges from blur */
    z-index: -1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-overlay {
    background: rgba(14, 27, 41, 0.5);
    /* Dark tint so white text pops */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10%;
}
/* 
.hero-home h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
} */

/* New Navy Background Section for H2s */
.value-prop {
    background-color: var(--navy);
    color: #ffffff;
    padding: 80px 10%;
    text-align: center;
}

.value-prop h2 {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 30px;
}

.value-prop h2:last-child {
    margin-bottom: 0;
}

/* Feature adjustments for spacing */
.features {
    padding: 80px 10%;
    background-color: #fff;
}

/* Button specific for the Hero */
.btn-primary-hero {
    background: var(--green);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary-hero:hover {
    background: #1a7a63;
    transform: translateY(-3px);
}




/* Buttons */
.btn {
    background: var(--green);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}

.btn:hover {
    background: #0056b3;
}

/* Features Section */
.features {
    background: white;
    /* Clean white background like the image */
    padding: 80px 10%;
    text-align: center;
}

/* 1. Header Wrapper to split the block into 2 equal columns */
.features-header-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px; /* Space between the header boxes and the features cards underneath */
}

/* 2. Left Box: Navy Banner holding the text */
.features-title-box {
    background-color: var(--navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 180px; /* Forces both boxes to look identical in height layout */
}

/* Overriding the default look of the title to look bright white inside the navy banner */
.features-title-box h2 {
    color: #ffffff !important;
    font-size: 3rem;
    margin: 0;
}

.features h2 {
    color: var(--navy);
    font-size: 2.5rem;
    margin-bottom: 50px;
}

/* 3. Right Box: Holds the soccer image layout seamlessly */
.features-image-box {
    border-radius: 12px;
    overflow: hidden; /* Ensures the image respects the rounded card edges */
    height: 100%;
}

.features-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image cleanly inside its layout box boundaries */
    display: block;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #eee; 
    /* Updated to match the strong drop-shadow of the team cards */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-15px);
    /* Keeps the shadow consistent or slightly deeper on hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Feature Icons - Circular Navy Background */
.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--navy);       /* Changes the circle background to Navy */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Formats the icon inside the circle and turns it white */
.feature-icon img {
    width: 28px;                   /* Perfect size sizing for line icons */
    height: 28px;
    object-fit: contain;
    filter: invert(1) brightness(2); /* Magic trick: turns black lines into crisp white */
}

.feature-item p {
    color: #666;
    /* Softer text color for descriptions */
    font-size: 1rem;
}


/* How It Works Layout Grid */
.how-it-works {
    padding: 100px 10%;
    background-color: #ffffff;
}

.how-it-works-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Slightly larger area layout for text content space */
    gap: 80px;
    align-items: flex-start;
}

/* Left Column Styling */
.how-content-side h2 {
    color: var(--navy);
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}

.how-content-side .main-intro {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Content List Rows styling */
.info-list-item {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e2efeb; /* Soft divider line color */
}

.info-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-list-item h3 {
    color: #1F8A70; /* Brand Green Titles */
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 12px;
}

.info-list-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.info-list-item a {
    color: #1F8A70;
    text-decoration: underline;
}

/* Right Column: Absolute Monitor Stacking Trick Layout */
.how-graphic-side {
    position: relative;
    width: 100%;
    margin-top: 40px; /* Aligns visually balanced across from text list body start */
}

.monitors-wrapper {
    position: relative;
    width: 100%;
    height: 450px; /* Dictates container boundaries for stacked elements */
}

.monitor {
    position: absolute;
    width: 85%; /* Scaled smaller so they overlap inside bounding boxes gracefully */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: transform 0.4s ease;
    left: 0;
    top: 0;
    z-index: 1;
}

/* Micro interaction hover pop effects */
.monitors-wrapper:hover .monitor-front {
    transform: translate(5px, -5px) scale(1.05);
}

/* Clean Responsive Stacking Configurations for Tablets / Mobile Views */
@media (max-width: 1024px) {
    .how-it-works-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .monitors-wrapper {
        height: 380px;
        max-width: 600px;
        margin: 0 auto;
    }
}










/* Pricing Styles */
.pricing-header {
    text-align: center;
    padding: 80px 10% 40px;
    background: var(--light-bg);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 10% 80px;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    border: 1px solid #ddd;
    padding: 40px;
    border-radius: 12px;
    width: 300px;
    text-align: center;
    position: relative;
    transition: 0.3s;
}

.pricing-card.featured {
    border: 2px solid var(--green);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pricing-card .badge {
    background: var(--green);
    color: white;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    margin: 20px 0;
    color: var(--navy);
}

.price span {
    font-size: 1rem;
    color: #666;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-card li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.pricing-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}





/* About Page */
.mission-section {
    padding: 100px 10%;
    text-align: left;
    /* Removed the dark overlay and set to no-repeat */
    background: url('images/blackboard.jpeg') no-repeat;
    /* Stretches horizontally to 100% width, height adjusts automatically */
    background-size: 100% auto;
    background-position: center;
    color: #fff;
}

.mission-section h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    /* Added shadow to keep text readable against the raw image */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.mission-text {
    font-size: 1.5rem;
    color: #fff;
    max-width: 600px;
    /* Narrower width to match your red box screenshot */
    margin: 0;
    /* Removes the 'auto' centering to pull it to the left */
    line-height: 1.6;
    font-weight: 500;
    text-align: left;
    /* Keeps text readable against the chalk */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.story-section {
    padding: 80px 10% 100px;
    background-color: #0e1b29;
    /* Matches original website navy */
    color: #ffffff;
}

.story-grid {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.story-content {
    flex: 1;
}

.story-content h2 {
    color: #ffffff;
    /* Contrast against navy */
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.story-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    /* Subtle radius from the screenshot */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .story-grid {
        flex-direction: column;
    }

    .mission-section h1 {
        font-size: 2rem;
    }

    .mission-text {
        font-size: 1.2rem;
    }
}





/* Leadership Team Styles */
.leadership-section {
    padding: 80px 10%;
    background-color: #fff;
}

.section-title {
    color: var(--green);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-intro {
    color: #666;
    margin-bottom: 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-card {
    text-align: center;
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    /* Stronger drop-shadow effect as requested */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-15px);
}

.team-card img {
    width: 60%;
    /* Slightly smaller images */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
}

.team-card h3 {
    color: #0e1b29;
    margin-bottom: 2px;
}

.team-card .role {
    color: #1F8A70;
    /* Verisafe Green for the role text */
    font-weight: 600;
}

.team-card .role-text {
    color: #777;
    font-size: 0.8rem;
}






/* Pricing Page Specifics */
.stripe-pricing-section {
    padding: 40px 5%;
    background-color: #fff;
    /* White background to make the Stripe cards pop */
}

.stripe-container {
    margin: 0 auto;
    /* Optional: adds a soft shadow around the whole table area */
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;
}

/* Ensure the mission text on the pricing page is left-aligned like the About page */
.pricing-page .mission-text {
    text-align: left;
    margin: 0;
}







/* FAQ Header - Library Background */
.faq-header {
    position: relative;
    padding: 100px 10%;
    text-align: left;
    color: #fff;
    overflow: hidden;
    background: none !important;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.faq-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/library.jpg') no-repeat;
    background-size: cover;
    background-position: center;

    /* The Blur Effect */
    filter: blur(3px);

    /* Slightly scale up the image to hide the white 'glow' edges caused by blurring */
    transform: scale(1.1);

    /* Put the image behind the text */
    z-index: -1;
}

/* FAQ Accordion Styling */
.faq-section {
    padding: 60px 10%;
    /* Adjusted top padding to bridge gap */
    background-color: #f8f9fa;
    text-align: left;
    /* Ensures section titles also align left */
}

.faq-grid {
    max-width: 900px;
    margin: 10px 0 0;
}

.faq-row {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-row summary {
    background-color: #f0f7f5;
    padding: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0e1b29;
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
    text-align: left;
    /* Explicitly align summary text left */
}

/* 1. Standard Hover (Only applies when the parent .faq-row is NOT open) */
.faq-row:not([open]) summary:hover {
    background-color: #e2efeb;
    color: #0e1b29;
    /* Keeps text dark on hover */
}

/* 2. Open State (Overrides everything when the row is clicked) */
.faq-row[open] summary {
    background-color: var(--navy);
    color: #ffffff;
    cursor: default;
    /* Optional: changes cursor to signal it's already expanded */
}

/* 3. Ensure the icon turns white when open */
.faq-row[open] summary::after {
    color: #ffffff;
    content: '-';
}

/* Custom indicator arrow */
.faq-row summary::after {
    content: '+';
    float: right;
    font-size: 1.5rem;
    color: #1F8A70;
    transition: transform 0.3s ease;
}

.faq-content {
    padding: 0 25px 25px 25px;
    line-height: 1.7;
    color: #444;
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: left;
    /* Aligns the answer text to the left */
}










/* Contact Page Header Logic */
.contact-header {
    position: relative;
    padding: 100px 10%;
    text-align: left;
    color: #fff;
    overflow: hidden;
    background: none !important;
}

.contact-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/scouts.jpg') no-repeat;
    background-size: 100% auto;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.1);
    z-index: -1;
}

/* Button Styling */
.contact-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary {
    background: var(--green);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--navy);
}

/* Smooth Scroll Effect */
html {
    scroll-behavior: smooth;
}

/* Form Styling */
.form-section {
    padding: 80px 10%;
    background: #f8f9fa;
}

.contact-ui-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--navy);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.schedule-section {
    padding: 80px 10%;
    text-align: center;
}