:root {
    --primary-blue: #4B2E83;
    --accent-yellow: #B7A57A;
    --light-gray: #F8F8F8;
    --text-dark-gray: #1E1E1E;
    --white: #FFFFFF;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box; /* Ensures padding/border are included in width/height */
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark-gray);
    background-color: var(--white);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-blue);
}

h1 { font-size: 56px; line-height: 1.1; }
h2 { font-size: 36px; margin-bottom: 1.5rem; }
h3 { font-size: 20px; margin-bottom: 0.5rem; color: var(--text-dark-gray); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--light-gray);
}

section#pilot {
    background-color: var(--primary-blue);
    color: var(--white);
    background-image:
        linear-gradient(rgba(75, 46, 131, 0.9), rgba(75, 46, 131, 0.9)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

section#pilot h2,
section#pilot p {
    color: var(--white);
}

section#pilot p {
    font-size: 1.1em;
}

/* Header */
#main-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#main-header .logo {
    height: 30px;
    /* The nav will be centered relative to the full header width */
}
#main-header .logo img {
    height: 100%;
    display: block;
}

#main-header nav {
    /* Center the nav element itself in the available space */
    flex-grow: 1;
    text-align: center;
}

#main-header nav a {
    margin: 0 0.75rem; /* Use horizontal margin only */
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    color: var(--text-dark-gray);
    display: inline-block; /* Helps with spacing and hover */
    padding: 0.25rem 0;
    position: relative;
}

#main-header nav a:hover,
#main-header nav a:active {
    color: var(--primary-blue);
    text-decoration: none;
}
#main-header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-blue);
    transition: all 0.3s ease-in-out;
}
#main-header nav a:hover::after,
#main-header nav a:active::after {
    width: 100%;
    left: 0;
}

#main-header nav .nav-cta {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-left: 0.75rem;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.2s ease-in-out;
}
#main-header nav .nav-cta:hover,
#main-header nav .nav-cta:active {
    background-color: #3a226a;
}
#main-header nav .nav-cta::after {
    display: none; /* Hide underline effect for button */
}


/* Hero Section */
#hero {
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden; /* Prevents horizontal scroll from child elements */
}

#hero .hero-content {
    width: 100%;
    max-width: 600px;
}

.hero-logo {
    height: 80px;
    margin-bottom: 1rem;
}

#hero .subtitle {
    display: none;
}

#hero .tagline {
    font-size: 32px;
    color: var(--text-dark-gray);
    font-weight: 400;
    margin: 1rem 0;
}

#hero .description {
    max-width: 600px;
    margin: 1rem auto 2rem;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.cta-button:hover,
.cta-button:active {
    background-color: #3a226a;
    transform: translateY(-2px);
    text-decoration: none;
}

.cta-button.large {
    font-size: 18px;
    padding: 15px 30px;
}

/* About Page Specific Styles */
#page-header {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

#page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

#page-header p {
    font-size: 1.2rem;
    color: var(--accent-yellow);
    margin: 0;
}

.program-section {
    border-bottom: 1px solid #e0e0e0;
}
.program-section:last-child {
    border-bottom: none;
}

.program-details {
    max-width: 700px;
    margin: 0 auto;
}

.program-details h2 {
    color: var(--primary-blue);
    font-size: 28px;
    margin-bottom: 0.25rem;
}

.program-details .subtitle {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
}

.program-details h3 {
    font-size: 18px;
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-details ul {
    list-style: none;
    padding-left: 0;
}

.program-details ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.5rem;
}

.program-details ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.program-details ol.week-by-week-list {
    list-style: none;
    padding-left: 0;
    counter-reset: week-counter;
}
.program-details ol.week-by-week-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.5rem;
    counter-increment: week-counter;
}
.program-details ol.week-by-week-list li::before {
    content: counter(week-counter) ".";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    width: 20px;
    text-align: left;
}

.safety-box {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background-color: var(--light-gray);
    border-left: 4px solid var(--accent-yellow);
    font-size: 0.95rem;
}

.safety-box p {
    margin-bottom: 0;
}

.safety-box span {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

#about-intro {
    background-color: var(--light-gray);
    text-align: center;
}
#about-intro .lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-dark-gray);
    line-height: 1.7;
}

/* About how it works grid */
.about-how-it-works-grid .audience-card {
    background-color: var(--light-gray); 
    border-radius: 8px; 
    padding: 2rem;
}

/* Meet the Team Section */
#meet-the-team {
    background-color: var(--light-gray);
}
#meet-the-team .container {
    text-align: center;
}
#meet-the-team .intro-text {
    max-width: 600px;
    margin: 0 auto 3rem auto;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 700px;
    margin: 0 auto;
}
.team-member {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px; /* Added for better visual on tap */
}
.team-member:hover,
.team-member.mobile-hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.team-member h3 {
    margin-bottom: 0.25rem;
    font-size: 20px;
    color: var(--primary-blue);
}
.team-member .role {
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
    font-size: 16px;
}
.team-member p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 0;
}

/* About Section */
#about .container {
    max-width: 700px;
    text-align: center;
}

#about h2 {
    color: var(--accent-yellow);
}

/* How It Works Section */
#how-it-works .container {
    text-align: center;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 4rem 0;
    position: relative;
    flex-wrap: wrap;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 20%;
    position: relative;
}

