/* Global styles for the entire dashboard (layout, navigation, typography, responsive design, theme colors). */
/* ===================================
   AI Humanitarian Ethics Monitor - Main Styles
   Color Scheme: Black, White, and Grays
   =================================== */

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

:root {
    /* Color Variables */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-maroon: #8a1538;
    --color-maroon-dark: #5e0f24;
    --color-dark-gray: #111111;
    --color-medium-gray: #1f1f1f;
    --color-light-gray: #f7f4f6;
    --color-border-gray: #e6d9de;
    --color-text-gray: #4a4a4a;
    
    /* Spacing */
    --nav-height: 70px;
    --section-padding: 3rem;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-medium-gray);
    background: linear-gradient(135deg, var(--color-light-gray) 0%, #ffffff 50%, #f2e9ed 100%);
    min-height: 100vh;
}

/* ===================================
   Fixed Top Navigation
   =================================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(138, 21, 56, 0.5);
    z-index: 1000;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, 
        transparent 0%,
        var(--color-maroon) 20%,
        var(--color-maroon) 80%,
        transparent 100%) 1;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    position: relative;
}

.nav-brand h1 {
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    padding-left: 1.5rem;
    text-transform: uppercase;
    font-family: 'Arial Black', sans-serif;
}

.nav-brand h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: linear-gradient(180deg, 
        var(--color-maroon) 0%,
        rgba(138, 21, 56, 0.3) 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--color-maroon);
}

.nav-brand h1::after {
    content: "";
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-maroon);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--color-maroon);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateY(-50%) scale(1.3); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.4rem 0.5rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
    white-space: nowrap;
}

.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, 
        var(--color-maroon) 0%, 
        rgba(138, 21, 56, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-maroon);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-white);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 0.15;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: var(--color-white);
    background: linear-gradient(135deg, 
        var(--color-maroon) 0%, 
        rgba(138, 21, 56, 0.8) 100%);
    box-shadow: 
        0 4px 20px rgba(138, 21, 56, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(138, 21, 56, 0.3);
    transform: translateY(-1px);
}

.nav-link.active::before {
    opacity: 0;
}

.nav-link.active::after {
    width: 0;
}

/* Submit Content Link - Special Styling */
.nav-link-submit {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 1px solid rgba(102, 126, 234, 0.4);
    z-index: 1;
}

.nav-link-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.6) 0%, 
        rgba(118, 75, 162, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link-submit:hover {
    color: var(--color-white);
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-link-submit:hover::before {
    opacity: 0.3;
}

/* ===================================
   Main Content Layout
   =================================== */
.main-content {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    padding-bottom: 5rem;
}

/* ===================================
   Page Sections
   =================================== */
.page {
    display: none;
    opacity: 0;
    min-height: calc(100vh - var(--nav-height) - 5rem);
    padding: var(--section-padding) 0;
    animation: fadeOut 0.3s ease;
}

.page.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease;
}

.section-header{
    border-bottom: 1px solid var(--color-border-gray);
    padding-bottom: 20px;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    padding-bottom: 20px;
}

.section-container h2 {
    color: var(--color-maroon);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-container > p {
    color: var(--color-text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
}

/* ===================================
   Home Section - Feature Cards
   =================================== */

/* Hero Banner Styles */
.hero-banner {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: 0 10%;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    margin-bottom: 3rem;
}

.hero-banner-small {
    height: 350px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(138, 21, 56, 0.85) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(138, 21, 56, 0.75) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    color: var(--color-white);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 900px;
    line-height: 1.8;
    opacity: 1;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.25rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Welcome Dashboard Section */
.welcome-dashboard-section {
    margin: 4rem 0;
    padding: 0;
    animation: fadeInUp 0.8s ease-out;
}

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

.welcome-header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.welcome-decoration-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-maroon) 50%, 
        transparent 100%);
    max-width: 200px;
}

.welcome-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-maroon-dark);
    text-align: center;
    margin: 0;
    padding: 0 1rem;
    position: relative;
    letter-spacing: -0.5px;
}

.welcome-main-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-maroon), var(--color-gold));
    border-radius: 2px;
}

.welcome-intro-card {
    background: linear-gradient(135deg, 
        rgba(138, 21, 56, 0.03) 0%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(138, 21, 56, 0.03) 100%);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    border: 2px solid rgba(138, 21, 56, 0.1);
    box-shadow: 
        0 10px 40px rgba(138, 21, 56, 0.08),
        0 0 0 1px rgba(138, 21, 56, 0.05);
    position: relative;
    overflow: hidden;
}

.welcome-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--color-maroon) 0%, 
        var(--color-gold) 50%, 
        var(--color-maroon) 100%);
}

.welcome-intro-icon {
    font-size: 3rem;
    color: var(--color-maroon);
    text-align: center;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.welcome-intro-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-text-gray);
    text-align: center;
    margin: 0;
    font-weight: 400;
}

/* Key Features Section */
.welcome-features-section {
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, 
        rgba(247, 244, 246, 0.5) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(247, 244, 246, 0.5) 100%);
    border-radius: 24px;
    border: 1px solid rgba(138, 21, 56, 0.1);
    box-shadow: 0 10px 40px rgba(138, 21, 56, 0.08);
    position: relative;
    overflow: hidden;
}

.welcome-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--color-maroon) 25%,
        var(--color-gold) 50%,
        var(--color-maroon) 75%,
        transparent 100%);
}

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

.welcome-features-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-maroon-dark);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.welcome-features-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-maroon), var(--color-gold));
    border-radius: 2px;
}

.welcome-features-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-gray);
    margin: 1.5rem 0 0 0;
    font-weight: 400;
    line-height: 1.6;
}

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

/* Carousel Container */
.welcome-carousel-container {
    position: relative;
    margin-bottom: 3rem;
}

.welcome-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.welcome-content-carousel {
    flex: 1;
    position: relative;
    min-height: 350px;
    overflow: hidden;
}

.welcome-feature-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--color-border-gray);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(100px) scale(0.95);
    pointer-events: none;
}

.welcome-feature-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    position: relative;
}

.welcome-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-maroon), var(--color-gold));
    transform: scaleX(1);
    transform-origin: left;
}

/* Carousel Navigation Buttons */
.welcome-carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-maroon), var(--color-maroon-dark));
    border: none;
    color: var(--color-white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 21, 56, 0.3);
    flex-shrink: 0;
    z-index: 10;
}

.welcome-carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(138, 21, 56, 0.5);
    background: linear-gradient(135deg, var(--color-maroon-dark), var(--color-maroon));
}

.welcome-carousel-btn:active {
    transform: scale(0.95);
}

/* Carousel Indicators */
.welcome-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.welcome-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-maroon);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.welcome-indicator:hover {
    transform: scale(1.2);
    background: rgba(138, 21, 56, 0.3);
}

.welcome-indicator.active {
    background: var(--color-maroon);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(138, 21, 56, 0.2);
}

/* Auto-play Progress Bar */
.welcome-carousel-progress-wrapper {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(138, 21, 56, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(138, 21, 56, 0.1);
}

.welcome-carousel-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-maroon);
    font-weight: 600;
}

.welcome-carousel-progress-label .progress-time {
    font-size: 0.8rem;
    opacity: 0.7;
}

.welcome-carousel-progress-container {
    width: 100%;
    height: 8px;
    background: rgba(138, 21, 56, 0.15);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.welcome-carousel-progress-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

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

.welcome-carousel-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--color-maroon) 0%, 
        var(--color-gold) 50%,
        var(--color-maroon) 100%);
    background-size: 200% 100%;
    width: 0%;
    transition: none;
    border-radius: 4px;
    box-shadow: 
        0 0 20px rgba(138, 21, 56, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.welcome-carousel-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.welcome-feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.welcome-feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.welcome-feature-twg .welcome-feature-icon-wrapper {
    background: linear-gradient(135deg, rgba(138, 21, 56, 0.1), rgba(138, 21, 56, 0.05));
    color: var(--color-maroon);
}

.welcome-feature-platform .welcome-feature-icon-wrapper {
    background: linear-gradient(135deg, rgba(177, 145, 32, 0.1), rgba(177, 145, 32, 0.05));
    color: var(--color-gold);
}

.welcome-feature-ocha .welcome-feature-icon-wrapper {
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.1), rgba(51, 51, 51, 0.05));
    color: var(--color-text-dark);
}

