/* ============================================
   LEZINRU RESEARCH LAB — Modern Design System
   ============================================ */

/* CSS Reset & Basics */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Premium Academic Color Palette */
    --primary-color: #1B5E20;
    --primary-light: #2E7D32;
    --primary-dark: #0D3B13;
    --secondary-color: #43A047;
    --secondary-light: #66BB6A;
    --accent-color: #FF6F00;
    --accent-light: #FFB300;

    /* Neutrals */
    --dark-bg: #111827;
    --dark-surface: #1a2332;
    --light-bg: #F0F4F3;
    --surface: #ffffff;
    --text-color: #1a2332;
    --text-secondary: #4B5563;
    --muted-text: #6B7280;
    --white: #ffffff;
    --border-color: #E5E7EB;

    /* Glass & Effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);

    /* Typography */
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Sizes */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows (Layered for realism) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(27, 94, 32, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.75em;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--secondary-color);
    color: white;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: box-shadow var(--transition-base), padding var(--transition-base);
}

header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.7rem;
    color: var(--primary-color);
    transition: transform var(--transition-fast);
    z-index: 1001;
}

.logo:hover {
    transform: scale(1.02);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo span {
    color: var(--secondary-color);
}

.logo img {
    transition: transform var(--transition-base);
}

.logo:hover img {
    transform: scale(1.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: rgba(27, 94, 32, 0.08);
}

nav ul {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

nav a {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

nav a:hover {
    color: var(--primary-color);
    background: rgba(27, 94, 32, 0.06);
}

nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 2px;
}

nav a:hover::after,
nav a.active::after {
    width: calc(100% - 1.7rem);
    left: 0.85rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 40%, #1a6b3c 70%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 7rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Animated shapes */
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    animation: heroFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-30px, 20px) scale(1.05);
    }

    66% {
        transform: translate(20px, -15px) scale(0.95);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: 3.2rem;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.02em;
}

.hero .mission-statement {
    font-size: 1.2rem;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    opacity: 0.92;
    line-height: 1.8;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(27, 94, 32, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 94, 32, 0.35);
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

/* ============================================
   BACK LINK COMPONENT
   ============================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.back-link:hover {
    background: var(--light-bg);
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.back-link i {
    font-size: 0.85rem;
    transition: transform var(--transition-base);
}

.back-link:hover i {
    transform: translateX(-3px);
}

/* ============================================
   SECTION STYLING
   ============================================ */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1.25rem;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 3px;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: linear-gradient(180deg, var(--light-bg) 0%, #e8f0e9 100%);
    border-top: 1px solid rgba(27, 94, 32, 0.08);
    border-bottom: 1px solid rgba(27, 94, 32, 0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-label {
    color: var(--muted-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-section {
    background: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.news-card:hover .news-image img {
    transform: scale(1.07);
}

.news-card .news-image {
    height: 210px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card .news-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card .news-date {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: block;
}

.news-card h2,
.news-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.news-card h2 a,
.news-card h3 a {
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

.news-card h2 a:hover,
.news-card h3 a:hover {
    color: var(--secondary-color);
}

.news-card .news-excerpt {
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ============================================
   SEARCH & FILTER FORM
   ============================================ */
.search-filter-form {
    margin-bottom: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-filter-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.search-filter-form input[type="text"]:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.12);
    outline: none;
}

.search-filter-form select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--surface);
    cursor: pointer;
    transition: border-color var(--transition-base);
}

.search-filter-form select:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 600;
    text-decoration: none;
    background: var(--light-bg);
    color: var(--text-color);
    transition: all var(--transition-base);
}

.pagination-number.active {
    background: var(--primary-color);
    color: white;
}

.pagination-number:hover:not(.active) {
    background: var(--secondary-light);
    color: white;
}

/* ============================================
   NEWS SINGLE PAGE — FEATURED IMAGE
   ============================================ */
.news-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-height: 450px;
}

.news-featured-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.news-single-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.news-meta-date {
    display: block;
    color: var(--muted-text);
    margin-bottom: 0.5rem;
}

.back-link {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--primary-color);
}

.attachments-box {
    background: #f1f3f5;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-inline-start: 4px solid var(--accent-color);
    margin-bottom: 3rem;
    overflow: hidden;
}

.attachments-box ul li {
    margin-bottom: 0.75rem;
    max-width: 100%;
}

.attachments-box .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-decoration: none;
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.4;
    transition: all var(--transition-base);
}

.attachments-box .download-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.lang-switch:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.2);
}

.lang-switch i {
    font-size: 0.9rem;
}

/* ============================================
   TEAM
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-photo {
    height: 260px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-info {
    padding: 1.75rem;
}

.team-name {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.team-role {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 1rem;
    display: block;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Team academic links */
.team-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.team-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all var(--transition-base);
}

.team-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   PUBLICATIONS
   ============================================ */
.publications-section {
    background: var(--light-bg);
}

.publication-item {
    margin-bottom: 1.5rem;
    padding: 1.75rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary-color);
    transition: all var(--transition-base);
}

