/* Modern CSS Reset and Variables */
:root {
    /* Modern Color Palette */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Semantic Colors */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-50);
    --bg-light: #f9fbff;
    
    /* Modern Typography */
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    
    /* Modern Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Modern Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Modern Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Modern Transitions */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
}

/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper for sticky footer */
.main-content {
    flex: 1;
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    font-size: 16px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Modern Layout Components */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

.section-lg {
    padding: 5rem 0;
}

/* Modern Grid System */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* Modern Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #00000037;
    backdrop-filter: blur(5px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--gray-200);
    backdrop-filter: blur(20px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Modern Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
    transition: var(--transition-normal);
}

.header.scrolled .logo {
    color: var(--text-primary) !important;
}

.logo img {
    height: 70px;
    width: auto;
    transition: var(--transition-normal);
}

/* Modern Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    color: white;
    font-weight: 500;
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--text-primary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition-fast);
}

.header.scrolled .mobile-menu-toggle span {
    background: var(--text-primary);
}

/* Carousel Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        list-style: none;
        margin: 0;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        color: var(--text-primary) !important;
        padding: var(--space-md);
        border-radius: var(--radius-md);
        text-align: center;
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--secondary-color) !important;
        background: rgba(245, 158, 11, 0.1);
    }

    .nav-menu .btn {
        color: white !important;
        background: var(--primary-color);
        border: 1px solid var(--primary-color);
        text-align: center;
        justify-content: center;
    }

    .nav-menu .btn:hover {
        background: var(--primary-dark);
        color: white !important;
    }
}

/* Modern Hero Carousel */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0; /* Remove margin to make full screen */
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(258deg, rgb(0 0 0 / 0%), rgb(0 0 0 / 26%));
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 var(--space-lg);
    animation: slideUp 1s ease-out 0.3s both;
}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    color: white !important; /* Force white color */
    line-height: 1.1;
}

.carousel-description {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    color: white !important; /* Force white color */
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.carousel-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    background: rgba(255, 255, 255, 0.15);
    color: white !important; /* Force white color */
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    backdrop-filter: blur(15px);
    text-shadow: none;
}

.carousel-cta:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white !important; /* Force white color on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dot.active,
.carousel-dot:hover {
    background: white;
    transform: scale(1.2);
}

.carousel-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    z-index: 3;
}

.carousel-arrows:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: var(--space-xl);
}

.carousel-next {
    right: var(--space-xl);
}

/* Modern Cards */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: var(--gray-100);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Leader Profile Card Images - Portrait Style */
/* Leader Profile Card Images - Portrait Style */
.leader-profile-image {
    width: 100%;
    aspect-ratio: 3/4; /* Portrait aspect ratio */
    object-fit: cover;
    object-position: center top; /* Focus on face/upper body */
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: var(--transition-normal);
}
/* Circular leader images for featured sections */
.leader-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--primary-color);
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    transition: var(--transition-normal);
}

.leader-avatar.featured {
    width: 150px;
    height: 150px;
    border: 4px solid var(--gold-color);
}

/* Placeholder styling for consistent visual weight */
.leader-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--gray-400);
    font-size: 2.5rem;
    transition: var(--transition-normal);
}

.leader-placeholder.profile {
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.leader-placeholder.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--gray-300);
    font-size: 2rem;
}

.leader-placeholder.avatar.featured {
    width: 150px;
    height: 150px;
    border: 4px solid var(--gray-300);
    font-size: 2.5rem;
}



/* Hover effects for leader images */
.leader-profile-image:hover,
.leader-avatar:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.leader-placeholder:hover {
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    color: var(--gray-500);
}

/* Ensure consistent card heights */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-xl);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
     display: -webkit-box;
   -webkit-line-clamp: 3;
   -webkit-box-orient: vertical;
   overflow: hidden;
   text-overflow: ellipsis;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-text {
    flex: 1;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    overflow:hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* Responsive adjustments for leader images */
@media (max-width: 768px) {
    .leader-profile-image {
        aspect-ratio: 1/1; /* Square on mobile for better space usage */
    }

    .leader-placeholder.profile {
        aspect-ratio: 1/1;
    }

    .leader-avatar,
    .leader-placeholder.avatar {
        width: 100px;
        height: 100px;
        font-size: 1.8rem;
    }

    .leader-avatar.featured,
    .leader-placeholder.avatar.featured {
        width: 120px;
        height: 120px;
        font-size: 2.2rem;
    }

    .card-content {
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .leader-avatar,
    .leader-placeholder.avatar {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }

    .leader-avatar.featured,
    .leader-placeholder.avatar.featured {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }

    .card-content {
        padding: var(--space-md);
    }
}


/* Updated Leader Card Styles - ADD THIS SECTION */
.leader-card {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 400px;
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.leader-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.leader-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition-normal);
}

.leader-card:hover .leader-portrait {
    transform: scale(1.05);
}

.position-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    text-transform: capitalize;
}

.leader-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 24px 20px 20px;
    z-index: 2;
}

.leader-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: white !important;
}

.leader-rank {
    font-size: 0.95rem;
    color: var(--secondary-color) !important;
    font-weight: 600;
    margin-bottom: 0;
}

.leader-card .leader-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 3rem;
}

.grid-3 .leader-card,
.grid-4 .leader-card {
    height: 500px;
}