.welcome-feature-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-maroon-dark);
    margin: 0;
    line-height: 1.3;
}

.welcome-feature-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-gray);
    margin: 0;
}

.welcome-feature-content strong {
    color: var(--color-maroon);
    font-weight: 600;
}

.welcome-closing-statement {
    background: linear-gradient(135deg, 
        var(--color-maroon-dark) 0%, 
        var(--color-maroon) 100%);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(138, 21, 56, 0.3);
}

.welcome-closing-statement::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.welcome-closing-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.welcome-closing-statement p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-white);
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Mission Section */
.mission-section {
    margin: 3rem 0;
    padding: 3rem;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(247, 244, 246, 0.95) 100%);
    border: 1px solid var(--color-border-gray);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.mission-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(138, 21, 56, 0.2);
    border: 3px solid var(--color-white);
    height: 100%;
}

.mission-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    min-height: 300px;
}

.mission-text h3 {
    color: var(--color-maroon-dark);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.mission-text p {
    color: var(--color-text-gray);
    font-size: 1.08rem;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.mission-text p:last-child {
    margin-bottom: 0;
}

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

.feature-card {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-light-gray) 100%);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--color-border-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 21, 56, 0.05), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(138, 21, 56, 0.15);
    border-color: var(--color-maroon);
}

.feature-card.card-hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    color: var(--color-black);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-icon {
    color: var(--color-maroon);
    margin-right: 15px;
    font-size: 20px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

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

/* ===================================
   Partnership Section (Home Page)
   =================================== */
.partnership-section {
    margin: 3rem 0;
    padding: 3rem;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        rgba(138, 21, 56, 0.06) 0%, 
        rgba(255, 255, 255, 0.98) 50%, 
        rgba(138, 21, 56, 0.04) 100%);
    border: 1px solid rgba(138, 21, 56, 0.15);
    box-shadow: 0 15px 40px rgba(138, 21, 56, 0.1);
}

.partnership-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.partnership-text h3 {
    color: var(--color-maroon-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.partnership-text p {
    color: var(--color-text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.partnership-text strong {
    color: var(--color-maroon-dark);
    font-weight: 600;
}

.partnership-logos {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.partnership-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0%);
    transition: var(--transition-smooth);
}

.partnership-logo:hover {
    transform: scale(1.05);
}

.partnership-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--color-white);
}

.partnership-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===================================
   Hero Video Background
   =================================== */
.hero-banner-video {
    position: relative;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    animation: subtleZoom 20s ease-in-out infinite alternate;
}

@keyframes subtleZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

.hero-banner-video .hero-overlay {
    z-index: 1;
}

/* ===================================
   Contributors Tab Navigation Section
   =================================== */
.contributors-section {
    margin: 3rem 0;
    padding: 3rem;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(247, 244, 246, 0.95) 100%);
    border: 1px solid var(--color-border-gray);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.contributors-container {
    max-width: 100%;
}

.contributors-container .section-heading {
    color: var(--color-maroon-dark);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.contributors-container .section-intro {
    color: var(--color-text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

/* Tab Navigation */
.contributors-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--color-border-gray);
    padding-bottom: 0;
}

.contributors-tab {
    background: transparent;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-gray);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
}

.contributors-tab:hover {
    color: var(--color-maroon);
}

.contributors-tab.active {
    color: var(--color-maroon);
    border-bottom-color: var(--color-maroon);
}

/* Tab Content Wrapper */
.contributors-content-wrapper {
    position: relative;
    min-height: 400px;
}

.contributors-tab-content {
    display: none;
}

.contributors-tab-content.active {
    display: block;
}

/* Enhanced Tab Animations */
.contributors-tab-content.tab-exit {
    animation: slideOutLeft 0.2s ease-out forwards;
}

.contributors-tab-content.tab-enter {
    animation: slideInRight 0.3s ease-out forwards;
}

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

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

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

.tab-description {
    color: var(--color-text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Key Supporters Styles */
.key-supporters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.supporter-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid rgba(138, 21, 56, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition-smooth);
}

.supporter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(138, 21, 56, 0.2);
    border-color: var(--color-maroon);
}

.supporter-logo-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

.supporter-name {
    color: var(--color-maroon-dark);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.supporter-name a {
    color: var(--color-maroon-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.supporter-name a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-maroon);
    transition: width 0.3s ease;
}

.supporter-name a:hover {
    color: var(--color-maroon);
    transform: translateY(-2px);
}

.supporter-name a:hover::after {
    width: 100%;
}

.supporter-abbreviation {
    color: var(--color-maroon);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.supporter-description {
    color: var(--color-text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Organizations Styles */
.organizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.organization-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition-smooth);
}

.organization-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--color-maroon);
}

.organization-placeholder {
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.1), rgba(220, 220, 220, 0.05));
    border-style: dashed;
}

.organization-logo-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

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

.placeholder-logo {
    width: 80px;
    height: 80px;
    background: rgba(138, 21, 56, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-maroon);
    font-size: 0.85rem;
    font-weight: 600;
}

.organization-name {
    color: var(--color-maroon-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.organization-name a {
    color: var(--color-maroon-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.organization-name a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-maroon);
    transition: width 0.3s ease;
}

.organization-name a:hover {
    color: var(--color-maroon);
    transform: translateY(-2px);
}

.organization-name a:hover::after {
    width: 100%;
}

.organization-role {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contributors Styles */
.collaborators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.collaborator-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--color-border-gray);
    text-align: center;
    transition: var(--transition-smooth);
}

.collaborator-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--color-maroon);
}

.collaborator-photo-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-maroon);
    box-shadow: 0 6px 18px rgba(138, 21, 56, 0.25);
}

.collaborator-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collaborator-name {
    color: var(--color-maroon-dark);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.collaborator-role {
    color: var(--color-text-gray);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ===================================
   Scroll Animations
   =================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced hover effects for logos and photos */
.supporter-logo, .organization-logo, .collaborator-photo {
    transition: transform 0.3s ease;
}

.supporter-card:hover .supporter-logo,
.organization-card:hover .organization-logo {
    transform: scale(1.05);
}

.collaborator-card:hover .collaborator-photo {
    transform: scale(1.1);
}

/* Tab button enhanced hover */
.contributors-tab {
    position: relative;
    overflow: hidden;
}

.contributors-tab::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-maroon);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contributors-tab:hover::after {
    transform: scaleX(1);
}

.contributors-tab.active::after {
    transform: scaleX(1);
}

/* ===================================
   Dashboard Updates Section
   =================================== */
.updates-section {
    margin: 3rem 0;
    padding: 3rem;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        rgba(65, 105, 225, 0.05) 0%, 
        rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(65, 105, 225, 0.2);
    box-shadow: 0 15px 40px rgba(65, 105, 225, 0.1);
}

.updates-content .section-heading {
    color: var(--color-maroon-dark);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.5px;
}

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

.update-item {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition-smooth);
}

.update-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(65, 105, 225, 0.15);
}

.update-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.1), rgba(138, 21, 56, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-maroon);
}

.update-item h3 {
    color: var(--color-maroon-dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.update-item p {
    color: var(--color-text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.github-link-container {
    text-align: center;
    margin-top: 2rem;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--color-maroon);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(138, 21, 56, 0.3);
}

.github-link:hover {
    background: var(--color-maroon-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 21, 56, 0.4);
}

.github-link i {
    font-size: 1.4rem;
}

/* ===================================
   Qatar Section Styles
   =================================== */

/* Qatar Gallery */
.qatar-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: var(--transition-smooth);
    background: var(--color-white);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(138, 21, 56, 0.2);
}

.gallery-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 1.2rem;
    text-align: center;
    color: var(--color-medium-gray);
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(247, 244, 246, 1) 100%);
}

.qatar-section-body-container{
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: flex-start;
    gap: 1.75rem;
    margin-top: 2.25rem;
}

