/* ============================================
   Center for Nutrition Studies - Design System
   ============================================ */

/* ----- CSS Reset & Base ----- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --color-primary: #005a87;
    --color-primary-dark: #004268;
    --color-primary-light: #0073a8;
    --color-accent: #efa527;
    --color-accent-hover: #d89420;
    --color-accent-light: #eccd6f;

    /* Neutrals */
    --color-bg: #f4f6f8;
    --color-bg-alt: #eaeef2;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #6b7b8d;
    --color-text-muted: #8a9bb0;
    --color-border: #d8dee6;

    /* Footer */
    --color-footer: #0a2540;
    --color-footer-light: #1a3550;

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Container */
    --container-max: 1200px;
    --container-padding: 2rem;
    --header-height: 100px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadow */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Header */
    --header-height: 100px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p {
    margin-bottom: var(--space-md);
}

ul, ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

/* ----- Utility ----- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-3xl) 0;
}

.section--alt {
    background: var(--color-white);
}

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-primary);
    height: var(--header-height);
    box-shadow: 0 2px 20px rgba(0, 42, 64, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ffffff;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 15px; /* slightly overlap the header */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-logo img {
    height: 75px;
    width: 75px;
    object-fit: contain;
}

.site-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    padding: 0;
    margin: 0;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all var(--transition-base);
    position: relative;
    white-space: nowrap;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: var(--color-accent);
    transition: transform var(--transition-base);
}

.nav-list li a:hover,
.nav-list li a.active {
    color: #fff;
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-list li a.active {
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.85rem;
}

.nav-list li a.active::after {
    display: none;
}

/* Dropdown */
.has-dropdown > a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform var(--transition-fast);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-base);
    list-style: none;
    padding: var(--space-sm) 0;
    z-index: 1001;
}

.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li a {
    color: var(--color-text);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    text-transform: none;
}

.nav-dropdown li a::after {
    display: none;
}

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

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    transition: all var(--transition-base);
    border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: flex-end; /* Text sits at the bottom */
    justify-content: center;
    overflow: hidden;
    background: var(--color-primary-dark);
    padding-bottom: var(--space-2xl); /* Spacing from bottom */
}

.hero-banner__slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary-dark);
}

.hero-banner__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    animation: fadeSlider 24s ease-in-out infinite; /* 24s for 4 images */
    will-change: opacity;
}

/* 4 Images, 6 seconds each = 24 seconds total */
.hero-banner__image:nth-child(1) { animation-delay: 0s; opacity: 1; }
.hero-banner__image:nth-child(2) { animation-delay: 6s; }
.hero-banner__image:nth-child(3) { animation-delay: 12s; }
.hero-banner__image:nth-child(4) { animation-delay: 18s; }

@keyframes fadeSlider {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 90, 135, 0.85) 0%, rgba(0, 42, 64, 0.4) 40%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.hero-banner__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: var(--space-2xl);
    max-width: 900px;
}

.hero-banner__title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.hero-banner__subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #f1f5f9;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Home hero - larger */
.hero-banner--home {
    min-height: 560px;
}

.hero-banner--home .hero-banner__title {
    font-size: 3.5rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    min-height: 60vh;
}

.page-content {
    padding: var(--space-3xl) 0;
}

.content-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-xl);
    transition: box-shadow var(--transition-base);
    border: 1px solid var(--color-border);
}

.content-card:hover {
    box-shadow: var(--shadow-md);
}

.content-card h2 {
    position: relative;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-lg);
}

.content-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.content-card.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Two column layout */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.layout-grid--2 {
    grid-template-columns: 1fr 1fr;
}

.layout-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.layout-grid--sidebar {
    grid-template-columns: 2fr 1fr;
}

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title h2 {
    display: inline-block;
    position: relative;
    padding-bottom: var(--space-md);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.section-title p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: var(--space-md) auto 0;
    font-size: 1.05rem;
}

/* ============================================
   TEAM GRID
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.team-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-card__image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-lg);
    border: 4px solid var(--color-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: border-color var(--transition-base);
}

.team-card:hover .team-card__image {
    border-color: var(--color-accent);
}

.team-card__name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.team-card__role {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.team-card__links {
    margin-top: var(--space-md);
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.team-card__links a {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.team-card__links a:hover {
    color: var(--color-primary);
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.project-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-xl);
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
}

.project-card__header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    padding: var(--space-lg) var(--space-xl);
    color: #fff;
}

.project-card__header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.3rem;
}

.project-card__body {
    padding: var(--space-xl);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.project-card__body.has-image {
    grid-template-columns: 200px 1fr;
}

.project-card__image {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.project-card__image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.project-card__text {
    text-align: justify;
    line-height: 1.8;
}

.project-card__text a {
    color: var(--color-accent);
    word-break: break-all;
}

/* ============================================
   PUBLICATIONS / BLOG
   ============================================ */
