/* ============================================================
   Instituto Caracol — Main Stylesheet
   Palette: Forest Green + Earth Tones + Clean White
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --green-900: #144614;
    --green-800: #1e5c1e;
    --green-700: #2a7a2a;
    --green-600: #3d9e3d;
    --green-500: #56b556;
    --green-400: #7ecf7e;
    --green-300: #a3e0a3;
    --green-200: #d1f2d1;
    --green-100: #e8f5e8;
    --green-50: #f2faf2;

    --earth-800: #5c3d1e;
    --earth-600: #8b5e3c;
    --earth-400: #c4956a;
    --earth-200: #e8d5b7;
    --earth-100: #f5ede0;

    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;

    --white: #ffffff;
    --black: #000000;

    --accent-orange: #e67e22;
    --accent-red: #c0392b;
    --accent-blue: #2980b9;

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -2px rgba(0, 0, 0, 0.10);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.20);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --header-height: 88px;
    --topbar-height: 36px;
    --max-width: 1180px;
}

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

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
}

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

.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 6rem 0;
}

/* --- Topbar --- */
.topbar {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 200;
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.topbar-left span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.topbar-left i,
.topbar-right i {
    font-size: 0.75rem;
}

.topbar-right a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-right a:hover {
    color: var(--white);
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 150;
    transition: box-shadow var(--transition-slow), background var(--transition-slow), height var(--transition-slow);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.98);
    height: calc(var(--header-height) - 8px);
}

.header-spacer {
    display: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1.5rem;
}

/* Logo */
.site-logo,
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo .logo-icon {
    width: 44px;
    height: 44px;
    color: var(--green-600);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.site-logo:hover .logo-icon {
    transform: rotate(-8deg) scale(1.05);
}

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

.logo-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-800);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--green-500);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

.nav-link:hover {
    color: var(--green-700);
    background: rgba(86, 181, 86, 0.08);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--green-800);
    background: rgba(86, 181, 86, 0.12);
    font-weight: 600;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-search-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--gray-600);
    transition: all var(--transition);
}

.btn-search-toggle:hover {
    background: var(--green-100);
    color: var(--green-700);
}

/* Search Bar */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 2px solid var(--green-500);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.search-bar.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    transition: border-color var(--transition);
}

.search-input-wrap:focus-within {
    border-color: var(--green-500);
}

.search-input-wrap i {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.search-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--gray-800);
    outline: none;
}

.btn-search-go {
    background: var(--green-600);
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background var(--transition);
}

.btn-search-go:hover {
    background: var(--green-700);
}

.btn-search-close {
    color: var(--gray-400);
    font-size: 1.1rem;
    transition: color var(--transition);
}

.btn-search-close:hover {
    color: var(--gray-700);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 38px;
    height: 38px;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.hamburger:hover {
    background: var(--green-100);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 1px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: calc(var(--topbar-height) + var(--header-height));
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--topbar-height) - var(--header-height));
    background: var(--white);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 99;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu nav a {
    display: block;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--gray-800);
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.mobile-menu nav a:hover {
    background: var(--green-100);
    color: var(--green-700);
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.mobile-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.mobile-social a {
    width: 40px;
    height: 40px;
    background: var(--green-100);
    color: var(--green-700);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.mobile-social a:hover {
    background: var(--green-600);
    color: var(--white);
}

.mobile-menu-footer p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--green-600);
    color: var(--white);
    border-color: var(--green-600);
}

.btn-primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(45, 122, 45, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--green-600);
    border-color: var(--green-600);
}

.btn-outline:hover {
    background: var(--green-600);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-white {
    background: var(--white);
    color: var(--green-700);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--green-100);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-600);
    background: var(--green-100);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Decorative divider */
.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.divider span {
    width: 8px;
    height: 8px;
    background: var(--green-500);
    border-radius: 50%;
}

/* Left-aligned section title */
.section-header.left {
    text-align: left;
}

.section-header.left .section-subtitle {
    margin-left: 0;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-700) 0%, var(--green-900) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(45, 122, 45, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(30, 92, 30, 0.25) 0%, transparent 60%);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    transition: opacity var(--transition-slow);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(13, 46, 13, 0.85) 0%,
            rgba(26, 74, 26, 0.7) 50%,
            rgba(13, 46, 13, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 6rem 0 4rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--green-300);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 6vw, 3.75rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    max-width: 700px;
}