.qatar-links-sections-container{
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
    align-self: flex-start;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--color-border-gray);
    border-radius: 16px;
    background: radial-gradient(circle at 18% 20%, rgba(138, 21, 56, 0.08), rgba(0, 0, 0, 0)) #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.qatar-section-link{
    position: relative;
    padding: 1.75rem 2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, 
        rgba(138, 21, 56, 0.95) 0%, 
        rgba(94, 15, 36, 0.9) 50%,
        rgba(138, 21, 56, 0.95) 100%);
    border: none;
    box-shadow: 
        0 10px 40px rgba(138, 21, 56, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.qatar-section-link::before{
    content: "→";
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%) translateX(30px);
    font-size: 1.8rem;
    font-weight: 400;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qatar-section-link::after{
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.15) 0%, 
        transparent 60%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease;
}

.qatar-section-link:hover{
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(138, 21, 56, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 30px rgba(138, 21, 56, 0.3);
}

.qatar-section-link:hover::before{
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.qatar-section-link:hover::after{
    opacity: 1;
    transform: scale(1);
}

.qatar-section-link.link-active{
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 248, 248, 1) 100%);
    color: var(--color-maroon);
    box-shadow: 
        0 15px 50px rgba(138, 21, 56, 0.25),
        inset 0 0 0 3px var(--color-maroon),
        0 5px 20px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.qatar-section-link.link-active::before{
    color: var(--color-maroon);
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.qatar-content-container{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem;
    min-height: 500px;
    border: none;
    border-radius: 32px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(138,21,56,0.05)"/><circle cx="90" cy="90" r="1" fill="rgba(138,21,56,0.05)"/><circle cx="50" cy="50" r="1" fill="rgba(138,21,56,0.05)"/></svg>');
    background-size: cover, 50px 50px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.qatar-content-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--color-maroon) 0%,
        rgba(138, 21, 56, 0.7) 50%,
        var(--color-maroon) 100%);
    border-radius: 32px 32px 0 0;
}

#qatar-analytics-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0;
}

.qatar-analytics-header {
    grid-column: 1 / -1;
    text-align: center;
    padding: 0 0 2rem 0;
    border-bottom: none;
    margin-bottom: 1.5rem;
    background: none;
    position: relative;
}

.qatar-analytics-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--color-maroon) 50%,
        transparent 100%);
    border-radius: 2px;
}

.qatar-analytics-header h3 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, 
        var(--color-maroon) 0%, 
        rgba(138, 21, 56, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
    letter-spacing: -0.8px;
    text-transform: uppercase;
}

.qatar-analytics-header p {
    font-size: 1.15rem;
    color: var(--color-medium-gray);
    margin: 0;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

.survey-info-grid {
    max-width: 800px;
    margin: 1.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.survey-info-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.survey-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-maroon);
    text-align: right;
}

.survey-value {
    font-size: 0.95rem;
    color: var(--color-medium-gray);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .survey-info-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .survey-label {
        text-align: left;
        font-size: 0.85rem;
    }
    
    .survey-value {
        font-size: 0.9rem;
    }

    #qatar-analytics-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .qatar-analytics-header {
        padding: 0 0 1.5rem 0;
    }
    
    .qatar-analytics-header h3 {
        font-size: 1.7rem;
    }
    
    .qatar-analytics-header p {
        font-size: 1rem;
    }

    .qatar-section-link {
        padding: 1.5rem 1.75rem;
        font-size: 1rem;
    }

    .qatar-content-container {
        padding: 2rem;
        min-height: 400px;
        border-radius: 24px;
    }

    .qatar-content-container {
        padding: 1.5rem 1.75rem;
        min-height: 380px;
    }
}


@media (max-width: 1080px){
    .qatar-section-body-container{
        grid-template-columns: 1fr;
    }

    .qatar-links-sections-container{
        position: static;
        max-width: none;
    }
}

/* ===================================
   Card Grid (Policies, etc.)
   =================================== */
.cards-grid {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-light-gray) 100%);
    border: 1px solid var(--color-border-gray);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--color-maroon);
}

/* ===================================
   Case Study Cards
   =================================== */
.case-filter-card {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 2.5rem 0;
    padding: 2rem 2.25rem;
    border-radius: 20px;
    border: 1px solid rgba(138, 21, 56, 0.15);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(247, 244, 246, 0.98) 100%);
    box-shadow: 
        0 8px 32px rgba(138, 21, 56, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.case-filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--color-maroon) 0%, 
        var(--color-maroon-dark) 50%, 
        var(--color-maroon) 100%);
}

.case-filter-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.case-filter-header h3 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.3px;
    color: var(--color-black);
}

.case-filter-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.2rem;
}

.case-filter-actions .btn-ghost {
    color: var(--color-maroon);
    border: 1px solid var(--color-maroon);
    background: #ffffff;
}

.case-filter-actions .btn-ghost:hover {
    background: rgba(138, 21, 56, 0.08);
    border-color: var(--color-maroon-dark);
}

.analytics-filter-header {
    margin-bottom: 1rem;
}

.analytics-filter-header h3 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.3px;
    color: var(--color-black);
}

.resource-filter-header {
    margin-bottom: 1rem;
}

.resource-filter-header h3 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.3px;
    color: var(--color-black);
}

.case-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.case-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.case-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.case-filter-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-maroon-dark);
    letter-spacing: -0.2px;
}

.case-filter-input,
.case-filter-select {
    width: 100%;
    border: 2px solid rgba(138, 21, 56, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: var(--color-white);
    color: var(--color-medium-gray);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.case-filter-input:focus,
.case-filter-select:focus {
    outline: none;
    border-color: var(--color-maroon);
    box-shadow: 0 0 0 3px rgba(138, 21, 56, 0.1);
    background: var(--color-white);
}

.case-filter-input::placeholder {
    color: rgba(74, 74, 74, 0.5);
}

.case-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a1538' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 12px;
    padding-right: 2.4rem;
}

@media (max-width: 720px) {
    .case-filter-card {
        padding: 1.1rem;
    }

    .case-filter-grid {
        grid-template-columns: 1fr;
    }
}

.case-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 1.5rem;
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(138, 21, 56, 0.12);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(247, 244, 246, 0.98) 100%);
    box-shadow: 
        0 8px 32px rgba(138, 21, 56, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 20px 50px rgba(138, 21, 56, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(138, 21, 56, 0.25);
}

.case-category{
    background: var(--color-maroon);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
}

.case-studies-category-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    border: 2px dashed var(--color-border-gray);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-light-gray) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.case-studies-category-info-card-icon {
    font-size: 28px;
    color: var(--color-maroon);
}
.case-studies-category-info-card-title {
    margin: 1rem 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--color-maroon);
}
.case-studies-category-info-card-description {
    font-size: 1rem;
    color: var(--color-text-gray);
    line-height: 1.6;
}

.policies-ethical-principle-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    border: 2px dashed #1e7048;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-light-gray) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    grid-column: 1 / -1;
}

.policies-ethical-principle-info-card-icon {
    font-size: 28px;
    color: #1e7048;
}

.policies-ethical-principle-info-card-title {
    margin: 1rem 0 0.5rem 0;
    font-size: 1.5rem;
    color: #1e7048;
}

.policies-ethical-principle-info-card-description {
    font-size: 1rem;
    color: var(--color-text-gray);
    line-height: 1.6;
}

/* ===================================
   Data & Analytics Section (restyled)
   ================================== */

.analytics-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    font-size: 1.1rem;
    color: var(--color-maroon);
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.analytics-loading i {
    font-size: 1.5rem;
}

.analytics-grid-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: stretch;
    transition: opacity 0.3s ease;
}

.analytics-grid-container:empty {
    display: none;
}

.analytics-card{
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid rgba(138, 21, 56, 0.12);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(248, 248, 248, 1) 100%);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(138, 21, 56, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 1.25rem;
    text-align: left;
    overflow: hidden;
    isolation: isolate;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.analytics-card::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--color-maroon) 0%, 
        rgba(138, 21, 56, 0.5) 100%);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.analytics-card:hover,
.analytics-card:focus-within{
    transform: translateY(-8px);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(138, 21, 56, 0.1);
    border-color: rgba(138, 21, 56, 0.2);
}

.analytics-card:hover::before{
    opacity: 1;
}

.analytics-card-body{
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    flex: 1;
}

.analytics-card-body .analytics-title{
    margin: 0;
    color: var(--color-maroon-dark);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.3;
}

.analytics-card-body .analytics-description{
    margin: 0;
    color: var(--color-medium-gray);
    font-size: 1.02rem;
    line-height: 1.65;
    font-weight: 400;
}

