@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-green: #4CAF50;
    --text-dark: #333333;
    --text-medium: #6b7280;
    --glass-card-bg-color: rgba(255, 255, 255, 0.6);
    --glass-border-color: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Make sizing predictable and prevent accidental horizontal overflow */
*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; }

/* Ensure images never exceed their container */
img { max-width: 100%; height: auto; display: block; }

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--text-dark);
    background: linear-gradient(135deg, #e0e7ff 0%, #f0fff4 100%);
}

/* Skip-link: visible when focused for keyboard users */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 14px; top: 14px; width: auto; height: auto; padding: 8px 12px; background: #fff; color: #111; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); z-index: 100000; }

a {
    text-decoration: none;
    color: var(--primary-green);
    font-weight: 500;
}

header {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
}

.logo img {
    height: 40px;
    margin-right: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo .name {
    font-size: 1.5rem;
    white-space: nowrap;
}

.logo .slogan {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-medium);
    white-space: nowrap;
}

.nav-links-desktop {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links-mobile {
    display: none;
}

nav a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

.signup-btn {
    background-color: var(--primary-green);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.signup-btn:hover {
    background-color: #388E3C;
    color: #fff;
}

main {
    padding: 2rem;
}

#hero {
    color: var(--text-dark);
    text-align: center;
    padding: 5rem 2rem;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(245,250,255,0.9));
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 12px 40px rgba(30,60,120,0.08);
    width: 100%;
    max-width: 1100px;
    margin: 2.25rem auto;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 0.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Highlight a key word inside the headline */
.hero-content h1 .highlight {
    color: var(--primary-green);
    font-weight: 900;
    display: inline-block;
    padding: 0 0.12em;
    letter-spacing: -0.01em;
}

/* subtle decorative underline/accent below the headline */
.hero-content h1 {
    position: relative;
}
.hero-content h1::after {
    content: '';
    display: block;
    width: 140px;
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(76,175,80,0.95), rgba(34,197,94,0.7));
    margin: 18px auto 0;
    box-shadow: 0 6px 18px rgba(76,175,80,0.12);
    opacity: 0.95;
}

/* Add a faint inner glow to the hero card for depth */
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    width: 70%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(76,175,80,0.04), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Slightly tighten hero spacing on very wide screens to keep focus */
@media (min-width: 1200px) {
    .hero-content h1 { font-size: 3.6rem; }
    .hero-content h1::after { width: 180px; }
}

.hero-content p {
    font-size: 1.05rem;
    max-width: 820px;
    margin: 0 auto 1.75rem;
    color: var(--text-medium);
    opacity: 0.95;
}

.cta-button {
    background-color: var(--primary-green);
    color: #fff;
    padding: 0.95rem 1.8rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    box-shadow: 0 10px 26px rgba(76,175,80,0.18);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(76,175,80,0.22);
}

#features {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 4rem 2rem;
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 1200px;
    margin: 2rem auto;
    gap: 2rem;
}

.feature {
    background: var(--glass-card-bg-color);
    border: 1px solid var(--glass-border-color);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    border-radius: 24px;
    max-width: 350px;
}

.feature h2 {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.feature p {
    color: var(--text-medium);
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    background-color: var(--glass-card-bg-color);
    border: 1px solid var(--glass-border-color);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 700;
}

#about h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #555;
}

#about p {
    text-align: justify;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.75;
    color: var(--text-medium);
}

#leadership .leadership-container {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.leader {
    flex: 1;
    min-width: 260px; /* Reduced from 300px to fit smaller screens */
    max-width: 500px;
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--glass-border-color);
    border-radius: 24px;
    background-color: rgba(255, 255, 255, 0.7);
}

.leader img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    border: 3px solid var(--primary-green);
}

.leader h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.leader h4 {
    font-size: 1rem;
    color: #777;
    margin-bottom: 1rem;
    font-weight: 400;
}

.leader p {
    text-align: justify;
    line-height: 1.6;
    color: var(--text-medium);
}

#contact {
    text-align: center;
}

#contact p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    header { 
        padding: 0 1rem; 
        box-shadow: none;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }
    nav { 
        height: auto;
        padding: 0.75rem 0;
    }
    .logo img { height: 36px; }
    .logo .name { font-size: 1.2rem; }
    .logo .slogan { font-size: 0.7rem; }
    
    .nav-links-desktop { display: none; }
    
    .nav-links-mobile {
        display: flex;
        flex-direction: column; /* Stack the two groups */
        gap: 10px;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        padding: 1rem 0.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        width: 100%;
        box-sizing: border-box;
    }

    .nav-group-content {
        display: flex;
        justify-content: center;
        gap: 16px;
        width: 100%;
    }

    .nav-group-actions {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
        width: 100%;
        padding-top: 4px;
        border-top: 1px solid rgba(0,0,0,0.04); /* Subtle separator */
    }

    .nav-links-mobile a {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--text-dark);
        text-decoration: none;
    }

    .nav-links-mobile .login-link {
        font-weight: 600;
        color: var(--primary-green);
    }

    .nav-links-mobile .signup-link {
        background-color: var(--primary-green);
        color: #fff !important;
        padding: 0.5rem 1.2rem;
        border-radius: 8px;
        font-weight: 600;
        box-shadow: 0 4px 10px rgba(76,175,80,0.2);
    }

    #hero { padding: 2rem 1rem; margin-top: 0.5rem; }
    .hero-content h1 { font-size: 1.8rem; line-height: 1.2; }
    .hero-content p { font-size: 0.95rem; }
    #features { flex-direction: column; gap: 1rem; padding: 2rem 1rem; }
    section { padding: 2rem 1rem; }
    
    /* Fix Leadership Card Overflow */
    .leader { 
        padding: 1.5rem 1rem; 
        min-width: unset; 
        width: 100%; 
        max-width: 100%; /* Ensure it doesn't exceed parent */
        box-sizing: border-box; /* Include padding in width */
    } 
    .leader img { width: 100px; height: 100px; }
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: transparent;
    color: var(--text-medium);
    margin-top: 2rem;
}

