/* 
 * Modern Green Blog Design System
 * Focus: Elegance, Premium Feel, Smooth Animations
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Primary Color Palette - Emerald/Forest Green */
    --primary-900: #081c15;
    --primary-800: #1b4332;
    --primary-700: #2d6a4f;
    --primary-600: #40916c;
    --primary-500: #52b788;
    --primary-400: #74c69d;
    --primary-300: #95d5b2;
    --primary-200: #b7e4c7;
    --primary-100: #d8f3dc;
    
    /* Neutrals */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --glass: rgba(255, 255, 255, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-800), var(--primary-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Components */

/* Navigation */
/* Top Header */
.top-header {
    background: var(--primary-900);
    color: var(--primary-100);
    font-size: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact, .top-links {
    display: flex;
    gap: 1.5rem;
}

.top-header a {
    color: var(--primary-200);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-header a:hover {
    color: white;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-700);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: radial-gradient(circle at top right, var(--primary-100), transparent 40%),
                radial-gradient(circle at bottom left, var(--primary-200), transparent 40%);
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* News Agency Hero (Article Carousel) */
.hero-carousel {
    position: relative;
    height: 600px;
    border-radius: 2rem;
    overflow: hidden;
    margin-bottom: 4rem;
    background: var(--primary-900);
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 6s linear;
}

.carousel-item.active .carousel-img {
    transform: scale(1);
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 5rem;
    color: white;
}

.carousel-caption {
    max-width: 800px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.carousel-item.active .carousel-caption {
    transform: translateY(0);
    opacity: 1;
}

.carousel-caption .badge {

    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-500);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.carousel-title {

    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.carousel-excerpt {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Carousel Controls */
.carousel-nav {
    position: absolute;
    top: 50%;
    left: 2rem;
    right: 2rem;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.carousel-prev, .carousel-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    pointer-events: auto;
}

.carousel-prev:hover, .carousel-next:hover {
    background: var(--primary-500);
    border-color: var(--primary-500);
    transform: scale(1.1);
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-500);
    width: 32px;
    border-radius: 6px;
}

/* News Ticker */
.news-ticker {
    background: var(--primary-900);
    color: white;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 0; /* Remove gap to keep items against label */
}

.ticker-label {
    background: var(--primary-500);
    padding: 0.25rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-radius: 4px;
    position: relative;
    z-index: 20;
    flex-shrink: 0;
    margin-right: 2rem; /* Add spacing here instead of gap */
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-items {
    display: flex;
    gap: 4rem;
    animation: ticker-scroll 30s linear infinite;
    padding-left: 100%;
}

.ticker-item {
    white-space: nowrap;
    color: var(--primary-100);
    font-weight: 500;
    transition: var(--transition);
}

.ticker-item:hover {
    color: white;
    text-decoration: underline;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.ticker-items:hover {
    animation-play-state: paused;
}



/* Layout - Sidebar */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

/* Section Headers */
.section-header {
    border-left: 4px solid var(--primary-700);
    padding-left: 1rem;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    margin-bottom: 0;
    font-size: 1.75rem;
}

/* Sidebar Components */
.sidebar-box {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.sidebar-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.popular-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.popular-post-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-100);
}

.popular-post-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.popular-post-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Newsletter */
.newsletter-box {
    background: var(--primary-800);
    color: white;
}

.newsletter-box .sidebar-title {
    border-color: rgba(255,255,255,0.1);
}

.newsletter-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    margin-bottom: 1rem;
}

.newsletter-box button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-box button:hover {
    background: var(--primary-400);
}

/* Category Badges */
.category-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.5rem 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--primary-200);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-800);
    box-shadow: var(--shadow-sm);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.badge:hover {
    border-color: var(--primary-500);
    color: var(--primary-700);
    transform: translateY(-2px);
}

/* Grid Layouts */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    padding-top: 4rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* Blog Cards */
.card {
    background: var(--bg-white);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.card-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

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

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.card-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary-700);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: block;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.read-more {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-700);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more:hover {
    color: var(--primary-500);
}

.author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.author-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-100);
}

/* About & Contact Page Components */

.about-section {
    padding: 8rem 0;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.team-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-500);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    width: 120px;
    height: 120px;
    background: var(--primary-100);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    margin-top: 4rem;
}