.analytics-expandable-content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    transition: none;
    height: 100%;
    flex: 1;
}

.analytics-card-body .analytics-data-container{
    position: relative;
    border: 2px solid rgba(138, 21, 56, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(138, 21, 56, 0.02) 100%);
    min-height: 280px;
    display: grid;
    place-items: center;
    box-shadow: inset 0 2px 8px rgba(138, 21, 56, 0.05);
    transition: all 0.3s ease;
}

.analytics-card:hover .analytics-data-container{
    border-color: rgba(138, 21, 56, 0.22);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(138, 21, 56, 0.03) 100%);
}

.analytics-card-body .analytics-data-container::after{
    content: "";
    position: absolute;
    top: 8%;
    right: 8%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(138, 21, 56, 0.08), 
        transparent 70%);
    pointer-events: none;
    opacity: 0.6;
}

.analytics-card-body .analytics-data-container canvas{
    width: 100% !important;
    height: 100% !important;
    max-height: 280px;
    position: relative;
    z-index: 1;
}

.analytics-card-body .analytics-footer{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(138, 21, 56, 0.08);
}

.analytics-card-body .analytics-link{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-maroon);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.analytics-card-body .analytics-link:hover{
    background: rgba(138, 21, 56, 0.08);
    color: var(--color-maroon-dark);
}

.analytics-card-body .analytics-link .policy-link-arrow{
    transition: transform 0.3s ease;
}

.analytics-card-body .analytics-link:hover .policy-link-arrow{
    transform: translateX(4px);
}

.map{
    width: 100%;
    height: 280px;
    border-radius: 16px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(138, 21, 56, 0.06);
    border: 2px solid rgba(138, 21, 56, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.map:hover{
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(138, 21, 56, 0.08);
    border-color: rgba(138, 21, 56, 0.18);
}

@media (max-width: 720px) {
    .analytics-card{
        padding: 1.5rem;
        gap: 1rem;
    }

    .analytics-card-body .analytics-title{
        font-size: 1.3rem;
    }

    .analytics-card-body .analytics-description{
        font-size: 0.98rem;
    }

    .analytics-card-body .analytics-data-container{
        min-height: 240px;
        padding: 1.25rem;
    }

    .map{
        height: 240px;
    }
}

/* ===================================
   Analytics Filters
   =================================== */
.analytics-filter-card {
    margin: 2.5rem 0;
    padding: 2rem 2.25rem;
    border-radius: 20px;
    border: 1px solid rgba(138, 21, 56, 0.15);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(247, 244, 246, 0.98) 100%);
    box-shadow: 
        0 8px 32px rgba(138, 21, 56, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.analytics-filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--color-maroon) 0%, 
        var(--color-maroon-dark) 50%, 
        var(--color-maroon) 100%);
}

.analytics-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.analytics-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.analytics-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.analytics-filter-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-maroon-dark);
    letter-spacing: -0.2px;
}

.analytics-filter-input,
.analytics-filter-select {
    width: 100%;
    border: 2px solid rgba(138, 21, 56, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: var(--color-white);
    color: var(--color-medium-gray);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.analytics-filter-input:focus,
.analytics-filter-select:focus {
    outline: none;
    border-color: var(--color-maroon);
    box-shadow: 0 0 0 3px rgba(138, 21, 56, 0.1);
    background: var(--color-white);
}

.analytics-filter-input::placeholder {
    color: rgba(74, 74, 74, 0.5);
}

.analytics-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a1538' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 12px;
    padding-right: 2.4rem;
}

.analytics-filter-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.65rem;
}

.analytics-filter-actions .btn-ghost {
    color: var(--color-maroon);
    border: 1px solid var(--color-maroon);
    background: #ffffff;
}

.analytics-filter-actions .btn-ghost:hover {
    background: rgba(138, 21, 56, 0.08);
    border-color: var(--color-maroon-dark);
}


/* ===================================
   Resources Filters + Cards
   =================================== */

/* Resource Categories Showcase */
.resource-categories-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.resource-category-card {
    height: 220px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.resource-category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(138, 21, 56, 0.25);
}

.category-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.category-card-content h3 {
    color: var(--color-white);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
}

.category-card-content p {
    color: var(--color-white);
    font-size: 1rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.resource-filter-card {
    margin: 2.5rem 0;
    padding: 2rem 2.25rem;
    border-radius: 20px;
    border: 1px solid rgba(138, 21, 56, 0.15);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(247, 244, 246, 0.98) 100%);
    box-shadow: 
        0 8px 32px rgba(138, 21, 56, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.resource-filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--color-maroon) 0%, 
        var(--color-maroon-dark) 50%, 
        var(--color-maroon) 100%);
}

.resource-filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.resource-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.resource-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resource-filter-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-maroon-dark);
    letter-spacing: -0.2px;
}

.resource-filter-input,
.resource-filter-select {
    width: 100%;
    border: 2px solid rgba(138, 21, 56, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: var(--color-white);
    color: var(--color-medium-gray);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.resource-filter-input:focus,
.resource-filter-select:focus {
    outline: none;
    border-color: var(--color-maroon);
    box-shadow: 0 0 0 3px rgba(138, 21, 56, 0.1);
    background: var(--color-white);
}

.resource-filter-input::placeholder {
    color: rgba(74, 74, 74, 0.5);
}

.resource-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a1538' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 12px;
    padding-right: 2.4rem;
}

.resource-filter-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.65rem;
}

.resource-filter-actions .btn-ghost {
    color: var(--color-maroon);
    border: 1px solid var(--color-maroon);
    background: #ffffff;
}

.resource-filter-actions .btn-ghost:hover {
    background: rgba(138, 21, 56, 0.08);
    border-color: var(--color-maroon-dark);
}

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

.resources-pagination,
.resources-pagination,
.policies-pagination,
.cases-pagination,
.analytics-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin: 1.35rem 0 0.35rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(138, 21, 56, 0.18);
    border-radius: 14px;
    background: radial-gradient(circle at 22% 24%, rgba(138, 21, 56, 0.08), rgba(255,255,255,0.9));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.resources-pagination .btn,
.policies-pagination .btn,
.cases-pagination .btn,
.analytics-pagination .btn {
    min-width: 108px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--color-maroon), #a62550);
    color: #fff;
    border: none;
    box-shadow: 0 10px 22px rgba(138, 21, 56, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.resources-pagination .btn:disabled,
.policies-pagination .btn:disabled,
.cases-pagination .btn:disabled,
.analytics-pagination .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.resources-pagination .btn:not(:disabled):hover,
.policies-pagination .btn:not(:disabled):hover,
.cases-pagination .btn:not(:disabled):hover,
.analytics-pagination .btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(138, 21, 56, 0.28);
}

.pagination-status {
    color: var(--color-text-gray);
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.25rem 0.6rem;
    background: rgba(138, 21, 56, 0.08);
    border-radius: 999px;
}

@media (max-width: 640px) {
    .resources-pagination,
    .policies-pagination,
    .cases-pagination,
    .analytics-pagination {
        flex-wrap: wrap;
        gap: 0.55rem;
        padding: 0.75rem;
    }

    .pagination-status {
        width: 100%;
        text-align: center;
        margin-top: 0.25rem;
    }
}

.resource-card {
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    border: 2px solid rgba(138, 21, 56, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(138, 21, 56, 0.06);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    position: relative;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--color-maroon) 0%, 
        rgba(138, 21, 56, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(138, 21, 56, 0.1);
    border-color: rgba(138, 21, 56, 0.2);
}

.resource-card:hover::before {
    opacity: 1;
}

.resource-card-hero {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(138, 21, 56, 0.85) 0%, 
        rgba(0, 0, 0, 0.7) 100%);
}

.resource-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.35s ease;
}

.resource-card:hover .resource-image {
    transform: scale(1.08);
    filter: saturate(1.15) brightness(1.05);
}

.resource-hero-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #ffffff;
    padding: 1.5rem 1.5rem 1.75rem;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.7) 100%);
    height: 100%;
    justify-content: flex-end;
}