.hero-title .highlight {
    color: var(--green-300);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 3.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: fit-content;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-stat-item {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

.hero-stat-item:hover {
    transform: translateY(-2px);
}

.hero-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--green-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    line-height: 1.3;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: heroScrollBounce 2s ease-in-out infinite;
}

.hero-scroll i {
    font-size: 1.1rem;
}

@keyframes heroScrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

/* --- News Cards --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-300);
}

.news-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--gray-100);
}

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

.news-card:hover .news-card-image img {
    transform: scale(1.07);
}

.news-card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--green-600);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-100) 0%, var(--green-200) 100%);
    color: var(--green-500);
    font-size: 3rem;
}

.news-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-bottom: 0.875rem;
}

.news-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.news-card-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.45;
    margin-bottom: 0.75rem;
    transition: color var(--transition);
}

.news-card:hover .news-card-title {
    color: var(--green-700);
}

.news-card-excerpt {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.news-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-600);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap var(--transition);
}

.news-card:hover .news-card-link {
    gap: 0.65rem;
}

/* Featured news card (large) */
.news-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
}

.news-card.featured .news-card-image {
    width: 45%;
    flex-shrink: 0;
    aspect-ratio: auto;
}

.news-card.featured .news-card-title {
    font-size: 1.4rem;
}

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--green-300);
}

.project-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--green-100);
}

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

.project-card:hover .project-card-image img {
    transform: scale(1.08);
}

.project-status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-em_andamento {
    background: #dcfce7;
    color: #15803d;
}

.badge-concluido {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-planejamento {
    background: #fef9c3;
    color: #854d0e;
}

.project-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    transition: color var(--transition);
}

.project-card:hover .project-card-title {
    color: var(--green-700);
}

.project-card-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
    flex: 1;
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

.project-card-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.project-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* --- Publications --- */
.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.pub-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.pub-card-cover {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--earth-100), var(--earth-200));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--earth-600);
    font-size: 3.5rem;
    position: relative;
}

.pub-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-type-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--earth-800);
    color: var(--white);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
}

.pub-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pub-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-900);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.pub-card-author {
    font-size: 0.8rem;
    color: var(--green-600);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.pub-card-year {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
    flex: 1;
}

.pub-card-actions {
    display: flex;
    gap: 0.5rem;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--gray-100);
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 46, 13, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

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

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

.gallery-item-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* --- Content Sections --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4/5;
}

.about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--green-600);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-image-badge .badge-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.about-image-badge .badge-label {
    font-size: 0.78rem;
    opacity: 0.9;
    line-height: 1.3;
    margin-top: 0.25rem;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 1.25rem;
}

.about-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.about-feature-icon {
    width: 36px;
    height: 36px;
    background: var(--green-100);
    color: var(--green-700);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.about-feature-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    line-height: 1.4;
}

/* --- Values Section --- */
.values-section {
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
    position: relative;
    overflow: hidden;
}

.values-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(61, 158, 61, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.values-section .section-title {
    color: var(--white);
}

.values-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.values-section .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--green-300);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-align: center;
    transition: all var(--transition);
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.value-icon {
    width: 64px;
    height: 64px;
    background: rgba(61, 158, 61, 0.2);
    border: 1px solid rgba(61, 158, 61, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--green-300);
}

.value-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.value-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
}

/* --- Partners / Logos Section --- */
.partners-section {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 3rem 0;
}

.partners-label {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.partners-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.partner-item {
    display: inline-flex;
    align-items: center;
    transition: all var(--transition);
}

.partner-item img {
    max-height: 120px;
    width: auto;
    filter: grayscale(100%) brightness(1.5);
    transition: all var(--transition);
    opacity: 0.7;
}

.partner-item:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 4rem;
}

.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-800);
    background: var(--white);
    transition: all var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(61, 158, 61, 0.12);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

select.form-control {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-info-card {
    background: var(--green-900);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    color: var(--white);
}

.contact-info-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 1.75rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: rgba(61, 158, 61, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-300);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.contact-info-text {
    line-height: 1.5;
}

.contact-info-text strong {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.2rem;
}

.contact-info-text a,
.contact-info-text span {
    color: var(--white);
    font-size: 0.9rem;
}

.contact-info-text a:hover {
    color: var(--green-300);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-800) 100%);
    padding: 6rem 0 4.5rem;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0l40 40-40 40L0 40z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
    background-size: 40px 40px;
    opacity: 0.4;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb i {
    font-size: 0.65rem;
}