.pub-year {
    background: var(--color-primary);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-md);
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    margin-top: var(--space-lg);
}

.pub-list {
    list-style: none;
    padding: 0;
}

.pub-list li {
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-sm);
    background: var(--color-white);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-accent);
    transition: all var(--transition-base);
    line-height: 1.7;
    box-shadow: var(--shadow-sm);
}

.pub-list li:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

/* Publication blog post cards */
.post-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.post-card__body {
    padding: var(--space-lg);
}

.post-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.post-card__title a {
    color: var(--color-primary-dark);
}

.post-card__title a:hover {
    color: var(--color-accent);
}

.post-card__date {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,42,64,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.lightbox__caption {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    text-align: center;
    max-width: 600px;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(0,0,0,0.5);
    border-radius: var(--radius-md);
}

.lightbox__close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.lightbox__close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.lightbox__nav:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox__nav--prev {
    left: var(--space-xl);
}

.lightbox__nav--next {
    right: var(--space-xl);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-item__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item__text h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    color: var(--color-primary-dark);
}

.contact-item__text p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 90, 135, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 165, 39, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 165, 39, 0.4);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Google Maps */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* ============================================
   RESOURCE & UPDATE LISTS
   ============================================ */
.resource-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.resource-list li {
    counter-increment: resource-counter;
}

.resource-list li a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-white);
    border-radius: var(--radius-md);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    font-size: 0.95rem;
}

.resource-list li a::before {
    content: '📄';
    font-size: 1.3rem;
    flex-shrink: 0;
}

.resource-list li a:hover {
    background: var(--color-bg);
    border-color: var(--color-accent);
    transform: translateX(4px);
    color: var(--color-primary);
}

.resource-list li a[href*="youtu"]::before {
    content: '🎬';
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
}

.widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.widget__title {
    font-size: 1.1rem;
    font-weight: 700;
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-accent);
    color: var(--color-primary-dark);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-bg);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--color-text);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.widget ul li a:hover {
    color: var(--color-accent);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-footer);
    color: rgba(255, 255, 255, 0.7);
    padding-top: var(--space-3xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-col h4 {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-footer-light);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-bottom {
    margin-top: var(--space-2xl);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-footer-light);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.alert--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   ABOUT / VISION / MISSION
   ============================================ */
.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.vm-card {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.vm-card:hover {
    transform: translateY(-4px);
}

.vm-card h3 {
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.vm-card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
}

.objectives-list {
    list-style: none;
    padding: 0;
    counter-reset: objectives;
}

.objectives-list li {
    counter-increment: objectives;
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-sm);
    background: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.objectives-list li:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.objectives-list li::before {
    content: counter(objectives);
    background: var(--color-accent);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Home Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.feature-card__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 1.8rem;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.animate-fadeIn {
    animation: fadeIn 0.6s ease both;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease both;
}

/* Staggered animations */
.stagger > * {
    animation: fadeInUp 0.5s ease both;
}

.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }
.stagger > *:nth-child(9) { animation-delay: 0.45s; }
.stagger > *:nth-child(10) { animation-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .layout-grid--2,
    .layout-grid--3,
    .layout-grid--sidebar {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.25rem; }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-primary-dark);
        flex-direction: column;
        padding: var(--space-xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        overflow-y: auto;
        z-index: 999;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-list li a {
        padding: 0.8rem 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-list li a::after {
        display: none;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding-left: var(--space-lg);
    }

    .nav-dropdown li a {
        color: rgba(255,255,255,0.7);
        padding: 0.5rem 0;
    }

    .hero-banner {
        min-height: 300px;
    }

    .hero-banner--home {
        min-height: 380px;
    }

    .hero-banner__title {
        font-size: 2rem;
    }

    .hero-banner--home .hero-banner__title {
        font-size: 2.2rem;
    }

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

    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .content-card {
        padding: var(--space-lg);
    }

    .project-card__body.has-image {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hero-banner__title {
        font-size: 1.6rem;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}
