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

:root {
    --primary-black: #000000;
    --primary-blue: #000000;
    --light-blue: #f5f5f5;
    --dark-blue: #1a1a1a;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Improve touch responsiveness for buttons and interactive items */
button, .btn-primary, .btn-secondary, .mobile-menu-btn, .slider-btn, .card-button, .nav-link {
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 6rem;
}

/* ==================== Scroll Progress Bar ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-blue), var(--dark-blue));
    z-index: 1001;
    transition: width 0.1s ease;
}

/* ==================== Navigation ==================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo img {
    height: 90px;
    width: auto;
    padding: 0.5rem;
}

.nav-menu {
    display: none;
    gap: 2rem;
}

.nav-dropdown {
    position: relative;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding-bottom: 0.25rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link.active {
    color: var(--gray-900);
    border-bottom: 2px solid var(--primary-blue);
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 999;
    margin-top: 0.5rem;
}

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

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--gray-700);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: #000000;
    padding-left: 1.5rem;
}

/* ==================== Enhanced Featured Dropdown Menu ==================== */
.dropdown-menu-featured {
    min-width: 380px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-radius: 0.75rem;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 1001;
    margin-top: 0.5rem;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border: 1px solid #e5e7eb;
}

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

.dropdown-item-featured {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    background-color: transparent;
    border-left: 3px solid transparent;
    min-height: 60px;
}

.dropdown-item-featured:hover {
    background: linear-gradient(135deg, rgba(0, 105, 217, 0.08) 0%, rgba(0, 64, 130, 0.04) 100%);
    border-left-color: var(--primary-blue);
    padding-left: 1.25rem;
    transform: translateX(4px);
}

.dropdown-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: var(--gray-700);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dropdown-item-featured:hover .dropdown-item-icon {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.dropdown-item-title {
    color: var(--gray-900);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.dropdown-item-featured:hover .dropdown-item-title {
    color: #000000;
    white-space: normal;
}

.dropdown-item-desc {
    color: var(--gray-600);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.dropdown-item-featured:hover .dropdown-item-desc {
    color: var(--gray-700);
}

/* ==================== Nested Submenu Styling ==================== */
.dropdown-item-featured {
    position: relative;
}

.submenu-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #000000;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    opacity: 0;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-item-featured:hover .submenu-toggle {
    opacity: 1;
    transform: translateY(-50%) rotate(90deg);
}

.submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background-color: var(--white);
    min-width: 250px;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-200);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1002;
    margin-left: 0.5rem;
}

.dropdown-item-featured:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.2s ease;
    position: relative;
    min-height: 44px;
    align-content: center;
}

.submenu-item:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: #000000;
    padding-left: 1rem;
    transform: translateX(2px);
}

.submenu-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
    background-color: rgba(0, 0, 0, 0.08);
    color: #000000;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.submenu-item:hover .submenu-item-icon {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

.submenu-item-label {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.submenu-item-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-900);
    transition: all 0.2s ease;
}

.submenu-item:hover .submenu-item-title {
    color: #000000;
}

.nav-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: color 0.3s ease;
}

.language-selector:hover {
    color: #000000;
}

.btn-primary {
    background-color: var(--primary-black);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-black);
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-black);
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-black);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-900);
}

/* ==================== Hero Section with Slider ==================== */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 5rem;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.3));
    display: flex;
    align-items:center;
    justify-content: flex-end;
    z-index: 2;
}

.hero-section .hero-content {
    color: var(--white);
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
    margin-right: 2rem;
    text-align: left;
}

.hero-section .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.hero-section .hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

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

.slider-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid var(--white);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

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

.dot.active {
    background-color: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* ==================== Page Hero Section (for other pages) ==================== */
.page-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10rem 0 6rem; /* Increased padding to make section taller and show more of the image */
    margin-top: 5rem;
    text-align: center;
    color: var(--white);
    position: relative;
    min-height: 60vh; /* Added minimum height to ensure images are more visible */
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Reduced overlay opacity to make images more visible */
    z-index: 1;
}

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

/* ===== IMAGE PATHS - Change these to your desired images ===== */
#about-hero {
    background-image: url('images/image10.jpeg'); /* <-- Change this image path */
}

#media-hero {
    background-image: url('images/pic12.jpeg'); /* <-- Change this image path */
}

