/* ================================
   CORE Community Organization Styles
   Modern, accessible design for rights & empowerment
   ================================ */

/* CSS Variables for easy customization */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #f59e0b;
    --accent-dark: #d97706;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-gray-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Fluid spacing scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: clamp(1.5rem, 3vw, 2rem);
    --spacing-xl: clamp(2rem, 4vw, 3rem);
    --spacing-2xl: clamp(2.5rem, 5vw, 4rem);
    --spacing-3xl: clamp(3rem, 6vw, 6rem);

    --border-radius: 0.75rem;
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 2rem;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Wider layout system */
    --max-width: 1600px;
    --content-width: 1100px;
    --narrow-width: 800px;
    --container-padding: clamp(1rem, 4vw, 2.5rem);
    --grid-gap: clamp(1.25rem, 3vw, 2.5rem);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
}

/* Container System */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.container-narrow {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Full-width sections break out of container */
.full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Typography - Fluid sizing */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-medium);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.7;
}

/* Larger paragraph text for intros */
.lead, .intro-text {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.8;
    color: var(--text-medium);
}

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

a:hover {
    color: var(--primary-dark);
}

/* Header & Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar {
    padding: var(--spacing-md) 0;
    position: relative;
}

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

.logo {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
}

/* Logo with text beside image */
.logo-with-text {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.logo-with-text .logo-image {
    flex-shrink: 0;
    height: auto;
    max-height: 50px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.logo-with-text .logo-text,
.logo-with-text .logo-subtext {
    display: block;
}

.logo-with-text .logo-text {
    font-size: 1.25rem;
    line-height: 1.2;
}

.logo-with-text .logo-subtext {
    font-size: 0.6rem;
    line-height: 1.3;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.logo-subtext {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-medium);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.3;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: var(--transition);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.btn-donate {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #c44569 100%);
    color: white !important;
    padding: 0.85rem 2.25rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.35);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

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

.btn-donate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

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

.btn-donate::after {
    display: none;
}

.btn-donate:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(238, 90, 111, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-donate:active {
    transform: translateY(-1px) scale(1.01);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Main Content - min-height handled by flex in body */

/* Hero Section - Full impact */
.hero {
    background: var(--primary-gradient);
    color: white;
    padding: clamp(5rem, 12vh, 10rem) 0;
    position: relative;
    overflow: hidden;
    min-height: clamp(500px, 70vh, 800px);
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent, var(--bg-white));
    z-index: 2;
    display: none;
}

/* Hero with Background Image */
.hero-with-image {
    background: none;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.92) 0%,
        rgba(118, 75, 162, 0.88) 50%,
        rgba(102, 126, 234, 0.85) 100%
    );
    z-index: 1;
}

.hero-with-image::before {
    z-index: 1;
}

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

.hero-content {
    max-width: 900px;
}

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

.hero h1 {
    color: white;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Hero Title Size Variants */
.hero h1.hero-title-large {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero h1.hero-title-medium {
    font-size: clamp(2rem, 4vw, 3rem);
}

.hero h1.hero-title-small {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.hero p, .hero-subtitle-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-subtitle-text p {
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: white;
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-dark);
    border-color: white;
}

.btn-accent {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Section Styles - More spacious */
.section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.section-lg {
    padding: clamp(4rem, 10vw, 8rem) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.8;
}

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

/* Section with full-width background */
.section-full {
    padding: var(--spacing-3xl) 0;
    width: 100%;
}

/* Cards & Grid - Modern fluid grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--grid-gap);
    margin-top: var(--spacing-xl);
    width: 100%;
}

/* Force specific column counts when needed */
.card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

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

@media (max-width: 1200px) {
    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .card-grid-4,
    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .card-grid-4,
    .card-grid-3,
    .card-grid-2 {
        grid-template-columns: 1fr;
    }
}

.card-grid-centered {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    gap: var(--grid-gap);
}

.card {
    background: var(--bg-white);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

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

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.card h3 {
    margin-bottom: var(--spacing-sm);
}

.card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: var(--grid-gap);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-lg);
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(180deg, transparent, var(--border-color), transparent);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Call to Action */
.cta {
    background: var(--accent-gradient);
    color: white;
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::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); }
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: white;
}

.cta p, .cta-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.cta-text p {
    margin-bottom: 0;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: clamp(3rem, 8vh, 5rem) 0 clamp(2rem, 5vh, 3rem);
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 25%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.5) 75%,
        transparent 100%
    );
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header-gradient {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
}

.page-header h1,
.page-header-gradient h1,
.page-header-gradient .breadcrumb a,
.page-header-gradient .breadcrumb span {
    color: white;
}

.breadcrumb,
.breadcrumbs {
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: var(--font-primary);
}

.breadcrumb a,
.breadcrumb a:visited,
.breadcrumb a:link,
.breadcrumb a:active,
.breadcrumbs a,
.breadcrumbs a:visited,
.breadcrumbs a:link,
.breadcrumbs a:active {
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.breadcrumb a:hover,
.breadcrumbs a:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
}

.breadcrumb span,
.breadcrumbs span {
    margin: 0 0.25rem;
    color: rgba(255, 255, 255, 0.6);
}

.page-header h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    margin-bottom: 0;
    color: white;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
    font-family: var(--font-primary);
}

.page-intro {
    font-size: 1.125rem;
    margin-top: var(--spacing-md);
    opacity: 0.95;
}

.page-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-3xl);
    line-height: 1.8;
}