.resource-meta-top {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.resource-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.resource-audience {
    margin: 0;
    opacity: 0.95;
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

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

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resource-tags .tag {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(138, 21, 56, 0.08);
    color: var(--color-maroon-dark);
    border: 1px solid rgba(138, 21, 56, 0.15);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
}

.resource-tags .tag:hover {
    background: rgba(138, 21, 56, 0.15);
    border-color: rgba(138, 21, 56, 0.25);
    transform: translateY(-2px);
}

.resource-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(138, 21, 56, 0.08);
}

.resource-footer .pill-soft {
    background: rgba(138, 21, 56, 0.08);
    border: 1px solid rgba(138, 21, 56, 0.15);
    color: var(--color-maroon-dark);
    box-shadow: none;
    backdrop-filter: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.resource-footer .pill-soft:hover {
    background: rgba(138, 21, 56, 0.12);
    border-color: rgba(138, 21, 56, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(138, 21, 56, 0.15);
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: rgba(138, 21, 56, 0.08);
}

.resource-link .policy-link-arrow {
    transition: transform 0.3s ease;
}

.resource-link:hover .policy-link-arrow {
    transform: translateX(4px);
}

.resource-image.is-empty {
    background: linear-gradient(135deg, 
        rgba(138, 21, 56, 0.85) 0%, 
        rgba(0, 0, 0, 0.7) 100%);
}

@media (max-width: 720px) {
    .resource-filter-card {
        padding: 1.2rem;
    }

    .resource-card-hero {
        height: 220px;
    }

    .resource-title {
        font-size: 1.25rem;
    }

    .resource-card-body {
        padding: 1.25rem 1.5rem 1.5rem;
    }
}

/* ===================================
   Contact Section
   =================================== */
/* ===================================
   Contact Page Styles
   =================================== */

/* Contact Introduction Card */
.contact-intro-card {
    margin: 2rem 0 3rem;
    padding: 0;
    border-radius: 12px;
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0;
}

.contact-intro-image {
    width: 35%;
    min-width: 300px;
    height: auto;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.intro-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-intro-content {
    padding: 2.5rem;
    flex: 1;
}

.contact-intro-card .section-heading {
    color: var(--color-maroon-dark);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: left;
}

.contact-intro-card .intro-text {
    color: var(--color-text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: left;
    max-width: 100%;
    margin: 0;
}

/* Primary Contact Section */
.primary-contact-section {
    margin: 3rem 0;
    padding: 3rem;
    border-radius: 16px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(247, 244, 246, 0.95) 100%);
    border: 1px solid rgba(138, 21, 56, 0.1);
    box-shadow: 0 10px 40px rgba(138, 21, 56, 0.08);
}

.primary-contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.primary-contact-content .section-heading {
    color: var(--color-maroon-dark);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-intro {
    color: var(--color-text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: center;
}

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

.collaboration-contact-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--color-border-gray);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.collaboration-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(138, 21, 56, 0.15);
    border-color: var(--color-maroon);
}

.collaboration-contact-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.collaboration-photo-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-maroon);
    box-shadow: 0 4px 12px rgba(138, 21, 56, 0.2);
}

.collaboration-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collaboration-info {
    flex: 1;
}

.collaboration-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-maroon-dark);
    margin: 0 0 0.5rem 0;
}

.collaboration-title {
    font-size: 0.95rem;
    color: var(--color-text-gray);
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.collaboration-org {
    font-size: 0.9rem;
    color: var(--color-maroon);
    font-weight: 600;
    margin: 0;
}

.collaboration-email {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(138, 21, 56, 0.05);
    border: 1px solid var(--color-maroon);
    border-radius: 8px;
    color: var(--color-maroon);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.collaboration-email:hover {
    background: var(--color-maroon);
    color: var(--color-white);
    transform: translateX(5px);
}

.collaboration-email i {
    font-size: 1.1rem;
}

.contact-note {
    text-align: center;
    color: var(--color-text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-gray);
}

.primary-email {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-maroon);
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    background: rgba(138, 21, 56, 0.05);
    border: 1px solid var(--color-maroon);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.primary-email:hover {
    background: var(--color-maroon);
    color: var(--color-white);
}

.contact-note {
    color: var(--color-medium-gray);
    font-size: 0.95rem;
    font-style: italic;
}

/* Contact Supporters Section */
.contact-supporters-section {
    margin: 3rem 0;
    padding: 3rem;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(247, 244, 246, 0.95) 100%);
    border: 1px solid var(--color-border-gray);
}

.contact-supporters-section .section-heading {
    color: var(--color-maroon-dark);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-supporters-section .supporters-message {
    color: var(--color-text-gray);
    font-size: 1.05rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

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

.contact-supporter-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid rgba(138, 21, 56, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition-smooth);
}

.contact-supporter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(138, 21, 56, 0.2);
    border-color: var(--color-maroon);
}

/* Contact Organizations Section */
.contact-organizations-section {
    margin: 3rem 0;
    padding: 3rem;
    border-radius: 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border-gray);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-organizations-section .section-heading {
    color: var(--color-maroon-dark);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.organizations-intro {
    color: var(--color-text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

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

.contact-org-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(247, 244, 246, 0.5) 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition-smooth);
}

.contact-org-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--color-maroon);
}

.org-placeholder {
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.1), rgba(220, 220, 220, 0.05));
    border-style: dashed;
}

.org-logo-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

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