#publications-hero {
    background-image: url('images/pic1.jpeg'); /* <-- Change this image path */
}

#team-hero {
    background-image: url('images/pic2.jpeg'); /* <-- Change this image path */
}

#contact-hero {
    background-image: url('images/pic3.jpeg'); /* <-- Change this image path */
}

#careers-hero {
    background-image: url('images/Sweden.jpeg'); /* <-- Change this image path */
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ==================== Welcome Section ==================== */
.welcome-section {
    padding: 6rem 0;
    background-color: var(--white);
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ==================== About Section ==================== */
.about-section {
    padding: 6rem 0;
    background-color: var(--white);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 56rem;
    margin: 0 auto;
    line-height: 1.8;
}

.spaced-header {
    margin-top: 4rem;
}

.features-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

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

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray-600);
}

/* ==================== Image Gallery Section ==================== */
.image-gallery-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* ==================== Publications Section ==================== */
.publications-section {
    padding: 6rem 0;
    background-color: var(--white);
}

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

.publication-card {
    background-color: var(--gray-50);
    padding: 0;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.publication-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.publication-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--gray-200);
}

.publication-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.publication-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.publication-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    padding: 0 1.5rem;
    flex-grow: 1;
}

.publication-card .btn-secondary {
    margin-bottom: 1.5rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: var(--white);
    border: 2px solid #000000;
    padding: 0.65rem 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.publication-card .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.publication-card .btn-secondary::after {
    content: '→';
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), margin 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.publication-card .btn-secondary:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    transform: translateY(-4px);
}

.publication-card .btn-secondary:hover::before {
    left: 100%;
}

.publication-card .btn-secondary:hover::after {
    transform: translateX(4px);
    margin-left: 0.75rem;
}

/* Placeholder card style for pages awaiting content */
.placeholder-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--white);
    border: 1px dashed var(--gray-200);
    min-height: 220px;
    align-items: flex-start;
}

.placeholder-card .placeholder-image {
    width: 100%;
    height: 140px;
    border-radius: 0.375rem;
    background-color: var(--gray-100);
    display: block;
    overflow: hidden;
}

.placeholder-card h3 {
    font-size: 1.05rem;
    color: var(--gray-800);
}

.placeholder-card p {
    color: var(--gray-600);
}

/* ==================== Policy Briefs & Advocacy Section ==================== */
.policy-briefs-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.policy-brief-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.policy-brief-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.policy-brief-alternate-2 {
    direction: rtl;
}

.policy-brief-alternate-2 > * {
    direction: ltr;
}

.policy-brief-media {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    height: 100%;
    min-height: 350px;
    background-color: var(--gray-200);
}

.policy-brief-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.policy-brief-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.policy-brief-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

.policy-brief-date {
    font-size: 0.875rem;
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 !important;
}

.policy-brief-summary {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin: 0.5rem 0 0 0 !important;
}

.btn-download {
    align-self: flex-start;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 0.85rem 2.5rem;
    border: 2px solid #000000;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-download::after {
    content: '→';
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), margin 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-download:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-download:hover::before {
    left: 100%;
}

.btn-download:hover::after {
    transform: translateX(4px);
    margin-left: 0.75rem;
}

/* ==================== Policy Briefs Responsive Design ==================== */
@media (max-width: 1024px) {
    .policy-brief-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .policy-brief-media {
        min-height: 300px;
    }

    .policy-brief-alternate-2 {
        direction: ltr;
    }

    .policy-brief-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .policy-briefs-container {
        gap: 2rem;
    }

    .policy-brief-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .policy-brief-media {
        min-height: 250px;
    }

    .policy-brief-content h3 {
        font-size: 1.25rem;
    }

    .policy-brief-summary {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .btn-download {
        width: 100%;
        text-align: center;
        align-self: stretch;
    }
}

/* ==================== Contact Section ==================== */
.contact-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info h2,
.contact-form-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-top: 0.25rem;
}