.page-content h2 {
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
}

.page-content h3 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.page-content p {
    margin-bottom: var(--spacing-md);
}

.page-content ul,
.page-content ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-xl);
}

.page-content li {
    margin-bottom: var(--spacing-xs);
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    margin: var(--spacing-lg) 0;
}

/* News & Events Listing Pages */
.intro-text {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-3xl);
    line-height: 1.8;
}

.news-list, .events-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-3xl);
}

.news-item, .event-item {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.news-item:hover, .event-item:hover {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.event-item {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.event-item-date {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.event-date-month {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
}

.event-date-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-item-content {
    flex: 1;
}

.news-item-title, .event-item-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.news-item-title a, .event-item-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.news-item-title a:hover, .event-item-title a:hover {
    color: var(--primary-color);
}

.news-item-date {
    display: block;
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.event-item-meta {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.news-item-intro, .event-item-intro {
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.btn-read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-read-more:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.empty-state {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    color: var(--text-medium);
}

/* Individual Article/Event Pages */
.article-date {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-top: var(--spacing-sm);
}

.article-intro, .event-intro {
    font-size: 1.25rem;
    color: var(--text-medium);
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary-color);
}

.article-body, .event-body {
    margin-top: var(--spacing-xl);
}

.event-details-box {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-xl);
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.event-detail {
    padding: var(--spacing-sm) 0;
    color: var(--text-dark);
}

.event-detail:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.article-footer {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--bg-secondary);
}

.btn-back {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-secondary);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-4px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    opacity: 0.7;
}

.scroll-indicator span:nth-child(1) {
    animation: pulse-dot 1.5s infinite;
}

.scroll-indicator span:nth-child(2) {
    animation: pulse-dot 1.5s infinite 0.3s;
}

.scroll-indicator span:nth-child(3) {
    animation: pulse-dot 1.5s infinite 0.6s;
}

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

@keyframes pulse-dot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Latest Updates Section */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: var(--grid-gap);
    margin-top: var(--spacing-xl);
}

.update-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    position: relative;
}

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

.update-date {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.update-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.update-card p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.update-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.update-link:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Enhanced Card Hover Effects */
.card {
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

/* Section Decorative Dividers */
.section + .section::before {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
    top: calc(var(--spacing-3xl) * -1);
    margin-bottom: calc(var(--spacing-3xl) * -0.5);
}

/* Footer */
.site-footer {
    flex-shrink: 0;
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: var(--spacing-2xl) var(--spacing-3xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col {
    flex: 0 1 auto;
    min-width: 150px;
}

/* Logo column - fixed width on left */
.footer-col:first-child {
    flex: 0 0 280px;
    max-width: 300px;
    margin-right: auto;
}

/* Link columns - spread evenly in middle */
.footer-col:not(:first-child):not(:last-child) {
    flex: 0 1 auto;
    text-align: left;
}

/* Contact column - stays on right */
.footer-col:last-child {
    flex: 0 1 auto;
    margin-left: auto;
}

/* On smaller screens, stack columns */
@media (max-width: 768px) {
    .site-footer .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .site-footer .footer-col,
    .site-footer .footer-col:first-child,
    .site-footer .footer-col:last-child,
    .site-footer .footer-col:not(:first-child):not(:last-child) {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }

    .site-footer .footer-col ul {
        padding: 0;
        list-style: none;
    }

    .site-footer .footer-col ul li {
        text-align: center;
    }

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

    .site-footer .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

.footer-col h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.footer-col h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    margin-top: var(--spacing-md);
    font-style: italic;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

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

.social-links a svg {
    width: 20px;
    height: 20px;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.3);
}

/* ================================
   Responsive Design - Comprehensive Breakpoints
   ================================ */

/* Extra Large screens (1400px+) */
@media (min-width: 1400px) {
    :root {
        --container-padding: 3rem;
    }
}

/* Large screens (1200px - 1400px) */
@media (max-width: 1400px) {
    :root {
        --container-padding: clamp(1.5rem, 4vw, 2.5rem);
    }
}

/* Medium-large screens (1024px) - iPad landscape */
@media (max-width: 1024px) {
    .hero {
        min-height: clamp(400px, 60vh, 600px);
    }

    .hero-content {
        max-width: 700px;
    }
}

/* Tablet (968px) - Mobile menu kicks in */
@media (max-width: 968px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .site-main {
        padding-top: 65px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 0.25rem 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        gap: 0;
        z-index: 999;
        max-height: calc(100vh - 65px);
        overflow-y: auto;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
        color: var(--text-dark);
    }

    .nav-menu a:active {
        background-color: var(--bg-gray-light);
    }

    .nav-menu .btn-donate {
        margin: 0.4rem 1rem 0.5rem;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .stat-item::after {
        display: none;
    }
}

/* Small tablet / Large phone (768px) */
@media (max-width: 768px) {
    :root {
        --container-padding: 1.25rem;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-2xl) 0;
    }

    .page-header {
        padding: clamp(2rem, 6vh, 3rem) 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* Mobile (640px) */
@media (max-width: 640px) {
    :root {
        --container-padding: 1rem;
        --grid-gap: 1.25rem;
    }

    .logo-subtext {
        font-size: 0.55rem;
        white-space: pre-line;
    }

    .hero-content {
        max-width: 100%;
    }

    .section-title::after {
        width: 60px;
    }

    .error-code {
        font-size: 5rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* Extra small (480px) */
@media (max-width: 480px) {
    .stat-number {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.hidden {
    display: none;
}

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

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

/* Error Pages */
.error-page {
    padding: var(--spacing-3xl) 0;
    margin-bottom: var(--spacing-3xl);
}

.error-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-xl);
    animation: float 3s ease-in-out infinite;
}

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

.error-content h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.error-content > p {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-2xl);
}

.error-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-3xl);
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-white);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.error-help {
    text-align: left;
    background: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
}

.error-help h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.error-help p {
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
}

.error-help ul {
    list-style: none;
    padding: 0;
}

.error-help li {
    color: var(--text-medium);
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-lg);
    position: relative;
}

.error-help li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.error-help a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.error-help a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: var(--spacing-3xl);
}

.contact-form {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-errors {
    background: #fee;
    border-left: 4px solid #c00;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    border-radius: var(--border-radius);
}

.error-message {
    color: #c00;
    font-weight: 600;
    margin: 0;
}

.form-field {
    margin-bottom: var(--spacing-xl);
}

.form-field.has-error label {
    color: #c00;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.form-field .required {
    color: #c00;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field input[type="number"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
    border-color: #c00;
}

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

.form-field select {
    cursor: pointer;
}

.help-text {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-top: var(--spacing-xs);
    margin-bottom: 0;
}

.field-errors {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-xs);
    margin-bottom: 0;
}

.field-errors li {
    color: #c00;
    font-size: 0.875rem;
    padding: var(--spacing-xs) 0;
}

.form-actions {
    margin-top: var(--spacing-2xl);
}

.btn-submit {
    background: var(--primary-gradient);
    color: white;
    padding: var(--spacing-md) var(--spacing-2xl);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* reCAPTCHA styling */
.form-field .g-recaptcha {
    margin-top: var(--spacing-sm);
}

/* Thank You Page */
.thank-you-message {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 auto var(--spacing-xl);
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.thank-you-message h2 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.thank-you-text {
    color: var(--text-medium);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-2xl);
}

.thank-you-actions {
    margin-top: var(--spacing-2xl);
}.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Homepage Event Location */
.event-location-home {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
}

/* Homepage Empty State */
.empty-state-home {
    text-align: center;
    padding: var(--spacing-2xl);
    background: white;
    border-radius: var(--border-radius-lg);
    color: var(--text-medium);
}

/* Logo Images */
.logo-image {
    max-height: 60px;
    width: auto;
    display: block;
}

/* Header logo size variations */
.logo-small .logo-image {
    max-height: 40px;
}

.logo-medium .logo-image {
    max-height: 60px;
}

.logo-large .logo-image {
    max-height: 100px;
}

/* Logo-with-text size variations */
.logo-with-text.logo-small .logo-image {
    max-height: 40px;
    max-width: 50px;
}

.logo-with-text.logo-medium .logo-image {
    max-height: 55px;
    max-width: 65px;
}

.logo-with-text.logo-large .logo-image {
    max-height: 75px;
    max-width: 85px;
}

/* Adjust text sizes for logo size variations (without image) */
.logo-small .logo-text {
    font-size: 1.25rem;
}

.logo-small .logo-subtext {
    font-size: 0.55rem;
}

.logo-medium .logo-text {
    font-size: 1.5rem;
}

.logo-medium .logo-subtext {
    font-size: 0.65rem;
}

.logo-large .logo-text {
    font-size: 1.75rem;
}

.logo-large .logo-subtext {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Logo-with-text specific text sizing (logo image + text beside it) */
.logo-with-text.logo-small .logo-text {
    font-size: 1rem;
}

.logo-with-text.logo-small .logo-subtext {
    font-size: 0.5rem;
}

.logo-with-text.logo-medium .logo-text {
    font-size: 1.1rem;
}

.logo-with-text.logo-medium .logo-subtext {
    font-size: 0.55rem;
}

.logo-with-text.logo-large .logo-text {
    font-size: 1.35rem;
}

.logo-with-text.logo-large .logo-subtext {
    font-size: 0.65rem;
    line-height: 1.35;
}

.footer-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: var(--spacing-sm);
    filter: brightness(0) invert(1);
}

/* Footer logo size variations */
.footer-logo-small .footer-logo {
    max-height: 50px;
}

.footer-logo-medium .footer-logo {
    max-height: 80px;
}

.footer-logo-large .footer-logo {
    max-height: 100px;
}

/* ================================
   StreamField Block Styles
   ================================ */

/* Rich Text Block */
.block-rich-text {
    margin-bottom: var(--spacing-xl);
}

.block-rich-text p {
    margin-bottom: var(--spacing-md);
}

.block-rich-text h2,
.block-rich-text h3,
.block-rich-text h4 {
    margin-top: var(--spacing-xl);
}

/* Image Block */
.block-image {
    margin: var(--spacing-xl) 0;
}

.block-image .article-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.block-image figcaption {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-top: var(--spacing-sm);
    font-style: italic;
}

/* Image Gallery */
.block-gallery {
    margin: var(--spacing-xl) 0;
}

.gallery-title {
    margin-bottom: var(--spacing-md);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: var(--grid-gap);
}

.gallery-item {
    margin: 0;
}

.gallery-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item figcaption {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: var(--spacing-xs);
}

/* Pull Quote / Blockquote */
.block-quote {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-xl);
    background: var(--bg-gray-light);
    border-left: 4px solid;
    border-image: var(--primary-gradient) 1;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.block-quote p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.block-quote cite {
    display: block;
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 600;
    color: var(--text-medium);
}

.block-quote cite::before {
    content: "— ";
}

/* Video Embed */
.block-video {
    margin: var(--spacing-xl) 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-caption {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-top: var(--spacing-sm);
}

/* Call to Action Block */
.block-cta {
    text-align: center;
    margin: var(--spacing-xl) 0;
}

/* Related Links */
.block-related-links {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: var(--bg-gray-light);
    border-radius: var(--border-radius-lg);
}

.block-related-links h4 {
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.block-related-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.block-related-links li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.block-related-links li:last-child {
    border-bottom: none;
}

.block-related-links a {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.block-related-links a:hover {
    color: var(--primary-dark);
}

.block-related-links li p {
    font-size: 0.875rem;
    color: var(--text-medium);
    margin: var(--spacing-xs) 0 0;
}

/* ================================
   Article Styles
   ================================ */

/* Article Hero Image */
.article-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-top: -80px;
}

.article-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-overlay {
    position: relative;
    margin-top: -100px;
    padding-top: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.page-header-overlay h1,
.page-header-overlay .breadcrumbs,
.page-header-overlay .breadcrumbs a,
.page-header-overlay .article-date {
    color: white;
}

.page-header-overlay .breadcrumbs .separator {
    color: rgba(255,255,255,0.5);
}

/* Article Tags */
.article-tags {
    margin-top: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-gradient);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.tag-small {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--bg-gray);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-medium);
}

/* StreamField container */
.streamfield {
    max-width: 800px;
}

/* ================================
   Articles Grid (Index Pages)
   ================================ */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: var(--grid-gap);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

/* Center cards when there are few items */
.articles-grid-centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.articles-grid-centered .article-card {
    flex: 0 1 360px;
    max-width: 400px;
}

.article-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-card-image {
    display: block;
    overflow: hidden;
}

.article-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

.article-card-content {
    padding: var(--spacing-lg);
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.article-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius-sm);
    background-color: var(--primary-color);
    color: white;
}

.article-type-eventpage {
    background-color: #2563eb;
}

.article-type-newsarticlepage {
    background-color: #059669;
}

.article-type-spotlightarticlepage {
    background-color: #7c3aed;
}

.article-card-date {
    display: block;
    font-size: 0.875rem;
    color: var(--text-medium);
    font-weight: 500;
}

.article-card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.article-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.article-card-title a:hover {
    color: var(--primary-color);
}

.article-card-intro {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.article-card-location {
    color: var(--text-medium);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-xs);
    font-style: italic;
}

.article-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

/* ================================
   Homepage Custom Sections
   ================================ */

.section-primary {
    background: var(--primary-color);
    color: white;
}

.section-primary .section-title,
.section-primary .section-subtitle {
    color: white;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-content p {
    margin-bottom: var(--spacing-md);
}

/* Image + Text Section */
.image-text-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.image-text-section.image-left {
    direction: rtl;
}

.image-text-section.image-left > * {
    direction: ltr;
}

.image-text-content .section-title {
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.image-text-body {
    margin-bottom: var(--spacing-lg);
}

.image-text-body p {
    margin-bottom: var(--spacing-sm);
}

.image-text-image .rounded-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .image-text-section {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .image-text-section.image-left {
        direction: ltr;
    }

    .image-text-content .section-title {
        text-align: center;
    }

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

    .image-text-content .btn {
        display: block;
        text-align: center;
    }
}

/* ================================
   Featured Articles (Homepage)
   ================================ */

.featured-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: var(--grid-gap);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-3xl);
}

.featured-article-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.featured-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.featured-card-image {
    display: block;
    overflow: hidden;
}

.featured-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

.featured-article-card:hover .featured-thumbnail {
    transform: scale(1.05);
}

.featured-article-content {
    padding: var(--spacing-lg);
}

.article-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: var(--spacing-sm);
}

.featured-article-content h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.featured-article-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.featured-article-content h3 a:hover {
    color: var(--primary-color);
}

.featured-article-content p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

/* ================================
   Error & Maintenance Pages
   ================================ */

.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-md);
}

.error-content {
    max-width: 600px;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--spacing-md);
}

.error-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.error-message {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.error-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================
   Responsive Adjustments - Articles
   ================================ */

@media (max-width: 768px) {
    .article-hero {
        height: 250px;
    }
}
