/* ==============================
   Core Variables
   ============================== */
:root {
    --primary-color: #166534;
    /* Deeper Green for Nature */
    --secondary-color: #10b981;
    /* Bright Green */
    --accent-color: #2563eb;
    /* Blue accent for contrast */
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    line-height: 1.6;
    /* SNV Nature background — fixed/dim so sections overlay cleanly */
    background-color: #e8f5e9;
    background-image: url('https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=60');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    scroll-behavior: smooth;
}

/* Dim overlay applied to body pseudo-element so content sections remain readable */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(240, 253, 244, 0.88);
    /* very light green wash, dims the background */
    pointer-events: none;
    z-index: 0;
}

/* Ensure all content renders above the body overlay */
nav,
header,
section,
footer,
main {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    line-height: 1.2;
}

/* ==============================
   Typography & Utilities
   ============================== */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-primary {
    background-color: var(--primary-color);
}

.text-white {
    color: #fff;
}

.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-header.center {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.line {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.line.center {
    margin: 0 auto;
}

.line-white {
    background: #fff;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid\.2-cols {
    grid-template-columns: repeat(2, 1fr);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-sans);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--secondary-color);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-outline {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: #fff;
}

.btn-outline-white {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--primary-color);
}

/* ==============================
   Navigation
   ============================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    padding: 20px 0;
    transition: all 0.3s;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: var(--primary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-img-logo {
    height: 50px;
    /* Resize logo to fit navbar */
    width: auto;
    filter: brightness(0) invert(1);
    /* Make it white if it has a transparent background */
}

.navbar.scrolled .nav-img-logo {
    filter: none;
    /* Return to original colors when scrolled over white background */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-admin {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.navbar.scrolled .btn-admin {
    background: var(--primary-color);
    color: #fff;
}

.hamburger {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar.scrolled .hamburger {
    color: var(--primary-color);
}

/* ==============================
   Hero Section
   ============================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    /* Science + Nature + Digital Transformation theme — local hero image */
    background: url('../img/hero-bg-lab.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 2%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background: url('../img/sem_bg_logo.png') center/contain no-repeat;
    opacity: 0.12;
    /* Subtle merge */
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Deep Tech-Blue fading into Natural Green — merging Digital Innovation + Nature */
    background: linear-gradient(135deg, rgba(5, 28, 68, 0.88) 0%, rgba(10, 80, 40, 0.82) 50%, rgba(2, 44, 34, 0.90) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 900px;
}

.hero-top-logos {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-top-logos {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
}

.logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 280px;
}

.block-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.block-logo.univ-logo {
    height: 110px;
    /* Slightly larger center logo */
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.logo-block p {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 auto 30px;
}

.hero h1 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 1.8rem;
    color: #e2e8f0;
    font-weight: 400;
    margin-bottom: 30px;
    font-family: var(--font-sans);
}

.hero-date {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==============================
   Text Content Sections
   ============================== */
.text-content p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: var(--text-light);
    text-align: justify;
}

/* ==============================
   Topics Grid
   ============================== */
.topics-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.topic-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent-color);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.topic-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.topic-content h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.topic-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ==============================
   Cards (Dates & Fees)
   ============================== */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.card-header {
    background: var(--primary-color);
    color: #fff;
    padding: 20px 30px;
}

.card-header h3 {
    color: #fff;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dates-list,
.fees-list {
    list-style: none;
    padding: 0;
}

.dates-list li,
.fees-list li {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dates-list li:last-child,
.fees-list li:last-child {
    border-bottom: none;
}

.dates-list li strong {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.dates-list li span {
    color: var(--text-main);
    font-weight: 500;
}

.fees-list li .price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    background: var(--bg-light);
    padding: 5px 15px;
    border-radius: 20px;
}

.fees-include {
    padding: 20px 30px;
    font-size: 0.9rem;
    color: var(--text-light);
    background: var(--bg-light);
    font-style: italic;
}

/* ==============================
   Committees
   ============================== */
.highlight-text {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.committee-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.card-header-alt h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.card-header-alt p {
    color: var(--text-light);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.member-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.member-list li {
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-main);
}

.member-list li i {
    color: var(--secondary-color);
    margin-top: 4px;
    font-size: 0.8rem;
}

/* ==============================
   Instructions
   ============================== */
.section.bg-primary h2 {
    color: #fff;
}

.guidelines-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guidelines-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.05rem;
}

.guidelines-list li i {
    color: var(--accent-color);
    margin-top: 5px;
}

.instruction-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    backdrop-filter: blur(5px);
}

.instruction-box h3 {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instruction-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.download-link {
    color: #fbbf24 !important; /* Amber-400 for high visibility */
    font-weight: 700;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.download-link:hover {
    color: #f59e0b !important; /* Amber-500 */
    transform: scale(1.02);
}

.download-link i {
    font-size: 1.1em;
}

/* ==============================
   Footer
   ============================== */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 20px;
}

.flex-footer {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

footer h3 {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

footer a {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .grid\.2-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--primary-color);
    }

    .hamburger {
        display: block;
        color: var(--primary-color);
    }

    .navbar {
        background: #fff;
        padding: 15px 0;
    }

    .logo {
        color: var(--primary-color);
    }

    .btn-admin {
        background: var(--primary-color);
        color: #fff;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-date {
        font-size: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .flex-footer {
        flex-direction: column;
    }
}