.org-name {
    color: var(--color-maroon-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.org-role {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Team Section */
.team-section {
    margin: 3rem 0;
    padding: 2.5rem;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
}

.team-section .section-heading {
    color: var(--color-maroon-dark);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.team-intro {
    color: var(--color-text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

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

.team-member {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--color-maroon);
}

.team-photo-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-maroon);
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-name {
    color: var(--color-maroon-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--color-maroon);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.team-title {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.team-org {
    color: var(--color-medium-gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.team-email, .team-website {
    display: inline-block;
    color: var(--color-maroon);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    background: rgba(138, 21, 56, 0.05);
    transition: all 0.2s ease;
    margin: 0.25rem;
}

.team-email:hover, .team-website:hover {
    background: rgba(138, 21, 56, 0.1);
}

/* Dashboard Updates & Maintenance Section */
.updates-maintenance-section {
    margin: 3rem 0;
    padding: 3rem;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(247, 244, 246, 0.8) 100%);
    border: 1px solid var(--color-border-gray);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.updates-maintenance-section .section-heading {
    color: var(--color-maroon-dark);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.updates-maintenance-section .section-intro {
    color: var(--color-text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    text-align: center;
}

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

.update-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--color-border-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.update-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--color-maroon);
}

.update-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        var(--color-maroon) 0%, 
        var(--color-maroon-dark) 100%);
    color: var(--color-white);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.update-card h3 {
    color: var(--color-maroon-dark);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.update-card p {
    color: var(--color-text-gray);
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.repo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-maroon);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    background: rgba(138, 21, 56, 0.05);
    transition: var(--transition-smooth);
    margin-top: 1rem;
    align-self: flex-start;
}

.repo-link:hover {
    background: rgba(138, 21, 56, 0.1);
    transform: translateX(3px);
}

.repo-link i {
    font-size: 1.2rem;
}

.contribute-notice {
    background: linear-gradient(135deg, 
        rgba(138, 21, 56, 0.05) 0%, 
        rgba(138, 21, 56, 0.02) 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(138, 21, 56, 0.2);
    text-align: center;
}

.contribute-notice h3 {
    color: var(--color-maroon-dark);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contribute-notice h3 i {
    color: var(--color-maroon);
    font-size: 1.5rem;
}

.contribute-notice p {
    color: var(--color-text-gray);
    font-size: 1.05rem;
    line-height: 1.7;
}

.contribute-notice a {
    color: var(--color-maroon);
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(138, 21, 56, 0.08);
    transition: var(--transition-fast);
}

.contribute-notice a:hover {
    background: rgba(138, 21, 56, 0.15);
}

/* Individual Contributors Section */
.individual-contributors-section {
    margin: 3rem 0;
    padding: 3rem;
    border-radius: 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border-gray);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.individual-contributors-section .section-heading {
    color: var(--color-maroon-dark);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contributors-note {
    color: var(--color-text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

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

.contributor-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(247, 244, 246, 0.5) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--color-border-gray);
    text-align: center;
    transition: var(--transition-smooth);
}

.contributor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--color-maroon);
}

.contributor-avatar {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.contributor-name {
    color: var(--color-maroon-dark);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contributor-role {
    color: var(--color-text-gray);
    font-size: 0.85rem;
    line-height: 1.4;
}

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

.contact-logo{
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    filter: brightness(1.02);
}

.contact-card {
    background: #ffffff;
    border-radius: 20px;
    border: 2px solid rgba(138, 21, 56, 0.12);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(138, 21, 56, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--color-maroon) 0%, 
        var(--color-maroon-dark) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.12),
        0 10px 30px rgba(138, 21, 56, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(138, 21, 56, 0.25);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(138, 21, 56, 0.1);
}

.contact-org {
    font-weight: 700;
    color: var(--color-maroon-dark);
    font-size: 1.35rem;
    letter-spacing: -0.3px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-list li {
    border: 1px solid rgba(138, 21, 56, 0.12);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(247, 244, 246, 0.5) 100%);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-list li:hover {
    transform: translateX(4px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(138, 21, 56, 0.25);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(138, 21, 56, 0.02) 100%);
}

.contact-title {
    font-weight: 700;
    color: var(--color-maroon);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-name {
    font-weight: 600;
    color: var(--color-medium-gray);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.contact-icon {
    color: var(--color-maroon);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.contact-email {
    color: var(--color-maroon);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
    font-weight: 500;
    margin-top: 0.25rem;
}

.contact-email::after {
    content: '→';
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition-fast);
}

.contact-email:hover {
    color: var(--color-maroon-dark);
    gap: 0.75rem;
}

.contact-email:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.contact-email--muted {
    color: rgba(74, 74, 74, 0.6);
    font-style: italic;
}

.contact-email--muted::after {
    display: none;
}

@media (max-width: 960px) {
    .contact-org-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-brand-placeholders {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .contact-hero-panel {
        padding: 2rem 1.5rem;
    }
    
    .contact-hero-text h3 {
        font-size: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-org {
        font-size: 1.15rem;
    }
    
    .contact-brand-placeholders {
        grid-template-columns: 1fr;
    }
    
    .contact-list li:hover {
        transform: none;
    }
}

.case-card-media {
    min-height: 240px;
    border-radius: 16px;
    background: linear-gradient(135deg, 
        rgba(138, 21, 56, 0.85) 0%, 
        rgba(0, 0, 0, 0.7) 100%);
    background-size: cover;
    background-position: center;
    border: none;
    position: relative;
    overflow: hidden;
    margin: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.case-card:hover .case-card-media {
    transform: scale(1.03);
}

.case-card-media.has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.4) 100%);
}

.case-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1.75rem 1.5rem 0;
}

.case-org {
    margin: 0;
    color: var(--color-text-gray);
    font-size: 1rem;
    font-weight: 500;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.case-additional-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(138, 21, 56, 0.1);
    border-bottom: 1px solid rgba(138, 21, 56, 0.1);
    margin: 0.75rem 0;
}

.case-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.case-info-item.is-hidden {
    display: none;
}

.case-info-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-maroon);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-humanitarian-sector,
.case-decision-criticality,
.case-technology {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.case-info-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.case-humanitarian-sector .case-info-tag {
    background: rgba(0, 123, 255, 0.12);
    border: 1px solid rgba(0, 123, 255, 0.25);
    color: rgb(0, 98, 204);
}

.case-decision-criticality .case-info-tag {
    background: rgba(255, 140, 0, 0.12);
    border: 1px solid rgba(255, 140, 0, 0.25);
    color: rgb(204, 112, 0);
}

.case-technology .case-info-tag {
    background: rgba(106, 13, 173, 0.12);
    border: 1px solid rgba(106, 13, 173, 0.25);
    color: rgb(106, 13, 173);
}

.metric {
    display: flex;
    flex-direction: column;
    background: rgba(138, 21, 56, 0.04);
    border: 2px solid rgba(138, 21, 56, 0.12);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    text-align: center;
    min-height: 70px;
    transition: all 0.3s ease;
}

.metric:hover {
    border-color: rgba(138, 21, 56, 0.25);
    background: rgba(138, 21, 56, 0.08);
    transform: translateY(-2px);
}

.metric-title {
    background: linear-gradient(135deg, 
        rgba(138, 21, 56, 0.12) 0%, 
        rgba(138, 21, 56, 0.18) 100%);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-maroon-dark);
    border-bottom: 2px solid rgba(138, 21, 56, 0.15);
}

.metric-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-medium-gray);
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-tags .tag {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(138, 21, 56, 0.08);
    color: var(--color-maroon-dark);
    border: 1px solid rgba(138, 21, 56, 0.15);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
}

.case-tags .tag:hover {
    background: rgba(138, 21, 56, 0.15);
    border-color: rgba(138, 21, 56, 0.25);
    transform: translateY(-2px);
}

.badge-ghost {
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-medium-gray);
    border-color: rgba(0, 0, 0, 0.08);
}

.case-links {
    display: flex;
    justify-content: flex-start;
    gap: 0.85rem;
}

@media (max-width: 900px) {
    .case-card {
        grid-template-columns: 1fr;
    }
    .case-card-media {
        min-height: 220px;
        margin: 1rem 1rem 0;
    }
    .case-card-body {
        padding: 0 1.5rem 1.5rem;
    }
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.card-header h3 {
    color: var(--color-black);
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0;
}

.card-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(138, 21, 56, 0.1);
    color: rgb(255, 119, 119);
    font-size: 0.8rem;
    border: 1px solid rgba(138, 21, 56, 0.25);
}

.badge-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-medium-gray);
    border-color: rgba(0, 0, 0, 0.08);
}

.card-summary {
    color: var(--color-text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.25rem 0 0.75rem;
    min-height: 3.2rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.card-tags .tag {
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-medium-gray);
    font-size: 0.8rem;
}

.card-link {
    color: var(--color-maroon);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.card-link:hover {
    text-decoration: underline;
}

/* ===================================
   Policy Cards (Hero + Meta)
   =================================== */
.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.policy-card {
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(138, 21, 56, 0.12);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(247, 244, 246, 0.98) 100%);
    box-shadow: 
        0 8px 32px rgba(138, 21, 56, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
}

.policy-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 50px rgba(138, 21, 56, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(138, 21, 56, 0.25);
}

.policy-hero {
    position: relative;
    min-height: 260px;
    background: linear-gradient(135deg, 
        rgba(138, 21, 56, 0.85) 0%, 
        rgba(0, 0, 0, 0.75) 100%);
    overflow: hidden;
}

.policy-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1) brightness(1.05);
    transform: scale(1);
    transition: transform 0.5s ease, filter 0.4s ease;
    z-index: 0;
}

.policy-card:hover .policy-image {
    transform: scale(1.08);
    filter: saturate(1.2) brightness(1.1);
}

.policy-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
    z-index: 0;
}

.policy-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem 1.5rem 1.75rem;
    color: var(--color-white);
}

.policy-country-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.policy-title {
    margin: 0;
    color: var(--color-white);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.policy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.policy-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.lang-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pill-soft {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.pill-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.pill-status {
    background: var(--color-maroon);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--color-white);
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(138, 21, 56, 0.4);
}

.badge-glow {
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.4), 
        0 4px 16px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
}

.policy-body {
    padding: 1.5rem 1.75rem;
    gap: 1.25rem;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(247, 244, 246, 0.95) 100%);
}

.policy-summary {
    margin: 0;
    font-size: 0.98rem;
    color: var(--color-text-gray);
    min-height: 3.4rem;
}

.policy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.policy-tags .tag {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(138, 21, 56, 0.12);
    border: 1px solid rgba(138, 21, 56, 0.2);
    color: var(--color-maroon-dark);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.policy-ethical-principle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.policy-ethical-principle .tag {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(46, 139, 87, 0.12);
    border: 1px solid rgba(46, 139, 87, 0.3);
    color: rgb(100, 225, 127);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.policy-metadata-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(138, 21, 56, 0.1);
}

.policy-metadata-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.policy-metadata-group.is-hidden {
    display: none;
}

.policy-metadata-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-maroon);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.policy-sectoral-focus,
.policy-document-type {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.policy-sectoral-focus .tag {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(65, 105, 225, 0.12);
    border: 1px solid rgba(65, 105, 225, 0.25);
    color: rgb(65, 105, 225);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Color coding for sectoral focus based on policy type */
.policy-sectoral-focus .tag-humanitarian {
    background: rgba(128, 128, 128, 0.15);
    border: 1px solid rgba(128, 128, 128, 0.3);
    color: rgb(96, 96, 96);
}

.policy-sectoral-focus .tag-non-humanitarian {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.25);
    color: rgb(176, 42, 55);
}

.policy-document-type .tag {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 140, 0, 0.12);
    border: 1px solid rgba(255, 140, 0, 0.25);
    color: rgb(204, 112, 0);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

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

.policy-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    align-self: flex-end;
}

.policy-link-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.policy-link:hover .policy-link-arrow {
    transform: translateX(4px);
}

.policy-link.is-disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* ===================================
   Policies Layout + Fixed Filter Card
   =================================== */
.policies-body {
    padding-top: 20px;
}

.filter-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(247, 244, 246, 0.98) 100%);
    color: var(--color-medium-gray);
    border: 1px solid rgba(138, 21, 56, 0.15);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 
        0 8px 32px rgba(138, 21, 56, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    width: 100%;
    z-index: 20;
    margin: 20px auto;
    position: relative;
}

.filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--color-maroon) 0%, 
        var(--color-maroon-dark) 50%, 
        var(--color-maroon) 100%);
}