.info-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-item p {
    color: var(--gray-600);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.map-section {
    padding: 4rem 0;
    background-color: var(--gray-50);
}

/* ==================== Quote Section ==================== */
.quote-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.quote-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.quote-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.quote-content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.quote-content:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.quote-content blockquote {
    font-size: 1.25rem;
    color: var(--gray-800);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.9;
    position: relative;
    padding-left: 0;
    font-weight: 500;
}

.quote-content blockquote::before {
    content: '';
    display: none;
}

.author h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.author p {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.quote-image {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

.quote-image img {
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    display: block;
}

.quote-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.2), 0 0 1px rgba(0, 0, 0, 0.1);
}

/* ==================== Features Section ==================== */
.features-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.features-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.feature-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: var(--white);
    border-radius: 0.25rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 2.5rem;
    color: var(--primary-black);
    transition: all 0.3s ease;
}

.feature-card:hover .card-header i {
    font-size: 2.8rem;
    color: var(--gray-800);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    text-align: center;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    text-align: center;
}

.card-button {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-black);
    color: var(--white);
    border-radius: 0.25rem;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
    border: none;
    cursor: pointer;
}

.card-button:hover {
    background-color: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ==================== Features Section 2 ==================== */
.features-section-2 {
    padding: 6rem 0;
    background-color: var(--gray-50);
}

.features-grid-2 {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.features-grid-2 .feature-card {
    max-width: 400px;
}

/* ==================== Footprint Section ==================== */
.footprint-section {
    padding: 6rem 0;
    background-color: var(--gray-50);
}

.footprint-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: stretch;
}

.footprint-map {
    display: flex;
    flex-direction: column;
}

.rwanda-map {
    width: 100%;
    height: 500px;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.footprint-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.footprint-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.footprint-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.stats-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--light-blue), #f9f9f9);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-black);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-black);
    font-weight: 700;
    margin-bottom: 0.5rem;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item strong.counter {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-black) !important;
    animation: counterPulse 0.6s ease-in-out;
}

.stat-item span {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Counter Animation */
@keyframes counterPulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== Partners Section ==================== */
.partners-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--gray-900);
    margin-bottom: 4rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.partner-logo {
    width: 100%;
    max-width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    transition: all 0.4s ease;
    background-color: var(--white);
}

.partner-logo:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ==================== Partners Marquee ==================== */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    /* duration adjustable via --marquee-duration; default increased for higher visual pace */
    /* previous default: 19.4s -> new default: 17.5s (faster) */
    animation: scroll var(--marquee-duration, 17.5s) linear infinite;
    will-change: transform;
}

.marquee-content > .partner-logo {
    flex: 0 0 auto;
}

.marquee-content:hover {
    animation-play-state: paused;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .marquee-content { gap: 2rem; }
}

@media (max-width: 768px) {
    /* tablet: increased speed (new value ~21s) */
    .marquee-content { gap: 1.25rem; animation-duration: 21s; }
    .partner-logo { max-width: 140px; height: 72px; padding: 0.5rem; }
}

@media (max-width: 420px) {
    /* mobile: increased speed (new value ~24.5s) */
    .marquee-content { gap: 1rem; animation-duration: 24.5s; }
    .partner-logo { max-width: 120px; height: 56px; padding: 0.4rem; }
}

/* ==================== Newsletter Section ==================== */
.newsletter-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.newsletter-grid {
    display: grid;
    gap: 3rem;
}

.organization-links h2,
.newsletter-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.organization-links ul {
    list-style: none;
}

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

.organization-links a {
    color: var(--gray-700);
    transition: all 0.3s ease;
    display: inline-block;
}

.organization-links a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.newsletter-form p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.subscribe-form {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.subscribe-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ==================== Content Placeholder ==================== */
.content-placeholder {
    font-style: italic;
    color: var(--gray-500);
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--gray-50);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-blue);
}

/* ==================== Team Section ==================== */
.team-section {
    padding: 6rem 0;
    background-color: var(--white);
}

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

.team-card {
    background-color: var(--gray-50);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

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

.placeholder-image {
    background-color: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-400);
}

.team-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ==================== Careers Section ==================== */
.careers-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.jobs-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.job-card {
    background-color: var(--gray-50);
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.4s ease;
}