.publication-item:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-card {
    background: var(--surface);
    border-left: 4px solid var(--secondary-color);
    padding: 2rem;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-sm);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
}

.project-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
}

.project-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

/* ============================================
   RESOURCES
   ============================================ */
.resources-section {
    background: var(--light-bg);
}

.resource-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    transition: all var(--transition-smooth);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-section {
    background: var(--light-bg);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form-wrapper {
    background: var(--surface) !important;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    transition: border-color var(--transition-base), box-shadow var(--transition-base) !important;
    font-family: var(--font-body) !important;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.12) !important;
    outline: none !important;
}

/* ============================================
   NEWS SINGLE PAGE
   ============================================ */
.news-single-section {
    background: var(--light-bg);
    padding-bottom: 4rem;
}

.news-single-section .news-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color);
}

.news-single-section .news-content img {
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.news-single-section .news-content h2,
.news-single-section .news-content h3 {
    margin-top: 2rem;
}

/* Rich text content from admin */
.rich-text-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-color);
}

.rich-text-content img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
}

.rich-text-content h2 {
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.rich-text-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(67, 160, 71, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.rich-text-content a {
    color: var(--secondary-color);
    font-weight: 500;
    border-bottom: 1px dashed var(--secondary-color);
    transition: all var(--transition-fast);
}

.rich-text-content a:hover {
    color: var(--primary-color);
    border-bottom-style: solid;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--dark-bg);
    color: #d1d5db;
    padding: 4rem 0 2rem;
    margin-top: 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-col p,
.footer-col li {
    color: #9CA3AF;
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #9CA3AF;
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-col a:hover {
    color: var(--secondary-light);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 1.1rem;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    transform: translateY(-3px) !important;
}

.footer-social a.social-fb:hover {
    background: #1877F2;
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3);
}

.footer-social a.social-yt:hover {
    background: #FF0000;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
}

.copyright {
    color: #6B7280;
    font-size: 0.85rem;
}

/* ============================================
   GO TO TOP BUTTON
   ============================================ */
#go-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 1.1rem;
    border: none;
    outline: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    cursor: pointer;
    padding: 0.9rem;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(27, 94, 32, 0.3);
    transition: all var(--transition-smooth);
    opacity: 0;
    width: 48px;
    height: 48px;
}

#go-to-top:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(27, 94, 32, 0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Staggered delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        order: 1;
    }

    .header-actions {
        order: 2;
    }

    nav {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    nav.open {
        max-height: 500px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.75rem 0;
    }

    nav a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-sm);
    }

    .hero {
        padding: 4rem 0 3.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .mission-statement {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    section {
        padding: 3.5rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-outline {
        margin-left: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .news-list {
        grid-template-columns: 1fr !important;
    }

    .project-image {
        min-height: 200px !important;
    }

    .header-actions {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
        gap: 0.5rem;
    }

    .logo img {
        height: 40px !important;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .lang-switch span {
        display: none;
        /* Hide text on very small screens, keep icon */
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 16px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .fade-in-up {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    header,
    footer,
    #go-to-top,
    .hero-actions,
    .btn {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero {
        background: none;
        color: #000;
        padding: 1rem 0;
    }

    .hero h1 {
        color: #000;
    }
}