.filter-card__header {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    display: grid;
    gap: 0.5rem;
}

.filter-card__header h3 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--color-maroon-dark);
    font-weight: 700;
}

.filter-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--color-maroon);
    font-weight: 600;
}

.filter-subtitle {
    margin: 0;
    color: var(--color-text-gray);
    font-size: 0.92rem;
    line-height: 1.6;
}

.filter-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-maroon-dark);
    letter-spacing: -0.2px;
}

.filter-field input,
.filter-field select {
    width: 100%;
    border: 2px solid rgba(138, 21, 56, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: var(--color-white);
    color: var(--color-medium-gray);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-field input::placeholder,
.filter-field select::placeholder {
    color: rgba(74, 74, 74, 0.5);
}

.filter-field input:focus,
.filter-field select:focus {
    outline: none;
    border-color: var(--color-maroon);
    box-shadow: 0 0 0 3px rgba(138, 21, 56, 0.1);
    background: var(--color-white);
}

.filter-card select option {
    background-color: var(--color-white);
    color: var(--color-medium-gray);
}

.filter-card select::-ms-expand {
    display: none;
}

/* Green theme for Ethical Principle dropdown */
#policy-ethical-principle {
    border-color: rgba(46, 139, 87, 0.3);
    background: rgba(46, 139, 87, 0.04);
}

#policy-ethical-principle:focus {
    border-color: rgb(46, 139, 87);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.15);
    background: rgba(46, 139, 87, 0.06);
}

#policy-ethical-principle option {
    background-color: var(--color-white);
}

/* Darker maroon theme for Case Studies Category dropdown */
#case-study-category {
    border-color: rgba(138, 21, 56, 0.4);
    background: rgba(138, 21, 56, 0.08);
}

#case-study-category:focus {
    border-color: rgb(138, 21, 56);
    box-shadow: 0 0 0 3px rgba(138, 21, 56, 0.2);
    background: rgba(138, 21, 56, 0.12);
}

#case-study-category option {
    background-color: var(--color-white);
}

.input-shell {
    position: relative;
}

.input-shell input {
    padding-left: 2.2rem;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(247, 244, 246, 0.7);
    border-radius: 50%;
    pointer-events: none;
}

.input-icon::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 8px;
    background: rgba(247, 244, 246, 0.7);
    bottom: -6px;
    right: -5px;
    transform: rotate(45deg);
}

/* ===================================
   Filter Toggle Button & Animation
   =================================== */
.filter-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.filter-toggle-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(138, 21, 56, 0.08);
    border: 1px solid rgba(138, 21, 56, 0.2);
    color: var(--color-maroon);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-toggle-btn:hover {
    background: rgba(138, 21, 56, 0.15);
    border-color: var(--color-maroon);
    transform: scale(1.05);
}

.filter-toggle-btn i {
    transition: transform 0.3s ease;
}

.filter-toggle-btn.expanded i {
    transform: rotate(180deg);
}

/* Filter Form Collapse Animation */
.filter-form.collapsed,
.case-filter-form.collapsed,
.analytics-filter-form.collapsed,
.resource-filter-form.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease, margin-top 0.3s ease, padding 0.3s ease;
}

.filter-form,
.case-filter-form,
.analytics-filter-form,
.resource-filter-form {
    max-height: 2000px;
    opacity: 1;
    overflow: visible;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease, margin-top 0.3s ease, padding 0.3s ease;
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.filter-actions .btn-ghost {
    background: rgba(138, 21, 56, 0.08);
    color: var(--color-maroon-dark);
    border: 1px solid rgba(138, 21, 56, 0.2);
}

.filter-actions .btn-ghost:hover {
    background: rgba(138, 21, 56, 0.15);
    color: var(--color-maroon-dark);
    border-color: var(--color-maroon);
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-maroon) 0%, var(--color-maroon-dark) 100%);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

@media (max-width: 1100px) {
    .policies-body {
        padding-top: 0;
    }

    .filter-card {
        width: calc(100% - 1.5rem);
    }
}

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

    .policy-hero {
        height: 200px;
    }
}

/* ===================================
   Placeholder Content Styling
   =================================== */

.contact-info {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--color-black);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--color-text-gray);
    margin-bottom: 0.5rem;
}

/* ===================================
   Fixed Chatbot Widget
   =================================== */
