/* ==========================================================================
   NGO FRONTEND UNIFIED CSS - ALL STYLES CONSOLIDATED

   TABLE OF CONTENTS:
   1. CSS Variables & Base Configuration
   2. Global Base Styles & Typography
   3. Layout & Container Styles
   4. Header & Navigation Styles
   5. Hero Section & Featured Content
   6. Activities & Service Cards
   7. News & Updates Section
   8. Gallery System (Photos/Videos/Lightbox)
   9. Contact & Forms
   10. Footer Styles
   11. Interactive Elements & Buttons
   12. Animations & Transitions
   13. Responsive Design & Media Queries
   14. Utility Classes & Helpers
   15. Browser Compatibility & Fixes

   ========================================================================== */

/* ==========================================================================
   CSS VARIABLES & BASE CONFIGURATION
   ========================================================================== */
:root {
    /* Primary Color Palette */
    --primary-color: #1e3a8a;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-color: #374151;
    --border-color: #e5e7eb;

    /* Design System Colors */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --color-primary-500: #3b82f6;

    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;

    /* Gallery Variables */
    --gallery-primary: #4f46e5;
    --gallery-primary-rgb: 79, 70, 229;
    --gallery-secondary: #64748b;
    --gallery-success: #10b981;
    --gallery-danger: #ef4444;
    --gallery-warning: #f59e0b;
    --gallery-info: #06b6d4;
    --gallery-light: #f8fafc;
    --gallery-dark: #1e293b;
    --gallery-border: #e2e8f0;
    --gallery-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --gallery-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --gallery-radius: 0.75rem;
    --gallery-radius-sm: 0.375rem;
    --gallery-radius-lg: 1rem;
    --gallery-transition: all 0.2s ease-in-out;
    --gallery-transition-slow: all 0.3s ease-in-out;

    /* Responsive Navigation Heights */
    --topbar-height-desktop: 40px;
    --navbar-height-desktop: 80px;
    --topbar-height-mobile: 0;
    --navbar-height-mobile: 60px;
    --header-total-desktop: 120px;
    --header-total-tablet: 100px;
    --header-total-mobile: 60px;

    /* Responsive Font Sizes */
    --nav-font-size-desktop: 0.95rem;
    --nav-font-size-tablet: 0.9rem;
    --nav-font-size-mobile: 1rem;

    /* Responsive Spacing - Reduced desktop padding */
    --nav-padding-desktop: 0.5rem 0.625rem;
    --nav-padding-tablet: 0.625rem 0.875rem;
    --nav-padding-mobile: 1rem;

}

/* ==========================================================================
   2. GLOBAL BASE STYLES & TYPOGRAPHY
   ========================================================================== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-total-desktop) + 20px);
}

/* Reduced motion preference support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Inter', 'Noto Serif Bengali', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', 'Noto Serif Bengali', sans-serif;
    font-weight: 600;
}

/* Desktop: Main page wrapper spacing using CSS variables */
main>section.page-wrapper {
    margin-top: calc(var(--header-total-desktop) + 10px);
    /* Add 10px buffer */
    padding-top: 10px;
    /* Additional padding for safety */
}

body.has-procurement-ticker main>section.page-wrapper {
    margin-top: calc(var(--header-total-desktop) + 40px);
}

body.header-scrolled main>section.page-wrapper {
    margin-top: calc(var(--navbar-height-desktop) + 30px);
}

body.header-scrolled.has-procurement-ticker main>section.page-wrapper {
    margin-top: calc(var(--navbar-height-desktop) + 40px + 30px);
}

/* Large Desktop */
@media (min-width: 1200px) {
    main>section.page-wrapper {
        margin-top: calc(var(--header-total-desktop) + 10px);
        padding-top: 10px;
    }

    body.has-procurement-ticker main>section.page-wrapper {
        margin-top: calc(var(--header-total-desktop) + 40px);
    }

    body.header-scrolled main>section.page-wrapper {
        margin-top: calc(var(--navbar-height-desktop) + 30px);
    }

    body.header-scrolled.has-procurement-ticker main>section.page-wrapper {
        margin-top: calc(var(--navbar-height-desktop) + 40px + 30px);
    }
}

/* Desktop */
@media (min-width: 992px) and (max-width: 1199px) {
    main>section.page-wrapper {
        margin-top: calc(var(--header-total-desktop) + 10px);
        padding-top: 10px;
    }

    body.has-procurement-ticker main>section.page-wrapper {
        margin-top: calc(var(--header-total-desktop) + 40px);
    }

    body.header-scrolled main>section.page-wrapper {
        margin-top: calc(var(--navbar-height-desktop) + 30px);
    }

    body.header-scrolled.has-procurement-ticker main>section.page-wrapper {
        margin-top: calc(var(--navbar-height-desktop) + 40px + 30px);
    }
}

/* Small Desktop/Large Tablet */
@media (min-width: 769px) and (max-width: 991px) {
    main>section.page-wrapper {
        margin-top: calc(var(--header-total-tablet) + 15px);
        /* Extra buffer for tablet */
        padding-top: 10px;
    }

    body.has-procurement-ticker main>section.page-wrapper {
        margin-top: calc(var(--header-total-tablet) + 40px + 15px);
    }

    html {
        scroll-padding-top: calc(var(--header-total-tablet) + 20px);
    }
}

/* ==========================================================================
   4. HEADER & NAVIGATION STYLES
   ========================================================================== */
/* ==========================================================================
   4. HEADER & NAVIGATION STYLES
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info i {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--dark-color);
    transform: translateY(-2px);
    background: rgba(2, 52, 190, 0.1);
    box-shadow: 0 2px 8px rgba(2, 52, 190, 0.342);
}

/* Main Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
}

/* Main Header Scroll Effects */
.main-header.scrolled .top-bar {
    display: none;
}

.main-header.scrolled .navbar {
    padding: 0.75rem 0;
}

.main-header.scrolled .brand-title {
    font-size: 1.25rem;
}

.main-header.scrolled .brand-subtitle {
    display: none;
}

.main-header.scrolled .logo-img {
    height: 32px !important;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.brand-text {
    line-height: 1.2;
}

.brand-title {
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0;
}

.brand-subtitle {
    font-size: 0.4rem;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
}

.logo-img {
    max-height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}


/* Responsive adjustments for desktop nav */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 1.2rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        padding: 13px 30px;
        font-size: 1rem;
    }

    .card-custom .card-body {
        padding: 1.75rem;
    }

    .counter-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .dropdown-menu {
        min-width: 100px;
        z-index: 1050;
        position: relative;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
    }

    .menu-separator {
        display: none;
    }

    .dropdown-indicator {
        display: none;
    }
}


/* ==========================================================================
       11. INTERACTIVE ELEMENTS & BUTTONS
       ========================================================================== */

/* Buttons */
.btn-primary-custom {
    background: var(--secondary-color);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary-custom:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    color: white;
}

.btn-outline-custom {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Red Donate Button Style */
.btn-donate-custom {
    background: #dc2626;
    border: 2px solid #dc2626;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-donate-custom:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    color: white;
}

/* Red Outline Donate Button (alternative) */
.btn-donate-outline {
    border: 2px solid #dc2626;
    background: transparent;
    color: #dc2626;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-donate-outline:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

/* Cards */
.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Activity Cards Base Styles */

.card-custom .btn,
.activity-card .btn {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
}

/* Activities Section Specific */
.activities-section .card-title {
    padding: 0 1rem !important;
}

.activities-section .card-text {
    padding: 0 1rem !important;
}

.activities-section .btn {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
}

/* ==========================================================================
   6. ACTIVITIES & SERVICE CARDS
   ========================================================================== */

/* Activities Section Base Styles */
.activities-section {
    padding: 80px 0;
}

.activities-section .section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.activities-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.activities-section .section-header .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Activity cards styling */
.activity-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.activity-card:hover::before {
    transform: scaleX(1);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.activity-card .card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.activity-card .card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    padding: 0 1rem;
}

.activity-card .card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex: 1;
    padding: 0 1rem;
}

.activity-card .btn {
    margin-top: auto;
    margin-left: 1rem;
    margin-right: 1rem;
}

/* Responsive button centering for mobile/tablet */
@media (max-width: 991px) {
    .activity-card .btn {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block;
        width: auto;
        max-width: 200px;
    }
}

.activity-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-card:hover .card-img-top {
    transform: scale(1.05);
}

/* ==========================================================================
   7. NEWS & UPDATES SECTION
   ========================================================================== */

/* Latest News & Updates Section - Responsive Design */
.news-section {
    padding: 80px 0;
}

.news-section .section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.news-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.news-section .section-header .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive News Row Spacing */
/* Desktop - 2rem gaps */
.news-row {
    margin-left: -1rem;
    margin-right: -1rem;
}

.news-row .col-lg-4,
.news-row .col-md-6 {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 2rem !important;
}

/* News Card - Consistent sizing */
.news-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover {
    transform: translate3d(0, -10px, 0);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    z-index: 10;
    isolation: isolate;
}

/* News Image */
.news-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

/* News Body */
.news-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    margin-bottom: 1rem;
}

.news-category .badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.12rem;
    /* Ensure consistent height for 2 lines */
}

/* News Excerpt - Limited to 2 lines */
.news-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.85rem;
    /* Ensure consistent height for 2 lines */
}

.news-date {
    margin-bottom: 1rem;
}

.news-date small {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
}

.news-footer {
    margin-top: auto;
}

/* Remove bottom margin from last row */
.news-row>div:nth-last-child(-n+3) {
    margin-bottom: 0 !important;
}

/* Tablet - 1.5rem gaps */
@media (max-width: 992px) {
    .news-section {
        padding: 60px 0;
    }

    .news-section .section-header {
        margin-bottom: 3rem;
    }

    .news-section .section-header h2 {
        font-size: 2rem;
    }

    .news-section .section-header .lead {
        font-size: 1.1rem;
    }

    .news-row {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    .news-row .col-lg-4,
    .news-row .col-md-6 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        margin-bottom: 1.5rem !important;
    }

    .news-image-container {
        height: 180px;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-excerpt {
        font-size: 0.9rem;
    }

    .news-date small {
        font-size: 0.75rem;
    }

    /* Remove bottom margin from last 2 cards on tablet */
    .news-row>div:nth-last-child(-n+2) {
        margin-bottom: 0 !important;
    }
}

/* Mobile - 1rem gaps */
@media (max-width: 768px) {
    .news-section {
        padding: 50px 0;
    }

    .news-section .section-header h2 {
        font-size: 1.8rem;
    }

    .news-section .section-header .lead {
        font-size: 1rem;
    }

    .news-row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .news-row .col-lg-4,
    .news-row .col-md-6 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 1rem !important;
    }

    .news-image-container {
        height: 160px;
    }

    .news-body {
        padding: 1rem;
    }

    .news-title {
        font-size: 1rem;
        min-height: 2.6rem;
    }

    .news-excerpt {
        font-size: 0.85rem;
        min-height: 2.55rem;
    }

    .news-date small {
        font-size: 0.7rem;
    }

    /* Remove bottom margin from last card on mobile */
    .news-row>div:last-child {
        margin-bottom: 0 !important;
    }
}

/* Small Mobile - 0.75rem gaps */
@media (max-width: 576px) {
    .news-section {
        padding: 40px 0;
    }

    .news-section .section-header h2 {
        font-size: 1.6rem;
    }

    .news-section .section-header .lead {
        font-size: 0.95rem;
    }

    .news-row {
        margin-left: -0.375rem;
        margin-right: -0.375rem;
    }

    .news-row .col-lg-4,
    .news-row .col-md-6 {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
        margin-bottom: 0.75rem !important;
    }

    .news-image-container {
        height: 140px;
    }

    .news-body {
        padding: 0.8rem;
    }

    .news-title {
        font-size: 0.95rem;
        min-height: 2.47rem;
    }

    .news-excerpt {
        font-size: 0.8rem;
        min-height: 2.4rem;
    }

    .news-category .badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .news-date small {
        font-size: 0.65rem;
    }
}

/* Read More Button for News Cards */
.btn-news-read-more {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    margin-top: auto;
}

