:root {
    /* ServiceNow-inspired Color Palette */
    --primary: #1C2A33;           /* Dark navy/charcoal */
    --primary-light: #2C3E50;     /* Medium navy */
    --primary-dark: #0A1520;      /* Very dark navy */
    --accent: #62D84E;            /* ServiceNow bright green */
    --accent-dark: #4DB83D;       /* Darker green */
    --secondary: #00D9A5;         /* Teal accent */
    --red-accent: #FF6B6B;
    --blue-accent: #4A90E2;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --text-gray: #6B7280;
    --bg-cream: #F9FAFB;
    --bg-light: #F3F4F6;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.center {
    text-align: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 1px 3px var(--shadow);
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary);
    padding: 0.5rem;
    z-index: 1002;
    order: 3; /* Position after nav-links */
}

@media (max-width: 968px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.4rem;
        z-index: 1002;
    }
    
    .logo svg {
        width: 30px;
        height: 30px;
    }
    
    .mobile-menu-btn {
        display: block;
        margin-right: 1rem;
    }
    
    .donate-btn {
        display: none; /* Hide donate button on mobile, show in menu */
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 0 4px 20px var(--shadow-lg);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--bg-light);
        padding: 1rem 0;
    }
    
    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--bg-light);
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 0.5rem;
    }
    
    .dropdown-menu::before {
        display: none; /* Remove overlap compensation on mobile */
    }
    
    .dropdown > a {
        padding-bottom: 0.5rem !important; /* Reset extended padding on mobile */
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    /* Mobile Donate Link */
    .mobile-donate {
        border-bottom: none !important;
        margin-top: 1rem;
        padding-top: 1rem !important;
        border-top: 2px solid var(--accent) !important;
    }
    
    .mobile-donate-link {
        background: var(--accent) !important;
        color: var(--primary) !important;
        padding: 1rem 2rem !important;
        border-radius: 50px !important;
        text-align: center;
        font-weight: 700 !important;
        display: block !important;
    }
}

.logo {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo svg {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--accent);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown > a {
    cursor: pointer;
    padding-bottom: 1.5rem !important; /* Extend clickable area downward */
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% - 0.5rem); /* Overlap with parent to prevent gap */
    left: 0;
    background: white;
    box-shadow: 0 8px 24px var(--shadow-lg);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 240px;
    list-style: none;
    z-index: 1001;
}

/* Add padding above first item to account for overlap */
.dropdown-menu::before {
    content: '';
    display: block;
    height: 0.5rem;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--bg-light);
    color: var(--accent);
}

.dropdown-menu a::after {
    display: none;
}
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--accent);
}

.dropdown-menu a::after {
    display: none;
}

.donate-btn {
    background: var(--accent);
    color: var(--text-dark);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(98, 216, 78, 0.3);
}

.donate-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(98, 216, 78, 0.4);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 140px 2rem 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(98, 216, 78, 0.15) 0%, transparent 60%);
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s both;
    font-weight: 700;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s both;
    max-width: 800px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(98, 216, 78, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(98, 216, 78, 0.4);
    background: var(--accent-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
}

/* Sections */
.section {
    padding: 80px 2rem;
}

.section-title {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-lg);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.card p {
    color: var(--text-gray);
}

.card-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--accent-dark);
    transform: translateX(5px);
}

/* Background Colors */
.whats-happening { background: var(--bg-cream); }
.calendar-section { background: white; }
.about-section { background: var(--bg-cream); }
.features { background: var(--primary); color: var(--text-light); }
.meeting-info { background: white; }
.cta-section { 
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    text-align: center;
}

/* Calendar */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.event-card {
    background: white;
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.event-card:hover {
    background: var(--bg-light);
    transform: translateX(5px);
    box-shadow: 0 4px 16px var(--shadow);
}

.event-date {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* About */
.purpose-list {
    list-style: none;
    margin: 2rem 0;
}

.purpose-list li {
    padding: 1.5rem 0 1.5rem 3.5rem;
    position: relative;
    color: var(--text-gray);
    border-bottom: 1px solid #E5E7EB;
}

.purpose-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1.5rem;
    background: var(--accent);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.what-we-do-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border-left: 5px solid var(--accent);
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px var(--shadow);
}

.what-we-do-card h4 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.what-we-do-card ul {
    list-style: none;
    padding-left: 0;
}

.what-we-do-card li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-gray);
}

.what-we-do-card li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.5rem;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-item h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 600;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.85);
}

/* Meeting */
.meeting-card {
    max-width: 900px;
    margin: 3rem auto;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 12px 48px var(--shadow-lg);
    text-align: center;
    color: white;
}

.meeting-date {
    font-family: 'Crimson Pro', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.meeting-time {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 2rem;
}

.meeting-link {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.meeting-link:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(98, 216, 78, 0.4);
}

/* Board Member Cards */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.board-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.board-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-lg);
}

.board-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.board-card-content {
    padding: 2rem;
}

.board-title {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.board-name {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.board-bio {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.board-contact {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.board-contact:hover {
    color: var(--accent-dark);
    transform: translateX(3px);
}

/* Event Detail Pages */
.event-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 140px 2rem 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.event-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(98, 216, 78, 0.15) 0%, transparent 60%);
}

.event-hero h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.event-hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 3rem 0;
}

.date-box {
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 16px;
    border-left: 5px solid var(--accent);
    box-shadow: 0 2px 12px var(--shadow);
}

.date-box strong {
    color: var(--primary);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.steps-box {
    background: var(--primary);
    color: white;
    padding: 3rem;
    border-radius: 20px;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-num {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.prize-item {
    padding: 1rem;
    background: var(--bg-cream);
    border-radius: 12px;
    text-align: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.prize-item:hover {
    background: white;
    box-shadow: 0 2px 8px var(--shadow);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--text-light);
    padding: 60px 2rem 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-section h4 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

/* Footer Contact Button */
.footer-section a[href="contact.html"] {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(98, 216, 78, 0.3);
}

.footer-section a[href="contact.html"]:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(98, 216, 78, 0.4);
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 968px) {
    .event-grid {
        grid-template-columns: 1fr;
    }

    .hero h1, .event-hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle, .event-hero p {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .cards-grid, .board-grid {
        grid-template-columns: 1fr;
    }
}

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