.info-card {
    background: var(--primary-900);
    color: white;
    border-radius: 2rem;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--bg-white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px var(--primary-100);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-primary {
    background: var(--primary-700);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
    .mission-grid, .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}
footer {
    background: var(--primary-900);
    color: white;
    padding: 5rem 0 2rem;
    margin-top: 8rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-icon {
    background: white;
    color: var(--primary-900);
}

.footer-text {
    color: var(--primary-300);
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: var(--primary-300);
}

.footer-links a:hover {
    color: white;
}

.social-links li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-links i {
    width: 20px;
    text-align: center;
    color: var(--primary-400);
    transition: var(--transition);
}

.social-links a:hover i {
    color: white;
    transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--primary-400);
    font-size: 0.875rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(8, 28, 21, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: 2rem;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.close {
    position: absolute;
    right: 2rem;
    top: 1.5rem;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover,
.close:focus {
    color: var(--primary-700);
    text-decoration: none;
}

.btn-text {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary-700);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
}

.btn-text:hover {
    color: var(--primary-500);
}


/* --- COMPREHENSIVE MOBILE OPTIMIZATION --- */

@media (max-width: 992px) {
    /* Prevent horizontal overflow */
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        width: 92%;
    }

    /* Mobile Header & Nav */
    .top-header {
        display: none; /* Hide top bar on small screens to save space */
    }

    nav {
        padding: 0.75rem 0;
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.9);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        z-index: 1000;
        border-bottom: 1px solid var(--border);
    }

    .nav-content {
        justify-content: space-between;
    }

    /* Hide empty nav action items to prevent pushing the toggle to the left */
    .nav-actions {
        display: none !important;
    }

    /* Logo scaling on small screens */
    .logo img {
        height: 40px !important;
    }

    .logo span {
        font-size: 1.25rem !important;
        margin-left: 0.25rem !important;
    }

    /* Hamburger Icon Styling */
    .nav-toggle-label {
        display: block;
        width: 24px;
        height: 18px;
        position: relative;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--primary-800);
        height: 2px;
        width: 100%;
        border-radius: 2px;
        position: absolute;
        transition: all 0.3s ease;
    }

    .nav-toggle-label span::before { content: ""; top: -7px; }
    .nav-toggle-label span::after { content: ""; top: 7px; }

    /* Nav Toggle Animation */
    .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
    .nav-toggle:checked ~ .nav-toggle-label span::before { top: 0; transform: rotate(45deg); }
    .nav-toggle:checked ~ .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); }

    /* Mobile Menu Drawer (Hardware-accelerated sliding full-width overlay) */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100% !important;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1), visibility 0.4s;
        z-index: 999;
        box-shadow: -15px 0 35px rgba(0,0,0,0.1);
        padding: 4rem 2rem;
    }

    .nav-toggle:checked ~ .nav-links {
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    .nav-links li {
        margin: 1.25rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-900);
        display: block;
        padding: 1rem;
        border-radius: 1rem;
    }

    .nav-links a.active {
        background: var(--primary-50);
        color: var(--primary-700);
    }

    /* Main Layout Stacking */
    .grid, .layout-with-sidebar {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }

    /* Sidebar goes to bottom */
    .layout-with-sidebar aside, .sidebar {
        order: 2;
    }

    .layout-with-sidebar .main-content, main {
        order: 1;
    }

    /* Override extreme layout margin styles on pages */
    main.container, main {
        margin-bottom: 4rem !important;
    }

    /* Hero Pages Header Font Sizes */
    .hero {
        padding: 3.5rem 0 !important;
    }

    .hero h1 {
        font-size: 2.25rem !important;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.05rem !important;
    }

    /* Hero Carousel Responsive Layout */
    .hero-carousel {
        height: 460px !important;
        border-radius: 1.5rem !important;
        margin-bottom: 2.5rem !important;
        overflow: hidden !important;
    }

    .carousel-overlay {
        padding: 2rem 1.25rem !important;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.55) 60%, transparent 100%) !important;
        display: flex !important;
        align-items: flex-end !important;
    }

    .carousel-caption {
        transform: translateY(0) !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 1rem !important;
    }

    .carousel-caption .badge {
        margin-bottom: 0.75rem !important;
        padding: 0.35rem 0.85rem !important;
        font-size: 0.7rem !important;
        display: inline-block !important;
    }

    .carousel-title {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.75rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .carousel-title a {
        color: white !important;
        display: block !important;
        width: 100% !important;
    }

    .carousel-excerpt {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.25rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Carousel Nav Arrows Optimization */
    .carousel-nav {
        left: 0.25rem !important;
        right: 0.25rem !important;
    }

    .carousel-prev, .carousel-next {
        width: 36px !important;
        height: 36px !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .carousel-indicators {
        bottom: 1rem !important;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 20px;
    }

    /* Top Stories Ticker Layout */
    .ticker-content {
        flex-direction: column !important;
        height: auto !important;
        align-items: stretch !important;
    }

    .ticker-label {
        width: 100% !important;
        border-radius: 0.5rem 0.5rem 0 0 !important;
        justify-content: center !important;
        font-size: 0.875rem !important;
        padding: 0.6rem !important;
        margin-right: 0 !important;
        position: relative !important;
    }

    .ticker-wrapper {
        width: 100% !important;
        padding: 0.85rem 1rem !important;
        overflow: hidden !important;
    }

    /* Contact Form & Mission Grid Stacking */
    .form-row, .mission-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .info-card {
        padding: 2.25rem 1.5rem !important;
        gap: 1.5rem !important;
        border-radius: 1.5rem !important;
    }

    /* Footer */
    footer {
        padding: 4rem 0 2rem !important;
        margin-top: 4rem !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 3rem;
    }

    .footer-info {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
        padding-top: 2rem;
    }

    .section-title h2 {
        font-size: 1.75rem !important;
    }

    .card-horizontal {
        flex-direction: column;
    }

    .card-horizontal-img {
        width: 100%;
        height: 180px;
    }
}

/* Standout link color in article body */
.post-content a {
    color: var(--primary-600) !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}
.post-content a:hover {
    color: var(--primary-800) !important;
}