@media (max-width: 768px) {
    .leader-card {
        height: 350px;
    }
    
    .position-badge {
        top: 12px;
        right: 12px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .leader-info-overlay {
        padding: 20px 16px 16px;
    }
    
    .leader-name {
        font-size: 1.1rem;
    }
    
    .leader-rank {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .leader-card {
        height: 320px;
    }
    
    .position-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .leader-info-overlay {
        padding: 16px 12px 12px;
    }
    
    .leader-name {
        font-size: 1rem;
    }
    
    .leader-rank {
        font-size: 0.85rem;
    }
}
/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.875rem;
    line-height: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #d97706;
    transform: translateY(-1px);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
    color: #2563eb;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: var(--space-xl);
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-info h4 {
    color: white;
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

.gallery-info p {
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(255,255,255,0.2);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    backdrop-filter: blur(10px);
}

/* Modern Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Modern Timeline */
.timeline {
    position: relative;
    padding-left: var(--space-2xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: var(--space-lg);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-2xl);
    background: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-2xl) - 6px);
    top: var(--space-xl);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.timeline-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Modern Material Design Timeline */
.modern-timeline {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2rem 0;
}

.modern-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.modern-timeline .timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
}

.modern-timeline .timeline-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.modern-timeline .timeline-item:nth-child(odd) {
    flex-direction: row;
}

.modern-timeline .timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    margin: 0 2rem;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.timeline-icon:hover {
    transform: scale(1.1);
}

.modern-timeline .timeline-date {
    background: white;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    margin-bottom: 0;
}

.modern-timeline .timeline-content {
    flex: 1;
    max-width: 400px;
}

.timeline-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    transform: translateY(-50%);
}

.modern-timeline .timeline-item:nth-child(odd) .timeline-card::before {
    left: -30px;
    border-right-color: white;
}

.modern-timeline .timeline-item:nth-child(even) .timeline-card::before {
    right: -30px;
    border-left-color: white;
}

.timeline-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.timeline-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Value Cards */
.value-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.value-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.value-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

/* Modern Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--gray-100);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-section p {
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
    position: relative;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-400);
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--gray-300);
}

/* Social Media Links in Footer */
.footer-section .social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.footer-section .social-links a {
    color: var(--gray-400);
    font-size: 1.5rem;
    transition: var(--transition-fast);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
}

.footer-section .social-links a:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: var(--space-2xl) 0 var(--space-lg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul li a::before {
        display: none;
    }

    .footer-section ul li a:hover {
        transform: none;
    }

    .footer-section .social-links {
        justify-content: center;
    }

    /* Timeline Responsive */
    .modern-timeline::before {
        left: 30px;
    }

    .modern-timeline .timeline-item {
        flex-direction: column !important;
        text-align: center;
    }

    .modern-timeline .timeline-item:nth-child(even) {
        flex-direction: column !important;
    }

    .timeline-marker {
        margin: 0 0 1rem 0;
    }

    .modern-timeline .timeline-content {
        max-width: 100%;
    }

    .timeline-card::before {
        display: none;
    }

    .timeline-card {
        margin-left: 60px;
    }

    /* Value Cards Responsive */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem !important;
    }

    .value-card {
        padding: 2rem 1.5rem;
    }

    .value-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: var(--space-lg);
    }

    .footer-section .social-links a {
        font-size: 1.25rem;
        padding: var(--space-xs);
    }

    /* Timeline Mobile */
    .timeline-card {
        margin-left: 40px;
        padding: 1.5rem;
    }

    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .modern-timeline .timeline-date {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Value Cards Mobile */
    .value-card {
        padding: 1.5rem 1rem;
    }

    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .value-content h3 {
        font-size: 1.2rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-light { background-color: var(--bg-light); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

/* Responsive Design */
@media (max-width: 1024px) {
    .carousel-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline {
        padding-left: var(--space-lg);
    }
    
    .timeline::before {
        left: var(--space-sm);
    }
    
    .timeline-item::before {
        left: calc(-1 * var(--space-lg) - 6px);
    }
}

@media (max-width: 768px) {
    :root {
        --space-3xl: 2.5rem;
        --space-2xl: 2rem;
    }

    .hero {
        height: 100vh;
        min-height: 500px;
    }

    .carousel-title {
        font-size: 2rem;
        color: white !important;
    }

    .carousel-description {
        font-size: 1rem;
        color: white !important;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .carousel-arrows {
        display: none;
    }

    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: var(--space-sm);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-lg);
    }

    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero {
        height: 100vh;
        min-height: 450px;
    }

    .carousel-title {
        font-size: 1.75rem;
        color: white !important;
    }

    .carousel-description {
        font-size: 0.9rem;
        color: white !important;
    }

    .carousel-content {
        padding: 0 var(--space-md);
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* CKEditor Content Styling */
.content p, .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
    margin-bottom: 1rem;
}

.content ul, .content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.content strong {
    font-weight: 600;
}

.content em {
    font-style: italic;
}

/* Ensure white text in carousel and overlay sections */
.carousel-content *,
.carousel-title *,
.carousel-description *,
.hero .content *,
section[style*="color: white"] .content *,
section[style*="color: white"] h1,
section[style*="color: white"] h2,
section[style*="color: white"] h3,
section[style*="color: white"] h4,
section[style*="color: white"] h5,
section[style*="color: white"] h6,
section[style*="color: white"] p,
section[style*="color: white"] span,
section[style*="color: white"] div {
    color: white !important;
}

/* Page header white text */
.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6,
.page-header p,
.page-header span,
.page-header div,
.page-header .content * {
    color: white !important;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current,
.pagination .pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.2s ease;
    min-width: 40px;
    height: 40px;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.pagination .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.pagination .pagination-btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    min-width: auto;
    gap: 0.5rem;
}

.pagination .pagination-btn i {
    font-size: 0.8rem;
}

.pagination .pagination-ellipsis {
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: default;
}

.pagination .pagination-ellipsis:hover {
    background: none;
    transform: none;
    box-shadow: none;
}

.pagination-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
    }

    .pagination a,
    .pagination .current {
        min-width: 35px;
        height: 35px;
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }

    .pagination .pagination-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}