.timeline-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--white);
    transition: all 0.3s ease;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-blue);
}

.timeline-item:hover .timeline-icon,
.timeline-item.mobile-hover .timeline-icon {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    transform: scale(1.1);
    box-shadow: 0 0 0 3px var(--accent-yellow);
}

.timeline-icon i {
    width: 32px;
    height: 32px;
}

.timeline-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.timeline-content p {
    font-size: 16px;
    margin: 0;
    color: var(--text-dark-gray);
}

.timeline-connector {
    display: none; /* Hidden for now, line drawn in pseudo-element */
}

.timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: var(--primary-blue);
    z-index: -1;
}

.intro-text {
    max-width: 500px;
    margin: 0 auto;
}

/* Who It's For Section */
#who-its-for .container {
    text-align: center;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    text-align: left;
}

.audience-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none; /* remove underline from link */
    color: var(--text-dark-gray); /* inherit text color */
    border-radius: 8px; /* For visual feedback */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audience-card:hover,
.audience-card:active {
    text-decoration: none;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.audience-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.audience-card:hover .audience-icon-wrapper,
.audience-card:active .audience-icon-wrapper {
    background-color: var(--accent-yellow);
    transform: scale(1.1);
}

.audience-card:hover .audience-icon-wrapper i,
.audience-card:active .audience-icon-wrapper i {
    color: var(--primary-blue);
}

.audience-card i {
    color: var(--white);
    width: 32px;
    height: 32px;
}

.audience-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
}

.audience-card p {
    font-size: 16px;
    flex-grow: 1;
}

.learn-more-link {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
    margin-top: 1rem;
    align-self: center; /* Center the link in the card */
    transition: color 0.2s ease;
    display: inline-block; /* Treat it like a block for styling */
}

.audience-card:hover .learn-more-link,
.audience-card:active .learn-more-link {
    color: var(--accent-yellow);
    text-decoration: underline;
}


/* Pilot Section */
#pilot .container {
    max-width: 700px;
    text-align: center;
}

/* Contact Section */
#contact .container {
    max-width: 600px;
    text-align: center;
}

#contact .questions p {
    font-size: 20px;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}
#contact .questions {
    margin-bottom: 2rem;
}
#contact h2 {
    color: var(--accent-yellow);
}
#contact .follow-up {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 16px;
    color: #555;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

#interest-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 16px;
    color: var(--primary-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(75, 46, 131, 0.2);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.7rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

#interest-form button {
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    align-self: center;
}

/* Footer */
footer {
    background-color: var(--text-dark-gray);
    color: var(--white);
    padding: 40px 0 20px;
}

footer a {
    color: var(--accent-yellow);
}
footer a:hover,
footer a:active {
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.footer-logo {
    height: 30px;
    margin-right: 0.5rem;
}

.footer-info, .footer-links {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1rem;
}

.footer-info h3 {
    display: none;
}

.footer-info p {
    font-size: 16px;
    margin-bottom: 0.25rem;
    color: #ccc;
}
.footer-info .tagline {
    font-style: italic;
    color: #aaa;
}
.footer-links p {
    font-size: 16px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 14px;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 { font-size: 42px; }
    h2 { font-size: 28px; }

    section {
        padding: 60px 0;
    }

    #main-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    #main-header .logo {
        margin-bottom: 1rem; /* More space on mobile */
    }
    #main-header nav {
        width: 100%;
    }
    #main-header nav a {
        margin: 0 0.5rem;
        font-size: 14px;
    }
    #main-header nav .nav-cta {
        display: none; /* Hide in nav on mobile */
    }

    .timeline {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 20px;
        padding-left: 20px;
    }
    .timeline::before {
        left: 0;
        right: auto;
        top: 0;
        bottom: 0;
        width: 3px;
        height: 100%;
    }
    .timeline-item {
        flex-direction: row;
        width: 100%;
        margin-bottom: 2rem;
        align-items: center;
        text-align: left;
    }
    .timeline-item:last-child {
        margin-bottom: 0;
    }
    .timeline-icon {
        margin-bottom: 0;
        margin-right: 1.5rem;
        position: absolute;
        left: -32px; /* Center on the line */
        top: 50%;
        transform: translateY(-50%);
        background-color: var(--light-gray); /* Match section bg */
        border: 3px solid var(--primary-blue);
        box-shadow: none;
        color: var(--primary-blue); /* Fix contrast on mobile */
        transition: all 0.3s ease;
    }

    .timeline-item:hover .timeline-icon,
    .timeline-item.mobile-hover .timeline-icon {
        transform: translateY(-50%) scale(1.1);
        background-color: var(--primary-blue);
        color: var(--white);
    }
    .timeline-content {
        padding-left: 50px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .program-details h2 {
        font-size: 24px;
    }

    .weeks-grid {
        grid-template-columns: 1fr;
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }
    .audience-card {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    .learn-more-link {
        align-self: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-info, .footer-links {
        width: 100%;
        margin-bottom: 2rem;
    }
    .footer-logo-container {
        justify-content: center;
    }
}

/* Added a new breakpoint for tablets to handle the 3-column layout better */
@media (max-width: 959px) and (min-width: 769px) {
    /* Make grids single column on tablets to avoid overflow */
    .audience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px; /* Constrain width to look better as single column */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 60px 20px;
    }
}