.job-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.job-type {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.job-location {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.job-location i {
    margin-right: 0.5rem;
    color: var(--primary-blue);
}

.job-description {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.job-date {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-blue);
    transform: scale(1.1) rotate(5deg);
}

/* ==================== Scroll Animations ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Responsive Design ==================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .nav-menu {
        display: flex;
    }

    .nav-actions {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero-section .hero-content h1 {
        font-size: 4rem;
    }

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

    .quote-grid {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

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

    .subscribe-form {
        flex-direction: row;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

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

    .cta-buttons {
        flex-direction: row;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .section-header h2 {
        font-size: 2.5rem;
    }
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .hero-section .hero-content h1 {
        font-size: 2rem;
    }

    .hero-section .hero-content p {
        font-size: 1rem;
    }

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

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .slider-controls {
        bottom: 1rem;
        right: 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

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

    .gallery-item img {
        height: 250px;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 5rem;
        left: 0;
        right: 0;
        background-color: var(--white);
        border-top: 1px solid var(--gray-200);
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        border: none;
        background-color: rgba(0, 0, 0, 0.02);
        border-radius: 0;
        min-width: unset;
        padding: 0;
        box-shadow: none;
        transform: none;
        transition: all 0.3s ease;
        margin-top: 0;
    }

    .nav-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 800px;
        padding: 0.75rem 0;
    }

    .dropdown-menu-featured {
        flex-direction: column;
        min-width: unset;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.02);
        margin-top: 0;
        z-index: auto;
    }

    .nav-dropdown.active .dropdown-menu-featured {
        position: static;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-item-featured {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .dropdown-item-featured:hover {
        transform: none;
        padding-left: 0.75rem;
    }

    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-actions.active {
        display: flex;
        flex-direction: column;
        /* Make nav actions flow with content on mobile to avoid fixed-offset layout shifts */
        position: static;
        background-color: var(--white);
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Mobile submenu visibility/animation: submenus expand in-flow to avoid layout push */
    .dropdown-item-featured .submenu {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        box-shadow: none;
        border: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.28s ease;
        padding-left: 0.5rem;
        margin-left: 0;
    }

    .dropdown-item-featured .submenu.open {
        max-height: 800px; /* large enough to reveal submenu items */
    }

    .submenu-toggle.open {
        transform: rotateY(-50%) rotate(90deg);
    }

    /* Make submenu toggle visible on mobile */
    .dropdown-item-featured .submenu-toggle {
        position: static;
        opacity: 1;
        transform: none;
        margin-left: auto;
        font-size: 0.75rem;
        width: 20px;
        height: 20px;
        padding: 0;
    }

    .dropdown-item-featured:hover .submenu-toggle {
        opacity: 1;
        transform: rotate(0deg);
    }

    .dropdown-item-featured .submenu-toggle.open {
        transform: rotate(90deg);
    }

    .btn-primary {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    /* ==================== Mobile Features Section ==================== */
    .features-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .feature-card {
        max-width: 100%;
        min-width: auto;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }

    .card-button {
        width: 100%;
    }

    /* ==================== Mobile Features Section 2 ==================== */
    .features-grid-2 {
        flex-direction: column;
        gap: 1.5rem;
    }

    .features-grid-2 .feature-card {
        max-width: 100%;
        min-width: auto;
    }

    /* ==================== Mobile Footprint Map ==================== */
    .footprint-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .rwanda-map {
        height: 350px;
    }

    .stats-box {
        grid-template-columns: 1fr;
    }
}

/* ==================== MEDIA SECTION CONTENT STYLING ==================== */

/* Media Section Container */
.media-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.media-section:last-of-type {
    border-bottom: none;
}

/* Section & Subsection Headers */
.subsection {
    margin-bottom: 4rem;
}

.subsection-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.subsection-title i {
    color: #000000;
    font-size: 1.5rem;
}

.subsection-desc {
    color: var(--gray-600);
    font-size: 1.025rem;
    margin-bottom: 2rem;
}

/* Content Grid Layouts */
.content-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ==================== CONTENT CARDS ==================== */
.content-card {
    background: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.content-card:hover {
    border-color: #000000;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--gray-200);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-date {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-excerpt {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    position: relative;
}

.read-more-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

.read-more-btn:hover::after {
    width: 100%;
}

.card-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.meta-tag {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
    padding: 0.25rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==================== BLOG CARDS ==================== */
.blog-card {
    background: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    border-color: #000000;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--gray-200);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-excerpt {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.blog-read-btn {
    display: inline-block;
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    position: relative;
}

.blog-read-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

.blog-read-btn:hover::after {
    width: 100%;
}

/* ==================== STATEMENTS LIST ==================== */
.statements-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.statement-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 0.75rem;
    border-left: 4px solid #000000;
    transition: all 0.3s ease;
}

.statement-item:hover {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left-color: #1a1a1a;
}

.statement-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: var(--white);
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 700;
}

.date-day {
    font-size: 1.5rem;
    line-height: 1;
}

.date-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.statement-content {
    flex: 1;
}

.statement-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.statement-location {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.statement-excerpt {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.statement-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.statement-read-btn:hover {
    gap: 0.75rem;
    color: #1a1a1a;
}

/* ==================== GALLERY GRID ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-overlay h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.gallery-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #000000;
    color: var(--white);
    padding: 0.6rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
}

.gallery-view-btn:hover {
    background: #1a1a1a;
    gap: 0.75rem;
}

/* ==================== TEAM GALLERY ==================== */
.team-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: 1;
    background: var(--gray-200);
}

.team-gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.team-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-gallery-card:hover .team-gallery-image img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0, 0, 0, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-gallery-card:hover .team-overlay {
    opacity: 1;
}

.team-overlay h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.team-overlay p {
    font-size: 0.85rem;
    opacity: 0.95;
}

/* ==================== RESPONSIVE MEDIA CONTENT ==================== */
@media (max-width: 768px) {
    .content-grid-3,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .statement-item {
        flex-direction: column;
        gap: 1rem;
    }

    .statement-date-badge {
        width: 100%;
    }

    .gallery-grid,
    .team-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .subsection-title {
        font-size: 1.4rem;
    }

    .card-image,
    .blog-image {
        height: 200px;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ==================== DISTRICT PAGE STYLES ==================== */

.district-hero {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 4rem 0;
    text-align: left;
}

.district-hero .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.district-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.district-hero .breadcrumb a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.district-hero .breadcrumb a:hover {
    color: #fff;
}

.district-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
}

.district-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin: 0;
}

/* District Overview Section */
.district-overview {
    padding: 4rem 0;
    background: #f9fafb;
}

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

.overview-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.overview-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1rem;
}

.overview-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
}

.stat-info h3 {
    font-size: 1.75rem;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    font-weight: 700;
}

.stat-info p {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

/* District Programs Section */
.district-programs {
    padding: 4rem 0;
    background: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.program-card {
    padding: 2rem;
    border-radius: 0.75rem;
    background: #f3f4f6;
    border-left: 4px solid #1f2937;
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    background: white;
}

.program-icon {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.program-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.program-card p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.program-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #1f2937;
    font-weight: 600;
}

/* Impact Section */
.district-impact {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.impact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.impact-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.impact-number {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.impact-item p {
    font-size: 1rem;
    color: #4b5563;
    font-weight: 500;
}

/* Key Initiatives Section */
.district-key-initiatives {
    padding: 4rem 0;
    background: white;
}

.initiatives-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.initiative {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.initiative:hover {
    background: #f3f4f6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.initiative-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    width: 3rem;
    height: 3rem;
    background: #1f2937;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
}

.initiative-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.initiative-content p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* District Data Section */
.district-data {
    padding: 4rem 0;
    background: #f9fafb;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.data-card {
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-top: 3px solid #1f2937;
}

.data-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.data-content p {
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    line-height: 1.5;
}

.data-content p strong {
    color: #1f2937;
    font-weight: 600;
}

.data-card .note {
    font-size: 0.8rem !important;
    color: #9ca3af !important;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: block !important;
    justify-content: flex-start !important;
}

/* District Contact Section */
.district-contact {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    text-align: center;
}

.district-contact .section-title {
    color: white;
}

.district-contact p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive District Styles */
@media (max-width: 768px) {
    .district-hero h1 {
        font-size: 2rem;
    }

    .district-hero p {
        font-size: 1rem;
    }

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

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

    .initiative {
        flex-direction: column;
        gap: 1rem;
    }

    .initiative-marker {
        align-self: flex-start;
    }

    .stat-card {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-icon {
        min-width: auto;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
}

/* Story Cards and Media Section Styling */
.stories-section {
    padding: 3rem 2rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.story-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.story-card:nth-child(1) { animation-delay: 0.1s; }
.story-card:nth-child(2) { animation-delay: 0.2s; }
.story-card:nth-child(3) { animation-delay: 0.3s; }
.story-card:nth-child(4) { animation-delay: 0.4s; }
.story-card:nth-child(5) { animation-delay: 0.5s; }
.story-card:nth-child(6) { animation-delay: 0.6s; }

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.story-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

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

.story-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.story-content h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
    line-height: 1.4;
}

.story-author {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: -0.5rem;
}

.story-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.story-content .btn-secondary {
    align-self: flex-start;
    margin-top: auto;
}

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

/* ==================== COMPREHENSIVE MOBILE OPTIMIZATION ==================== */
/* Extra Small Devices (320px - 375px) */
@media (max-width: 375px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .page-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

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

    .story-card {
        margin-bottom: 1.5rem;
    }

    .footprint-map {
        padding: 1.5rem 0;
    }

    #rwandaMap {
        height: 400px;
    }

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

    .dropdown-menu {
        width: 100vw;
        left: -1rem !important;
        border-radius: 0;
    }
}

/* Small Devices (376px - 480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 1.25rem;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .logo img {
        max-width: 100px;
    }

    .nav-menu {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .dropdown-menu-featured {
        gap: 0.5rem;
    }

    .dropdown-item-featured {
        padding: 0.75rem;
    }

    .hero-slide {
        min-height: 350px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .stories-grid,
    .publications-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    #rwandaMap {
        height: 450px;
    }

    .partnership-cards {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Medium Devices (481px - 768px) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 1.5rem;
    }

    .navbar {
        padding: 1rem;
    }

    .logo img {
        max-width: 120px;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-actions {
        gap: 1rem;
    }

    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .page-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .hero-slide {
        min-height: 400px;
    }

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

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

    #rwandaMap {
        height: 500px;
    }

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

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

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .dropdown-item-featured {
        flex-direction: column;
        align-items: flex-start;
    }

    .dropdown-item-icon {
        width: 100%;
    }
}

/* Large Devices (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .navbar {
        padding: 1rem 1.5rem;
    }

    .page-title {
        font-size: 2.75rem;
    }

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

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

    #rwandaMap {
        height: 550px;
    }

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

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

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

/* Very Large Devices (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }

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

    #rwandaMap {
        height: 600px;
    }

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

/* Extra Large Devices (1441px+) */
@media (min-width: 1441px) {
    .container {
        max-width: 1280px;
    }

    .stories-grid,
    .publications-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    #rwandaMap {
        height: 700px;
    }

    .partnerships-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== TOUCH DEVICE OPTIMIZATION ==================== */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch target sizes */
    button {
        min-height: 44px;
        min-width: 44px;
    }

    a {
        min-height: 44px;
        padding: 0.75rem;
    }

    .dropdown-toggle {
        padding: 0.75rem;
    }

    /* Remove hover-only interactions */
    .story-card:active {
        transform: scale(0.98);
    }

    .btn-primary:active {
        opacity: 0.85;
    }

    /* Improve touch responsiveness */
    input,
    textarea,
    select {
        font-size: 16px; /* Prevents auto-zoom on iOS */
    }

    /* Make interactive elements easier to tap */
    .nav-link {
        padding: 0.75rem;
    }
}

/* ==================== LANDSCAPE MODE OPTIMIZATION ==================== */
@media (orientation: landscape) {
    .hero-slide {
        min-height: 500px;
    }

    #rwandaMap {
        height: 600px;
    }

    .page-title {
        margin-bottom: 0.75rem;
    }

    .page-subtitle {
        margin-bottom: 1rem;
    }
}

/* ==================== NOTCH & SAFE AREA SUPPORT (iPhone X+) ==================== */
@supports (padding: max(0px)) {
    #rwandaMap {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .navbar {
        padding-top: max(1rem, env(safe-area-inset-top));
    }

    .footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

/* ==================== ACCESSIBILITY & REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== HIGH CONTRAST MODE ==================== */
@media (prefers-contrast: more) {
    .navbar {
        box-shadow: 0 0 0 2px #000;
    }

    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }

    .story-card {
        border: 1px solid #000;
    }
}

/* ==================== DARK MODE SUPPORT ==================== */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --gray-50: #2a2a2a;
        --gray-100: #3a3a3a;
    }

    body {
        background-color: #1a1a1a;
        color: #e5e5e5;
    }

    .navbar {
        background-color: #000000;
    }

    #rwandaMap {
        background-color: #2a2a2a !important;
    }
}