/* ===================================================================
   MAIN STYLES - BENGALI THEME
   Bandhan Cultural Website CSS
   
   TABLE OF CONTENTS:
   • CSS Custom Properties (line 23)
   • Base Styles & Typography (line 54)
   • Image Handling & Placeholders (line 117)
   • Buttons & Components (line 240)
   • Navigation System (line 314)
   • Hero Section (line 612)
   • About Section (line 763)
   • Gallery Section (line 930)
   • Team Section (line 1151)
   • Blog Section (line 1337)
   • Footer Section (line 1485)
   • Alpona Decorative Elements (line 1576)
   • Animations & Scroll Effects (line 1589)
   • Responsive Design (line 1100+)
   ===================================================================== */

/* CSS Custom Properties */
:root {
    /* Colors - Bengali Palette */
    --color-primary: #232323;
    --color-secondary: #ffffff;
    --color-highlight: #b72e2e;
    --color-accent: #f7f7f7;
    --color-text-primary: #232323;
    --color-text-secondary: #666666;
    --color-text-light: #999999;
    --color-border: #e6e6e6;
    --color-overlay: rgba(0, 0, 0, 0.8);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* =============================================================
   BASE STYLES & TYPOGRAPHY
   ============================================================= */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-secondary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* =============================================================
   UTILITY CLASSES
   Common reusable styles and layout helpers
   ============================================================= */

/* Section Utilities */
.section-label {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.section-title {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.section-title-secondary {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(57, 51, 51, 0.95);
    opacity: 1;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 2px 2px 8px rgba(81, 81, 81, 0.4), 
                 0 0 20px rgba(81, 81, 81, 0.4),
                 0 0 40px rgba(81, 81, 81, 0.2);
}

/* Animation Utilities */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.stagger-item.animate {
    opacity: 1;
    transform: translateY(0);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

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

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* =============================================================
   IMAGE HANDLING & PLACEHOLDERS
   ============================================================= */

/* Image Loading and Error Handling */
img {
    max-width: 100%;
    height: auto;
}

/* Fallback for broken images */
img::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: absolute;
    top: 0;
    left: 0;
}

img::after {
    content: attr(alt);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-primary);
    font-size: 12px;
    color: var(--color-text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

/* Image placeholder styling */
.image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-primary);
    font-size: 14px;
    text-align: center;
    min-height: 200px;
}

/* Loading animation for images */
.loading-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Placeholder Images - All Sections */
/* Gallery placeholder images */
.gallery-img[src*="gallery-1"] {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.gallery-img[src*="gallery-2"] {
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.gallery-img[src*="gallery-3"] {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
}

.gallery-img[src*="gallery-4"] {
    background: linear-gradient(45deg, #43e97b, #38f9d7);
}

.gallery-img[src*="gallery-5"] {
    background: linear-gradient(45deg, #fa709a, #fee140);
}

.gallery-img[src*="gallery-6"] {
    background: linear-gradient(45deg, #a8edea, #fed6e3);
}

/* Team member placeholder images */
.member-photo img[src*="team-member-1"] {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.member-photo img[src*="team-member-2"] {
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.member-photo img[src*="team-member-3"] {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
}

.member-photo img[src*="team-member-4"] {
    background: linear-gradient(45deg, #43e97b, #38f9d7);
}

/* Blog post placeholder images */
.post-image img[src*="blog-post-1"] {
    background: linear-gradient(45deg, #ff9a9e, #fecfef, #fecfef);
}

.post-image img[src*="blog-post-2"] {
    background: linear-gradient(45deg, #a8edea, #fed6e3, #d299c2);
}

.post-image img[src*="blog-post-3"] {
    background: linear-gradient(45deg, #d299c2, #fef9d7, #ff9a9e);
}

/* =============================================================
   BUTTONS & COMPONENTS
   ============================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    padding: 20px 35px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

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

.btn-highlight {
    background-color: var(--color-highlight);
    color: var(--color-secondary);
    border-color: var(--color-highlight);
}

.btn-highlight:hover {
    background-color: transparent;
    color: var(--color-highlight);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--color-secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

/* Button with icon modifier */
.btn-with-flower::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-left: 10px;
    background-image: url('../assets/images/flower-red.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform var(--transition-fast);
    vertical-align: middle;
}

.btn-with-fish::after {
    content: '';
    display: inline-block;
    width: 48px;
    height: 32px;
    margin-left: 10px;
    background-image: url('../assets/images/fish-red.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform var(--transition-fast);
    vertical-align: middle;
}

.btn-with-feet::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-left: 10px;
    background-image: url('../assets/images/feet.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform var(--transition-fast);
    vertical-align: middle;
}

.btn-with-feet:hover::after {
    transform: translateY(3px);
    /*transform: skew(-20deg, 20deg);*/
}

.btn-with-flower:hover::after {
    transform: rotate(90deg);
}

.btn-with-fish:hover::after {
    transform: skew(20deg, -20deg);
}


/* =============================================================
   NAVIGATION SYSTEM
   ============================================================= */

/* Navigation - Top Header */
.topbar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform var(--transition-medium);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.topbar-nav.active {
    transform: translateY(0);
}

.topbar-header {
    padding: 6px var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: none;
}

.nav-brand .logo {
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    vertical-align: middle;
}

.nav-brand .logo .logo-img {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

.nav-close {
    display: none;
}

.topbar-content {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-brand {
    order: 1;
}

.topbar-menu {
    order: 2;
    list-style: none;
    margin-bottom: 0;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* User Profile Navigation */
.user-profile-container {
    order: 3;
    display: none;
    align-items: center;
    margin-left: 20px;
    position: relative;
}

.profile-dropdown {
    position: relative;
}

.profile-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.profile-trigger:hover {
    transform: scale(1.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    object-fit: cover;
    transition: border-color 0.3s ease;
}

.user-avatar:hover {
    border-color: var(--color-highlight);
}

.profile-trigger .fa-user-circle {
    font-size: 36px;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.profile-trigger:hover .fa-user-circle {
    color: var(--color-highlight);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

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

/* Member profile inline email + status alignment */
.member-profile .member-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.member-profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.5px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
    border-radius: 0;
}

.dropdown-item:hover {
    color: var(--color-primary);
    background-color: rgba(35, 35, 35, 0.05);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--color-text-secondary);
}

.mobile-burger-toggle {
    order: 4;
}

.topbar-search {
    order: 4;
    margin-bottom: 0;
}

.search-wrapper {
    position: relative;
    background-color: rgba(247, 247, 247, 0.8);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
    width: 200px;
}

.search-wrapper:focus-within {
    border-color: var(--color-primary);
    background-color: rgba(240, 240, 240, 0.9);
    width: 250px;
}

.search-input {
    width: 100%;
    padding: 6px 35px 6px 12px;
    border: none;
    background: transparent;
    font-size: 12px;
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--color-text-light);
    font-style: italic;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    font-size: 14px;
    pointer-events: none;
}

/* Top Menu */
.topbar-menu {
    list-style: none;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.menu-item {
    margin-bottom: 0;
    position: relative;
}

.menu-link {
    display: block;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-radius: 3px;
    position: relative;
}

.menu-link:hover,
.menu-link.active {
    color: var(--color-primary);
    background-color: rgba(229, 15, 15, 0.306);
}

/* Add extra right padding for menu items with dropdown arrows */
.has-submenu > .menu-link {
    padding-right: 28px;
}

.menu-link::before {
    display: none;
}

/* Submenu - Dropdown */
.has-submenu > .menu-link::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-fast);
    font-size: 10px;
}

.has-submenu.active > .menu-link::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Also rotate the arrow on hover so users see the open state when hovering */
.has-submenu:hover > .menu-link::after {
    transform: translateY(-50%) rotate(180deg);
}

.submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.has-submenu:hover .submenu,
.has-submenu.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin-bottom: 0;
}

.submenu a {
    display: block;
    padding: 10px 15px;
    font-size: 12px;
    color: var(--color-text-secondary);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    border-radius: 0;
}

.submenu a:hover {
    color: var(--color-primary);
    background-color: rgba(35, 35, 35, 0.05);
}

/* Topbar Overlay */
.topbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.topbar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

/* Mobile Burger Menu */
.mobile-burger-toggle {
    display: none;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    padding: 6px;
    margin-left: var(--spacing-xs);
    transition: all var(--transition-fast);
    border-radius: 6px;
    background-color: transparent;
    border: none;
    position: relative;
    z-index: 1002;
    font-size: 16px;
    color: var(--color-primary);
}

.mobile-burger-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-burger-toggle .burger-icon {
    transition: all var(--transition-fast);
}

.mobile-burger-toggle:not(.active) .close-icon {
    display: none;
}

.mobile-burger-toggle.active .burger-icon {
    display: none;
}

.mobile-burger-toggle.active .close-icon {
    display: inline-block;
}

/* Mobile Dropdown Menu */
.mobile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all var(--transition-fast);
    z-index: 1001;
    border: 1px solid var(--color-border);
    overflow: hidden;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-link {
    display: block;
    padding: 12px 16px;
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all var(--transition-fast);
    position: relative;
}

.mobile-menu-link:hover {
    background-color: rgba(35, 35, 35, 0.05);
    color: var(--color-highlight);
}

.mobile-menu-item.has-submenu .mobile-menu-link::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.mobile-menu-item.has-submenu.active .mobile-menu-link::after {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--color-accent);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-fast);
}

.mobile-menu-item.has-submenu.active .mobile-submenu {
    max-height: 200px;
}

.mobile-submenu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-submenu li:last-child {
    border-bottom: none;
}

.mobile-submenu a {
    display: block;
    padding: 10px 24px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
}

.mobile-submenu a:hover {
    color: var(--color-highlight);
    background-color: rgba(0, 0, 0, 0.02);
}

/* Mobile Navigation Visibility Classes */
.visible-mobile {
    display: block;
}

.hidden-mobile {
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .topbar-header {
        padding: 6px var(--spacing-sm);
        position: relative;
    }
    
    .topbar-content {
        position: relative;
        flex-wrap: nowrap;
        gap: var(--spacing-xs);
    }
    
    .nav-brand {
        order: 1;
        flex-shrink: 0;
    }
    
    .topbar-menu {
        order: 2;
        flex-shrink: 0;
        gap: var(--spacing-xs);
    }
    
    .mobile-burger-toggle {
        order: 3;
        flex-shrink: 0;
    }
    
    .topbar-search {
        order: 4;
        flex-shrink: 1;
        min-width: 0;
        margin-right: 0;
    }
    
    /* Hide overflow menu items on mobile */
    .hidden-mobile {
        display: none !important;
    }
    
    /* Show burger menu on mobile */
    .mobile-burger-toggle {
        display: flex;
        font-size: 14px;
    }
    
    /* Adjust search width on mobile and ensure it doesn't overlap */
    .search-wrapper {
        width: 120px;
        margin-right: 0;
        flex-shrink: 1;
    }
    
    .search-wrapper:focus-within {
        width: 140px;
    }
    
    .menu-link {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    /* Mobile dropdown positioning fix */
    .mobile-dropdown-menu {
        position: absolute;
        top: calc(100% + 5px);
        right: 5px;
        left: auto;
        width: calc(100vw - 40px);
        max-width: 280px;
        z-index: 1001;
    }
}

@media (max-width: 480px) {
    .topbar-header {
        padding: 4px var(--spacing-xs);
    }
    
    .topbar-content {
        gap: 2px;
    }
    
    .search-wrapper {
        width: 80px;
        min-width: 80px;
    }
    
    .search-wrapper:focus-within {
        width: 100px;
    }
    
    .menu-link {
        padding: 6px 3px;
        font-size: 9px;
    }
    
    .nav-brand .logo .logo-img {
        height: 26px;
    }
    
    .mobile-burger-toggle {
        width: 26px;
        height: 26px;
        padding: 3px;
        margin-left: 2px;
        font-size: 12px;
    }
    
    /* Ensure dropdown doesn't go off screen */
    .mobile-dropdown-menu {
        right: 2px;
        width: calc(100vw - 16px);
        max-width: 260px;
    }
}

/* Extra small screens (360px and below) */
@media (max-width: 360px) {
    .topbar-header {
        padding: 3px 4px;
    }
    
    .topbar-content {
        gap: 1px;
    }
    
    .nav-brand .logo .logo-img {
        height: 24px;
    }
    
    .menu-link {
        padding: 5px 2px;
        font-size: 8px;
        letter-spacing: 0.5px;
    }
    
    .search-wrapper {
        width: 70px;
        min-width: 70px;
    }
    
    .search-wrapper:focus-within {
        width: 85px;
    }
    
    .search-input {
        padding: 5px 26px 5px 6px;
        font-size: 11px;
    }
    
    .search-icon {
        right: 6px;
        font-size: 11px;
    }
    
    .mobile-burger-toggle {
        width: 24px;
        height: 24px;
        padding: 2px;
        margin-left: 1px;
        font-size: 11px;
    }
    
    .mobile-dropdown-menu {
        right: 1px;
        width: calc(100vw - 12px);
        max-width: 240px;
    }
}

/* Small screens like iPhone (414px and below, but above 360px) */
@media (max-width: 414px) and (min-width: 361px) {
    .search-input {
        padding: 5px 28px 5px 7px;
        font-size: 11px;
    }
    
    .search-icon {
        right: 7px;
        font-size: 11px;
    }
}

/* Main Content */
.main-content {
    margin-left: 0;
    margin-top: 40px;
    transition: margin-left var(--transition-medium);
    min-height: 100vh;
}

/* Desktop: Remove topbar margin */
@media (min-width: 1200px) {
    .main-content {
        margin-left: 0;
        margin-top: 40px;
    }
}

/* =============================================================
   HERO SECTION
   ============================================================= */

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    height: 100vh;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Extra height for parallax movement, was 120% */
    background: url('../assets/images/main-cover.png') center/cover no-repeat;
    z-index: 1;
    /* Performance optimizations for smooth parallax */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0); /* Force hardware acceleration */
}

/* Completely disable any pseudo-elements */
.hero-background::before,
.hero-background::after {
    content: none !important;
    display: none !important;
}

/* Ensure no other elements interfere */
.hero-background * {
    display: none !important;
}

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

.hero-layout {
    position: relative;
    height: 100%;
    display: flex;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-image-area {
    flex: 0 0 60%;
    position: relative;
    z-index: 1;
}

.hero-content-area {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero-content {
    max-width: 80%;
    text-align: left;
    color: var(--color-primary);
    padding: 80px 60px;
    background-color: rgba(255, 255, 255, 0.755);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-left: 0;
    margin-right: var(--spacing-md);
    min-width: 400px; /* Add minimum width to prevent too much squishing */
}

/* Update your existing .hero-title */
.hero-title {
    font-size: clamp(2.4rem, 4vw, 3.6rem)!important; 
    font-weight: 700;
    letter-spacing: -4px;
    margin-bottom: 10px;
    line-height: 1.1;
    color: #232323;
    text-transform: uppercase;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    white-space: normal;
}

/* Add line after hero-title */
.hero-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #232323;
    margin: 10px 0;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: normal;
    margin-bottom: 35px;
    color: #6b6b6b;
    line-height: 1.6;
}

.hero-section .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeInUp 1s ease 0.6s both;
}

.scroll-text {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.scroll-arrow {
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.5);
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 7px;
    height: 7px;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
}

/* =============================================================
   ABOUT SECTION
   ============================================================= */

/* About Section - Legacy Grid Layout */
.about-section {
    padding: 120px 0 100px;
    background-color: #232323;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-item {
    text-align: left;
    padding: 0 20px;
    position: relative;
    width: 100%;

}

.about-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #ffffff;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    padding-bottom: 15px;
}

.about-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #ffffff;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    padding-bottom: 15px;
}

.about-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #ff4757;
    border-radius: 1px;
}

.about-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff4757;
    border-radius: 1px;
}

.about-item p {
    color: #cccccc;
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
}

/* About Section - Current Flexbox Layout */
.about-section {
    padding: var(--spacing-xxl) 0;
}

/* Full width about content */
.about-section .about-content {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 100%;
    width: 100%;
}

.about-section .about-content .section-label {
    display: block;
    margin-bottom: var(--spacing-sm);
}

.about-section .about-content .section-title-secondary {
    margin-bottom: var(--spacing-md);
}

.about-section .about-content h4 {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.about-layout {
    display: flex;
    gap: var(--spacing-xl);
    align-items: stretch; /* Make both columns same height */
    min-height: 400px; /* Ensure minimum height for alignment */
}

.about-content-left {
    flex: 0 0 50%; /* Left side takes exactly 50% */
    width: 50%;
    display: flex;
    flex-direction: column;
}

.about-items {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    flex-grow: 1 !important;
    justify-content: flex-start !important; /* Start from top, let last item push down */
}

.about-item:last-child {
    margin-top: auto !important; /* Push the button to the bottom */
    align-self: flex-start !important; /* Align button to the left */
    padding-top: var(--spacing-md) !important; /* Add some spacing above the button */
    position: static !important; /* Override any position relative */
}

.about-content-right {
    flex: 0 0 50%; /* Right side takes exactly 50% */
    width: 50%;
    padding-left: var(--spacing-md);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.about-content p {
    margin-bottom: var(--spacing-md);
}
    
.about-content h4 {
    color: var(--color-text-secondary);
}

/* Gallery Section */
.gallery-section {
    padding: var(--spacing-xxl) 0;
    background-color: #f8f8f8;
}

.gallery-header {
    margin-bottom: var(--spacing-xl);
    padding: 0 var(--spacing-md);
}

.gallery-grid {
    display: grid !important;
    grid-template-columns: 1fr; /* Default to single column, will be overridden */
    gap: 0; /* No spaces between photos */
    padding: 0 var(--spacing-md);
    max-width: 1400px; /* Default max-width, will be overridden by specific data-items */
    margin: 0 auto; 
}

/* Configurable grid layouts */
.gallery-grid[data-items="4"],
.gallery-grid.four-items,
.gallery-4-pics {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 300px !important; /* Reduced from 400px */
    width: 300px !important;
    margin: 0 auto !important;
    gap: 0 !important;
}

/* This works well for the seamless grid */
.gallery-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    max-width: 75% !important; /* Reduced by 25% from 100% */
    width: 75% !important;
    margin: 0 auto !important;
    padding: 0;
    gap: 0 !important;
}

.gallery-grid[data-items="6"] {
    grid-template-columns: repeat(3, 1fr);
    max-width: 675px; /* Reduced from 900px */
}

.gallery-grid[data-items="8"] {
    grid-template-columns: repeat(4, 1fr);
    max-width: 900px; /* Reduced from 1200px */
}

/* Hide optional items by default */
.gallery-item-optional {
    display: none;
}

/* Show items based on configuration */
.gallery-grid[data-items="4"] .gallery-item:nth-child(n+5) {
    display: none;
}

.gallery-grid[data-items="6"] .gallery-item:nth-child(n+7) {
    display: none;
}

.gallery-grid[data-items="8"] .gallery-item-optional {
    display: block;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast);
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 50% !important;  /* Each item takes exactly 50% width */
    width: 50% !important;
    box-sizing: border-box !important;
    border: 0 !important;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 10;
}

.gallery-img-wrapper {
    position: relative;
    aspect-ratio: 1/1; /* Force 1:1 ratio for all images */
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.gallery-content {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    text-align: left;
    z-index: 2;
}

.gallery-separator {
    width: 20px;
    height: 1px;
    background-color: #ffffff;
    margin-bottom: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 1);
}

.gallery-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    font-family: var(--font-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
    line-height: 1;
}

.gallery-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 1);
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid[data-items="4"] {
        grid-template-columns: repeat(2, 1fr);
        max-width: 300px; /* Reduced from 400px */
    }
    
    .gallery-grid[data-items="6"] {
        grid-template-columns: repeat(2, 1fr);
        max-width: 450px; /* Reduced from 600px */
    }
    
    .gallery-grid[data-items="8"] {
        grid-template-columns: repeat(2, 1fr);
        max-width: 450px; /* Reduced from 600px */
    }
}

@media (max-width: 480px) {
    .gallery-grid[data-items="4"],
    .gallery-grid[data-items="6"],
    .gallery-grid[data-items="8"] {
        grid-template-columns: repeat(2, 1fr);
        max-width: 225px; /* Reduced from 300px */
    }
}

/* =============================================================
   PLACEHOLDER IMAGES & FALLBACKS
   All decorative background gradients for missing images
   ============================================================= */

/* Gallery placeholder images */
.gallery-img[src*="gallery-1"] {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.gallery-img[src*="gallery-2"] {
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.gallery-img[src*="gallery-3"] {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
}

.gallery-img[src*="gallery-4"] {
    background: linear-gradient(45deg, #43e97b, #38f9d7);
}

.gallery-img[src*="gallery-5"] {
    background: linear-gradient(45deg, #fa709a, #fee140);
}

.gallery-img[src*="gallery-6"] {
    background: linear-gradient(45deg, #a8edea, #fed6e3);
}

.gallery-img[src*="gallery-7"] {
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
}

.gallery-img[src*="gallery-8"] {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

/* NOTE: Additional placeholder styles for team members and blog posts 
   can be found in their respective sections below */

/* Team Section */
.team-section {
    padding: var(--spacing-xxl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-image: url('../assets/images/ghawt.png');
    background-size: contain;
    background-position: center left;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.team-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;   
    width: 50%;
    height: 100%;
    background-image: url('../assets/images/pyancha.png');
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

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

.team-section .section-title {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.team-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md) !important;
    margin-bottom: var(--spacing-xl);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1200px) {
    .team-member { flex: 0 1 220px; }
}

@media (max-width: 900px) {
    .team-member { flex: 0 1 180px; }
}

@media (max-width: 650px) {
    .team-member { flex: 0 1 45%; }
}

@media (max-width: 400px) {
    .team-member { flex: 0 1 100%; }
}

.team-member {
    text-align: center;
    width: auto;
    flex: 0 1 220px;
    max-width: 260px;
}

/* Base team member styles */
.member-photo {
    position: relative;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    aspect-ratio: 1;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0%);
    transition: all var(--transition-medium);
}

/* Team member placeholder images 
   (Related gallery placeholders: see Gallery Section above) */
.member-photo img[src*="team-member"] {
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #c471ed 75%, 
        #667eea 100%);
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
}



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

/* Team Style 1 - Bottom slide up overlay */
.team-style-1 figure .team-image {
    position: relative; 
    overflow: hidden;
}

.team-style-1 .team-overlay {
    display: block; 
    position: absolute; 
    overflow: hidden; 
    transition: all 0.3s ease 0s; 
    -webkit-transition: all 0.3s ease 0s; 
    -moz-transition: all 0.3s ease 0s; 
    -ms-transition: all 0.3s ease 0s; 
    -o-transition: all 0.3s ease 0s;
    bottom: 0; 
    left: 0; 
    right: 0; 
    width: 100%; 
    height: 0;
    background-color: rgba(219, 66, 66, 0.8);
}

.team-style-1 figure:hover .team-overlay {
    height: 100%;
}

.team-style-1 figure figcaption {
    width: 100%; 
    position: relative; 
    margin-top: 17px;
}

.team-style-1 figure .overlay-content {
    opacity: 0; 
    position: absolute; 
    height: 100%; 
    width: 100%; 
    top: -15px;
    transition: all 0.3s ease 0s; 
    -webkit-transition: all 0.3s ease 0s; 
    -moz-transition: all 0.3s ease 0s; 
    -ms-transition: all 0.3s ease 0s; 
    -o-transition: all 0.3s ease 0s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-style-1 figure:hover .overlay-content {
    opacity: 1; 
    z-index: 1111; 
    top: 0;
}

.team-style-1 figure figcaption .team-member-position {
    position: relative; 
    top: 0; 
    transition: all 0.2s; 
    -webkit-transition: all 0.2s; 
    -moz-transition: all 0.2s; 
    -ms-transition: all 0.2s; 
    -o-transition: all 0.2s;
}

    /* Legacy member overlay styles (for backward compatibility) */
    .member-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: all var(--transition-fast);
    }

    .member-photo:hover .member-overlay {
        opacity: 1;
    }

    .member-photo:hover img {
        filter: grayscale(30%);
        transform: scale(1.1);
    }

    .member-social {
        display: flex;
        gap: var(--spacing-sm);
    }

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

    .member-social a:hover {
        background-color: var(--color-secondary);
        color: var(--color-primary);
    }

    .member-name {
        color: var(--color-primary);
        margin-bottom: var(--spacing-xs);
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 1px;
    }

    .member-role {
        color: var(--color-text-light);
        font-size: 12px;
        letter-spacing: 1px;
        text-transform: uppercase;  
        margin: 0;
    }

/* =============================================================
   BLOG SECTION
   ============================================================= */

/* Blog Section */
.blog-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-accent);
}

.blog-section .section-title {
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

/* Title with translate button */
.title-with-translate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.translatable-title {
    margin: 0;
    transition: opacity 0.3s ease;
}

.translate-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.translate-btn:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

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

.translate-btn.translating {
    animation: pulse 0.5s ease;
}

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

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.blog-post {
    background-color: var(--color-secondary);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.post-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

/* Blog post placeholder images 
   (Related placeholders: see Gallery & Team sections above) */
.post-image img[src*="blog-post"] {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    background-size: 300% 300%;
    animation: blogImageShift 12s ease infinite;
}



@keyframes blogImageShift {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

/* Blog Loading States */
.blog-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-text-secondary);
    font-style: italic;
}

.blog-loading p {
    margin: 0;
    font-size: 14px;
}

.blog-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-text-secondary);
    background-color: rgba(244, 67, 54, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.blog-error p {
    margin: 0;
    color: #d32f2f;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

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

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

.post-content h3 a {
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.post-content h3 a:hover {
    color: var(--color-text-secondary);
}

.post-meta {
    font-size: 11px;
    color: var(--color-text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.post-meta a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.post-meta a:hover {
    color: var(--color-primary);
}

.post-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-top: var(--spacing-sm);
}

/* =============================================================
   FOOTER SECTION
   ============================================================= */

/* Footer */
.footer {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.footer-content {
    display: flex;
    align-items: center; /* Vertically center all items */
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    min-height: 50px; /* Add minimum height for consistency */
}

.footer-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
}

.footer-text p {
    margin: 0;
    line-height: 1;
}

.footer-text a {
    color: var(--color-secondary);
    transition: opacity var(--transition-fast);
}

.footer-text a:hover {
    opacity: 0.8;
}

.footer-label {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
}

.footer-label span {
    line-height: 1;
}

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

.footer-social .social-link {
    color: rgba(255, 255, 255, 0.6);
}

.footer-social .social-link:hover {
    color: var(--color-secondary);
}

.footer-address {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.footer-address p {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .footer-address {
        display: none; /* Hide on mobile to avoid crowding */
    }
}

@media (max-width: 991px) {
    .footer-address p {
        font-size: 10px;
    }
}

/* =============================================================
   DECORATIVE ELEMENTS
   ============================================================= */

/* Alpona Border - Reusable */
.alpona-border {    
    width: 100%;    
    height: 37px; /* Adjust based on PNG height */
    background-image: url('../assets/images/alpona1-repeatable-upscaled-62.png');
    background-repeat: repeat-x;
    background-size: auto 100%; /* 100% size of original */
    background-position: center;
    margin: 0;
    padding: 0;
    display: block;
}

.alpona-border2 {    
    width: 100%;    
    height: 20px; /* Adjust based on PNG height */
    background-image: url('../assets/images/Border Design 3.png');
    background-repeat: repeat-x;
    background-size: auto 100%; /* 100% size of original */
    background-position: center;
    margin: 0;
    padding: 0;
    display: block;
}

/* =============================================================
   ANIMATIONS & SCROLL EFFECTS
   ============================================================= */

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Smooth scrolling offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

/* Search Results Highlighting */
.search-highlight {
    background-color: #ffeb3b;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 500;
    animation: highlightPulse 0.5s ease;
}

@keyframes highlightPulse {
    0% { background-color: #ff9800; }
    100% { background-color: #ffeb3b; }
}

/* Message Notifications */
.message {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 10000;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease;
    max-width: 350px;
}

.message-success {
    background-color: #4CAF50;
    color: white;
}

.message-error {
    background-color: #f44336;
    color: white;
}

.message-info {
    background-color: #2196F3;
    color: white;
}

/* Scroll-based animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator animation */
.scroll-indicator {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

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

/* Performance optimizations for smooth animations */
.stagger-item,
.scroll-reveal {
    will-change: transform, opacity;
}

/* Responsive Design - About Section */
@media (max-width: 992px) {
    .about-layout {
        flex-direction: column;
        gap: var(--spacing-lg);
        min-height: auto;
    }
    
    .about-content-left,
    .about-content-right {
        flex: 1 1 100%;
        width: 100%;
        padding-left: 0;
    }
    
    .about-section {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 768px) {
    .about-section .about-content {
        margin-bottom: var(--spacing-lg);
    }
    
    .about-section .about-content h2 {
        font-size: 1.5rem;
    }
    
    .about-section .about-content h4 {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .about-item h4 {
        font-size: 1.1rem;
    }
    
    .about-item p {
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }
    
    .gallery-item {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: var(--spacing-lg) 0;
    }
    
    .about-section .about-content h2 {
        font-size: 1.3rem;
    }
    
    .about-section .about-content h4 {
        font-size: 0.95rem;
    }
    
    .about-layout {
        gap: var(--spacing-md);
    }
    
    .about-item {
        padding: 0;
        margin-bottom: var(--spacing-md);
    }
}

/* =============================================================
   EVENTS PAGE STYLES
   Dedicated styling for the events page layout and components
   ============================================================= */

/* Page Header */
.page-header {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.events-header-bg {
    background-image: url('../assets/images/cultural.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: kenburns 20s ease-in-out infinite alternate;
}

/* Ken Burns effect - zoom and pan */
@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
        background-position: center center;
    }
    50% {
        transform: scale(1.15) translate(-2%, 2%);
        background-position: 52% 48%;
    }
    100% {
        transform: scale(1.1) translate(2%, -2%);
        background-position: 48% 52%;
    }
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

/* Light overlay variant for pages that need less dimming */
.page-header--light .page-header-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.08) 100%);
}

.page-header-content {
    position: relative;
    z-index: 3;
    color: var(--color-secondary);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
    color: var(--color-secondary);
}

.breadcrumb-separator {
    margin: 0 var(--spacing-xs);
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-current {
    color: var(--color-secondary);
    font-weight: 500;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 
                 0 0 20px rgba(0, 0, 0, 0.6);
}

.page-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    opacity: 1;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 
                 0 0 20px rgba(0, 0, 0, 0.6),
                 0 0 40px rgba(0, 0, 0, 0.4);
}

/* Events Overview Section */
.events-overview-section {
    padding: var(--spacing-xxl) 0 var(--spacing-xl);
    background: var(--color-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: var(--spacing-md) auto 0;
}

/* Events Section */
.events-section {
    padding: var(--spacing-xl) 0;
}

.events-section::before {
    content: '';
    position: absolute;
    top: 500px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/alpona-1.png');
    background-size: contain;
    background-position: center left;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.events-section.past-events {
    background: var(--color-accent);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/* Event Card */
.event-card {
    background: var(--color-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid var(--color-border);
}

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

.event-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform var(--transition-medium);
}

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

/* Make full card clickable without changing appearance */
.event-card .card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.event-card .card-link:focus,
.event-card .card-link:hover {
    color: inherit;
    text-decoration: none;
}

/* Event Image Backgrounds - CSS Gradients */
.durga-puja-2025-bg {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #feca57 100%);
}

.saraswati-puja-2025-bg {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #a29bfe 100%);
}

.durga-puja-2024-bg {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 50%, #fdcb6e 100%);
}

.rabindra-jayanti-bg {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #fd79a8 100%);
}

.independence-day-bg {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 50%, #74b9ff 100%);
}

.event-status {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    z-index: 2;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #00b894;
    color: var(--color-secondary);
}

.status-badge.inactive {
    background: rgba(0, 0, 0, 0.6);
    color: var(--color-secondary);
}

.event-date-badge {
    position: absolute;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 2;
}

.date-text {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Event Content */
.event-content {
    padding: var(--spacing-md);
}

.event-title {
    margin-bottom: var(--spacing-sm);
}

.event-title a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color var(--transition-fast);
}

.event-title a:hover {
    color: var(--color-highlight);
}

.event-location {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.event-location i {
    margin-right: 6px;
    color: var(--color-highlight);
}

.event-description {
    margin-bottom: var(--spacing-md);
}

.event-description p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border);
}

.event-meta {
    display: flex;
    gap: var(--spacing-sm);
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.meta-item i {
    margin-right: 4px;
    color: var(--color-highlight);
}

.event-status-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.status-coming-soon {
    color: #00b894;
}

.status-closed {
    color: var(--color-text-light);
}

/* Events CTA Section */
.events-cta-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #333333 100%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    color: var(--color-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

/* Events Page Responsive Design */
@media (max-width: 768px) {
    .page-header {
        height: 300px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .event-image-wrapper {
        height: 200px;
    }
    
    .event-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .event-meta {
        flex-wrap: wrap;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        height: 250px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .events-section {
        padding: var(--spacing-lg) 0;
    }
    
    .event-content {
        padding: var(--spacing-sm);
    }
    
    .event-title a {
        font-size: 1.1rem;
    }
}

/* Active Event Highlighting */
.event-card.active-event {
    border: 2px solid var(--color-highlight);
    box-shadow: 0 4px 12px rgba(183, 46, 46, 0.15);
}

.event-card.active-event .event-image-wrapper {
    height: 384px;
}

.event-card.active-event:hover {
    box-shadow: 0 8px 30px rgba(183, 46, 46, 0.25);
}

/* =============================================================
   EVENT DETAIL PAGE STYLES
   Specific styling for individual event detail pages
   ============================================================= */

/* Event Header Background */
.durga-puja-2025-header-bg {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 25%, #feca57 50%, #fd79a8 75%, #fdcb6e 100%);
}

.durga-puja-feature-bg {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #feca57 100%);
}

/* Event Header Meta */
.event-header-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.event-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #00b894;
    color: var(--color-secondary);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-date-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-secondary);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Event Overview Section */
.event-overview-section {
    padding: var(--spacing-xxl) 0;
    background: var(--color-secondary);
}

.event-overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.event-feature-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Feature image wrapper for overlays */
.feature-image-wrap {
    position: relative;
}

.feature-image-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 6;
}

.feature-image-overlay .event-date-header {
    background: rgba(0,0,0,0.5);
    color: #ffffff;
}

@media (max-width: 768px) {
    .feature-image-overlay { top: 12px; left: 12px; }
    .event-feature-image { height: 300px; }
}

.event-overview-details {
    padding: var(--spacing-sm);
}

.event-quick-details {
    margin: var(--spacing-md) 0;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px 4px;
    border-radius: 6px;
    transition: background-color var(--transition-fast);
}

.detail-item:hover {
    background-color: rgba(0,0,0,0.03);
}

.detail-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-highlight);
    color: var(--color-secondary);
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-content strong {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0px;
    font-size: 0.95rem;
}

.detail-content span {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
}

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

/* Event Tabs Section */
.event-tabs-section {
    /* Outer section should match page background (reduce gray) */
    background: var(--color-secondary);
    padding: var(--spacing-md) 0 0;
}

.event-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;
    /* center and constrain width */
    max-width: 1000px;
    margin: 0 auto;
    padding: 8px;
    background: transparent;
    border-radius: 10px;
    position: relative;
    flex-wrap: wrap;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: transparent;
    border: 1px solid rgba(35,35,35,0.06);
    color: var(--color-text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 999px; /* pill */
    transition: all 0.18s ease;
    white-space: nowrap;
    position: relative;
    box-shadow: none;
}

.tab-button:hover {
    color: var(--color-primary);
    background: rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

.tab-button.active {
    color: #ffffff;
    background: var(--color-highlight);
    border-color: var(--color-highlight);
    box-shadow: 0 10px 30px rgba(183,46,46,0.12);
    transform: translateY(0);
    z-index: 6;
}

@media (max-width: 900px) {
    .event-tabs { gap: 8px; padding: 6px; }
    .tab-button { padding: 10px 16px; font-size: 0.98rem; }
}

@media (max-width: 600px) {
    .event-tabs { justify-content: stretch; }
    .tab-button { flex: 1 1 100%; display: flex; justify-content: center; padding: 12px; }
}

/* Event Content Section */
.event-content-section {
    background: var(--color-secondary);
}

.tab-content {
    display: none;
    padding: var(--spacing-lg) 0;
}

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

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

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

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.detail-group h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.detail-list {
    list-style: none;
    padding: 0;
}

.detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px 4px;
    border-radius: 4px;
    transition: background-color var(--transition-fast);
}

.detail-list li:hover {
    background-color: rgba(0,0,0,0.03);
}

.detail-list i {
    color: var(--color-highlight);
    margin-top: 2px;
    flex-shrink: 0;
}

.text-link {
    color: var(--color-highlight);
    text-decoration: none;
    font-weight: 500;
}

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

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    margin-top: var(--spacing-xl);
}

.schedule-day {
    background: var(--color-accent);
    border-radius: 12px;
    padding: var(--spacing-xl);
}

.day-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-highlight);
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: var(--spacing-lg);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--color-highlight);
    border-radius: 50%;
    border: 3px solid var(--color-secondary);
}

.timeline-time {
    position: absolute;
    left: -70px;
    top: 0;
    width: 70px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-align: right;
}

.timeline-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
}

/* Mobile tweaks: keep time left of marker but reduce its width so it doesn't overlap content */
@media (max-width: 700px) {
    .timeline-item {
        padding-left: 60px; /* move content slightly right */
        margin-bottom: 12px;
    }

    .timeline-time {
        left: -49px; /* moved 3px to the right from -52px */
        top: 5px;    /* move 5px down on mobile */
        width: 52px;
        font-size: 0.75rem;
        text-align: right;
    }

    .timeline::before {
        left: 30px; /* ensure vertical line stays near marker */
    }

    .timeline-item::before {
        left: 24px;
        top: 6px;
    }

    .timeline-content h5 {
        font-size: 1rem; /* slightly smaller heading on mobile */
    }
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* Location Content */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    margin-top: var(--spacing-xl);
}

.venue-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.address {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.address i {
    color: var(--color-highlight);
    margin-top: 2px;
    flex-shrink: 0;
}

.venue-features h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-secondary);
}

.feature-list i {
    color: var(--color-highlight);
    width: 20px;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Registration Section */
.registration-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #333333 100%);
    color: var(--color-secondary);
    padding: var(--spacing-xxl) 0;
}

.registration-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.registration-info .section-title {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
}

.registration-info .section-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

.registration-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.95);
}

.benefit-item i {
    color: #feca57;
    font-size: 1.2rem;
    width: 24px;
}

.registration-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    padding: var(--spacing-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.registration-card h4 {
    color: var(--color-secondary);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.registration-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-sm);
}

.btn-large {
    padding: var(--spacing-sm) var(--spacing-xl);
    font-size: 1.1rem;
}

/* Back to Events Section */
.back-to-events-section {
    background: var(--color-accent);
    padding: var(--spacing-md) 0;
}

.back-link-container {
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--color-highlight);
}

/* Event Detail Page Responsive */
@media (max-width: 768px) {
    .event-overview-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .event-feature-image {
        height: 300px;
        order: -1;
        object-position: top;
    }
    
    .event-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .event-tabs {
        justify-content: flex-start;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .registration-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .timeline-item {
        padding-left: 80px;
    }
    
    .timeline-time {
        width: 70px;
    }
}

@media (max-width: 480px) {
    .event-header-meta {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .event-status-badge,
    .event-date-header {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .tab-button {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8rem;
    }
    
    .content-title {
        font-size: 1.5rem;
    }
    
    .schedule-day {
        padding: var(--spacing-md);
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-time {
        width: 45px;
        font-size: 0.7rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 14px;
        width: 10px;
        height: 10px;
    }
}

/* =============================================================
   REGISTRATION FORM SIDEBAR
   Slide-in form for event registration
   ============================================================= */

.registration-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
}

.registration-form-overlay.active {
    opacity: 1;
    visibility: visible;
}

.registration-form-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
    overflow-y: auto;
}

.registration-form-sidebar.active {
    transform: translateX(0);
}

.form-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl);
    background: var(--color-primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.form-sidebar-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.close-form-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.close-form-btn:hover {
    transform: rotate(90deg);
}

.form-sidebar-content {
    padding: var(--spacing-xl);
}

.form-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.registration-form .form-group {
    margin-bottom: var(--spacing-lg);
}

.registration-form label {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.registration-form input,
.registration-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure padding doesn't cause overflow on small devices */
.registration-form input,
.registration-form textarea,
.registration-form button {
    box-sizing: border-box;
    max-width: 100%;
    display: block;
}

.registration-form input:focus,
.registration-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(183, 46, 46, 0.1);
}

.registration-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.form-message {
    padding: var(--spacing-lg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message i {
    font-size: 1.5rem;
}

.form-message p {
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .registration-form-sidebar {
        max-width: 100%;
    }
    
    .form-sidebar-header {
        padding: var(--spacing-lg);
    }
    
    .form-sidebar-header h3 {
        font-size: 1.25rem;
    }
    
    .form-sidebar-content {
        padding: var(--spacing-lg);
    }

    /* Tighter spacing for very small screens to avoid truncation */
    @media (max-width: 420px) {
        .form-sidebar-content {
            padding-left: 0.75rem;
            padding-right: 0.75rem;
        }

        .registration-form input,
        .registration-form textarea {
            padding: 10px 12px;
            font-size: 0.95rem;
        }

        .btn {
            padding: 10px 14px;
            font-size: 13px;
        }
    }
}

#snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;   /* Snow shouldn’t block clicks */
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: rgb(255, 255, 255);
  font-size: 12px;
  opacity: 0.9;
  animation: fall linear infinite;
}

/* The falling animation: straight down with a little drift */
@keyframes fall {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(110vh) translateX(20px);
  }
}

/* ------------------------------------------------------------------
     Hide login menu items visually across all pages (desktop + mobile)
     This only affects visibility; the JS and functionality remain intact.
     Using !important to ensure it stays hidden even if inline styles try
     to toggle visibility.
     ------------------------------------------------------------------ */
#nav-login-li,
#nav-login-btn,
#mobile-nav-login-link,
#mobile-nav-login-link-wrap {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ------------------------------------------------------------------
   Member Area styles (moved from pages/member-area.html)
   These styles control the layout and UI for the secure member area
   and were previously inlined in `pages/member-area.html`.
   Keeping them here centralizes styling and allows easier overrides.
   ------------------------------------------------------------------ */
.member-container {
    max-width: 800px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
}

/* Make member container positioning context for the top-right logo */
.member-container {
    position: relative;
}
.member-area.active {
    display: block;
}
.member-container:has(.member-area.active) {
    display: block;
}

.member-area {
    display: none;
}

.member-area.active {
    display: block;
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.member-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.member-profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.member-profile h2 {
    margin: 0;
    color: #333;
}

.member-profile p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

.member-info {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.member-info h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4285f4;
}

.required {
    color: #e74c3c;
}

.btn-submit {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.btn-submit:hover {
    background: #229954;
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-message {
    background: #ffe6e6;
    color: #c0392b;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.error-message.active {
    display: block;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
}

.success-message.active {
    display: block;
}

.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.loading-screen.hidden {
    display: none;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4285f4;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-size: 16px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
}

/* Logo inside member container (top-right) */
.member-logo {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 110px;
    height: auto;
    display: block;
}

@media (max-width: 720px) {
    .member-logo {
        width: 72px;
        top: 12px;
        right: 12px;
    }
}

/* Ensure the member logo renders with its native transparency
   and is not affected by the global img::before/::after fallbacks. */
.member-logo {
    background: transparent !important;
    z-index: 20;
}
.member-logo::before,
.member-logo::after {
    display: none !important;
    content: none !important;
}

/* Highlighted page title used on member-area page */
.page-title-highlight {
    display: inline-block;
    font-size: 0.85rem; /* small font */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-secondary);
    background: var(--color-primary);
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 18px;
}

/* Slight adjustment for small screens */
@media (max-width: 480px) {
    .page-title-highlight { font-size: 0.8rem; padding: 5px 8px; }
}

/* Member/family sections: heading above details (better accessibility
   and predictable layout). The heading is full-width and the details
   use CSS Grid to create responsive columns for items. */
.member-details-section,
.family-details-section {
    display: block;
    margin-bottom: 12px;
}
.member-details-section > .section-label,
.family-details-section > .section-label {
    display: block;
    margin: 0 0 12px 0;
    font-weight: 700;
}
.member-details-section > .info-grid,
.family-details-section > .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

@media (max-width: 480px) {
    .member-details-section > .info-grid,
    .family-details-section > .info-grid {
        grid-template-columns: 1fr;
    }
}