.chatbot-container {
    position: fixed;
    right: 2rem;
    bottom: 6rem;
    width: min(400px, calc(100vw - 4rem));
    height: min(600px, calc(100vh - var(--nav-height) - 8rem));
    max-height: calc(100vh - var(--nav-height) - 8rem);
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: var(--transition-smooth);
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chatbot-container.hidden {
    display: none;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.chatbot-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Chatbot Toggle Button */
.chatbot-toggle-btn {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-maroon) 0%, var(--color-maroon-dark) 100%);
    border: none;
    color: var(--color-white);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.chatbot-toggle-btn:active {
    transform: scale(0.95);
}

.chatbot-toggle-btn .icon-chat,
.chatbot-toggle-btn .icon-close {
    position: absolute;
    transition: var(--transition-smooth);
}

.chatbot-toggle-btn .icon-close {
    opacity: 0;
    transform: rotate(90deg) scale(0.8);
}

.chatbot-toggle-btn.active .icon-chat {
    opacity: 0;
    transform: rotate(-90deg) scale(0.8);
}

.chatbot-toggle-btn.active .icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.chatbot-contact{
    width: 100%;
    padding: 16px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #8D1B3D 0%, #6B0F1A 100%);
    border-bottom: none;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chatbot-contact p, .chatbot-contact div{
    font-size: 16px;
    color: white;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.chatbot-messages-container{
    background: linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%);
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.chatbot-messages-list{
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    flex: 1;
    overflow-y: auto;
    gap: 10px;
}
.chatbot-message{
    background: #FFFFFF;
    color: #1F2937;
    padding: 10px 14px;
    align-self: flex-start;
    border: 1px solid #E5E7EB;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    max-width: 80%;
    margin: 6px 0;
    line-height: 1.5;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}
.chatbot-message-user{
    align-self: flex-end;
    padding: 10px 14px;
    background: linear-gradient(135deg, #8D1B3D 0%, #6B0F1A 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 2px 8px rgba(141, 27, 61, 0.25);
    max-width: 80%;
    margin: 6px 0;
    line-height: 1.5;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.chatbot-message-prompt-container{
    background: #FFFFFF;
    padding: 16px 20px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
    flex-shrink: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.chatbot-input{
    background: #F9FAFB;
    color: #111827;
    border: 2px solid #D1D5DB;
    border-radius: 22px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    flex: 1;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.chatbot-input:focus{
    outline: none;
    border-color: #8D1B3D;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(141, 27, 61, 0.1);
}

.chatbot-input::placeholder{
    color: #9CA3AF;
    font-size: 14px;
}

.send-button{
    background: linear-gradient(135deg, #8D1B3D 0%, #6B0F1A 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(141, 27, 61, 0.25);
}

.send-button:hover{
    background: linear-gradient(135deg, #6B0F1A 0%, #550C15 100%);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(141, 27, 61, 0.4);
}

.send-button:active{
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(141, 27, 61, 0.3);
}

/* Chatbot Loading Indicator */
.chatbot-loading {
    display: flex;
    align-items: center;
    padding: 12px 14px !important;
    opacity: 0.8;
}

.chatbot-loading-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.chatbot-loading-dots span {
    width: 8px;
    height: 8px;
    background: #8D1B3D;
    border-radius: 50%;
    animation: loading-bounce 1.4s infinite ease-in-out both;
}

.chatbot-loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.chatbot-loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-maroon-dark) 100%);
    color: var(--color-white);
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid var(--color-medium-gray);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-container p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

/* ===================================
   Responsive Design - Tablets
   =================================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .section-container {
        padding: 0 1.5rem;
    }
    
    .chatbot-container {
        width: min(300px, calc(100vw - 2rem));
        height: min(450px, calc(100vh - var(--nav-height) - 6rem));
        right: 1rem;
        bottom: 5rem;
    }
    
    .chatbot-toggle-btn {
        right: 1rem;
        bottom: 1rem;
        width: 55px;
        height: 55px;
    }
}

/* ===================================
   Responsive Design - Mobile
   =================================== */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
        --section-padding: 2rem;
    }
    
    .nav-brand h1 {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }
    
    .section-container h2 {
        font-size: 2rem;
    }
    
    .section-container > p {
        font-size: 1rem;
    }
    
    .home-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Hero banner responsive */
    .hero-banner {
        height: 350px;
        border-radius: 0 0 16px 16px;
    }
    
    .hero-banner-small {
        height: 250px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        max-width: 95%;
        line-height: 1.7;
    }
    
    /* Welcome Dashboard Section Responsive */
    .welcome-dashboard-section {
        margin: 2rem 0;
    }
    
    .welcome-header-container {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .welcome-decoration-line {
        max-width: 100px;
        height: 1px;
    }
    
    .welcome-main-title {
        font-size: 1.8rem;
        padding: 0;
    }
    
    .welcome-intro-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .welcome-intro-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .welcome-intro-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Key Features Section Responsive */
    .welcome-features-section {
        margin: 2rem 0;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .welcome-features-header {
        margin-bottom: 2rem;
    }
    
    .welcome-features-title {
        font-size: 1.6rem;
    }
    
    .welcome-features-subtitle {
        font-size: 0.95rem;
    }
    
    /* Carousel Responsive */
    .welcome-carousel-wrapper {
        gap: 1rem;
    }
    
    .welcome-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .welcome-content-carousel {
        min-height: 400px;
    }
    
    .welcome-carousel-progress-wrapper {
        margin-top: 1.5rem;
        padding: 0.75rem;
    }
    
    .welcome-carousel-progress-label {
        font-size: 0.75rem;
    }
    
    .welcome-carousel-progress-container {
        height: 6px;
    }
    
    .welcome-feature-card {
        padding: 1.5rem;
    }
    
    .welcome-feature-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .welcome-feature-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .welcome-feature-header h3 {
        font-size: 1.2rem;
    }
    
    .welcome-feature-content p {
        font-size: 0.95rem;
    }
    
    .welcome-closing-statement {
        padding: 2rem 1.5rem;
    }
    
    .welcome-closing-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .welcome-closing-statement p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Mission section responsive */
    .mission-section {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mission-text h3 {
        font-size: 1.8rem;
    }
    
    .mission-text p {
        font-size: 1rem;
    }
    
    .mission-photo {
        min-height: 250px;
    }
    
    /* Qatar gallery responsive */
    .qatar-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-photo {
        height: 240px;
    }
    
    /* Team section responsive */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .team-photo-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .team-name {
        font-size: 1.15rem;
    }
    
    /* Resource categories responsive */
    .resource-categories-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .resource-category-card {
        height: 180px;
    }
    
    .category-card-content h3 {
        font-size: 1.5rem;
    }
    
    /* Partnership section responsive */
    .partnership-section {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .partnership-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .partnership-text h3 {
        font-size: 1.6rem;
    }
    
    .partnership-text p {
        font-size: 1rem;
    }
    
    .partnership-logos {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    /* New sections responsive */
    .contributors-section {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .contributors-container .section-heading {
        font-size: 2rem;
    }
    
    .contributors-tabs {
        flex-direction: column;
        gap: 0.5rem;
        border-bottom: none;
    }
    
    .contributors-tab {
        width: 100%;
        text-align: center;
        border-bottom: 2px solid var(--color-border-gray);
        padding: 0.75rem 1rem;
        bottom: 0;
    }
    
    .contributors-tab.active {
        border-bottom: 2px solid var(--color-maroon);
    }
    
    .contributors-content-wrapper {
        min-height: 300px;
    }
    
    .key-supporters-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .supporter-card {
        padding: 2rem;
    }
    
    .supporter-logo-container {
        height: 100px;
    }
    
    .supporter-name {
        font-size: 1.2rem;
    }
    
    .organizations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .collaborators-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .collaborator-photo-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 0.75rem;
        border-width: 2px;
    }
    
    .updates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .subsection-heading {
        font-size: 1.4rem;
    }
    
    .partnership-logo {
        height: 60px;
    }
    
    /* Contact page responsive */
    .contact-intro-card {
        margin: 1.5rem 0 2rem;
        flex-direction: column;
    }
    
    .contact-intro-image {
        width: 100%;
        min-width: auto;
    }
    
    .contact-intro-content {
        padding: 1.5rem;
    }
    
    .contact-intro-card .section-heading {
        font-size: 2rem;
        text-align: center;
    }
    
    .primary-contact-section {
        padding: 2rem 1.5rem;
    }
    
    .collaboration-contacts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .collaboration-contact-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .collaboration-photo-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .collaboration-email {
        justify-content: center;
    }
    
    .contact-intro-card .intro-text {
        font-size: 1rem;
        text-align: center;
    }
    
    .primary-contact-section,
    .contact-supporters-section,
    .contact-organizations-section,
    .team-section,
    .updates-maintenance-section,
    .individual-contributors-section {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .updates-maintenance-section .section-heading {
        font-size: 2rem;
    }
    
    .updates-maintenance-section .section-intro {
        font-size: 1rem;
    }
    
    .updates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .update-card {
        padding: 1.5rem;
    }
    
    .update-card h3 {
        font-size: 1.2rem;
    }
    
    .contribute-notice {
        padding: 1.5rem;
    }
    
    .contribute-notice h3 {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contribute-notice p {
        font-size: 1rem;
    }
    
    .primary-email {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
    }
    
    .contact-supporters-grid,
    .contact-organizations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contributors-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    /* Adjust chatbot for mobile - full screen when open */
    .chatbot-container {
        display: block;
        width: calc(100vw - 2rem);
        height: calc(100vh - var(--nav-height) - 6rem);
        max-height: calc(100vh - var(--nav-height) - 6rem);
        right: 1rem;
        left: 1rem;
        bottom: 5rem;
    }
    
    .chatbot-toggle-btn {
        right: 1rem;
        bottom: 1rem;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-brand h1 {
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .section-container h2 {
        font-size: 1.75rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Hero banner for very small screens */
    .hero-banner {
        height: 280px;
    }
    
    .hero-banner-small {
        height: 200px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Mission section for very small screens */
    .mission-section {
        padding: 1.5rem;
    }
    
    .mission-text h3 {
        font-size: 1.5rem;
    }
    
    .mission-text p {
        font-size: 0.95rem;
    }
    
    /* Team grid for very small screens */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-photo-wrapper {
        width: 120px;
        height: 120px;
    }
    
    /* Partnership section for very small screens */
    .partnership-section {
        padding: 1.5rem;
    }
    
    .partnership-text h3 {
        font-size: 1.4rem;
    }
    
    .partnership-text p {
        font-size: 0.95rem;
    }
    
    .partnership-logo {
        height: 50px;
    }
    
    .contact-hero-panel {
        padding: 1.5rem;
    }
}

/* ===================================
   Accessibility & Utility Classes
   =================================== */
.is-hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--color-maroon);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--color-maroon);
    color: var(--color-white);
}