.btn-news-read-more:hover {
    background: linear-gradient(135deg, #1e40af 0%, var(--primary-color) 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
    text-decoration: none;
}

.btn-news-read-more:active {
    transform: translateY(0);
}

.btn-news-read-more i {
    transition: transform 0.3s ease;
}

.btn-news-read-more:hover i {
    transform: translateX(3px);
}

/* Button Animation Effect */
.btn-news-read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-news-read-more:hover::before {
    left: 100%;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

/* Stats Counter */
.stats-counter {
    text-align: center;
    padding: 2rem 0;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* ==========================================================================
       12. ANIMATIONS & TRANSITIONS
       ========================================================================== */

/* Animations */
@keyframes fadeInUp {
    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(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}



/* ==========================================================================
   13. RESPONSIVE DESIGN & MEDIA QUERIES
   ========================================================================== */

@media (max-width: 768px) {

    /* Tablet: Use CSS variables for consistent spacing */
    main>section.page-wrapper {
        margin-top: calc(var(--header-total-tablet) + 15px);
        /* Tablet header + buffer */
        padding-top: 15px;
        /* Extra padding for tablet */
    }

    body.has-procurement-ticker main>section.page-wrapper {
        margin-top: calc(var(--header-total-tablet) + 40px);
    }

    html {
        scroll-padding-top: calc(var(--header-total-tablet) + 20px);
    }
}

.counter-number {
    font-size: 2rem;
}

.counter-label {
    font-size: 0.8rem;
}

.card-custom {
    margin-bottom: 1.5rem;
}

.card-custom .card-body {
    padding: 1.5rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

.card-img-top {
    height: 180px;
}

/* Stack CTA section on mobile */
.cta-section .row {
    text-align: center;
}

.cta-section .col-lg-8,
.cta-section .col-lg-4 {
    margin-bottom: 2rem;
}

/* Adjust button sizes for mobile */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Program cards responsive */
.row.g-4>.col-lg-3 {
    margin-bottom: 2rem;
}

/* Original impact stories fallback */
.row.g-4>.col-lg-4 {
    margin-bottom: 2rem;
}

/* Newsletter responsive */
.input-group {
    flex-direction: column;
}

.input-group .btn {
    margin-top: 0.5rem;
    width: 100%;
}

/* Section headings */
h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1rem;
}

@media (max-width: 576px) {

    /* Mobile: Use CSS variables for consistent spacing */
    main>section.page-wrapper {
        margin-top: calc(var(--header-total-mobile) + 20px);
        /* Mobile header + buffer */
        padding-top: 15px;
        /* Extra padding for mobile */
    }

    body.has-procurement-ticker main>section.page-wrapper {
        margin-top: calc(var(--header-total-mobile) + 36px);
    }

    html {
        scroll-padding-top: calc(var(--header-total-mobile) + 25px);
    }

    .mobile-menu {
        width: 100%;
        left: -100%;
    }

    .mobile-menu.active {
        left: 0;
    }

    .mobile-menu-header {
        padding: 1rem;
    }

    .mobile-menu-brand {
        font-size: 1.1rem;
    }

    .mobile-nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .mobile-submenu-link {
        padding: 0.625rem 1.5rem;
        font-size: 0.85rem;
    }

    /* Top bar responsive */
    .top-bar {
        font-size: 0.8rem;
        padding: 6px 0;
    }

    .contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .social-links {
        justify-content: flex-start;
        margin-top: 8px;
    }

    /* Hide top-bar on mobile */
    .top-bar {
        display: none !important;
    }

    /* Header responsive */
    .navbar {
        padding: 0.75rem 0;
    }

    /* Device-specific: Hide top-bar on certain tablets */
    /* iPad Mini (7.9") and iPad Air Portrait/Landscape */
    @media only screen and (min-device-width: 768px) and (max-device-width: 834px) and (-webkit-min-device-pixel-ratio: 2) {
        .top-bar {
            display: none !important;
        }
    }

    /* Surface Pro 7 (12.3") */
    @media only screen and (min-device-width: 912px) and (max-device-width: 1368px) and (-webkit-min-device-pixel-ratio: 1.5),
    only screen and (min-device-width: 912px) and (max-device-width: 1368px) {
        .top-bar {
            display: none !important;
        }
    }

    /* ASUS Zenbook Fold (approx 1920x1280 folded / 2560x1920 unfolded) */
    @media only screen and (min-width: 1280px) and (max-width: 1920px) and (orientation: landscape) {
        .top-bar {
            display: none !important;
        }
    }

    /* Additional iPad detection (including newer models) */
    @media only screen and (device-width: 768px) and (device-height: 1024px),
    only screen and (device-width: 810px) and (device-height: 1080px),
    only screen and (device-width: 820px) and (device-height: 1180px) {
        .top-bar {
            display: none !important;
        }
    }

    /* Surface Pro series detection (various sizes) */
    @media only screen and (min-width: 1366px) and (max-width: 1440px) and (min-height: 768px) and (max-height: 1024px) {
        .top-bar {
            display: none !important;
        }
    }

    /* General tablet range that covers most 2-in-1 devices */
    @media only screen and (min-width: 768px) and (max-width: 1200px) and (hover: none) and (pointer: coarse) {
        .top-bar {
            display: none !important;
        }

        /* Adjust page margins for missing topbar */
        main>section.page-wrapper {
            margin-top: calc(var(--navbar-height-desktop) + 20px) !important;
            padding-top: 15px;
        }
    }

    /* Specific adjustments for iPad devices */
    @media only screen and (min-device-width: 768px) and (max-device-width: 834px) and (-webkit-min-device-pixel-ratio: 2),
    only screen and (device-width: 768px) and (device-height: 1024px),
    only screen and (device-width: 810px) and (device-height: 1080px),
    only screen and (device-width: 820px) and (device-height: 1180px) {
        main>section.page-wrapper {
            margin-top: calc(var(--navbar-height-desktop) + 15px) !important;
            padding-top: 10px;
        }
    }

    /* Specific adjustments for Surface Pro devices */
    @media only screen and (min-device-width: 912px) and (max-device-width: 1440px) and (min-height: 768px) and (max-height: 1024px) {
        main>section.page-wrapper {
            margin-top: calc(var(--navbar-height-desktop) + 10px) !important;
            padding-top: 10px;
        }
    }

    .brand-title {
        font-size: 0.85rem;
    }

    .brand-subtitle {
        font-size: 0.4rem;
    }

    .logo-img {
        height: 32px !important;
    }

    .counter-number {
        font-size: 1.8rem;
    }

    .card-custom .card-body {
        padding: 1.5rem;
    }

    /* Stack program cards vertically on very small screens */
    .row.g-4>.col-lg-3 {
        margin-bottom: 1.5rem;
    }

    /* ==========================================================================
       10. FOOTER STYLES
       ========================================================================== */

    /* Footer responsive */
    .footer .row>div {
        margin-bottom: 2rem;
    }

    .footer .social-links {
        text-align: left;
        margin-bottom: 1rem;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Footer base refinements */

    .footer p,
    .footer a,
    .footer li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Newsletter input/button alignment */
    .footer .input-group {
        display: flex;
        align-items: stretch;
        width: 100%;
    }

    .footer .input-group .form-control {
        border-radius: 30px 0 0 30px;
        padding: 0.75rem 1rem;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        background: rgba(255, 255, 255, 0.25) !important;
        color: white !important;
        min-height: 48px;
        font-size: 1rem;
        flex: 1;
        transition: all 0.3s ease;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2) !important;
    }

    .footer .input-group .form-control::placeholder {
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 400;
        opacity: 1 !important;
    }

    .footer .input-group .form-control:focus {
        background: rgba(255, 255, 255, 0.35) !important;
        border-color: var(--secondary-color) !important;
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.5) !important;
        outline: none !important;
        color: white !important;
    }

    .footer .input-group .form-control:hover {
        background: rgba(255, 255, 255, 0.3) !important;
        border-color: rgba(255, 255, 255, 0.6) !important;
    }

    .footer .input-group .btn {
        border-radius: 0 30px 30px 0;
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        flex-shrink: 0;
    }

    /* Small devices (≤576px) */
    @media (max-width: 576px) {
        .footer {
            padding: 40px 0 20px;
        }

        /* Center social links row on mobile */
        .footer .social-links {
            display: flex;
            align-items: center;
            justify-content: center !important;
            gap: 10px;
            width: 100%;
        }

        .footer .social-links a {
            width: 44px;
            height: 44px;
            font-size: 1.05rem;
        }

        .footer h5 {
            font-size: 1.1rem;
            margin-bottom: 1rem;
        }

        .footer p,
        .footer a,
        .footer li {
            font-size: 0.92rem;
            line-height: 1.6;
        }

        .footer .row>div {
            margin-bottom: 1.25rem;
        }

        /* Newsletter stacks vertically on very small screens */
        .footer .input-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            width: 100%;
        }

        .footer .input-group .form-control,
        .footer .input-group .btn {
            border-radius: 30px !important;
            width: 100%;
        }

        /* Fix input visibility clipping on some devices */
        .footer .input-group .form-control {
            min-height: 50px;
            font-size: 16px;
            /* Prevent iOS zoom */
            padding: 0.875rem 1rem;
            border: 2px solid rgba(255, 255, 255, 0.4) !important;
            background: rgba(255, 255, 255, 0.2) !important;
            color: white !important;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .footer .input-group .form-control::placeholder {
            color: rgba(255, 255, 255, 0.9) !important;
            font-size: 16px;
        }

        .footer .input-group .form-control:focus {
            background: rgba(255, 255, 255, 0.3) !important;
            border-color: var(--secondary-color) !important;
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4) !important;
        }

        .footer .input-group .btn {
            min-height: 50px;
            font-size: 16px;
            padding: 0.875rem 1.5rem;
        }

        .footer .social-links {
            justify-content: flex-start;
        }
    }

    /* Medium devices (577px–768px) */
    @media (min-width: 577px) and (max-width: 768px) {
        .footer {
            padding: 50px 0 25px;
        }

        .footer h5 {
            font-size: 1.15rem;
        }

        .footer p,
        .footer a,
        .footer li {
            font-size: 0.95rem;
        }

        .footer .input-group .form-control {
            border-radius: 30px 0 0 30px;
        }

        .footer .input-group .btn {
            border-radius: 0 30px 30px 0;
        }

        .footer .social-links {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
        }

        .footer .social-links a {
            width: 36px;
            height: 36px;
            font-size: 0.95rem;
        }

        /* Fix email input for medium devices */
        .footer .input-group .form-control {
            min-height: 46px;
            font-size: 16px;
            /* Prevent zoom on all devices */
            padding: 0.8rem 1rem;
            border: 2px solid rgba(255, 255, 255, 0.35) !important;
            background: rgba(255, 255, 255, 0.18) !important;
            color: white !important;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
        }

        .footer .input-group .form-control::placeholder {
            color: rgba(255, 255, 255, 0.85) !important;
        }

        .footer .input-group .form-control:focus {
            background: rgba(255, 255, 255, 0.28) !important;
            border-color: var(--secondary-color) !important;
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35) !important;
        }
    }

    /* Tablets (769px–991px) */
    @media (min-width: 769px) and (max-width: 991px) {
        .footer {
            padding: 55px 0 28px;
        }

        .footer h5 {
            font-size: 1.2rem;
        }

        .footer p,
        .footer a,
        .footer li {
            font-size: 0.97rem;
        }

        .footer .social-links {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
        }

        .footer .social-links a {
            width: 38px;
            height: 38px;
            font-size: 1rem;
        }

        /* Tablet email input improvements */
        .footer .input-group .form-control {
            min-height: 48px;
            font-size: 16px;
            /* Consistent across devices */
            padding: 0.85rem 1rem;
            border: 2px solid rgba(255, 255, 255, 0.32) !important;
            background: rgba(255, 255, 255, 0.16) !important;
            color: white !important;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
        }

        .footer .input-group .form-control::placeholder {
            color: rgba(255, 255, 255, 0.87) !important;
            font-size: 16px;
        }

        .footer .input-group .form-control:focus {
            background: rgba(255, 255, 255, 0.26) !important;
            border-color: var(--secondary-color) !important;
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.38) !important;
        }
    }

    /* Desktops (≥992px) */
    @media (min-width: 992px) {
        .footer h5 {
            font-size: 1.25rem;
        }

        .footer p,
        .footer a,
        .footer li {
            font-size: 1rem;
        }

        /* Social icons on left side for desktop */
        .footer .social-links {
            display: flex;
            justify-content: flex-start !important;
            align-items: center;
            gap: 12px;
            margin: 1rem 0;
        }

        /* Email field inline layout for desktop */
        .footer .input-group {
            display: flex !important;
            flex-direction: row !important;
            align-items: stretch;
            width: 100%;
            gap: 0;
        }

        .footer .input-group .form-control {
            border-radius: 30px 0 0 30px !important;
        }

        .footer .input-group .btn {
            border-radius: 0 30px 30px 0 !important;
        }

        /* Override mobile styles for desktop */
        .footer .col-lg-4:first-child {
            text-align: left !important;
        }

        .footer .col-lg-2 {
            text-align: left !important;
        }

        .footer .col-lg-4:last-child {
            text-align: left !important;
        }

        /* Desktop email input visibility fix */
        .footer .input-group .form-control {
            min-height: 48px;
            font-size: 1rem;
            padding: 0.75rem 1rem;
            border: 2px solid rgba(255, 255, 255, 0.4) !important;
            background: rgba(255, 255, 255, 0.2) !important;
            color: white !important;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
        }

        .footer .input-group .form-control::placeholder {
            color: rgba(255, 255, 255, 0.85) !important;
            font-weight: 400;
        }

        .footer .input-group .form-control:focus {
            background: rgba(255, 255, 255, 0.3) !important;
            border-color: var(--secondary-color) !important;
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4) !important;
            outline: none;
        }

        .footer .input-group .form-control:hover {
            background: rgba(255, 255, 255, 0.25) !important;
            border-color: rgba(255, 255, 255, 0.5) !important;
        }

        /* Desktop copyright section centering */
        .footer .row:last-child {
            text-align: center;
        }

        .footer .row:last-child .col-md-6 {
            text-align: center !important;
        }

        .footer .text-md-end {
            text-align: center !important;
        }
    }

    /* ==========================================================================
       DESKTOP FOOTER LAYOUT FIXES - HIGH SPECIFICITY
       ========================================================================== */

    /* Desktop layout fixes with maximum specificity */
    @media (min-width: 992px) {

        /* Force inline email layout on desktop */
        .footer .row .col-lg-4 .input-group {
            display: flex !important;
            flex-direction: row !important;
            align-items: stretch !important;
            width: 100% !important;
            gap: 0 !important;
        }

        .footer .row .col-lg-4 .input-group .form-control {
            border-radius: 30px 0 0 30px !important;
            flex: 1 !important;
        }

        .footer .row .col-lg-4 .input-group .btn {
            border-radius: 0 30px 30px 0 !important;
            flex-shrink: 0 !important;
        }

        /* Force social links to left on desktop */
        .footer .row .col-lg-4:first-child .social-links {
            display: flex !important;
            justify-content: flex-start !important;
            align-items: center !important;
            gap: 12px !important;
            margin: 1rem 0 !important;
            text-align: left !important;
        }

        /* Force copyright section to center on desktop */
        .footer .row.align-items-center {
            text-align: center !important;
        }

        .footer .row.align-items-center .col-md-6 {
            text-align: center !important;
        }

        .footer .row.align-items-center .col-md-6.text-md-end {
            text-align: center !important;
        }

        /* Override any mobile centering for main content */
        .footer .row .col-lg-4:first-child {
            text-align: left !important;
        }

        .footer .row .col-lg-2 {
            text-align: left !important;
        }

        .footer .row .col-lg-4:last-child {
            text-align: left !important;
        }
    }

    /* ==========================================================================
       ADVANCED FOOTER RESPONSIVE ENHANCEMENTS
       ========================================================================== */

    /* Footer column layout improvements */
    @media (max-width: 767px) {
        .footer .col-lg-4:first-child {
            text-align: center;
            margin-bottom: 2rem;
        }

        .footer .col-lg-2 {
            text-align: center;
            margin-bottom: 1.5rem;
        }

        .footer .col-lg-4:last-child {
            text-align: center;
        }

        .footer .social-links {
            display: flex;
            align-items: center;
            justify-content: center !important;
            gap: 12px;
            margin: 1rem auto;
            width: 100%;
        }

        .footer .social-links a {
            width: 42px;
            height: 42px;
            font-size: 1rem;
        }

        .footer hr {
            margin: 2rem 0 1.5rem;
        }

        .footer .row:last-child {
            text-align: center;
        }

        .footer .row:last-child .col-md-6 {
            margin-bottom: 1rem;
        }
    }

    /* Footer copyright section responsive */
    @media (max-width: 575px) {
        .footer .row:last-child .col-md-6:last-child {
            text-align: center !important;
        }

        .footer .text-md-end {
            text-align: center !important;
        }
    }

    /* Enhanced social links for touch devices */
    .footer .social-links a {
        position: relative;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .footer .social-links a::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.3s ease;
    }

    .footer .social-links a:hover::before {
        width: 100%;
        height: 100%;
    }

    /* Touch device optimizations */
    @media (hover: none) and (pointer: coarse) {
        .footer .social-links {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            width: 100%;
        }

        .footer .social-links a {
            min-width: 44px;
            min-height: 44px;
            margin: 0;
        }

        .footer .footer-links a {
            min-height: 44px;
            display: flex;
            align-items: center;
            padding: 8px 0;
        }

        /* Touch-friendly input improvements */
        .footer .input-group .form-control {
            min-height: 50px;
            font-size: 16px;
            /* Prevents zoom on iOS */
            padding: 0.9rem 1rem;
            border: 2px solid rgba(255, 255, 255, 0.45) !important;
            background: rgba(255, 255, 255, 0.22) !important;
            color: white !important;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .footer .input-group .form-control::placeholder {
            color: rgba(255, 255, 255, 0.9) !important;
            font-size: 16px;
            font-weight: 400;
        }

        .footer .input-group .form-control:focus {
            background: rgba(255, 255, 255, 0.32) !important;
            border-color: var(--secondary-color) !important;
            box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.4) !important;
            outline: none;
        }

        .footer .input-group .btn {
            min-height: 50px;
            font-size: 16px;
            padding: 0.9rem 1.5rem;
        }
    }

    /* Large desktop enhancements (≥1200px) */
    @media (min-width: 1200px) {
        .footer {
            padding: 70px 0 35px;
        }

        .footer h5 {
            font-size: 1.3rem;
            margin-bottom: 1.75rem;
        }

        .footer p,
        .footer a,
        .footer li {
            font-size: 1.05rem;
        }

        .footer .social-links {
            display: flex;
            justify-content: flex-start !important;
            align-items: center;
            gap: 15px;
            margin: 1.2rem 0;
        }

        .footer .social-links a {
            width: 42px;
            height: 42px;
            font-size: 1.1rem;
            margin: 0;
        }

        /* Large desktop email inline layout */
        .footer .input-group {
            display: flex !important;
            flex-direction: row !important;
            align-items: stretch;
            width: 100%;
            gap: 0;
        }

        .footer .input-group .form-control {
            border-radius: 30px 0 0 30px !important;
        }

        .footer .input-group .btn {
            border-radius: 0 30px 30px 0 !important;
        }

        /* Large desktop email input enhancement */
        .footer .input-group .form-control {
            min-height: 50px;
            font-size: 1.05rem;
            padding: 0.875rem 1.25rem;
            border: 2px solid rgba(255, 255, 255, 0.45) !important;
            background: rgba(255, 255, 255, 0.25) !important;
            color: white !important;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }

        .footer .input-group .form-control::placeholder {
            color: rgba(255, 255, 255, 0.9) !important;
            font-weight: 400;
        }

        .footer .input-group .form-control:focus {
            background: rgba(255, 255, 255, 0.35) !important;
            border-color: var(--secondary-color) !important;
            box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.5) !important;
            outline: none;
        }

        .footer .input-group .form-control:hover {
            background: rgba(255, 255, 255, 0.3) !important;
            border-color: rgba(255, 255, 255, 0.55) !important;
        }

        /* Large desktop copyright centering */
        .footer .row:last-child {
            text-align: center;
        }

        .footer .row:last-child .col-md-6 {
            text-align: center !important;
        }

        .footer .text-md-end {
            text-align: center !important;
        }
    }

    /* Ultra-wide screen optimizations (≥1400px) */
    @media (min-width: 1400px) {
        .footer {
            padding: 80px 0 40px;
        }

        .footer h5 {
            font-size: 1.4rem;
            margin-bottom: 2rem;
        }

        .footer p,
        .footer a,
        .footer li {
            font-size: 1.1rem;
            line-height: 1.7;
        }

        /* Ultra-wide desktop email input styling */
        .footer .input-group .form-control {
            min-height: 52px;
            font-size: 1.1rem;
            padding: 1rem 1.5rem;
            border: 3px solid rgba(255, 255, 255, 0.5) !important;
            background: rgba(255, 255, 255, 0.3) !important;
            color: white !important;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
            transition: all 0.3s ease;
        }

        .footer .input-group .form-control::placeholder {
            color: rgba(255, 255, 255, 0.95) !important;
            font-weight: 400;
        }

        .footer .input-group .form-control:focus {
            background: rgba(255, 255, 255, 0.4) !important;
            border-color: var(--secondary-color) !important;
            box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.6) !important;
            outline: none;
        }

        .footer .input-group .form-control:hover {
            background: rgba(255, 255, 255, 0.35) !important;
            border-color: rgba(255, 255, 255, 0.6) !important;
        }

        /* Ultra-wide desktop layout fixes */
        .footer .social-links {
            display: flex;
            justify-content: flex-start !important;
            align-items: center;
            gap: 18px;
            margin: 1.5rem 0;
        }

        .footer .input-group {
            display: flex !important;
            flex-direction: row !important;
            align-items: stretch;
            width: 100%;
            gap: 0;
        }

        .footer .input-group .form-control {
            border-radius: 30px 0 0 30px !important;
        }

        .footer .input-group .btn {
            border-radius: 0 30px 30px 0 !important;
        }

        /* Ultra-wide copyright centering */
        .footer .row:last-child {
            text-align: center;
        }

        .footer .row:last-child .col-md-6 {
            text-align: center !important;
        }

        .footer .text-md-end {
            text-align: center !important;
        }
    }

    /* Accessibility improvements */
    .footer a:focus,
    .footer button:focus,
    .footer input:focus {
        outline: 2px solid var(--secondary-color);
        outline-offset: 2px;
        border-radius: 4px;
    }

    /* Print styles for footer */
    @media print {
        .footer {
            background: white !important;
            color: black !important;
            padding: 20px 0 !important;
        }

        .footer .social-links,
        .footer .input-group {
            display: none !important;
        }
    }

    /* ==========================================================================
       ENHANCED FOOTER COMPONENT STYLES
       ========================================================================== */

    /* Enhanced Footer Base Styles */
    .footer-enhanced {
        background: var(--dark-color);
        color: white;
        position: relative;
        overflow: hidden;
    }

    /* Back to Top Button */
    .back-to-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        cursor: pointer;
    }

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        background: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }

    /* Footer Main Section */
    .footer-main {
        padding: 60px 0 30px;
        position: relative;
    }

    .footer-section {
        margin-bottom: 2rem;
    }

    /* Footer Brand */
    .footer-brand {
        display: flex;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .footer-logo {
        height: 50px;
        width: auto;
        margin-right: 1rem;
    }

    .footer-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: white;
        margin: 0;
    }

    /* Footer Description */
    .footer-description {
        font-size: 1rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.85);
        margin-bottom: 2rem;
    }

    /* Footer Headings */
    .footer-heading {
        font-size: 1.25rem;
        font-weight: 600;
        color: white;
        margin-bottom: 1.5rem;
        position: relative;
    }

    .footer-heading::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 30px;
        height: 3px;
        background: var(--secondary-color);
        border-radius: 2px;
    }

    /* Footer Links */
    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-link {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        display: inline-block;
        position: relative;
    }

    .footer-link:hover {
        color: var(--secondary-color);
        padding-left: 8px;
        text-decoration: none;
    }

    .footer-link.highlight {
        color: var(--secondary-color);
        font-weight: 600;
    }

    .footer-link.highlight:hover {
        color: white;
    }

    /* Social Links */
    .footer-social {
        margin-top: 2rem;
    }

    .social-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: white;
        margin-bottom: 1rem;
    }

    .social-links {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .social-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        color: white;
        text-decoration: none;
        font-size: 1.1rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .social-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 50%;
        transform: scale(0);
        transition: transform 0.3s ease;
    }

    .social-link:hover::before {
        transform: scale(1);
    }

    .social-link:hover {
        color: white;
        transform: translateY(-2px);
    }

    /* Social Link Colors */
    .social-link.facebook {
        background: rgba(59, 89, 152, 0.2);
        border: 1px solid rgba(59, 89, 152, 0.3);
    }

    .social-link.facebook:hover::before {
        background: #3b5998;
    }

    .social-link.twitter {
        background: rgba(29, 161, 242, 0.2);
        border: 1px solid rgba(29, 161, 242, 0.3);
    }

    .social-link.twitter:hover::before {
        background: #1da1f2;
    }

    .social-link.instagram {
        background: rgba(225, 48, 108, 0.2);
        border: 1px solid rgba(225, 48, 108, 0.3);
    }

    .social-link.instagram:hover::before {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    }

    .social-link.youtube {
        background: rgba(255, 0, 0, 0.2);
        border: 1px solid rgba(255, 0, 0, 0.3);
    }

    .social-link.youtube:hover::before {
        background: #ff0000;
    }

    .social-link.linkedin {
        background: rgba(0, 119, 181, 0.2);
        border: 1px solid rgba(0, 119, 181, 0.3);
    }

    .social-link.linkedin:hover::before {
        background: #0077b5;
    }

    /* Contact Info */
    .contact-info {
        margin-bottom: 2rem;
    }

    .contact-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 1rem;
        gap: 0.75rem;
    }

    .contact-icon {
        color: var(--secondary-color);
        font-size: 1rem;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .contact-link,
    .contact-text {
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .contact-link:hover {
        color: var(--secondary-color);
        text-decoration: none;
    }

    /* Newsletter Section */
    .newsletter-section {
        margin-top: 2rem;
    }

    .newsletter-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: white;
        margin-bottom: 0.75rem;
    }

    .newsletter-text {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    /* Newsletter Form */
    .newsletter-form .input-group {
        margin-bottom: 0.75rem;
    }

    .newsletter-input {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: white !important;
        border-radius: 25px 0 0 25px !important;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .newsletter-input::placeholder {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .newsletter-input:focus {
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: var(--secondary-color) !important;
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3) !important;
        color: white !important;
    }

    .newsletter-btn {
        background: var(--secondary-color) !important;
        border: 1px solid var(--secondary-color) !important;
        color: white !important;
        border-radius: 0 25px 25px 0 !important;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .newsletter-btn:hover {
        background: #d97706 !important;
        border-color: #d97706 !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    }

    .newsletter-message {
        font-size: 0.85rem;
        text-align: center;
        padding: 0.5rem;
        border-radius: 5px;
        display: none;
    }

    .newsletter-message.success {
        background: rgba(16, 185, 129, 0.2);
        color: #10b981;
        border: 1px solid rgba(16, 185, 129, 0.3);
    }

    .newsletter-message.error {
        background: rgba(239, 68, 68, 0.2);
        color: #ef4444;
        border: 1px solid rgba(239, 68, 68, 0.3);
    }

    .newsletter-privacy {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.6);
        margin: 0;
        text-align: center;
    }

    /* Footer Bottom */
    .footer-bottom {
        background: rgba(0, 0, 0, 0.3);
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .copyright p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.9rem;
        margin: 0;
    }

    .footer-bottom-links {
        text-align: right;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .footer-bottom-link {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s ease;
    }

    .footer-bottom-link:hover {
        color: var(--secondary-color);
        text-decoration: none;
    }

    .separator {
        color: rgba(255, 255, 255, 0.4);
        margin: 0 0.25rem;
    }

    /* ==========================================================================
       ENHANCED FOOTER RESPONSIVE STYLES
       ========================================================================== */

    /* Mobile First Approach - Small Devices (≤576px) */
    @media (max-width: 576px) {
        .footer-main {
            padding: 40px 0 20px;
        }

        .footer-section {
            text-align: center;
            margin-bottom: 2rem;
        }

        .footer-brand {
            justify-content: center;
            margin-bottom: 1.25rem;
        }

        .footer-logo {
            height: 40px;
        }

        .footer-title {
            font-size: 1.3rem;
        }

        .footer-description {
            font-size: 0.9rem;
            text-align: center;
        }

        .footer-heading {
            font-size: 1.1rem;
            text-align: center;
        }

        .footer-heading::after {
            left: 50%;
            transform: translateX(-50%);
        }

        /* Center footer links on mobile */
        .footer-links {
            text-align: center;
        }

        .footer-links li {
            margin-bottom: 0.6rem;
        }

        .footer-link {
            font-size: 0.9rem;
        }

        /* Center social links */
        .social-links {
            justify-content: center;
            gap: 15px;
        }

        .social-link {
            width: 44px;
            height: 44px;
            font-size: 1.2rem;
        }

        /* Contact info center alignment */
        .contact-item {
            justify-content: center;
            text-align: center;
        }

        /* Newsletter form stacking */
        .newsletter-form .input-group {
            flex-direction: column;
            gap: 0.5rem;
        }

        .newsletter-input,
        .newsletter-btn {
            border-radius: 25px !important;
            width: 100%;
        }

        .newsletter-input {
            min-height: 48px;
            font-size: 16px;
            /* Prevent zoom on iOS */
        }

        .newsletter-btn {
            min-height: 48px;
            font-size: 16px;
            justify-content: center;
        }

        /* Footer bottom center alignment */
        .footer-bottom-links {
            justify-content: center;
            text-align: center;
            margin-top: 1rem;
        }

        .copyright {
            text-align: center;
        }
    }

    /* Medium devices (577px–768px) */
    @media (min-width: 577px) and (max-width: 768px) {
        .footer-main {
            padding: 50px 0 25px;
        }

        /* Center alignment for tablet portrait */
        .footer-section {
            text-align: center;
        }

        .footer-heading::after {
            left: 50%;
            transform: translateX(-50%);
        }

        .footer-links {
            text-align: center;
        }

        .social-links {
            justify-content: center;
        }

        .contact-item {
            justify-content: center;
        }

        .footer-bottom-links {
            justify-content: center;
            margin-top: 1rem;
        }

        .copyright {
            text-align: center;
        }
    }

    /* Tablets (769px–991px) */
    @media (min-width: 769px) and (max-width: 991px) {
        .footer-main {
            padding: 55px 0 28px;
        }

        /* Left align for tablet landscape but center some sections */
        .footer-section {
            text-align: left;
        }

        /* Center the quick links and programs sections */
        .col-lg-2 .footer-section {
            text-align: center;
        }

        .col-lg-2 .footer-heading::after {
            left: 50%;
            transform: translateX(-50%);
        }

        .col-lg-2 .footer-links {
            text-align: center;
        }

        .social-links {
            justify-content: flex-start;
        }

        .footer-bottom-links {
            justify-content: center;
            margin-top: 1rem;
        }

        .copyright {
            text-align: center;
        }
    }

    /* Desktops (≥992px) */
    @media (min-width: 992px) {
        .footer-main {
            padding: 70px 0 35px;
        }

        /* Left alignment for desktop */
        .footer-section {
            text-align: left;
        }

        .footer-heading::after {
            left: 0;
            transform: none;
        }

        .footer-links {
            text-align: left;
        }

        .social-links {
            justify-content: flex-start;
        }

        .contact-item {
            justify-content: flex-start;
        }

        /* Newsletter inline layout */
        .newsletter-form .input-group {
            flex-direction: row;
            gap: 0;
        }

        .newsletter-input {
            border-radius: 25px 0 0 25px !important;
        }

        .newsletter-btn {
            border-radius: 0 25px 25px 0 !important;
        }

        /* Footer bottom alignment */
        .copyright {
            text-align: left;
        }

        .footer-bottom-links {
            justify-content: flex-end;
            text-align: right;
            margin-top: 0;
        }
    }

    /* Large Desktop (≥1200px) */
    @media (min-width: 1200px) {
        .footer-main {
            padding: 80px 0 40px;
        }

        .footer-title {
            font-size: 1.6rem;
        }

        .footer-description {
            font-size: 1.05rem;
        }

        .footer-heading {
            font-size: 1.3rem;
        }

        .contact-item {
            margin-bottom: 1.25rem;
        }
    }

    /* Touch Device Optimizations */
    @media (hover: none) and (pointer: coarse) {

        .footer-link,
        .contact-link,
        .footer-bottom-link {
            min-height: 44px;
            display: flex;
            align-items: center;
            padding: 8px 0;
        }

        .social-link {
            min-width: 44px;
            min-height: 44px;
        }

        .back-to-top {
            width: 56px;
            height: 56px;
            bottom: 20px;
            right: 20px;
        }
    }

    /* High Contrast Mode Support */
    @media (prefers-contrast: high) {
        .footer-enhanced {
            border-top: 2px solid white;
        }

        .footer-link,
        .contact-link,
        .footer-bottom-link {
            border-bottom: 1px solid transparent;
        }

        .footer-link:hover,
        .contact-link:hover,
        .footer-bottom-link:hover {
            border-bottom-color: var(--secondary-color);
        }
    }

    /* Print Styles */
    @media print {
        .footer-enhanced {
            background: white !important;
            color: black !important;
        }

        .back-to-top,
        .newsletter-section,
        .social-links {
            display: none !important;
        }

        .footer-main {
            padding: 20px 0 !important;
        }
    }

    /* ==========================================================================
       FINAL DESKTOP FOOTER OVERRIDES - NUCLEAR OPTION
       ========================================================================== */

    /* Additional desktop fixes with maximum possible specificity */
    @media screen and (min-width: 992px) {

        /* Email form inline - atomic level specificity */
        footer.footer .row .col-lg-4.mb-4 .input-group.mb-3 {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            align-items: stretch !important;
            width: 100% !important;
        }

        footer.footer .row .col-lg-4.mb-4 .input-group.mb-3 input.form-control[type="email"] {
            border-radius: 30px 0 0 30px !important;
            border-top-right-radius: 0 !important;
            border-bottom-right-radius: 0 !important;
            flex: 1 1 70% !important;
            width: 70% !important;
            min-width: 0 !important;
        }

        footer.footer .row .col-lg-4.mb-4 .input-group.mb-3 button.btn.btn-primary-custom {
            border-radius: 0 30px 30px 0 !important;
            border-top-left-radius: 0 !important;
            border-bottom-left-radius: 0 !important;
            flex: 0 0 30% !important;
            width: 30% !important;
            max-width: 120px !important;
            padding: 0.75rem 1rem !important;
            font-size: 0.9rem !important;
        }

        /* Social links left alignment - atomic level */
        footer.footer .row .col-lg-4.mb-4:first-child div.social-links {
            display: flex !important;
            justify-content: flex-start !important;
            align-items: center !important;
            text-align: left !important;
            margin: 1rem 0 !important;
            gap: 12px !important;
        }

        /* Copyright center - atomic level - Enhanced */
        footer.footer .row.align-items-center {
            display: flex !important;
            justify-content: center !important;
            text-align: center !important;
            width: 100% !important;
        }

        footer.footer .row.align-items-center div.col-md-6 {
            text-align: center !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            flex-direction: column !important;
        }

        footer.footer .row.align-items-center div.col-md-6.text-md-end {
            text-align: center !important;
            justify-content: center !important;
        }

        footer.footer .row.align-items-center div.col-md-6 p {
            text-align: center !important;
            margin: 0 auto !important;
        }

        footer.footer .row.align-items-center div.col-md-6 a {
            text-align: center !important;
        }

        /* Content alignment overrides */
        footer.footer .row div.col-lg-4.mb-4:first-child {
            text-align: left !important;
        }

        footer.footer .row div.col-lg-2.col-md-4.mb-4 {
            text-align: left !important;
        }

        footer.footer .row div.col-lg-4.mb-4:last-child {
            text-align: left !important;
        }

        /* CRITICAL: Override the mobile newsletter stacking */
        .footer .input-group {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
        }

        /* Ensure no mobile gap interference */
        .footer .input-group.mb-3 {
            gap: 0 !important;
        }
    }

    /* Mobile menu adjustments */
    .mobile-menu {
        width: 100%;
    }

    .mobile-nav-link {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .mobile-submenu-link {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
}


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Stats Counter Responsive */
.stats-counter {
    text-align: center;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Programs Section Responsive */
.card-custom {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
}

/* Impact Stories Responsive */
.impact-card {
    overflow: hidden;
    border-radius: 15px;
}

/* Call to Action Responsive */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Enhanced Responsive Styles */
@media (max-width: 1400px) {

    .btn-primary-custom,
    .btn-outline-custom {
        padding: 14px 32px;
        font-size: 1.1rem;
    }

    .card-custom .card-body {
        padding: 2rem;
    }

    .counter-number {
        font-size: 2.8rem;
    }
}


@media (max-width: 992px) {

    /* Adjust program cards for tablets */
    .card-custom {
        margin-bottom: 2rem;
    }

    .card-custom .card-body {
        padding: 1.75rem;
    }

    .card-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .counter-number {
        font-size: 2.5rem;
    }

    .counter-label {
        font-size: 0.85rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .card-custom .card-body {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    /* Stats counter extra small */
    .counter-number {
        font-size: 1.5rem;
    }

    .counter-label {
        font-size: 0.75rem;
    }

    /* Section headings */
    h2 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 0.95rem;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {

    .card-custom:hover,
    .activity-card:hover,
    .gallery-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    /* Better touch targets for mobile */
    .hero-dot {
        width: 16px;
        height: 16px;
        margin: 4px;
    }

    .mobile-nav-link {
        min-height: 48px;
    }

    /* Improve touch targets for activities */
    .activity-card .btn {
        min-height: 44px;
        padding: 12px 20px;
    }

    /* Larger tap targets for cards */
    .activity-card,
    .gallery-card {
        cursor: pointer;
    }
}

/* ==========================================================================
   8. GALLERY SYSTEM (Photos/Videos/Lightbox)
   ========================================================================== */

/* Gallery Cards - Global cursor pointer (all devices) */
.gallery-card,
.gallery-card *,
.gallery-image-container,
.gallery-image,
.gallery-overlay,
.gallery-overlay-content,
.gallery-btn,
.video-overlay,
.play-button {
    cursor: pointer !important;
}

/* Touch-friendly gallery interactions */
.gallery-btn {
    min-width: 44px;
    min-height: 44px;
}

.play-button {
    min-width: 70px;
    min-height: 70px;
}

/* Additional Button Centering Fixes */
.hero-buttons .btn.btn-primary-custom,
.hero-buttons .btn.btn-outline-custom {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Override any Bootstrap margin classes */
.hero-buttons .me-3,
.hero-buttons .mb-3 {
    margin-right: auto !important;
    margin-left: auto !important;
    margin-bottom: 1rem !important;
}

/* Force center alignment on all screen sizes */
@media (max-width: 1200px) {
    .hero-buttons {
        text-align: center !important;
    }

    .hero-buttons .btn {
        margin: 0 auto 1rem auto !important;
    }
}

/* Who We Are Section Responsive Styles */
.about-section {
    padding: 80px 0;
}

.about-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-section .lead {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.about-section .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-content {
    position: relative;
}

/* Center button on mobile */
@media (max-width: 991px) {
    .about-section .btn {
        margin-left: auto;
        margin-right: auto;
        display: flex;
    }
}

.about-images {
    position: relative;
}

.about-images .img-fluid {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-images .img-fluid:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles for About Section */
@media (max-width: 1200px) {
    .about-section h2 {
        font-size: 2.2rem;
    }

    .about-section .lead {
        font-size: 1.15rem;
    }

    .about-section p {
        font-size: 1.05rem;
    }

    .about-section .btn {
        padding: 14px 32px;
        font-size: 1.05rem;
    }
}

@media (max-width: 992px) {
    .about-section {
        padding: 60px 0;
        text-align: center;
    }

    .about-content {
        margin-top: 3rem;
    }

    .about-images {
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
    }

    .about-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .about-section .lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .about-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .about-section .btn {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .about-images {
        margin-bottom: 2rem;
    }

    /* ==========================================================================
   HERO SECTION ENHANCED OVERLAY STYLES
   ========================================================================== */

    /* Hero Section Enhanced Overlay Styles */
    .hero-section {
        position: relative;
        overflow: hidden;
        min-height: 100vh;
        width: 100%;
    }

    .hero-slider {
        position: relative;
        width: 100%;
        min-height: 100vh;
    }

    .hero-slide {
        position: relative;
        min-height: 100vh;
        width: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        display: none;
        align-items: center;
        justify-content: center;
        transition: opacity 0.5s ease-in-out;
    }

    .hero-slide.active {
        display: flex;
        opacity: 1;
    }

    .hero-slide:not(.active) {
        display: none;
        opacity: 0;
    }

    /* Base hero overlay - Full section coverage for better text visibility */
    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1;
        pointer-events: none;
    }

    /* Enhanced hero overlay with gradient and effects - Full section overlay */
    .hero-overlay-enhanced {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg,
                rgba(30, 58, 138, 0.4) 0%,
                rgba(15, 23, 42, 0.5) 40%,
                rgba(0, 0, 0, 0.4) 100%);
        z-index: 2;
        pointer-events: none;
    }

    /* Additional overlay pattern for texture - Full coverage */
    .hero-overlay-enhanced::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background-image:
            radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 60%, rgba(99, 102, 241, 0.08) 0%, transparent 40%);
        animation: heroShimmer 8s ease-in-out infinite;
        z-index: 1;
        pointer-events: none;
    }

    @keyframes heroShimmer {

        0%,
        100% {
            opacity: 0.6;
        }

        50% {
            opacity: 1;
        }
    }

    /* Hero container and content positioning */
    .hero-slide .container {
        position: relative;
        z-index: 10;
        height: 100%;
    }

    .hero-slide .row {
        position: relative;
        z-index: 10;
        height: 100vh;
        min-height: 100vh;
    }

    /* Hero content positioning */
    .hero-content {
        position: relative;
        z-index: 10;
        color: white;
        text-align: center;
        padding: 3rem 2rem;
        margin: 0;
        width: 100%;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Hero text styling for maximum visibility */
    .hero-title,
    .hero-content h1,
    .hero-content .hero-title {
        font-size: 3.5rem;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 1.5rem;
        text-shadow:
            2px 2px 4px rgba(0, 0, 0, 0.8),
            1px 1px 2px rgba(0, 0, 0, 0.9),
            0 0 10px rgba(0, 0, 0, 0.6);
        line-height: 1.2;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .hero-description,
    .hero-content p,
    .hero-content .hero-description {
        font-size: 1.25rem;
        color: #ffffff;
        margin-bottom: 2.5rem;
        text-shadow:
            1px 1px 3px rgba(0, 0, 0, 0.8),
            0 0 8px rgba(0, 0, 0, 0.6);
        line-height: 1.6;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        font-weight: 500;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .hero-badge,
    .hero-content .hero-badge {
        color: #ffffff;
        background: rgba(245, 158, 11, 0.9);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
        font-weight: 600;
    }

    .hero-badge {
        display: inline-block;
        background: rgba(245, 158, 11, 0.9);
        color: white;
        padding: 0.5rem 1.5rem;
        border-radius: 25px;
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    }

    /* Hero buttons styling */
    .hero-buttons {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 50px;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 200px;
        flex-shrink: 0;
    }

    .btn-donate-hero {
        background: #dc2626;
        border: 2px solid #dc2626;
        color: white;
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    }

    .btn-donate-hero:hover {
        background: #b91c1c;
        border-color: #b91c1c;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    }

    /* Responsive hero styles */
    @media (max-width: 1200px) {
        .hero-title {
            font-size: 3rem;
        }

        .hero-description {
            font-size: 1.15rem;
        }

        .hero-buttons .btn {
            padding: 0.875rem 2rem;
            font-size: 1rem;
            min-width: 180px;
        }
    }

    @media (max-width: 992px) {
        .hero-section {
            min-height: 80vh;
        }

        .hero-slide {
            min-height: 80vh;
        }

        .hero-title {
            font-size: 2.5rem;
        }

        .hero-description {
            font-size: 1.1rem;
            margin-bottom: 2rem;
        }

        .hero-buttons {
            gap: 1rem;
            flex-direction: row;
        }

        .hero-buttons .btn {
            padding: 0.75rem 1.75rem;
            font-size: 0.95rem;
            min-width: 160px;
        }
    }

    @media (max-width: 768px) {
        .hero-section {
            min-height: 70vh;
        }

        .hero-slide {
            min-height: 70vh;
        }

        .hero-content {
            padding: 2rem 1.5rem;
            margin: 0;
        }

        .hero-title {
            font-size: 2rem;
        }

        .hero-description {
            font-size: 1rem;
            margin-bottom: 1.5rem;
        }

        .hero-badge {
            font-size: 0.8rem;
            padding: 0.4rem 1.2rem;
            margin-bottom: 1rem;
        }

        .hero-buttons {
            flex-direction: column;
            gap: 0.75rem;
        }

        .hero-buttons .btn {
            padding: 0.7rem 1.5rem;
            font-size: 0.9rem;
            min-width: 140px;
        }
    }

    @media (max-width: 576px) {
        .hero-section {
            min-height: 60vh;
        }

        .hero-slide {
            min-height: 60vh;
        }

        .hero-content {
            padding: 1.5rem 1rem;
            margin: 0;
        }

        .hero-title {
            font-size: 1.75rem;
            margin-bottom: 1rem;
        }

        .hero-description {
            font-size: 0.95rem;
            margin-bottom: 1.25rem;
        }

        .hero-buttons {
            flex-direction: column;
            gap: 0.5rem;
        }

        .hero-buttons .btn {
            padding: 0.65rem 1.25rem;
            font-size: 0.85rem;
            min-width: 120px;
            width: 100%;
            max-width: 200px;
        }
    }

    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .hero-overlay-enhanced::before {
            animation: none;
        }
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 50px 0;
    }

    .about-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .about-section .lead {
        font-size: 1.05rem;
        margin-bottom: 1.25rem;
    }

    .about-section p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        line-height: 1.6;
    }

    .about-section .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 250px;
    }

    .about-images .col-6 {
        margin-bottom: 1rem;
    }

    .about-images img {
        height: 150px;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 40px 0;
    }

    .about-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .about-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
        line-height: 1.3;
    }

    .about-section .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .about-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .about-section .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 220px;
    }

    .about-images {
        margin-bottom: 2rem;
    }

    .about-images img {
        height: 120px;
        width: 100%;
    }

    /* Stack images in 2 columns on small screens */
    .about-images .row {
        row-gap: 1rem;
        justify-content: center;
    }

    .about-images .col-6 {
        margin-bottom: 1rem;
    }

    /* Remove inline margin styles */
    .about-images img[style*="margin-top"] {
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 30px 0;
    }

    .about-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .about-section .lead {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .about-section p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .about-section .btn {
        font-size: 0.85rem;
        padding: 10px 18px;
        max-width: 200px;
        margin-top: 1rem;
    }

    .about-content {
        margin-top: 2rem;
    }

    .about-images {
        margin-bottom: 1.5rem;
    }

    .about-images img {
        height: 100px;
        border-radius: 8px !important;
    }

    /* Stack images in single column on very small screens */
    .about-images .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.8rem;
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 767px) {

    /* Reduce animations on mobile for better performance */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }

    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Better focus states for accessibility */
    .btn:focus,
    .card-custom:focus,
    .activity-card:focus {
        outline: 3px solid var(--secondary-color);
        outline-offset: 2px;
    }

    /* Improve scroll behavior */
    html {
        scroll-behavior: smooth;
    }
}

/* Additional responsive improvements */
@media (max-width: 375px) {
    .about-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .about-section h2 {
        font-size: 1.4rem;
    }

    .about-section .lead {
        font-size: 0.9rem;
    }

    .about-section p {
        font-size: 0.8rem;
    }

    .about-section .btn {
        font-size: 0.8rem;
        padding: 8px 16px;
        max-width: 180px;
    }

    .about-images img {
        height: 80px;
    }
}

/* Our Programs Section Responsive Styles */
.programs-section {
    padding: 80px 0;
    background: var(--light-color);
}

.programs-section .section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.programs-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.programs-section .section-header .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Program Cards Base Styles */
.program-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.program-card .card-body {
    padding: 2.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Program Card Icons */
.program-card .card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.program-card:hover .card-icon {
    transform: scale(1.1);
}

/* Program Card Content */
.program-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.program-card .card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2rem;
    flex: 1;
}

/* Program Card Buttons */
.program-card .btn {
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-width: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.program-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive Styles for Programs Section */
@media (max-width: 1200px) {
    .programs-section {
        padding: 70px 0;
    }

    .programs-section .section-header h2 {
        font-size: 2.2rem;
    }

    .programs-section .section-header .lead {
        font-size: 1.15rem;
    }

    .program-card .card-body {
        padding: 2rem 1.5rem;
    }

    .program-card .card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .program-card .card-title {
        font-size: 1.4rem;
    }

    .program-card .card-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .programs-section {
        padding: 60px 0;
    }

    .programs-section .section-header {
        margin-bottom: 3rem;
    }

    .programs-section .section-header h2 {
        font-size: 2rem;
    }

    .programs-section .section-header .lead {
        font-size: 1.1rem;
    }

    .program-card {
        margin-bottom: 2rem;
    }

    .program-card .card-body {
        padding: 2rem 1.5rem;
    }

    .program-card .card-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .program-card .card-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .program-card .card-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .program-card .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .programs-section {
        padding: 50px 0;
    }

    .programs-section .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .programs-section .section-header .lead {
        font-size: 1.05rem;
    }

    .program-card {
        margin-bottom: 2rem;
        border-radius: 15px;
    }

    .program-card .card-body {
        padding: 2rem 1.5rem;
    }

    .program-card .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .program-card .card-title {
        font-size: 1.25rem;
    }

    .program-card .card-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .program-card .btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .programs-section {
        padding: 40px 0;
    }

    .programs-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .programs-section .section-header {
        margin-bottom: 2.5rem;
    }

    .programs-section .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .programs-section .section-header .lead {
        font-size: 1rem;
        line-height: 1.5;
    }

    .program-card {
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    .program-card .card-body {
        padding: 1.5rem 1.25rem;
    }

    .program-card .card-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }

    .program-card .card-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .program-card .card-text {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }

    .program-card .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .programs-section {
        padding: 30px 0;
    }

    .programs-section .section-header h2 {
        font-size: 1.5rem;
    }

    .programs-section .section-header .lead {
        font-size: 0.95rem;
    }

    .program-card .card-body {
        padding: 1.25rem 1rem;
    }

    .program-card .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .program-card .card-title {
        font-size: 1.1rem;
    }

    .program-card .card-text {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .program-card .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        max-width: 160px;
    }
}

@media (max-width: 375px) {
    .programs-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .programs-section .section-header h2 {
        font-size: 1.4rem;
    }

    .programs-section .section-header .lead {
        font-size: 0.9rem;
    }

    .program-card .card-body {
        padding: 1rem 0.8rem;
    }

    .program-card .card-title {
        font-size: 1rem;
    }

    .program-card .card-text {
        font-size: 0.75rem;
    }

    .program-card .btn {
        font-size: 0.75rem;
        max-width: 140px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-custom {
        border: 2px solid var(--border-color);
    }
}

/* Activities Section Responsive Styles */
@media (max-width: 1200px) {
    .activities-section {
        padding: 70px 0;
    }

    .activities-section .section-header h2 {
        font-size: 2.2rem;
    }

    .activities-section .section-header .lead {
        font-size: 1.15rem;
    }

    .activity-card .card-body {
        padding: 1.8rem;
    }

    .activity-card .card-title {
        font-size: 1.3rem;
    }

    .activity-card .card-text {
        font-size: 0.95rem;
    }

    .activity-card .card-img-top {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .activities-section {
        padding: 60px 0;
    }

    .activities-section .section-header {
        margin-bottom: 3rem;
    }

    .activities-section .section-header h2 {
        font-size: 2rem;
    }

    .activities-section .section-header .lead {
        font-size: 1.1rem;
    }

    .activity-card {
        margin-bottom: 2rem;
    }

    .activity-card .card-body {
        padding: 1.75rem;
    }

    .activity-card .card-title {
        font-size: 1.25rem;
    }

    .activity-card .card-text {
        font-size: 0.9rem;
    }

    .activity-card .card-img-top {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .activities-section {
        padding: 50px 0;
    }

    .activities-section .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .activities-section .section-header .lead {
        font-size: 1.05rem;
    }

    .activity-card {
        margin-bottom: 2rem;
        border-radius: 15px;
    }

    .activity-card .card-body {
        padding: 1.5rem;
    }

    .activity-card .card-title {
        font-size: 1.2rem;
    }

    .activity-card .card-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .activity-card .btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }

    .activity-card .card-img-top {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .activities-section {
        padding: 40px 0;
    }

    .activities-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .activities-section .section-header {
        margin-bottom: 2.5rem;
    }

    .activities-section .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .activities-section .section-header .lead {
        font-size: 1rem;
        line-height: 1.5;
    }

    .activity-card {
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    .activity-card .card-body {
        padding: 1.25rem;
    }

    .activity-card .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .activity-card .card-text {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .activity-card .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
        display: block;
    }

    .activity-card .card-img-top {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .activities-section {
        padding: 30px 0;
    }

    .activities-section .section-header h2 {
        font-size: 1.5rem;
    }

    .activities-section .section-header .lead {
        font-size: 0.95rem;
    }

    .activity-card .card-body {
        padding: 1rem;
    }

    .activity-card .card-title {
        font-size: 1rem;
    }

    .activity-card .card-text {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .activity-card .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        max-width: 160px;
        margin: 0 auto;
        display: block;
    }

    .activity-card .card-img-top {
        height: 120px;
    }
}

@media (max-width: 375px) {
    .activities-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .activities-section .section-header h2 {
        font-size: 1.4rem;
    }

    .activities-section .section-header .lead {
        font-size: 0.9rem;
    }

    .activity-card .card-body {
        padding: 0.8rem;
    }

    .activity-card .card-title {
        font-size: 0.95rem;
    }

    .activity-card .card-text {
        font-size: 0.75rem;
    }

    .activity-card .btn {
        font-size: 0.75rem;
        max-width: 140px;
        margin: 0 auto;
        display: block;
    }

    .activity-card .card-img-top {
        height: 100px;
    }

    /* Latest News section responsive */
    .news-section {
        padding: 30px 0;
    }

    .news-section .section-header h2 {
        font-size: 1.4rem;
    }

    .news-section .section-header .lead {
        font-size: 0.9rem;
    }

    .news-card .card-body {
        padding: 0.8rem;
    }

    .news-card .card-title {
        font-size: 0.95rem;
    }

    .news-card .card-text {
        font-size: 0.75rem;
    }

    .news-card .text-muted {
        font-size: 0.7rem;
    }

    .news-card .badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }

    .news-card .card-img-top {
        height: 100px;
    }

    .btn-news-read-more {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Latest News 480px breakpoint */
    .news-section {
        padding: 30px 0;
    }

    .news-section .section-header h2 {
        font-size: 1.5rem;
    }

    .news-section .section-header .lead {
        font-size: 0.95rem;
    }

    .news-card .card-body {
        padding: 1rem;
    }

    .news-card .card-title {
        font-size: 1rem;
    }

    .news-card .card-text {
        font-size: 0.8rem;
    }

    .news-card .text-muted {
        font-size: 0.75rem;
    }

    .news-card .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }

    .news-card .card-img-top {
        height: 120px;
    }

    .btn-news-read-more {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Latest News 576px breakpoint */
    .news-section {
        padding: 40px 0;
    }

    .news-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .news-section .section-header {
        margin-bottom: 2.5rem;
    }

    .news-section .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .news-section .section-header .lead {
        font-size: 1rem;
        line-height: 1.5;
    }

    .news-card {
        margin-bottom: 1.5rem;
    }

    .news-card .card-body {
        padding: 1.25rem;
    }

    .news-card .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .news-card .card-text {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .news-card .text-muted {
        font-size: 0.8rem;
    }

    .news-card .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.65rem;
    }

    .news-card .card-img-top {
        height: 140px;
    }

    .btn-news-read-more {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Latest News 768px breakpoint */
    .news-section {
        padding: 50px 0;
    }

    .news-section .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .news-section .section-header .lead {
        font-size: 1.05rem;
    }

    .news-card {
        margin-bottom: 2rem;
    }

    .news-card .card-body {
        padding: 1.5rem;
    }

    .news-card .card-title {
        font-size: 1.2rem;
    }

    .news-card .card-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .news-card .text-muted {
        font-size: 0.82rem;
    }

    .news-card .badge {
        font-size: 0.72rem;
        padding: 0.45rem 0.7rem;
    }

    .news-card .card-img-top {
        height: 160px;
    }

    .btn-news-read-more {
        padding: 0.65rem 1.3rem;
        font-size: 0.9rem;
    }

    /* Latest News 992px breakpoint */
    .news-section {
        padding: 60px 0;
    }

    .news-section .section-header {
        margin-bottom: 3rem;
    }

    .news-section .section-header h2 {
        font-size: 2rem;
    }

    .news-section .section-header .lead {
        font-size: 1.1rem;
    }

    .news-card {
        margin-bottom: 2rem;
    }

    .news-card .card-body {
        padding: 1.75rem;
    }

    .news-card .card-title {
        font-size: 1.25rem;
    }

    .news-card .card-text {
        font-size: 0.95rem;
    }

    .news-card .text-muted {
        font-size: 0.83rem;
    }

    .news-card .badge {
        font-size: 0.73rem;
        padding: 0.48rem 0.72rem;
    }

    .news-card .card-img-top {
        height: 180px;
    }

    /* Latest News 1200px breakpoint */
    .news-section {
        padding: 70px 0;
    }

    .news-section .section-header h2 {
        font-size: 2.2rem;
    }

    .news-section .section-header .lead {
        font-size: 1.15rem;
    }

    .news-card .card-body {
        padding: 1.8rem;
    }

    .news-card .card-title {
        font-size: 1.3rem;
    }

    .news-card .card-text {
        font-size: 0.95rem;
    }

    .news-card .text-muted {
        font-size: 0.83rem;
    }

    .news-card .badge {
        font-size: 0.74rem;
        padding: 0.48rem 0.73rem;
    }

    .news-card .card-img-top {
        height: 200px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .card-custom,
    .btn,
    .activity-card {
        transition: none;
    }
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.hero-slider {
    position: relative;
    height: calc(100vh - 120px);
    min-height: 600px;
    width: 100%;
    margin-bottom: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-color: #f8f9fa;
    /* Fallback color while image loads */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;

    /* Ensure background image is loaded */
    background-blend-mode: normal;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Force first slide to be visible initially */
.hero-slide:first-child {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.6) 0%, rgba(245, 158, 11, 0.4) 100%);
    z-index: 3;
    pointer-events: none;
    /* Allow clicking through overlay */
}

.hero-slide .container {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
    width: 100%;
}

/* Debug: Ensure all hero slides have proper styling */
.hero-slide[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Fix white space gap after hero section */
.hero-section+section,
.hero-section+#stats-section,
section[id="stats-section"],
.py-5.bg-light {
    margin-top: 0 !important;
    padding-top: 60px !important;
}

/* Ensure no gaps between hero and stats */
.hero-section::after {
    content: '';
    display: block;
    height: 1px;
    background: transparent;
    margin: 0;
}

/* Device-specific gap fixes */
@media (max-width: 768px) {
    .hero-section {
        margin-bottom: 0 !important;
    }

    .hero-slider {
        margin-bottom: 0 !important;
    }

    .hero-section+section,
    #stats-section {
        margin-top: 0 !important;
        padding-top: 40px !important;
    }

    /* Mobile hero title adjustments */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
        max-height: calc(2 * 1.3em);
        min-height: calc(1 * 1.3em);
    }

    /* Mobile donate button adjustments */
    .hero-buttons .btn-donate-hero,
    .hero-buttons .btn-donate-outline-hero {
        font-size: 1rem;
        padding: 12px 25px;
    }

    /* Mobile hero description adjustments */
    .hero-description {
        font-size: 1.1rem;
        line-height: 1.5;
        max-height: calc(2 * 1.5em);
        min-height: calc(1 * 1.5em);
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {

    .hero-section+section,
    #stats-section {
        padding-top: 30px !important;
    }

    /* Small mobile hero title adjustments */
    .hero-title {
        font-size: 2rem;
        line-height: 1.4;
        max-height: calc(2 * 1.4em);
        min-height: calc(1 * 1.4em);
    }

    /* Small mobile donate button adjustments */
    .hero-buttons .btn-donate-hero,
    .hero-buttons .btn-donate-outline-hero {
        font-size: 0.95rem;
        padding: 10px 20px;
    }

    /* Small mobile hero description adjustments */
    .hero-description {
        font-size: 1rem;
        line-height: 1.4;
        max-height: calc(2 * 1.4em);
        min-height: calc(1 * 1.4em);
        margin-bottom: 1.5rem;
    }
}

/* Fix for iOS Safari viewport issues */
@supports (-webkit-touch-callout: none) {
    .hero-slider {
        min-height: calc(100vh - 120px);
        height: calc(var(--vh, 1vh) * 100 - 120px);
    }
}

.hero-content {
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
    /* Ensure content is above overlay */
}

/* Hero slide content positioning without container dependency */
.hero-slide .row {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0 15px;
}

.hero-slide [class*="col-"] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: 'Noto Serif Bengali', 'Playfair Display', serif;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.5s both;

    /* Limit to maximum 2 lines with ellipsis (...) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    /* Set consistent height for 2 lines */
    max-height: calc(2 * 1.2em);
    /* 2 lines × line-height */
    min-height: calc(1 * 1.2em);
    /* Minimum 1 line */

    /* Word breaking for long words */
    word-wrap: break-word;
    hyphens: auto;
}

/* Fallback for browsers that don't support -webkit-line-clamp */
@supports not (-webkit-line-clamp: 2) {
    .hero-title {
        display: block;
        max-height: calc(2 * 1.2em);
        overflow: hidden;
        position: relative;
    }

    .hero-title::after {
        content: '...';
        position: absolute;
        right: 0;
        bottom: 0;
        background: linear-gradient(to right, transparent, rgba(30, 58, 138, 0.6) 50%);
        padding-left: 20px;
        color: white;
        font-weight: 700;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.7s both;

    /* Limit to maximum 2 lines with ellipsis (...) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    /* Set consistent height for 2 lines */
    max-height: calc(2 * 1.6em);
    /* 2 lines × line-height */
    min-height: calc(1 * 1.6em);
    /* Minimum 1 line */

    /* Word breaking for long descriptions */
    word-wrap: break-word;
    hyphens: auto;
}

/* Fallback for browsers that don't support -webkit-line-clamp (hero description) */
@supports not (-webkit-line-clamp: 2) {
    .hero-description {
        display: block;
        max-height: calc(2 * 1.6em);
        overflow: hidden;
        position: relative;
    }

    .hero-description::after {
        content: '...';
        position: absolute;
        right: 0;
        bottom: 0;
        background: linear-gradient(to right, transparent, rgba(30, 58, 138, 0.6) 50%);
        padding-left: 20px;
        color: white;
        font-weight: 400;
        opacity: 0.95;
    }
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.9s both;
    width: 100%;
    text-align: center;
}

.hero-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Hero Section Donate Button - Red Styling */
.hero-buttons .btn-donate-hero {
    background: #dc2626;
    border: 2px solid #dc2626;
    color: white;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
}

.hero-buttons .btn-donate-hero:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.4);
}

/* Hero Section Donate Button - Outline Red Styling (Alternative) */
.hero-buttons .btn-donate-outline-hero {
    background: rgba(220, 38, 38, 0.1);
    border: 2px solid #dc2626;
    color: #dc2626;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-donate-outline-hero:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.4);
}

/* Navigation Controls */
.hero-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}

.hero-nav-btn {
    position: absolute;
    top: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    outline: none;
    user-select: none;
}

.hero-nav-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-prev {
    left: 2rem;
}

.hero-next {
    right: 2rem;
}

/* Dots Indicator */
.hero-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
    outline: none;
}

.hero-dot:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.hero-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.3);
}

.hero-dot.active::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    right: 3rem;
    z-index: 3;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.scroll-down:hover {
    opacity: 1;
    color: white;
    transform: translateY(-2px);
}

.scroll-down span {
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.scroll-down i {
    animation: bounce 2s infinite;
}

/* Hero Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Responsive Hero Section */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.15rem;
    }

    .hero-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .hero-prev {
        left: 1.5rem;
    }

    .hero-next {
        right: 1.5rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding-top: 100px;
    }

    .hero-slider {
        height: calc(100vh - 100px);
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .scroll-indicator {
        right: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
    }

    .hero-slider {
        height: calc(100vh - 80px);
        min-height: 450px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .hero-buttons .btn {
        padding: 12px 25px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .hero-prev {
        left: 1rem;
    }

    .hero-next {
        right: 1rem;
    }

    .hero-dots {
        bottom: 2rem;
        gap: 0.8rem;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    .scroll-indicator {
        bottom: 1rem;
        right: 1.5rem;
    }

    .scroll-down {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 60px;
    }

    .hero-slider {
        height: calc(100vh - 60px);
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-buttons {
        gap: 0.8rem;
    }

    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    /* Hide navigation on very small screens */
    .hero-nav-btn {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    /* Improve hero content spacing */
    .hero-content {
        padding: 1rem;
    }

    /* Better button layout */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Hero Content Animation Delays */
.hero-slide.active .hero-badge {
    animation-delay: 0.3s;
}

.hero-slide.active .hero-title {
    animation-delay: 0.5s;
}

.hero-slide.active .hero-description {
    animation-delay: 0.7s;
}

.hero-slide.active .hero-buttons {
    animation-delay: 0.9s;
}

/* Slide transition effects */
.hero-slide.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.hero-slide.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
}

.hero-slide.slide-in-right.active {
    transform: translateX(0);
    opacity: 1;
}

/* Enhanced Mobile Typography and Spacing */
@media (max-width: 768px) {

    /* Improve text readability */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    p {
        margin-bottom: 1rem;
    }

    /* Better spacing for sections */
    section {
        padding: 40px 0;
    }


    /* Better button spacing */
    .btn {
        margin-bottom: 0.5rem;
    }
}

/* Additional Mobile Responsive Improvements */
@media (max-width: 480px) {

    /* Extra small screen adjustments */
    .hamburger-menu {
        display: flex !important;
    }

    .hero-section {
        padding-top: 70px;
    }

    .hero-slider {
        height: calc(100vh - 70px);
        min-height: 500px;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile menu improvements */
    .mobile-menu {
        width: 100vw;
        left: -100vw;
    }

    .mobile-menu.active {
        left: 0;
    }

    /* Better touch targets */
    .mobile-nav-link {
        padding: 1.2rem 1rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .mobile-submenu-link {
        padding: 1rem 1.5rem;
        min-height: 44px;
    }
}

/* Tablet Portrait Improvements */
@media (min-width: 481px) and (max-width: 768px) {
    .hamburger-menu {
        display: flex !important;
    }

    .hero-section {
        padding-top: 70px;
    }

    .hero-slider {
        height: calc(100vh - 70px);
        min-height: 550px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu {
        width: 320px;
        left: -320px;
    }

    .mobile-menu.active {
        left: 0;
    }
}

/* Tablet Landscape Improvements */
@media (min-width: 769px) and (max-width: 991px) {
    .hamburger-menu {
        display: flex !important;
    }

    .hero-section {
        padding-top: 110px;
    }

    .hero-slider {
        height: calc(100vh - 110px);
        min-height: 600px;
    }

    .hero-nav-btn {
        display: flex;
        width: 50px;
        height: 50px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu {
        width: 350px;
        left: -350px;
    }

    .mobile-menu.active {
        left: 0;
    }
}

/* ==========================================================================
   UNIFIED RESPONSIVE NAVIGATION SYSTEM
   Combined from navigation.css and navigation-responsive.css
   ========================================================================== */

/* Hamburger Button (visible on mobile only) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    position: relative;
    z-index: 1001;
}

.hamburger-menu:hover {
    background: rgba(30, 58, 138, 0.08);
}

.hamburger-menu:focus {
    outline: none;
    background: transparent !important;
}

.hamburger-menu:active {
    background: rgba(30, 58, 138, 0.12);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #1e3a8a;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    -webkit-transform: rotate(45deg) translate(6px, 6px);
    -moz-transform: rotate(45deg) translate(6px, 6px);
    -ms-transform: rotate(45deg) translate(6px, 6px);
    -o-transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    -webkit-transform: rotate(-45deg) translate(6px, -6px);
    -moz-transform: rotate(-45deg) translate(6px, -6px);
    -ms-transform: rotate(-45deg) translate(6px, -6px);
    -o-transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Force hide overlay to prevent global blur - Emergency fix */
.mobile-menu-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Unified Navigation Container */
.unified-navbar-collapse {
    /* Desktop: Normal navbar collapse */
    display: flex;
    flex-basis: auto;
    flex-grow: 1;
    align-items: center;
    justify-content: flex-end;
}

/* Mobile Menu Header (hidden on desktop) */
.mobile-menu-header {
    display: none !important;
    /* Hidden by default, shown on mobile */
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.mobile-menu-brand {
    font-weight: 700;
    color: #1e3a8a;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.mobile-menu-brand .brand-text {
    line-height: 1.2;
}

.mobile-menu-brand .brand-title {
    font-size: 1.25rem;
    margin: 0;
    color: #1e3a8a;
}

.mobile-menu-brand .brand-subtitle {
    font-size: 0.75rem;
    color: #374151;
    opacity: 0.8;
    margin: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #374151;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #e5e7eb;
    color: #1e3a8a;
}

/* Unified Navigation Menu */
.unified-nav {
    width: 100%;
}

.unified-nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.unified-nav-item {
    position: relative;
}

.unified-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.unified-nav-link:not(.cta-button):hover,
.unified-nav-link:not(.cta-button).active {
    color: #1e3a8a;
    background: rgba(59, 130, 246, 0.1);
}

/* Desktop: Hide icons, show text */
.unified-nav-link .nav-icon {
    display: none;
}

.unified-nav-link .nav-text {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Base Dropdown Arrow Styles */
.dropdown-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: currentColor;
    opacity: 0.7;
}

.has-dropdown:hover .dropdown-arrow,
.has-dropdown.show .dropdown-arrow {
    opacity: 1;
}

/* ==========================================================================
   MOBILE RESPONSIVE STYLES (0-991px)
   ========================================================================== */
@media (max-width: 991.98px) {

    /* Show hamburger button */
    .hamburger-menu {
        display: flex !important;
    }

    /* Transform navbar container to slide-out menu */
    .unified-navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        left: -320px !important;
        width: 300px !important;
        height: 100vh !important;
        min-height: 100vh !important;
        background: #fff !important;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1) !important;
        z-index: 1050 !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        display: flex !important;
    }

    .unified-navbar-collapse.show {
        left: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Show mobile menu header */
    .mobile-menu-header {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        padding: 1.5rem !important;
        margin: 0 !important;
        overflow: visible !important;
        flex-shrink: 0 !important;
        min-height: 60px !important;
    }

    /* Transform navigation menu to vertical mobile layout */
    .unified-nav {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .unified-nav-menu {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        padding: 0.5rem 0 1rem 0 !important;
        margin: 0 !important;
        min-height: calc(100vh - 80px) !important;
        height: auto !important;
        display: flex !important;
        list-style: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .unified-nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        width: 100% !important;
        flex-shrink: 0 !important;
    }

    .unified-nav-link {
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        min-height: 48px !important;
        border-radius: 0 !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        color: #374151 !important;
        background: transparent !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        font-weight: 500 !important;
        transition: background-color 0.2s ease !important;
    }

    .unified-nav-link:not(.cta-button):hover {
        background: #f8fafc !important;
        color: #1e3a8a !important;
        transform: none !important;
        text-decoration: none !important;
    }

    /* Mobile: Show icons, keep text */
    .unified-nav-link .nav-icon {
        display: inline-block !important;
        margin-right: 0 !important;
        font-size: 1.1rem !important;
        width: 20px !important;
        flex-shrink: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .unified-nav-link .nav-text {
        font-size: 1rem !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    /* Hide menu separator on mobile */
    .menu-separator {
        display: none !important;
    }

    /* Remove border from CTA item and reduce spacing */
    .unified-nav-item.cta-item {
        border-bottom: none !important;
        margin-top: 0.5rem !important;
    }

    /* Style CTA button for mobile with maximum specificity */
    .unified-navbar-collapse .unified-nav .unified-nav-menu .unified-nav-item.cta-item .unified-nav-link.cta-button {
        background: linear-gradient(135deg, #ef4444, #dc2626) !important;
        color: white !important;
        margin: 0.5rem 1rem !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        padding: 1rem 1.5rem !important;
        min-height: 48px !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
        width: calc(70% - 2rem) !important;
        display: flex !important;
        align-items: center !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        border: none !important;
        transform: none !important;
    }

    /* Fallback with simpler selector */
    .unified-nav-item.cta-item .unified-nav-link.cta-button {
        background: linear-gradient(135deg, #ef4444, #dc2626) !important;
        color: white !important;
        margin: 0.5rem 1rem !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        padding: 1rem 1.5rem !important;
        min-height: 48px !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
        width: calc(70% - 2rem) !important;
        display: flex !important;
        align-items: center !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        border: none !important;
    }

    /* Ensure CTA button icon and text styling with maximum specificity */
    .unified-navbar-collapse .unified-nav .unified-nav-menu .unified-nav-item.cta-item .unified-nav-link.cta-button .nav-icon,
    .unified-nav-item.cta-item .unified-nav-link.cta-button .nav-icon {
        color: white !important;
        opacity: 1 !important;
        display: inline-block !important;
        width: 20px !important;
        font-size: 1.1rem !important;
        flex-shrink: 0 !important;
        margin-right: 0 !important;
    }

    .unified-navbar-collapse .unified-nav .unified-nav-menu .unified-nav-item.cta-item .unified-nav-link.cta-button .nav-text,
    .unified-nav-item.cta-item .unified-nav-link.cta-button .nav-text {
        color: white !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        opacity: 1 !important;
        display: block !important;
        visibility: visible !important;
    }

    .unified-navbar-collapse .unified-nav .unified-nav-menu .unified-nav-item.cta-item .unified-nav-link.cta-button:hover,
    .unified-nav-item.cta-item .unified-nav-link.cta-button:hover {
        background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
        color: white !important;
        transform: none !important;
        text-decoration: none !important;
    }

    .unified-navbar-collapse .unified-nav .unified-nav-menu .unified-nav-item.cta-item .unified-nav-link.cta-button:hover .nav-icon,
    .unified-navbar-collapse .unified-nav .unified-nav-menu .unified-nav-item.cta-item .unified-nav-link.cta-button:hover .nav-text,
    .unified-nav-item.cta-item .unified-nav-link.cta-button:hover .nav-icon,
    .unified-nav-item.cta-item .unified-nav-link.cta-button:hover .nav-text {
        color: white !important;
    }

    /* Navbar layout fixes */
    .navbar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    .navbar-brand {
        margin-right: auto !important;
        flex-shrink: 0 !important;
        max-width: 70% !important;
    }

    .hamburger-menu {
        margin-left: 15px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 10px !important;
        flex-shrink: 0 !important;
    }

    .cta-button {
        background: linear-gradient(135deg, #ef4444, #dc2626) !important;
        color: white !important;
        margin: 0.5rem 1rem !important;
        padding: 1rem 1.5rem !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        width: calc(100% - 2rem) !important;
        min-height: 48px !important;
        text-decoration: none !important;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
        border: 2px solid #dc2626 !important;
        /* Debug border */
    }
}

/* Mobile Dropdown/Submenu Styles */
@media (max-width: 991.98px) {
    .dropdown-menu {
        position: static !important;
        background: rgba(0, 0, 0, 0.02) !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: max-height 0.3s ease !important;
        display: none !important;
    }

    .dropdown-menu.show {
        max-height: 60vh !important;
        display: block !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .dropdown-content {
        padding: 0.25rem 0 !important;
    }

    .dropdown-item {
        color: #374151 !important;
        font-size: 0.9rem !important;
        font-weight: 400 !important;
        padding: 0.5rem 1.5rem 0.5rem 3.5rem !important;
        text-decoration: none !important;
        display: block !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        transition: all 0.3s ease !important;
        min-height: 40px !important;
        height: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .dropdown-item:hover {
        color: #1e3a8a !important;
        background: #f8fafc !important;
        padding-left: 2.5rem !important;
        text-decoration: none !important;
        transform: translateX(5px) !important;
    }

    /* Mobile dropdown arrow positioning and rotation */
    .has-dropdown .dropdown-arrow {
        margin-left: auto !important;
        margin-right: 0 !important;
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
        transition: transform 0.3s ease !important;
    }

    .has-dropdown.show .dropdown-arrow {
        transform: rotate(180deg) !important;
    }

    /* Ensure nav links are flex containers for proper arrow positioning */
    .unified-nav-link.dropdown-trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
    }

    /* Position dropdown arrow at the end for mobile */
    .unified-nav-link.dropdown-trigger .dropdown-arrow {
        margin-left: auto !important;
        margin-right: 0 !important;
    }
}

/* Mobile Height Fixes for Different Screen Sizes */
@media (max-width: 768px) {
    .unified-navbar-collapse {
        width: 280px !important;
        left: -280px !important;
        height: 100vh !important;
        min-height: 100vh !important;
    }

    .mobile-menu-header {
        min-height: 56px !important;
        padding: 0.875rem 1rem !important;
    }

    .unified-nav-menu {
        min-height: calc(100vh - 70px) !important;
    }

    /* Tablet-specific dropdown item adjustments */
    .dropdown-item {
        padding: 0.6rem 1.5rem 0.6rem 3.5rem !important;
        min-height: 42px !important;
    }
}

@media (max-width: 576px) {
    .unified-navbar-collapse {
        width: 90% !important;
        max-width: 300px !important;
        left: -90% !important;
        height: 100vh !important;
        min-height: 100vh !important;
    }

    .mobile-menu-header {
        padding: 1rem !important;
        min-height: 56px !important;
    }

    .mobile-menu-brand .brand-title {
        font-size: 1.1rem !important;
    }

    .unified-nav-link {
        padding: 0.875rem 1rem !important;
        font-size: 0.95rem !important;
        min-height: 44px !important;
    }

    /* CTA button responsive fixes for smaller screens */
    .unified-nav-item.cta-item .unified-nav-link.cta-button {
        margin: 0.375rem 0.875rem !important;
        padding: 0.875rem 1rem !important;
        font-size: 0.95rem !important;
        min-height: 44px !important;
        width: calc(100% - 1.75rem) !important;
    }

    .dropdown-item {
        padding: 0.625rem 1.25rem 0.625rem 3rem !important;
        min-height: 40px !important;
        font-size: 0.875rem !important;
    }
}

@media (max-width: 479px) {
    .unified-nav-link {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.95rem !important;
    }

    /* CTA button fixes for very small screens */
    .unified-nav-item.cta-item .unified-nav-link.cta-button {
        margin: 0.25rem 0.75rem !important;
        padding: 0.875rem 1.25rem !important;
        font-size: 0.95rem !important;
        width: calc(100% - 1.5rem) !important;
    }

    .dropdown-item {
        padding: 0.625rem 1.25rem 0.625rem 3rem !important;
        font-size: 0.875rem !important;
    }
}

/* Force viewport height calculation for all mobile devices */
@media (max-width: 991px) {
    .unified-navbar-collapse {
        height: 100vh !important;
        height: -webkit-fill-available !important;
        /* iOS Safari */
        height: 100dvh !important;
        /* Dynamic viewport height */
        min-height: 100vh !important;
        min-height: -webkit-fill-available !important;
        min-height: 100dvh !important;
    }

    .unified-nav-menu {
        min-height: calc(100vh - 80px) !important;
        min-height: calc(-webkit-fill-available - 80px) !important;
        min-height: calc(100dvh - 80px) !important;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 991px) {
        .unified-navbar-collapse {
            height: -webkit-fill-available !important;
            min-height: -webkit-fill-available !important;
        }
    }
}

/* ==========================================================================
   DESKTOP STYLES (≥ 992px)
   ========================================================================== */
@media (min-width: 992px) {

    /* Hide hamburger button */
    .hamburger-menu {
        display: none !important;
    }

    /* Ensure navbar container layout works at 992px+ */
    .navbar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 1rem !important;
    }

    .navbar-brand {
        flex-shrink: 1 !important;
        max-width: 45% !important;
        min-width: 0 !important;
        margin-right: 0 !important;
    }

    /* Hide mobile menu header */
    .mobile-menu-header {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    /* Fix brand sizing for 992px+ to prevent overflow */
    .brand-title {
        font-size: 1.05rem !important;
    }

    .brand-subtitle {
        font-size: 0.55rem !important;
    }

    .logo-img {
        max-height: 34px !important;
    }

    /* Desktop navigation layout */
    .unified-navbar-collapse {
        position: static !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        z-index: auto !important;
        transition: none !important;
        overflow-y: visible !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        flex: 1 !important;
    }

    .unified-nav-menu {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 1rem !important;
        padding: 0 !important;
        height: auto !important;
        min-height: auto !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
    }

    .unified-nav-item {
        border-bottom: none !important;
    }

    .unified-nav-link {
        padding: 0.625rem 0.75rem !important;
        font-size: 0.875rem !important;
        min-height: auto !important;
        border-radius: 6px !important;
        justify-content: center !important;
        width: auto !important;
        position: relative !important;
        overflow: hidden !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        background: transparent !important;
        white-space: nowrap !important;
    }

    /* Enhanced hover effects for desktop navigation */
    .unified-nav-link:hover {
        background: rgba(30, 58, 138, 0.08) !important;
        color: #1e3a8a !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15) !important;
    }

    .unified-nav-link:active {
        transform: translateY(0) !important;
    }

    /* Desktop: Hide icons, show text only */
    .unified-nav-link .nav-icon {
        display: none !important;
    }

    .unified-nav-link .nav-text {
        font-size: 0.875rem !important;
        font-weight: 500 !important;
    }

    /* Show menu separator on desktop */
    .menu-separator {
        display: block !important;
    }

    /* Desktop CTA button styles - compact for 992px+ */
    .unified-nav-link.cta-button {
        background: linear-gradient(135deg, #ef4444, #dc2626) !important;
        color: white !important;
        border-radius: 20px !important;
        padding: 8px 16px !important;
        margin-left: 8px !important;
        font-weight: 600 !important;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
        font-size: 0.8rem !important;
        flex-shrink: 0 !important;
    }

    .unified-nav-link.cta-button:hover {
        background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
        color: white !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4) !important;
    }



    /* ==========================================================================
       SCROLL TO TOP BUTTON STYLES
       ========================================================================== */
    .scroll-to-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        font-size: 1.2rem;
        z-index: 1000;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(100px);
        opacity: 0;
        visibility: hidden;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        outline: none;
        user-select: none;
    }

    .scroll-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .scroll-to-top:hover {
        background: var(--secondary-color);
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
    }

    .scroll-to-top:active {
        transform: translateY(-1px);
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
    }

    .scroll-to-top:focus {
        outline: 3px solid rgba(30, 58, 138, 0.3);
        outline-offset: 2px;
    }

    /* Pulse animation for scroll-to-top button */
    .scroll-to-top::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 50%;
        background: inherit;
        animation: pulse-ring 2s infinite;
        opacity: 0.6;
        z-index: -1;
    }

    @keyframes pulse-ring {
        0% {
            transform: scale(1);
            opacity: 0.6;
        }

        50% {
            transform: scale(1.2);
            opacity: 0.3;
        }

        100% {
            transform: scale(1.4);
            opacity: 0;
        }
    }

    /* Responsive adjustments for scroll-to-top button */
    @media (max-width: 768px) {
        .scroll-to-top {
            width: 45px;
            height: 45px;
            bottom: 20px;
            right: 20px;
            font-size: 1.1rem;
        }
    }

    @media (max-width: 576px) {
        .scroll-to-top {
            width: 40px;
            height: 40px;
            bottom: 15px;
            right: 15px;
            font-size: 1rem;
        }
    }

    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .scroll-to-top {
            border: 2px solid white;
        }
    }

    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .scroll-to-top {
            transition: none;
            animation: none;
        }

        .scroll-to-top::before {
            animation: none;
        }
    }

    /* Enhanced desktop dropdown styles */
    .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(229, 231, 235, 0.5) !important;
        border-radius: 12px !important;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
        padding: 6px 0 !important;
        margin: 12px 0 0 0 !important;
        min-width: 200px !important;
        z-index: 1000 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) scale(0.95) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .dropdown-menu.show {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) scale(1) !important;
    }

    .dropdown-item {
        color: #374151 !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        padding: 8px 20px !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
        background: transparent !important;
        min-height: auto !important;
        width: auto !important;
        border-bottom: none !important;
        position: relative !important;
        margin: 1px 8px !important;
        border-radius: 8px !important;
    }

    .dropdown-item::before {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 3px !important;
        height: 0 !important;
        background: #1e3a8a !important;
        border-radius: 2px !important;
        transition: height 0.2s ease !important;
    }

    .dropdown-item:hover {
        color: #1e3a8a !important;
        background: rgba(30, 58, 138, 0.08) !important;
        transform: translateX(4px) !important;
        font-weight: 500 !important;
    }

    .dropdown-item:hover::before {
        height: 16px !important;
    }

    /* Desktop dropdown arrow positioning */
    .has-dropdown .dropdown-arrow {
        margin-left: 8px !important;
        margin-right: 0 !important;
        width: 14px !important;
        height: 14px !important;
    }

    .has-dropdown.show .dropdown-arrow,
    .has-dropdown:hover .dropdown-arrow {
        transform: rotate(180deg) !important;
    }

    /* Enhanced focus styles for desktop navigation */
    .unified-nav-link:focus-visible {
        outline: 2px solid #3b82f6 !important;
        outline-offset: 2px !important;
        background: rgba(30, 58, 138, 0.1) !important;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
    }

    .dropdown-item:focus-visible {
        outline: 2px solid #3b82f6 !important;
        outline-offset: 2px !important;
        background: rgba(30, 58, 138, 0.1) !important;
    }

    /* Smooth navigation container */
    .unified-navbar-collapse {
        will-change: transform !important;
    }

    .unified-nav-menu {
        will-change: transform !important;
    }

    /* Nested Dropdown Styles (Desktop) */
    .dropdown-submenu {
        position: absolute !important;
        top: 0 !important;
        left: 100% !important;
        margin-top: -6px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(229, 231, 235, 0.5) !important;
        border-radius: 12px !important;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
        padding: 6px 0 !important;
        /* Reduced padding matching main menu */
        min-width: 200px !important;
        z-index: 1001 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateX(10px) !important;
        transition: all 0.3s ease !important;
    }

    .dropdown-item.has-submenu:hover>.dropdown-submenu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) !important;
    }

    /* Reduce margin/padding for nested items */
    .dropdown-submenu .dropdown-item {
        margin: 1px 8px !important;
        padding: 8px 20px !important;
    }
}

/* ==========================================================================
   DESKTOP NAVIGATION HOVER FIX
   ========================================================================== */

/* Desktop navigation hover - force override with maximum specificity */
@media (min-width: 992px) {

    .main-header .unified-navbar-collapse .unified-nav .unified-nav-menu .unified-nav-item .unified-nav-link:not(.cta-button):hover,
    .main-header .unified-navbar-collapse .unified-nav .unified-nav-menu .unified-nav-item .unified-nav-link:not(.cta-button):focus {
        background: rgba(30, 58, 138, 0.12) !important;
        color: #1e3a8a !important;
        border-radius: 8px !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15) !important;
    }

    /* Simplified desktop hover fix */
    .unified-nav-link:not(.cta-button):hover {
        background: rgba(30, 58, 138, 0.1) !important;
        color: #1e3a8a !important;
    }

    /* Force all navigation hover states */
    .unified-nav-menu .unified-nav-item .unified-nav-link:not(.cta-button):hover {
        background: rgba(30, 58, 138, 0.12) !important;
        color: #1e3a8a !important;
        border-radius: 8px !important;
    }
}

/* Additional desktop hover override */
@media (min-width: 992px) {
    .navbar .unified-nav-link:not(.cta-button):hover {
        background: rgba(30, 58, 138, 0.1) !important;
        color: #1e3a8a !important;
        border-radius: 8px !important;
        transition: all 0.2s ease !important;
    }
}

/* ==========================================================================
   DESKTOP NAVIGATION RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Standard Desktop (1200px-1399px) - Default comfortable spacing */
@media (min-width: 1200px) and (max-width: 1399px) {
    .unified-nav-menu {
        gap: 0.5rem !important;
    }

    .unified-nav-link {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.9rem !important;
    }

    .unified-nav-link.cta-button {
        padding: 9px 18px !important;
        margin-left: 6px !important;
    }
}

/* Critical Fix: 992px-1199px range - Ensure navigation displays properly */
@media (min-width: 992px) and (max-width: 1199px) {

    /* Compact navigation spacing */
    .unified-nav-menu {
        gap: 0.375rem !important;
    }

    .unified-nav-link {
        padding: 0.25rem 0.375rem !important;
        font-size: 0.8rem !important;
    }

    .unified-nav-link.cta-button {
        padding: 6px 12px !important;
        margin-left: 6px !important;
        font-size: 0.75rem !important;
        border-radius: 15px !important;
    }

    .dropdown-menu {
        min-width: 160px !important;
        z-index: 1050;
    }

    .dropdown-item {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    /* Further reduce brand size for 992px range */
    .brand-title {
        font-size: 0.95rem !important;
    }

    .brand-subtitle {
        font-size: 0.5rem !important;
    }

    .logo-img {
        max-height: 30px !important;
    }

    /* Ensure navbar brand doesn't overflow */
    .navbar-brand {
        max-width: 40% !important;
    }

    /* Compact text sizing */
    .unified-nav-link .nav-text {
        font-size: 0.8rem !important;
    }
}


/* ==========================================================================
   ACCESSIBILITY & UTILITIES
   ========================================================================== */

/* Focus styles */
.unified-nav-link:focus-visible,
.mobile-menu-close:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Completely disable all focus styles for hamburger menu */
.hamburger-menu:focus-visible {
    outline: none !important;
    background: transparent !important;
}

/* Skip navigation */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1e3a8a;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 1100;
}

.skip-nav:focus {
    top: 0;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .unified-nav-link {
        border: 1px solid transparent;
    }

    .unified-nav-link:hover,
    .unified-nav-link.active {
        border-color: #1e3a8a;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hide on mobile utility */
@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }
}

/* Hide on desktop utility */
@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}

/* Fix cursor issues from gallery CSS/JS */
* {
    cursor: inherit !important;
}

body,
html {
    cursor: default !important;
}

/* Only allow pointer cursor on interactive elements */
a,
button,
.btn,
input[type="button"],
input[type="submit"],
.gallery-item,
.gallery-card,
.gallery-image-container,
.gallery-image,
.gallery-overlay,
.gallery-overlay-content,
.gallery-btn,
.video-overlay,
.play-button,
.hero-nav-btn,
.hero-dot,
.hamburger-menu,
.mobile-menu-close,
.lightbox-close,
.lightbox-nav,
.activity-card,
[role="button"],
[tabindex]:not([tabindex="-1"]) {
    cursor: pointer !important;
}

/* Emergency Mobile Menu Visibility Fix */
@media screen and (max-width: 991px) {
    .hamburger-menu {
        display: flex !important;
    }

    /* Force navbar display for mobile */
    .navbar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .navbar-brand {
        display: flex !important;
    }
}

/* ==========================================================================
   MULTI-LEVEL DROPDOWN MENU STYLES
   Desktop: Nested submenus open on the right side
   Mobile: Accordion-style nested menus
   ========================================================================== */

/* ==========================================================================
   DESKTOP MULTI-LEVEL MENU STYLES (≥ 992px)
   ========================================================================== */
@media (min-width: 992px) {

    /* Submenu Container with nested submenu */
    .dropdown-item.has-submenu {
        position: relative;
        padding: 0 !important;
        margin: 2px 8px !important;
        border-radius: 8px !important;
        background: transparent !important;
        display: block !important;
    }

    /* Submenu Link (parent of nested submenu) */
    .dropdown-item.has-submenu .submenu-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 20px !important;
        color: #374151 !important;
        text-decoration: none !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-radius: 8px !important;
        position: relative !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Submenu Link Hover Effect */
    .dropdown-item.has-submenu .submenu-link:hover {
        color: #1e3a8a !important;
        background: rgba(30, 58, 138, 0.08) !important;
        transform: translateX(4px) !important;
        font-weight: 500 !important;
    }

    /* Submenu Arrow Icon (right-pointing chevron) */
    .submenu-arrow {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
        margin-left: 12px !important;
        transition: transform 0.2s ease !important;
        opacity: 0.6 !important;
        color: currentColor !important;
    }

    .dropdown-item.has-submenu:hover .submenu-arrow {
        opacity: 1 !important;
        transform: translateX(2px) !important;
    }

    /* Nested Dropdown Menu (opens on the right) */
    .dropdown-submenu {
        position: absolute !important;
        top: 0 !important;
        left: 100% !important;
        margin-left: 8px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(229, 231, 235, 0.5) !important;
        border-radius: 12px !important;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
        padding: 12px 0 !important;
        min-width: 200px !important;
        z-index: 1001 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateX(-10px) scale(0.95) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        pointer-events: none !important;
    }

    /* Show nested submenu on hover */
    .dropdown-item.has-submenu:hover>.dropdown-submenu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) scale(1) !important;
        pointer-events: auto !important;
    }

    /* Submenu Content Wrapper */
    .dropdown-submenu .dropdown-content {
        padding: 0 !important;
    }

    /* Items inside nested submenu */
    .dropdown-submenu .dropdown-item {
        color: #374151 !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        padding: 8px 20px !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
        background: transparent !important;
        min-height: auto !important;
        width: auto !important;
        border-bottom: none !important;
        position: relative !important;
        margin: 2px 8px !important;
        border-radius: 8px !important;
    }

    .dropdown-submenu .dropdown-item::before {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 3px !important;
        height: 0 !important;
        background: #1e3a8a !important;
        border-radius: 2px !important;
        transition: height 0.2s ease !important;
    }

    .dropdown-submenu .dropdown-item:hover {
        color: #1e3a8a !important;
        background: rgba(30, 58, 138, 0.08) !important;
        transform: translateX(4px) !important;
        font-weight: 500 !important;
    }

    .dropdown-submenu .dropdown-item:hover::before {
        height: 16px !important;
    }

    /* Enhanced hover state for submenu items */
    .dropdown-item.has-submenu:hover {
        background: rgba(30, 58, 138, 0.08) !important;
    }

    /* Item Content Styling */
    .item-content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .item-title {
        font-weight: inherit !important;
        line-height: 1.4 !important;
        color: inherit !important;
    }

    .item-description {
        font-size: 12px !important;
        color: #6b7280 !important;
        line-height: 1.3 !important;
        margin-top: 2px !important;
    }
}

/* ==========================================================================
   MOBILE MULTI-LEVEL MENU STYLES (< 992px)
   Accordion-style nested menus
   ========================================================================== */
@media (max-width: 991.98px) {

    /* Submenu Container */
    .dropdown-item.has-submenu {
        display: block !important;
        padding: 0 !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    /* Submenu Link (clickable to toggle) */
    .dropdown-item.has-submenu .submenu-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.75rem 1.5rem 0.75rem 3.5rem !important;
        color: #374151 !important;
        text-decoration: none !important;
        font-size: 0.9rem !important;
        font-weight: 400 !important;
        background: transparent !important;
        border: none !important;
        width: 100% !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
    }

    .dropdown-item.has-submenu .submenu-link:hover,
    .dropdown-item.has-submenu .submenu-link:focus {
        color: #1e3a8a !important;
        background: #f8fafc !important;
        padding-left: 3rem !important;
        transform: translateX(5px) !important;
    }

    /* Submenu Arrow (down arrow on mobile) */
    .submenu-arrow {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
        transition: transform 0.3s ease !important;
        margin-left: auto !important;
        transform: rotate(0deg) !important;
    }

    /* Rotate arrow when submenu is open */
    .dropdown-item.has-submenu.show .submenu-arrow {
        transform: rotate(90deg) !important;
    }

    /* Nested Submenu (accordion-style on mobile) */
    .dropdown-submenu {
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
        background: rgba(0, 0, 0, 0.02) !important;
        display: none !important;
    }

    /* Show nested submenu when parent is active */
    .dropdown-item.has-submenu.show .dropdown-submenu {
        max-height: 1000px !important;
        display: block !important;
    }

    /* Nested submenu items */
    .dropdown-submenu .dropdown-item {
        padding: 0.625rem 1.25rem 0.625rem 4.5rem !important;
        font-size: 0.875rem !important;
        color: #374151 !important;
        text-decoration: none !important;
        display: block !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
        transition: all 0.3s ease !important;
        min-height: 40px !important;
    }

    .dropdown-submenu .dropdown-item:hover {
        color: #1e3a8a !important;
        background: #f8fafc !important;
        padding-left: 4rem !important;
        transform: translateX(5px) !important;
    }

    /* Last item in nested submenu */
    .dropdown-submenu .dropdown-item:last-child {
        border-bottom: none !important;
    }

    /* Item Content */
    .item-content {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
    }

    .item-title {
        font-weight: inherit !important;
        line-height: 1.4 !important;
    }

    .item-description {
        font-size: 0.75rem !important;
        color: #6b7280 !important;
        line-height: 1.3 !important;
        margin-top: 2px !important;
    }
}

/* ==========================================================================
   SMALL MOBILE ADJUSTMENTS (< 576px)
   ========================================================================== */
@media (max-width: 576px) {
    .dropdown-item.has-submenu .submenu-link {
        padding: 0.625rem 1rem 0.625rem 3rem !important;
        font-size: 0.875rem !important;
    }

    .dropdown-submenu .dropdown-item {
        padding: 0.5rem 1rem 0.5rem 4rem !important;
        font-size: 0.8rem !important;
        min-height: 36px !important;
    }
}

/* ==========================================================================
   END OF NAVIGATION SECTION
   ========================================================================== */

/* ==========================================================================
   MODERN GALLERY DESIGN - FULLY RESPONSIVE
   ========================================================================== */

/* Gallery Header */
.gallery-header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 400;
}


/* Gallery Controls Section */
.gallery-controls {
    background: #fafbfc;
    padding: 3rem 0;
    border-bottom: 1px solid #e5e7eb;
}

/* Modern Search Bar */
.gallery-search-container {
    margin-bottom: 3rem;
}

.gallery-search {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.1rem;
    z-index: 3;
    transition: color 0.3s ease;
}

.search-input {
    width: 100%;
    padding: 1.125rem 1.125rem 1.125rem 3.5rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    background: white;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #1f2937;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.search-input:focus+.search-clear-btn,
.search-input:not(:placeholder-shown)+.search-clear-btn {
    opacity: 1;
    visibility: visible;
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    color: #6b7280;
    cursor: pointer;
    z-index: 3;
}

.search-clear-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.search-btn {
    padding: 1.125rem 2rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    min-width: 120px;
    justify-content: center;
}

.search-btn:hover {
    background: linear-gradient(135deg, #3730a3 0%, #6b21a8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn i {
    font-size: 1rem;
}

.search-btn .btn-text {
    font-size: 1rem;
}

/* Modern Filter Tabs */
.gallery-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    background: white;
    border-radius: 1rem;
    padding: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.filter-tab:hover {
    color: #4f46e5;
    background: #f8fafc;
}

.filter-tab.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.filter-tab i {
    font-size: 1rem;
}

.tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: currentColor;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.filter-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
}

.filter-tab:not(.active) .tab-count {
    background: #f3f4f6;
    color: #6b7280;
}

/* View Options */
.view-options-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.view-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}

.view-options {
    display: flex;
    gap: 0.375rem;
    background: white;
    padding: 0.375rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.view-btn {
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.view-btn:hover {
    color: #4f46e5;
    background: #f8fafc;
}

.view-btn.active {
    background: #4f46e5;
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.view-btn i {
    font-size: 0.875rem;
}

.view-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.gallery-search .form-control {
    border: none;
    background: transparent;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gallery-dark);
    border-radius: 16px 0 0 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 56px;
    flex: 1 1 auto;
    /* Grow and shrink as needed */
    min-width: 0;
    /* Allow shrinking */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    z-index: 2;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: #ffffff;
    min-height: 50vh;
}

/* Modern Gallery Grid */
.gallery-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Grid View (Default) */
.gallery-grid.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Masonry View */
.gallery-grid.view-masonry {
    columns: 4;
    column-gap: 1.5rem;
    column-fill: balance;
}


/* Gallery Items */
.gallery-item {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 1;
    break-inside: avoid;
    /* For masonry */
    margin-bottom: 1.5rem;
    /* For masonry */
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
}

/* Gallery Item Image */
.gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.1);
}

/* Gallery Badge */
.gallery-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(124, 58, 237, 0.9));
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item[data-type="photo"] .gallery-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
}

.gallery-item[data-type="video"] .gallery-badge {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
}

.gallery-item:hover .gallery-badge {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gallery-badge i {
    font-size: 0.8rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}


/* Animation for new items */
.gallery-item-new {
    animation: fadeInUp 0.6s ease-out backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Loading States */
.gallery-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.loading-spinner {
    margin-bottom: 2rem;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
}

/* Empty States */
.gallery-empty {
    text-align: center;
    padding: 6rem 2rem;
    color: #6b7280;
}

.empty-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.empty-icon i {
    font-size: 2rem;
    color: #9ca3af;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.empty-message {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-reset-search {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-search:hover {
    background: linear-gradient(135deg, #3730a3 0%, #6b21a8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Load More Button */
.load-more-section {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: white;
    color: #4f46e5;
    border: 2px solid #e5e7eb;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.load-more-btn:hover {
    border-color: #4f46e5;
    background: #4f46e5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(2px);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS - MODERN GALLERY
   ========================================================================== */

/* Mobile First - Extra Small Devices (< 576px) */
@media (max-width: 575.98px) {
    .gallery-header {
        padding: 1.5rem 0 !important;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .page-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }


    .gallery-controls {
        padding: 2rem 0;
    }

    .gallery-search {
        margin-bottom: 2rem;
    }

    .search-form {
        flex-direction: column;
        gap: 1rem;
    }

    .search-input {
        padding: 1rem 3rem 1rem 3.5rem;
        font-size: 0.95rem;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .search-btn .btn-text {
        display: inline;
    }

    .gallery-filters {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .filter-tabs {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .filter-tab {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .filter-tab span:not(.tab-count) {
        display: none;
    }

    .filter-tab .tab-count {
        display: inline-block;
        background: rgba(255, 255, 255, 0.9);
        color: #4f46e5;
        font-weight: 700;
        min-width: 1.25rem;
        font-size: 0.75rem;
    }

    .filter-tab.active .tab-count {
        background: rgba(255, 255, 255, 0.25);
        color: white;
    }

}

.gallery-grid {
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-grid.view-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.gallery-grid.view-masonry {
    columns: 2;
    column-gap: 1rem;
}

.gallery-item {
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.gallery-badge {
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    gap: 0.25rem;
    border-radius: 0.375rem;
}

.gallery-badge i {
    font-size: 0.65rem;
}

.gallery-section {
    padding: 2rem 0;
}

.gallery-loading {
    padding: 3rem 1rem;
}

.gallery-empty {
    padding: 4rem 1rem;
}

.empty-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
}

.empty-icon i {
    font-size: 1.5rem;
}

.empty-title {
    font-size: 1.25rem;
}

/* Small Devices (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .gallery-hero {
        padding: 5rem 0 3.5rem;
        min-height: 55vh;
    }

    .gallery-title {
        font-size: clamp(2.5rem, 6vw, 3rem);
    }

    .gallery-stats {
        gap: 2rem;
    }

    .gallery-controls {
        padding: 2.5rem 0;
    }

    .search-form {
        flex-direction: row;
    }

    .search-input {
        padding: 1.125rem 1.125rem 1.125rem 3.5rem;
    }

    .search-btn .btn-text {
        display: none;
    }

    .gallery-filters {
        flex-direction: row;
        justify-content: space-between;
    }

    .filter-tab span:not(.tab-count) {
        display: inline;
    }

    .filter-tab .tab-count {
        display: inline-block;
        background: rgba(255, 255, 255, 0.8);
        color: #4f46e5;
        font-weight: 600;
    }

    .filter-tab.active .tab-count {
        background: rgba(255, 255, 255, 0.25);
        color: white;
    }

    .gallery-grid.view-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }

    .gallery-grid.view-masonry {
        columns: 3;
    }
}

/* Medium Devices - Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .gallery-hero {
        padding: 6rem 0 4rem;
        min-height: 60vh;
    }

    .gallery-title {
        font-size: clamp(3rem, 5vw, 3.5rem);
    }

    .gallery-stats {
        gap: 2.5rem;
    }

    .search-btn .btn-text {
        display: inline;
    }

    .gallery-grid.view-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .filter-tab .tab-count {
        display: inline-block;
        min-width: 1.5rem;
    }

    .gallery-grid.view-masonry {
        columns: 3;
    }
}

/* Large Devices - Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .gallery-hero {
        padding: 7rem 0 4.5rem;
    }

    .gallery-stats {
        gap: 3rem;
    }

    .gallery-grid.view-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .gallery-grid.view-masonry {
        columns: 4;
    }
}

/* Extra Large Devices (≥ 1200px) */
@media (min-width: 1200px) {
    .gallery-hero {
        padding: 8rem 0 5rem;
    }

    .gallery-stats {
        gap: 4rem;
    }

    .gallery-grid.view-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .gallery-grid.view-masonry {
        columns: 5;
    }
}

/* Ultra Wide Screens (≥ 1400px) */
@media (min-width: 1400px) {
    .gallery-grid.view-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .gallery-grid.view-masonry {
        columns: 6;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .gallery-item:hover {
        transform: none;
    }

    .gallery-item:hover .gallery-thumb {
        transform: none;
    }

    .gallery-item:hover .gallery-badge {
        transform: none;
    }

    .filter-tab,
    .view-btn,
    .search-btn,
    .load-more-btn {
        min-height: 44px;
    }

    .search-input {
        min-height: 44px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .gallery-thumb {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .gallery-hero {
        padding: 3rem 0 2rem;
        min-height: 80vh;
    }

    .gallery-stats {
        flex-direction: row;
        gap: 2rem;
    }

    .gallery-controls {
        padding: 1.5rem 0;
    }
}

/* Print Styles */
@media print {

    .gallery-hero,
    .gallery-controls,
    .gallery-loading,
    .load-more-section {
        display: none;
    }

    .gallery-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    .gallery-grid {
        display: block;
        columns: 3;
        column-gap: 1rem;
    }
}

.gallery-search .btn:hover::before {
    left: 100%;
}

.gallery-search .btn:hover {
    background: linear-gradient(135deg, #3730a3 0%, #6b21a8 50%, #0891b2 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-search .btn:focus {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3), 0 8px 25px rgba(79, 70, 229, 0.4);
}

.gallery-search .btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

.gallery-search .btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.gallery-search .btn i {
    font-size: 1.1rem;
    line-height: 1;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.gallery-search .btn:hover i {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.gallery-search .btn span {
    line-height: 1;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Gallery Grid - CSS Grid Layout for uniform alignment */
.gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Responsive grid columns */
@media (max-width: 575px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* Gallery Items - Fixed Size Cards */
.gallery-item {
    display: block;
    position: relative;
    border-radius: var(--gallery-radius-lg);
    overflow: hidden;
    box-shadow: var(--gallery-shadow);
    background: white;
    transition: var(--gallery-transition-slow);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    width: 100%;
}

/* Ensure video cards in main gallery also use square aspect ratio */
.gallery-item[data-type="video"] {
    aspect-ratio: 1 / 1;
}

/* Video cards in dedicated videos page use 16:9 */
.video-card {
    aspect-ratio: 16 / 9;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--gallery-shadow-lg);
    text-decoration: none;
    color: inherit;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.05);
}

.gallery-item:active {
    transform: translateY(-2px);
}

/* Gallery Thumbnails - Full Size with Object Fit */
.gallery-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: var(--gallery-transition-slow);
    background: var(--gallery-light);
}

.gallery-thumb[loading="lazy"] {
    min-height: 200px;
    background: linear-gradient(45deg,
            var(--gallery-light) 25%,
            transparent 25%,
            transparent 75%,
            var(--gallery-light) 75%,
            var(--gallery-light)),
        linear-gradient(45deg,
            var(--gallery-light) 25%,
            transparent 25%,
            transparent 75%,
            var(--gallery-light) 75%,
            var(--gallery-light));
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* Gallery Badges */
.gallery-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    backdrop-filter: blur(6px);
    z-index: 2;
    transition: var(--gallery-transition);
}

.gallery-badge i {
    font-size: 0.75rem;
}

.gallery-item:hover .gallery-badge {
    background: rgba(var(--gallery-primary-rgb), 0.9);
}

/* Gallery Captions - Hidden for clean look */
.gallery-caption {
    display: none;
}

.gallery-title {
    display: none;
}

.gallery-desc {
    display: none;
}

/* Modern Lightbox with Navigation */


/* Load More Button */
.load-more {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--gallery-radius);
    border: 2px solid var(--gallery-primary);
    background: transparent;
    color: var(--gallery-primary);
    transition: var(--gallery-transition);
    position: relative;
    overflow: hidden;
}

.load-more:hover {
    background: var(--gallery-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--gallery-shadow-lg);
}

.load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


/* Empty State */
.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gallery-secondary);
}

.gallery-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.gallery-empty h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gallery-dark);
}

.gallery-empty p {
    font-size: 1rem;
    margin: 0;
}

/* Enhanced Gallery Animations */
.gallery-item {
    animation: galleryFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
    transform-origin: center bottom;
}

/* Staggered animation delays for grid items */
.gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.15s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.25s;
}

.gallery-item:nth-child(5) {
    animation-delay: 0.3s;
}

.gallery-item:nth-child(6) {
    animation-delay: 0.35s;
}

.gallery-item:nth-child(7) {
    animation-delay: 0.4s;
}

.gallery-item:nth-child(8) {
    animation-delay: 0.45s;
}

.gallery-item:nth-child(9) {
    animation-delay: 0.5s;
}

.gallery-item:nth-child(10) {
    animation-delay: 0.55s;
}

.gallery-item:nth-child(11) {
    animation-delay: 0.6s;
}

.gallery-item:nth-child(12) {
    animation-delay: 0.65s;
}

/* For items beyond 12, use a cycle */
.gallery-item:nth-child(n+13) {
    animation-delay: 0.1s;
}

@keyframes galleryFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Gallery toolbar animation */
.gallery-toolbar {
    animation: slideInFromTop 0.6s cubic-bezier(0.23, 1, 0.32, 1) backwards;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search bar animation */
.gallery-search {
    animation: fadeInScale 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
    animation-delay: 0.2s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Enhanced hover animations */
.gallery-item {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-badge {
    transform: scale(1.1) translateY(-2px);
    background: rgba(var(--gallery-primary-rgb), 0.95);
    box-shadow: 0 4px 12px rgba(var(--gallery-primary-rgb), 0.4);
}

/* ==========================================================================
   MODERN REDESIGNED LIGHTBOX - OPTIMIZED FOR VIDEOS
   ========================================================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox.closing {
    opacity: 0;
    visibility: hidden;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.open .lightbox-content {
    transform: scale(1);
}

.lightbox-media {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* Image styles in lightbox */
.lightbox-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Video iframe styles - optimized for YouTube */
.lightbox-media iframe {
    width: 100%;
    height: 100%;
    max-width: 90vw;
    max-height: 85vh;
    min-width: 320px;
    min-height: 180px;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Enhanced control buttons */
.lightbox-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10002;
    color: #374151;
    font-size: 1.25rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
    background: rgba(239, 68, 68, 0.95);
    color: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4);
}

/* Navigation buttons */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10002;
    color: #374151;
    font-size: 1.25rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.lightbox-nav:hover {
    background: rgba(79, 70, 229, 0.95);
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.4);
}

.lightbox-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

.lightbox-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #9ca3af;
    transform: translateY(-50%) scale(0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* Counter with modern design */
.lightbox-counter {
    position: fixed;
    top: 2rem;
    left: 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 10002;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Meta information overlay */
.lightbox-meta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.95) 100%);
    color: white;
    padding: 4rem 2rem 2rem;
    z-index: 10001;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100%);
    backdrop-filter: blur(10px);
}

.lightbox-meta.show {
    transform: translateY(0);
}

.meta-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.meta-text {
    flex: 1;
    min-width: 0;
}

.meta-uploader {
    flex-shrink: 0;
    text-align: right;
}

.lightbox-meta h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
    word-wrap: break-word;
}

.lightbox-meta p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    word-wrap: break-word;
}

#lightboxUploader {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

/* Toggle button for meta info */
.lightbox-meta-toggle {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10003;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto !important;
    min-width: 120px;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.lightbox-meta-toggle:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    color: #1e3a8a;
}

.lightbox-meta-toggle:active {
    transform: translateX(-50%) translateY(0px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-meta-toggle i {
    font-size: 0.875rem;
    margin: 0;
}

.lightbox-meta-toggle span {
    font-weight: 600;
    margin: 0;
}

/* Ensure toggle button is always accessible */
.lightbox-meta-toggle:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Prevent button from being hidden or covered */
.lightbox .lightbox-meta-toggle {
    position: fixed !important;
    display: inline-flex !important;
    pointer-events: auto !important;
    z-index: 10003 !important;
}

/* Loading state */
.lightbox-media.loading {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-media.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.lightbox-media.error {
    background: rgba(220, 38, 38, 0.1);
    border: 2px dashed rgba(220, 38, 38, 0.3);
}

.lightbox-media.error::before {
    content: '⚠️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #dc2626;
    z-index: 10;
}

/* Hide only view options on mobile */
@media (max-width: 768px) {
    .view-options-section {
        display: none !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .lightbox {
        padding: 0.5rem;
    }

    .lightbox-content {
        max-width: 100vw;
        max-height: 100vh;
    }

    .lightbox-media {
        max-width: 95vw;
        max-height: 90vh;
        border-radius: 8px;
    }

    .lightbox-media iframe {
        max-width: 95vw;
        max-height: 90vh;
        min-width: 280px;
        min-height: 158px;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.1rem;
    }

    .lightbox-nav {
        width: 3rem;
        height: 3rem;
        font-size: 1.1rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .lightbox-counter {
        top: 1rem;
        left: 1rem;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .lightbox-meta {
        padding: 3rem 1.5rem 1.5rem;
    }

    .meta-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .meta-uploader {
        text-align: left;
        align-self: flex-start;
    }

    .lightbox-meta h5 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .lightbox-meta p {
        font-size: 0.9rem;
    }

    #lightboxUploader {
        font-size: 0.8rem;
    }

    .lightbox-meta-toggle {
        bottom: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .lightbox-media iframe {
        min-width: 260px;
        min-height: 146px;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .lightbox-counter {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Landscape mode optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .lightbox-media {
        max-height: 95vh;
    }

    .lightbox-media iframe {
        max-height: 95vh;
    }

    .lightbox-counter {
        top: 0.5rem;
        left: 0.5rem;
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
    }

    .lightbox-nav {
        top: 50%;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}

/* ==========================================================================
   HOMEPAGE GALLERY SECTION STYLES
   ========================================================================== */

/* Gallery Section - Match Activities Section Design */
.gallery-section {
    padding: 80px 0 0 0;
    background: var(--light-color);
}

.gallery-section .section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.gallery-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gallery-section .section-header .lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Gallery Cards - Match Activity Cards Styling */
.gallery-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

/* Responsive Gallery Row Spacing */

/* Desktop - 2rem gaps */
.gallery-row {
    margin-left: -1rem;
    margin-right: -1rem;
}

.gallery-row .col-lg-4,
.gallery-row .col-md-6 {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 2rem !important;
}

/* High specificity rule for desktop */
.gallery-section .gallery-row>div {
    margin-bottom: 2rem !important;
    display: block !important;
}

/* Tablet - 1.5rem gaps */
@media (max-width: 992px) {
    .gallery-row {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    .gallery-row .col-lg-4,
    .gallery-row .col-md-6 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        margin-bottom: 1.5rem !important;
    }

    .gallery-section .gallery-row>div {
        margin-bottom: 1.5rem !important;
    }
}

/* Mobile - 1rem gaps */
@media (max-width: 768px) {
    .gallery-row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .gallery-row .col-lg-4,
    .gallery-row .col-md-6 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 1rem !important;
    }

    .gallery-section .gallery-row>div {
        margin-bottom: 1rem !important;
    }
}

/* Small Mobile - 0.75rem gaps */
@media (max-width: 576px) {
    .gallery-row {
        margin-left: -0.375rem;
        margin-right: -0.375rem;
    }

    .gallery-row .col-lg-4,
    .gallery-row .col-md-6 {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
        margin-bottom: 0.75rem !important;
    }

    .gallery-section .gallery-row>div {
        margin-bottom: 0.75rem !important;
    }
}

.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.gallery-card:hover::before {
    transform: scaleX(1);
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.05);
}

/* Remove bottom margin from last row columns */
.gallery-row>div:nth-last-child(-n+3) {
    margin-bottom: 0 !important;
}

/* For tablet - remove margin from last 2 columns */
@media (max-width: 992px) {
    .gallery-row>div:nth-last-child(-n+2) {
        margin-bottom: 0 !important;
    }
}

/* For mobile - remove margin from last column */
@media (max-width: 768px) {
    .gallery-row>div:last-child {
        margin-bottom: 0 !important;
    }
}

/* Video Play Button Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.gallery-item:hover .play-button {
    background: white;
    transform: scale(1.1);
}

/* Gallery Item Hover Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 1rem;
}

/* Only show hover overlay on photos, not videos */
.gallery-item[data-type="photo"]:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    text-align: center;
}

.gallery-icons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.gallery-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-btn:hover {
    background: white;
    transform: scale(1.1);
}

/* Gallery Content */
.gallery-content {
    padding: 1rem 1.25rem 0.5rem 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* COMPLETE GALLERY CARD WHITE SPACE REMOVAL - NUCLEAR OPTION */
.gallery-section .gallery-card {
    background: white !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;

    /* Remove all spacing and sizing issues */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    display: block !important;
    flex: none !important;

    /* Remove any Bootstrap card defaults */
    line-height: 0 !important;
    font-size: 0 !important;
}

.gallery-section .gallery-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.gallery-section .gallery-item {
    margin-bottom: 1rem !important;
    height: auto !important;
    display: block !important;
    flex: none !important;
    width: 100% !important;
    position: relative !important;
}

/* CRITICAL: Remove any content area spacing for homepage gallery */
.gallery-section .gallery-content {
    display: none !important;
}

/* ENSURE GALLERY IMAGE CONTAINER HAS NO WHITE SPACE */
.gallery-section .gallery-image-container {
    border-radius: 8px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 250px !important;
    position: relative !important;
    display: block !important;

    /* Remove any potential spacing */
    line-height: 0 !important;
    font-size: 0 !important;
}

.gallery-section .gallery-image {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    vertical-align: top !important;

    /* Remove any spacing around image */
    line-height: 0 !important;
    font-size: 0 !important;
}

/* OVERRIDE ANY BOOTSTRAP CARD DEFAULTS */
.gallery-section .gallery-card,
.gallery-section .gallery-card *,
.gallery-section .gallery-card *::before,
.gallery-section .gallery-card *::after {
    box-sizing: border-box !important;
}

.gallery-section .gallery-card::after,
.gallery-section .gallery-card::before {
    content: none !important;
    display: none !important;
}

/* FORCE COLUMN LAYOUT TO PREVENT FLEX ISSUES */
.gallery-section .col-lg-4,
.gallery-section .col-md-6 {
    display: block !important;
    align-items: stretch !important;
    margin: 0 !important;
    /* Keep only left/right padding for spacing between cards */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* REMOVE BOOTSTRAP ROW BOTTOM MARGIN */
.gallery-section .row {
    margin-bottom: 0 !important;
}

/* ADDITIONAL SAFETY: Remove any inherited spacing */
.gallery-section div,
.gallery-section img {
    line-height: 0 !important;
}

.gallery-section .gallery-card * {
    margin: 0 !important;
    padding: 0 !important;
}

/* ENSURE OVERLAY ELEMENTS DON'T CREATE SPACING */
.gallery-section .video-overlay,
.gallery-section .gallery-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2 !important;
}

.gallery-section .video-overlay {
    background: rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
}

.gallery-section .gallery-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    display: flex !important;
    align-items: end !important;
    justify-content: center !important;
    padding: 1rem !important;
}

.gallery-section .gallery-item[data-type="photo"]:hover .gallery-overlay {
    opacity: 1 !important;
}

/* SIMPLE TEST - GALLERY CARD NO SPACE */
.no-space-gallery-card {
    padding: 0 !important;
    margin: 0 !important;
    border: 2px solid red !important;
    /* Temporary border to see if this CSS works */
    height: fit-content !important;
}

.no-space-gallery-card .gallery-image-container {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.no-space-gallery-card .gallery-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Responsive Gallery Heights */
@media (max-width: 992px) {
    .gallery-section .position-relative {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .gallery-section .position-relative {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .gallery-section .position-relative {
        height: 180px;
    }

    .gallery-section .col-lg-4 {
        margin-bottom: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .gallery-section .position-relative {
        height: 160px;
    }
}

/* Very small devices */
@media (max-width: 375px) {
    .gallery-section .position-relative {
        height: 140px;
    }

    .gallery-section .col-lg-4 {
        margin-bottom: 0.75rem;
    }
}

/* Large tablets in landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .gallery-section .position-relative {
        height: 200px;
    }
}

/* Gallery Section - Clean Bootstrap Cards */
.gallery-section {
    background: #ffffff;
}

.gallery-section .gallery-item {
    border-radius: 10px;
    overflow: hidden;
}

.gallery-section .position-relative {
    height: 250px;
}

.gallery-section .gallery-item img {
    object-fit: cover;
    display: block;
    width: 100%;
    height: 100%;
}

/* Compact gallery row spacing */
.gallery-section .row.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

/* Remove any default Bootstrap column spacing */
.gallery-section .col-lg-4,
.gallery-section .col-md-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-bottom: 1rem;
}

.gallery-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.gallery-description {
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 0;
}


/* LIGHTBOX STYLES */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
}

.lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    max-height: 800px;
    display: flex;
    flex-direction: column;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    color: white;
}

.lightbox-counter {
    font-size: 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.lightbox-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.lightbox-media-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.lightbox-media {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-media iframe {
    width: 100%;
    height: 500px;
    max-width: 800px;
    border: none;
    border-radius: 8px;
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/* Lightbox Meta */
.lightbox-meta {
    color: white;
    padding: 1rem 0;
}

.lightbox-meta-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.lightbox-meta-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.meta-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.meta-content.active {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 2rem;
}

.meta-content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.meta-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.meta-uploader {
    text-align: right;
    flex-shrink: 0;
}

/* Responsive Gallery Styles - Match Activities Section */

/* Large Desktop */
@media (max-width: 1400px) {
    .gallery-section .section-header h2 {
        font-size: 2.2rem;
    }

    .gallery-section .section-header .lead {
        font-size: 1.15rem;
    }

    .gallery-image-container {
        height: 200px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .gallery-section {
        padding: 70px 0 0 0;
    }

    .gallery-section .section-header h2 {
        font-size: 2rem;
    }

    .gallery-section .section-header .lead {
        font-size: 1.1rem;
    }

    .gallery-image-container {
        height: 190px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .gallery-section {
        padding: 60px 0 0 0;
    }

    .gallery-section .section-header {
        margin-bottom: 3rem;
    }

    .gallery-section .section-header h2 {
        font-size: 1.8rem;
    }

    .gallery-section .section-header .lead {
        font-size: 1rem;
    }


    .gallery-image-container {
        height: 180px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .gallery-section {
        padding: 50px 0 0 0;
    }

    .gallery-section .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .gallery-section .section-header .lead {
        font-size: 0.95rem;
        line-height: 1.5;
    }


    .gallery-image-container {
        height: 160px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .gallery-section {
        padding: 40px 0 0 0;
    }

    .gallery-section .section-header h2 {
        font-size: 1.5rem;
    }

    .gallery-section .section-header .lead {
        font-size: 0.9rem;
    }

    .gallery-image-container {
        height: 140px;
    }
}

/* Extra Small */
@media (max-width: 480px) {
    .gallery-section {
        padding: 30px 0 0 0;
    }

    .gallery-section .section-header h2 {
        font-size: 1.4rem;
    }

    .gallery-image-container {
        height: 120px;
    }
}

/* Responsive Gallery Styles */
@media (max-width: 1200px) {
    .lightbox-prev {
        left: -60px;
    }

    .lightbox-next {
        right: -60px;
    }
}

@media (max-width: 992px) {
    .gallery-image-container {
        height: 220px;
    }

    .gallery-section .gallery-image-container {
        height: 220px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }

    .gallery-section .gallery-card {
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }

    .gallery-section .gallery-image {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }

    .gallery-content {
        padding: 0.875rem 1rem 0.5rem 1rem;
    }

    .gallery-section .gallery-item {
        margin-bottom: 0.75rem;
    }

    .gallery-section .col-lg-4,
    .gallery-section .col-md-6 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        margin-bottom: 0.75rem;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-media iframe {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .gallery-image-container {
        height: 200px;
    }

    .gallery-section .gallery-image-container {
        height: 200px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }

    .gallery-section .gallery-card {
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }

    .gallery-section .gallery-image {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }

    .gallery-title {
        font-size: 0.95rem;
    }

    .gallery-description {
        font-size: 0.8rem;
    }

    .lightbox-container {
        width: 95%;
        height: 95%;
    }

    .lightbox-media iframe {
        height: 300px;
    }

    .meta-content {
        flex-direction: column;
        gap: 1rem;
    }

    .meta-uploader {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .gallery-image-container {
        height: 180px;
    }

    .gallery-section .gallery-image-container {
        height: 180px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }

    .gallery-section .gallery-card {
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }

    .gallery-section .gallery-image {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
        font-size: 0 !important;
    }

    .gallery-content {
        padding: 0.75rem 0.75rem 0.25rem 0.75rem;
    }

    .gallery-section .gallery-item {
        margin-bottom: 0.5rem;
    }

    .gallery-section .col-lg-4,
    .gallery-section .col-md-6 {
        padding-left: 0.125rem;
        padding-right: 0.125rem;
        margin-bottom: 0.5rem;
    }

    .gallery-section .row.g-4 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .gallery-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .lightbox-media iframe {
        height: 200px;
    }
}

/* Gallery Animation */
.gallery-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Lightbox Loading */
.lightbox-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: white;
    font-size: 1.1rem;
}

.lightbox-loading i {
    margin-right: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Gallery toolbar adjustments */
.gallery-toolbar {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.gallery-toolbar h2 {
    text-align: center;
    margin-bottom: 0;
}

.gallery-filters {
    justify-content: center;
}

.gallery-filters .btn-group {
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-filters .btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    min-width: 60px;
}

/* Small Screens (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .gallery-search {
        max-width: 500px;
    }

    .gallery-search .input-group {
        border-radius: 16px;
        box-shadow: 0 6px 28px rgba(79, 70, 229, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
        flex-direction: row;
    }

    .gallery-search .form-control {
        padding: 0.875rem 1.125rem;
        font-size: 0.95rem;
        min-height: 50px;
        border-radius: 16px 0 0 16px;
        flex: 1;
    }

    .gallery-search .btn {
        padding: 0.875rem 1.25rem;
        min-height: 50px;
        font-size: 0.95rem;
        border-radius: 0 16px 16px 0;
        flex-shrink: 0;
        min-width: 70px;
    }

    .gallery-search .btn span {
        display: none;
    }

    .gallery-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .gallery-filters .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

/* Medium Screens - Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .gallery-search {
        max-width: 550px;
    }

    .gallery-search .input-group {
        border-radius: 16px;
        box-shadow: 0 8px 30px rgba(79, 70, 229, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .gallery-search .form-control {
        padding: 0.95rem 1.25rem;
        font-size: 1rem;
        min-height: 56px;
        border-radius: 16px 0 0 16px;
    }

    .gallery-search .btn {
        padding: 0.95rem 1.75rem;
        min-height: 56px;
        font-size: 1rem;
        border-radius: 0 16px 16px 0;
    }

    .gallery-search .btn span.d-sm-none.d-md-inline {
        display: none !important;
    }

    .gallery-toolbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Large Screens - Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .gallery-search .form-control {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .gallery-search .btn {
        padding: 0.875rem 1.5rem;
        min-height: 48px;
        font-size: 1rem;
    }

    .gallery-search .btn span.d-sm-none.d-md-inline {
        display: inline !important;
    }
}

/* Extra Large Screens (≥ 1200px) */
@media (min-width: 1200px) {
    .gallery-search .form-control {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .gallery-search .btn {
        padding: 0.875rem 1.75rem;
        min-height: 48px;
        font-size: 1rem;
    }

    .gallery-search .btn span.d-sm-none.d-md-inline {
        display: inline !important;
    }
}

/* High DPI and Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .gallery-search .form-control {
        border-width: 1px;
    }

    .gallery-search .btn {
        border-width: 1px;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .gallery-search .form-control {
        min-height: 48px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .gallery-search .btn {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        touch-action: manipulation;
    }

    .gallery-filters .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
        touch-action: manipulation;
    }

    /* Remove hover effects on touch devices */
    .gallery-search .form-control:focus {
        transform: none;
    }

    .gallery-search .btn:hover {
        transform: none;
    }

    .gallery-search .btn:focus {
        transform: none;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .gallery-search {
        margin-bottom: 1rem;
    }

    .gallery-toolbar {
        margin-bottom: 2rem;
    }

    .gallery-toolbar h2 {
        font-size: 1.5rem;
    }
}

/* Print styles for gallery search */
@media print {

    .gallery-search,
    .gallery-filters {
        display: none;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #3730a3 0%, #6d28d9 100%);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 15px rgba(79, 70, 229, 0.3);
}

.scroll-to-top i {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* Mobile adjustments for scroll button */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Enhanced Lightbox Animations */
.lightbox {
    animation: none;
}

.lightbox.open {
    animation: lightboxFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.lightbox.closing {
    animation: lightboxFadeOut 0.4s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes lightboxFadeOut {
    from {
        opacity: 1;
        backdrop-filter: blur(8px);
    }

    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

.lightbox.open .lightbox-content {
    animation: lightboxContentZoomIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.lightbox.closing .lightbox-content {
    animation: lightboxContentZoomOut 0.4s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

@keyframes lightboxContentZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.7) rotate(-3deg);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05) rotate(1deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes lightboxContentZoomOut {
    from {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    to {
        opacity: 0;
        transform: scale(0.8) rotate(2deg);
    }
}

/* Control buttons entrance animations */
.lightbox.open .lightbox-close,
.lightbox.open .lightbox-nav,
.lightbox.open .lightbox-counter {
    animation: controlButtonsFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

@keyframes controlButtonsFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Navigation specific animations */
.lightbox.open .lightbox-prev {
    animation: slideInFromLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

.lightbox.open .lightbox-next {
    animation: slideInFromRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1);
    }
}

/* High Performance Optimizations */
.gallery-thumb {
    will-change: transform;
}

.gallery-item:hover {
    will-change: transform;
}

.lightbox {
    will-change: opacity;
}

.lightbox-content {
    will-change: transform;
}

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="25" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="25" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.6;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-illustration {
    text-align: center;
    position: relative;
}

.contact-illustration i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: #fafbfc;
}

.contact-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    position: relative;
}

.contact-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #93c5fd);
    border-radius: 2px;
}

/* Contact Information */
.contact-details-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border: 1px solid #e2e8f0;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.contact-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    flex-shrink: 0;
}

.contact-details h6 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-details p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Contact Social Links Section */
.contact-social-links h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3b82f6;
    display: inline-block;
}

.contact-social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.contact-social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.contact-social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.contact-social-icons a:hover::before {
    left: 100%;
}

.contact-social-icons a:hover {
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Platform-specific social icon styling */
.contact-social-icons .social-facebook:hover {
    background: #1877f2 !important;
    border-color: #1877f2;
}

.contact-social-icons .social-twitter:hover {
    background: #1da1f2 !important;
    border-color: #1da1f2;
}

.contact-social-icons .social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: #e6683c;
}

.contact-social-icons .social-linkedin:hover {
    background: #0077b5 !important;
    border-color: #0077b5;
}

.contact-social-icons .social-youtube:hover {
    background: #ff0000 !important;
    border-color: #ff0000;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border: 1px solid #e5e7eb;
}

/* Form Header */
.form-header {
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 1.5rem;
}

.form-title {
    color: #1f2937;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-label .text-danger {
    color: #ef4444;
}

/* Form Controls */
.contact-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.contact-form .form-control:focus {
    color: #374151;
    background-color: #ffffff;
    border-color: #3b82f6;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form .form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Form Validation States */
.contact-form .form-control.is-valid {
    border-color: #10b981;
}

.contact-form .form-control.is-valid:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.contact-form .form-control.is-invalid {
    border-color: #ef4444;
}

.contact-form .form-control.is-invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Form Validation */
.form-control.is-invalid {
    border-color: #ef4444;
    background-image: none;
}

.form-control.is-valid {
    border-color: #10b981;
    background-image: none;
}

/* Form Validation Feedback */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #ef4444;
    font-weight: 400;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 400;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-subtitle {
        font-size: 0.9rem;
    }

    .contact-form .form-control {
        padding: 0.875rem 1rem;
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .btn-send {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .contact-form-wrapper {
        padding: 1rem;
    }

    .form-header {
        padding-bottom: 1rem;
    }

    .form-title {
        font-size: 1.25rem;
    }
}

/* Form Actions */
.form-actions {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

/* Submit Button */
.btn-send {
    background-color: #3b82f6;
    border: 1px solid #3b82f6;
    color: white;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    position: relative;
    min-width: 160px;
}

.btn-send:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.btn-send:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-send:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-send:disabled {
    background-color: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-send .btn-loader {
    display: inline;
}

/* Alert Messages */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* Map Section */
.map-section {
    margin-top: 80px;
}

.map-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.map-wrapper:hover iframe {
    filter: grayscale(0%);
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    max-width: 300px;
}

.map-info h5 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.map-info p {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-outline-light {
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-outline-light:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* Form Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   DESIGN SYSTEM TYPOGRAPHY & UTILITY CLASSES
   ========================================================================== */

/* Typography Utility Classes */
.heading-1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-gray-900);
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.heading-2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-gray-900);
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.75rem;
}

.heading-3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.heading-4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.body-base {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--color-gray-700);
}

.body-sm {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-gray-600);
}

/* Gallery Grid Classes */
.photos-grid,
.videos-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Responsive grid columns for photos-grid and videos-grid */
@media (max-width: 575px) {

    .photos-grid,
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (min-width: 576px) and (max-width: 767px) {

    .photos-grid,
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 991px) {

    .photos-grid,
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (min-width: 992px) and (max-width: 1199px) {

    .photos-grid,
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (min-width: 1200px) {

    .photos-grid,
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* ==========================================================================
   BREADCRUMB NAVIGATION STYLES
   ========================================================================== */

.breadcrumb-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-gray-200);
    position: relative;
    overflow: hidden;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="0.5" fill="rgba(0,0,0,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.breadcrumb-item a {
    color: var(--color-gray-600);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    padding: 0.375rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.breadcrumb-separator {
    color: var(--color-gray-400);
    font-size: var(--font-size-xs);
    margin: 0 0.25rem;
}

.breadcrumb-item i,
.breadcrumb-separator i {
    font-size: 0.875em;
}

/* Breadcrumb responsive */
@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 0.75rem 0;
    }

    .breadcrumb-item {
        font-size: var(--font-size-xs);
    }

    .breadcrumb-item a,
    .breadcrumb-item.active {
        padding: 0.25rem 0.5rem;
        font-size: var(--font-size-xs);
    }

    .breadcrumb-separator {
        margin: 0 0.125rem;
    }
}

/* ==========================================================================
   AUTHENTICATION HEADER STYLES
   ========================================================================== */

/* Authentication Item Styles */
.auth-item {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 1rem;
    padding-left: 1rem;
}

.auth-link {
    background: rgba(0, 123, 255, 0.1) !important;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.auth-link:hover {
    background: rgba(0, 123, 255, 0.2) !important;
    transform: translateY(-1px);
}

.auth-dropdown {
    min-width: 280px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0.75rem;
    overflow: hidden;
}

.auth-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.auth-avatar {
    margin-right: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.auth-info {
    flex: 1;
}

.auth-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.auth-role {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: #dc3545 !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.logout-btn:hover {
    background: #fff5f5 !important;
    color: #c82333 !important;
}

.dropdown-header {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.dropdown-item .item-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.dropdown-item .item-description {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.3;
}

.dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    background: #e9ecef;
    border: none;
}

/* Mobile Authentication Styles */
@media (max-width: 991.98px) {
    .auth-item {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-left: 0;
        margin-top: 1rem;
        padding-left: 0;
        padding-top: 1rem;
    }

    .auth-dropdown {
        min-width: 100%;
        width: 100%;
    }

    .auth-header {
        border-radius: 0;
    }
}

@media (max-width: 767.98px) {
    .auth-item .nav-text {
        font-size: 1rem;
    }

    .auth-dropdown {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .logout-btn {
        padding: 0.75rem 1rem;
    }

    .dropdown-item .item-content {
        padding-left: 0;
    }

    .auth-header {
        padding: 0.75rem;
    }

    .auth-name {
        font-size: 0.9rem;
    }

    .auth-role {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   PASSWORD TOGGLE STYLES (Global)
   ========================================================================== */

/* Password Toggle Button Styles */
.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
    outline: none;
}

.password-toggle:hover {
    color: #007bff;
}

.password-toggle:focus {
    outline: none;
    color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    border-radius: 3px;
}

.password-toggle:active {
    color: #0056b3;
}

/* Adjust password input padding to make room for toggle button */
.position-relative .form-control {
    padding-right: 50px;
}

/* Ensure proper spacing for large form controls */
.position-relative .form-control-lg {
    padding-right: 55px;
}

/* Mobile adjustments for password toggle */
@media (max-width: 575.98px) {
    .password-toggle {
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }

    .position-relative .form-control {
        padding-right: 48px;
    }

    .position-relative .form-control-lg {
        padding-right: 52px;
    }
}

/* Touch device optimizations for password toggle */
@media (hover: none) and (pointer: coarse) {
    .password-toggle {
        width: 32px;
        height: 32px;
        min-height: 32px;
        font-size: 1.2rem;
    }
}