.page-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.page-hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    line-height: 1.7;
}

/* --- Sidebar --- */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: calc(var(--topbar-height) + var(--header-height) + 1.5rem);
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gray-900);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--green-200);
}

.sidebar-cat-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: all var(--transition);
}

.sidebar-cat-link:hover {
    background: var(--green-100);
    color: var(--green-700);
}

.sidebar-cat-count {
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

/* --- Article Content --- */
.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--gray-700);
}

.article-content h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--gray-900);
    margin: 2.5rem 0 1rem;
}

.article-content h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--gray-800);
    margin: 2rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content a {
    color: var(--green-700);
    text-decoration: underline;
    text-decoration-color: var(--green-300);
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--green-500);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--green-50);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-600);
}

.article-content img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
}

/* --- Alert / Flash Messages --- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 3rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: all var(--transition);
}

.page-link:hover {
    background: var(--green-100);
    color: var(--green-700);
    border-color: var(--green-300);
}

.page-link.active {
    background: var(--green-600);
    color: var(--white);
    border-color: var(--green-600);
}

.page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Back to Top --- */
.btn-top {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 46px;
    height: 46px;
    background: var(--green-600);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 50;
}

.btn-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-top:hover {
    background: var(--green-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* --- Lightbox --- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: min(90vw, 900px);
    text-align: center;
}

.lightbox-content img {
    max-height: 80vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    color: var(--white);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: background var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
}

.lightbox-prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

/* --- Footer --- */
.site-footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.75);
}

.footer-main {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr 1.3fr;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-logo .logo-icon {
    width: 38px;
    height: 38px;
    color: var(--green-400);
}

.footer-logo .logo-main {
    color: var(--white);
    font-size: 1rem;
}

.footer-logo .logo-sub {
    color: var(--green-400);
    font-size: 0.68rem;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--green-600);
    color: var(--white);
}

.footer-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.25rem 0;
    transition: color var(--transition);
}

.footer-links a i {
    font-size: 0.65rem;
    color: var(--green-500);
}

.footer-links a:hover {
    color: var(--green-400);
}

.footer-news-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-news-list a {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-news-list a:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fn-date {
    font-size: 0.72rem;
    color: var(--green-400);
    font-weight: 600;
}

.fn-title {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
    transition: color var(--transition);
}

.footer-news-list a:hover .fn-title {
    color: var(--white);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.footer-contact-list i {
    color: var(--green-400);
    margin-top: 0.2rem;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.footer-contact-list a:hover {
    color: var(--green-400);
}

.footer-newsletter p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.625rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.6rem 0.875rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 0.82rem;
    outline: none;
    transition: border-color var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--green-500);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.newsletter-form button {
    width: 38px;
    height: 38px;
    background: var(--green-600);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.newsletter-form button:hover {
    background: var(--green-500);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--green-400);
}

.no-content {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.875rem;
}

/* --- Utility Classes --- */
.text-green {
    color: var(--green-600);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.bg-green-light {
    background: var(--green-50);
}

.bg-gray {
    background: var(--gray-50);
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-0 {
    margin-bottom: 0;
}

.w-full {
    width: 100%;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade {
    animation: fadeIn 0.4s ease forwards;
}

/* Intersection Observer fade-in */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        max-width: 500px;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .news-card.featured {
        flex-direction: column;
    }

    .news-card.featured .news-card-image {
        width: 100%;
        aspect-ratio: 16/9;
    }
}

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

    .topbar-left span:not(:first-child) {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-lg {
        padding: 4rem 0;
    }

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

    .footer-col:not(.footer-brand) {
        display: none;
    }

    .footer-col.footer-brand {
        display: block;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

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

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

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

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

    .footer-bottom-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .about-image-badge {
        right: 0.5rem;
        bottom: -0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .topbar {
        display: none;
    }

    .header-spacer {
        height: var(--header-height);
    }

    .site-header {
        top: 0;
    }

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

    .news-card.featured .news-card-title {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
    }

    .btn-lg {
        padding: 0.875rem 1.75rem;
    }

    .hero-cta {
        gap: 0.75rem;
    }
}