/* --- Brand System (derived from logo: blue + magenta) --- */
:root {
    /* Core brand hues - updated to new brand colors */
    --brand-blue-700: #1d7ba8; /* deep cyan-blue */
    --brand-blue-600: #2596be; /* primary cyan-blue */
    --brand-blue-500: #3aa5c9; /* hover/tint */
    
    /* Mapped to Bootstrap variables */
    --primary: var(--brand-blue-600);
    --primary-light: var(--brand-blue-500);
    --primary-dark: var(--brand-blue-700);
    
    /* Pink from brand */
    --brand-pink-700: #d03197; /* deep magenta-pink */
    --brand-pink-600: #eb43b4; /* primary magenta-pink */
    --brand-pink-500: #ef5fc0; /* hover/tint */
    
    --secondary: var(--brand-pink-600);
    --secondary-light: var(--brand-pink-500);
    --secondary-dark: var(--brand-pink-700);
    
    /* On-color text */
    --on-brand: #ffffff;
    
    /* Gradients */
    --brand-gradient: linear-gradient(135deg, var(--brand-blue-600) 0%, var(--brand-pink-600) 100%);
    
    /* Status Colors - Keeping these consistent with Bootstrap's defaults */
    --success: #198754;
    --success-light: #21c97f;
    --success-dark: #0f5132;
    
    --warning: #ffc107;
    --warning-light: #ffca2c;
    --warning-dark: #ff9800;
    
    --danger: #dc3545;
    --danger-light: #e4606d;
    --danger-dark: #b02a37;
    
    --info: #0dcaf0;
    --info-light: #31d2f2;
    --info-dark: #0aa2c0;

    /* Grayscale */
    --gray-50: #f9fafb;      /* gray-50 */
    --gray-100: #f3f4f6;     /* gray-100 */
    --gray-200: #e5e7eb;     /* gray-200 */
    --gray-300: #d1d5db;     /* gray-300 */
    --gray-400: #9ca3af;     /* gray-400 */
    --gray-500: #6b7280;     /* gray-500 */
    --gray-600: #4b5563;     /* gray-600 */
    --gray-700: #374151;     /* gray-700 */
    --gray-800: #1f2937;     /* gray-800 */
    --gray-900: #111827;     /* gray-900 */

    /* Background & Surface */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;  /* gray-50 */
    --bg-tertiary: #f3f4f6;  /* gray-100 */

    /* Text Colors */
    --text-primary: #111827;  /* gray-900 */
    --text-secondary: #4b5563; /* gray-600 */
    --text-muted: #6b7280;    /* gray-500 */
    --text-inverse: #ffffff;

    /* Border Colors */
    --border-light: #e5e7eb;  /* gray-200 */
    --border: #d1d5db;        /* gray-300 */
    --border-dark: #9ca3af;   /* gray-400 */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

    /* Border Radius */
    --rounded-sm: 0.125rem;   /* 2px */
    --rounded: 0.25rem;       /* 4px */
    --rounded-md: 0.375rem;   /* 6px */
    --rounded-lg: 0.5rem;     /* 8px */
    --rounded-xl: 0.75rem;    /* 12px */
    --rounded-2xl: 1rem;      /* 16px */
    --rounded-3xl: 1.5rem;    /* 24px */
    --rounded-full: 9999px;   /* Full circle */

    /* Transitions */
    --transition: all 0.2s ease-in-out;
    --transition-slow: all 0.3s ease-in-out;
    --transition-fast: all 0.15s ease-in-out;

    /* Z-index */
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-auto: auto;
}


/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* TV Screen Adjustments */
@media (min-width: 1920px) {
    .btn {
        padding: 0.75rem 2rem;
        font-size: 1.1rem;
        margin: 0.5rem;
    }
    
    .btn-group {
        gap: 1.5rem;
    }
    
    .hero-section .btn {
        padding: 1rem 2.5rem;
        font-size: 1.2rem;
    }
    
    .member-portal-section .btn,
    .about-section .btn {
        min-width: 180px;
        padding: 0.75rem 1.5rem;
    }
}



/* Navbar Styling */
.navbar {
    padding: 0.5rem 0;
    background: var(--primary-dark) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1030;
}

.navbar > .container
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: white !important;
    transition: all 0.3s ease;
    margin-right: 0;
}
#navbarMain {
    flex-grow: 1;
    justify-content: center;
}
.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}
.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.15rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #ff69b4 !important;
  
}

.nav-link.active {
    color: #ff69b4 !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.dropdown.active .nav-link {
    color: #ff69b4 !important;
    background-color: rgba(255, 255, 255, 0.1);
}
/* Dropdown Styling */
.dropdown-menu {
    border: none;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1050;
}

.dropdown-item {
    padding: 0.5rem 1.25rem;
    color: #333 !important;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #ff69b4;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
    background-color: rgba(255, 105, 180, 0.05);
    color: #ff69b4 !important;
    padding-left: 1.5rem;
}

.dropdown-item:hover::before,
.dropdown-item:focus::before,
.dropdown-item.active::before {
    transform: scaleY(1);
}

.dropdown-divider {
    border-color: rgba(0, 0, 0, 0.05);
    margin: 0.5rem 1rem;
}

/* Mobile Menu */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
       background: var(--primary-dark);
        border-radius: 0.5rem;
        margin-top: 1rem;
        padding: 0.5rem;
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
    
    .dropdown-menu {
        margin: 0.25rem 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
    }
    
    .dropdown-item {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 0.5rem 1rem;
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus {
        background: rgba(255, 255, 255, 0.1);
        color: #ff69b4 !important;
    }
}
/* Enable hover for desktop dropdowns */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        position: absolute;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
    }
}

/* ==============================================
   Enhanced Hero Section with Glass Effect
   ============================================== */

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: -1;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.2);
}

/* Text Gradients */
.text-gradient-primary {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Hero Section Container */
.hero-section {
    padding: 1.5rem 0 2rem;
    background: linear-gradient(
        135deg, 
        #e0f2fe 0%, 
        #dbeafe 50%, 
        #f0e7ff 100%
    );
    overflow: hidden;
     position: relative;
}

.hero-content,
.hero-slide-container {
    position: relative;
    z-index: 1;
}
.hero-content h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-content h1 .text-gradient-primary {
    display: inline;
    background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-slide-container {
     height: 300px;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Hero Slides with Auto-rotation */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    transform: translateZ(0);
    will-change: opacity;
    animation: slideFade 15s infinite;
}

@keyframes slideFade {
    0%, 100% { opacity: 0; }
    5%, 30% { opacity: 1; }
    35%, 100% { opacity: 0; }
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    will-change: transform;
}

.hero-slide:hover img {
    transform: scale(1.05);
}

/* Hide navigation arrows */
.slide-nav {
    display: none;
}

.btn-slide-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid white;
    color: var(--brand-blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-slide-nav:hover {
    background: var(--brand-blue-600);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Slide Dots */
.slide-dots {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    z-index: 10;
}

.btn-slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-slide-dot.active,
.btn-slide-dot:hover {
    background: white;
    transform: scale(1.2);
    border-color: var(--brand-pink-600);
}

/* Stats Cards */
.stats-grid {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.stats-grid::-webkit-scrollbar {
    display: none;
}

.stat-card {
     min-width: 90px;
    flex: 1;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
      transition: all 0.3s ease;
}
.stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-blue-700) !important;
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 0.7rem;
    color: #4b5563;
    white-space: nowrap;
}
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: white;
      transform: none;
}


.stat-card:hover .stat-number {
    background: var(--bs-pink);
 background: -webkit-linear-gradient(135deg, var(--bs-pink), var(--bs-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
     color: var(--bs-pink) !important;
   
}
.stat-card:hover .stat-label {
    color: var(--bs-pink) !important;
}


/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    .hero-slide-container,
    .hero-slide img {
        min-height: 350px;
    }
    
    /* Make stats inline on mobile */
    .stats-grid {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 1rem;
        margin: 1.5rem -0.5rem 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .stats-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .stat-card {
        min-width: 120px;
        flex: 0 0 auto;
        padding: 1rem 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
    }
}

/* Animation for stats */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

/* Only animate first two stats */
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }

/* Overlay Gradient */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(37, 150, 190, 0.7) 0%,
        rgba(37, 150, 190, 0.4) 30%,
        rgba(37, 150, 190, 0.1) 50%,
        transparent 70%
    );
    z-index: 1;
    pointer-events: none;
}

/* Content Wrapper */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Welcome Badge */
.welcome-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--brand-blue-600);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(0, 0, 0, 0.05);
}

.welcome-badge i {
    margin-right: 0.5rem;
   color: var(--bs-pink) !important;
}

/* Small Image Overlay with Flame Animation */
.small-image-overlay {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 5;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes flame {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 15px rgba(var(--brand-blue-600-rgb), 0.7);
    }
    25% {
        transform: scale(1.05) rotate(2deg);
        box-shadow: 0 0 25px rgba(var(--brand-pink-600-rgb), 0.7);
    }
    50% {
        transform: scale(1.02) rotate(-1deg);
        box-shadow: 0 0 20px rgba(var(--brand-blue-600-rgb), 0.8);
    }
    75% {
        transform: scale(1.07) rotate(1deg);
        box-shadow: 0 0 30px rgba(var(--brand-pink-600-rgb), 0.6);
    }
}

.small-image-overlay:hover {
    transform: rotate(0) translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.small-image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Image */
.responsive-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.responsive-image:hover {
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--brand-blue-600);
    border-color: var(--brand-blue-600);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-blue-700);
    border-color: var(--brand-blue-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.3);
}

.btn-outline-primary {
    color: var(--brand-blue-600);
    border-color: var(--brand-blue-600);
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--brand-blue-600);
    border-color: var(--brand-blue-600);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.2);
}

/* Stat Cards */
.stat-card {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-card:hover {
       transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    transition: color 0.3s ease;
}

.stat-card:hover .stat-number {
   color: var(--bs-pink) !important;
}

/* Hero Section */
.hero-slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-slide.active {
    display: block;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem !important;
    }
}

/* Object fit fallback */
.object-fit-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Animation for stats */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }

/* Cards */
.card {
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}


/* User Dropdown Styles */
.user-dropdown {
    position: relative;
}

/* Fix for desktop hover and click */
@media (min-width: 992px) {
    .user-dropdown .dropdown-menu {
         display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s ease;
        position: absolute;
        right: 0;
        left: auto;
        z-index: 1050;
        min-width: 240px;
        border: none;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        border-radius: 0.5rem;
        padding: 0.5rem 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .user-dropdown:hover .dropdown-menu,
    .user-dropdown.show .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Mobile styles */
@media (max-width: 991.98px) {
    .user-dropdown {
        position: static;
    }

    /* Ensure mobile dropdown appears above other content */
    .navbar-collapse {
        z-index: 1040;
    }

    .navbar-toggler {
        z-index: 1041; /* Above the navbar collapse */
    }

    /* Mobile dropdown menu */
    .user-dropdown .dropdown-menu {
        position: absolute;
        right: 15px;
        left: auto;
        width: auto;
        min-width: 200px;
        margin-top: 0.5rem;
        z-index: 1050; /* Above everything else */
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Hide dropdown by default on mobile */
    .user-dropdown .dropdown-menu:not(.show) {
        display: none !important;
    }

    /* Show dropdown when toggled */
    .user-dropdown .dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Style for mobile dropdown items */
    .user-dropdown .dropdown-item {
        padding: 0.5rem 1.25rem;
        color: #333 !important;
    }

    .user-dropdown .dropdown-item:hover {
        background-color: rgba(255, 105, 180, 0.1);
        color: #ff69b4 !important;
    }
}

/* Common styles for both desktop and mobile */
.user-avatar {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-dropdown .dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: #333;
    display: flex;
    align-items: center;
}

.user-dropdown .dropdown-item:hover {
    background-color: rgba(255, 105, 180, 0.1);
    color: #ff69b4 !important;
}

.user-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(0, 0, 0, 0.05);
}

/* Auth Buttons */
.auth-buttons .btn {
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.auth-buttons .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
}

.auth-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ff69b4;
    color: #ff69b4 !important;
}

/* Dropdown arrow animation */
.user-dropdown .dropdown-arrow {
    transition: transform 0.2s ease;
}

.user-dropdown.show .dropdown-arrow,
.user-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}
/* Footer Styling - Matches Header */
footer {
    position: relative;
    overflow: hidden;
    background: var(--primary-dark) !important;
    padding: 1.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1029;
    margin-top: auto;
}



.hover-opacity-100 {
    transition: opacity 0.2s ease;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* Text colors */
.text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    footer {
        text-align: center;
        padding-top: 2rem;
    }
    
    .d-flex.align-items-start {
        justify-content: center;
    }
    
    .border-top.border-white-10 {
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    footer ul {
        padding-left: 0;
        list-style: none;
    }
}

/* Link styles */
footer a {
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

footer a:hover {
    color: #ff69b4 !important;
    transform: translateX(3px);
}

footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #ff69b4;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Social icons */
footer .fa-facebook-f:hover { color: #1877f2 !important; }
footer .fa-instagram:hover { color: #e1306c !important; }
footer .fa-youtube:hover { color: #ff0000 !important; }
/* Utility classes */
.rounded-xl {
    border-radius: 1rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}
/* Responsive adjustments */
@media (min-width: 768px) {
    .hero-section {
        padding: 2.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .stats-grid {
        gap: 1rem;
        overflow-x: visible;
    }
    
    .stat-card {
        min-width: 110px;
        padding: 1rem 0.75rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .hero-slide-container {
        height: 350px;
    }
}
.member-marquee {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    background: white;
    border-radius: 1rem;
    margin: 2rem auto;
    max-width: 1400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.member-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee-scroll 22s linear infinite;
    padding: 0 2rem;
}

.member-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* Fade effect on edges */
.member-marquee::before,
.member-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.member-marquee::before {
     content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(249, 250, 251, 0.9) 50%,
        rgba(255, 255, 255, 0.9) 100%
    );
    z-index: 0;
}

.member-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background: 
        linear-gradient(to right, white 0%, rgba(255,255,255,0) 100px, rgba(255,255,255,0) calc(100% - 100px), white 100%),
        linear-gradient(to right, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0) 100px, rgba(0,0,0,0) calc(100% - 100px), rgba(0,0,0,0.02) 100%);
    z-index: 1;
}

/* Member photo styles */
.member-photo {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-photo:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .member-marquee {
        margin: 1.5rem;
        border-radius: 0.75rem;
    }
    
    .member-photo {
        width: 3rem;
        height: 3rem;
    }
    
    .member-track {
        gap: 1rem;
        padding: 0 1.5rem;
    }
}

/* About section style */
.about-section {
    position: relative;
    background: linear-gradient(
        45deg, 
        rgba(224, 242, 254, 0.3) 0%, 
        rgba(219, 234, 254, 0.3) 50%, 
        rgba(240, 231, 255, 0.3) 100%
    );
    overflow: hidden;
}

/* Add subtle overlay */
.about-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.8) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(219, 234, 254, 0.4) 0%, transparent 40%);
    pointer-events: none;
}

/* Ensure content stays above the gradient */
.about-section > .container {
    position: relative;
    z-index: 1;
}

/* Services Section */
.services-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg, 
        rgba(224, 242, 254, 0.3) 0%, 
        rgba(219, 234, 254, 0.3) 50%, 
        rgba(240, 231, 255, 0.3) 100%
    );
    z-index: 0;
}

.services-decor-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, transparent 100%);
    border-radius: 50%;
    margin: -5rem -5rem 0 0;
}

.services-decor-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 0, 255, 0.05) 100%);
    border-radius: 50%;
    margin: 0 0 -5rem -5rem;
}

.service-card {
    height: 100%;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background-color: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    border: none;
}

.service-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.service-card .service-icon i {
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: #6c757d;
    margin-bottom: 1.25rem;
}

.service-link {
    color: var(--brand-blue-700);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.service-link:hover {
    color: var(--brand-blue-600);
}

.service-link i {
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.service-link:hover i {
    transform: translateX(0.25rem);
}
  .transition-all {
        transition: all 0.3s ease;
    }
    .object-cover {
        object-fit: cover;
    }
    .card {
        border-radius: 1rem !important;
    }
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
    }
    .btn-link {
        color: var(--bs-primary);
    }
    .btn-link:hover {
        color: var(--bs-primary-dark);
    }

   /* Weekly Programs Section - Accordion Style */
.weekly-programs {
    background: linear-gradient(135deg, #f8f9fa 0%, #fdf2f8 50%, #f0f9ff 100%);
    padding: 4rem 0;
}

.accordion-item {
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: white;
}


.accordion-button {
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-dark);
    color: white;
}

.accordion-button::after {
    display: none;
}

.accordion-arrow {
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed) .accordion-arrow {
    transform: rotate(180deg);
}

.program-time {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.program-title {
    font-size: 1.1rem;
    margin: 0;
    color: white;
}

.accordion-body {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: white;
    font-weight: 300;
    line-height: 1.7;
}
.accordion-body .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.accordion-body .bi-geo-alt, 
.accordion-body .bi-clock {
    color: white !important;
    opacity: 0.9;
}
/* Language Tabs */
.language-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 0.25rem;
    margin-bottom: 1rem;
}

.language-tab {
    flex: 1;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-tab.active {
    background: white;
    color: var(--bs-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.language-content.active {
    display: block;
}

.program-desc {
    color: white;
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .weekly-programs {
        padding: 2.5rem 0;
    }
    
    .accordion-button {
        padding: 1rem;
    }
    
    .program-title {
        font-size: 1rem;
    }
}

/* Member Portal Section */
.member-portal-section {
    padding: 6rem 0;
    position: relative;
    background: linear-gradient(135deg, #f0f7ff 0%, #f8f5ff 100%);
    overflow: hidden;
}

.member-portal-section > .container > .row {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.carousel-container {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

.carousel-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    height: 100%;
    animation: scroll 20s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.carousel-item {
    position: relative;
    display: grid !important;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 200px;
}

.carousel-item:hover {
    transform: translateY(-4px);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Column */
.portal-content-column {
    display: flex;
    align-items: center;
    padding: 3rem 2.5rem;
    background: white;
}

.portal-content {
    width: 100%;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
    }
    100% {
         transform: translateY(-50%);
    }
}

/* Responsive Adjustments */
@media (max-width: 1399.98px) {
    .carousel-item {
        height: 180px;
    }
}

@media (max-width: 1199.98px) {
    .carousel-item {
        height: 160px;
    }
    .portal-content-column {
        padding: 2rem;
    }
}

@media (max-width: 991.98px) {
    .member-portal-section {
        padding: 4rem 0;
    }
    
    .carousel-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 1.25rem;
    }
    
    .carousel-item {
        height: 140px;
    }
    
    .portal-content-column {
        padding: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .carousel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .carousel-item {
        height: 120px;
    }
    
    .portal-content-column {
        padding: 2rem 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .carousel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .carousel-item {
        height: 100px;
    }
    
    .member-portal-section {
        padding: 3rem 0;
    }
    
    .portal-content-column {
        padding: 2rem 1.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Blog Section */
.blog-section {
    position: relative;
    padding: 5rem 0 8rem;
    background: white;
    overflow: hidden;
}

/* Smooth gradient transition at the bottom */
.blog-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(var(--bs-primary-rgb), 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Blog Post Details */
/* Main Content */
.blog-post-content {
    line-height: 1.8;
    color: #374151;
    font-size: 1.05rem;
}

.blog-post-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 1.75rem 0 1rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content a {
    color: var(--brand-blue-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-content a:hover {
    color: var(--brand-blue-800);
    text-decoration: underline;
}

/* Featured Image */
.blog-featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Meta Information */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta i {
    color: var(--brand-blue-600);
}

/* Category and Tags */
.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.post-tag {
    display: inline-block;
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.post-tag:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

/* Author Section */
.author-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.author-bio {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.author-social {
    display: flex;
    gap: 1rem;
}

.author-social a {
    color: #6b7280;
    transition: color 0.2s ease;
}

.author-social a:hover {
    color: var(--brand-blue-600);
}

/* Blog card styles */
.blog-card {
    height: 100%;
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.blog-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-date {
    font-size: 0.875rem;
    color: var(--bs-gray-600);
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--bs-gray-900);
}

.blog-card-text {
    color: var(--bs-gray-700);
    margin-bottom: 1.25rem;
}

/* Blog read more link styles */
.read-more-link {
    color: var(--bs-primary) !important;
    font-weight: 500;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    padding: 0.25rem 0;
    background: none !important;
    border: none !important;
}

.read-more-link:hover {
    color: var(--brand-pink-600) !important;
}

.read-more-link i {
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}

.read-more-link:hover i {
    transform: translateX(0.25rem);
}

/* ===== Parent comment ===== */
.comment {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
}

/* ===== Horizontal replies container ===== */
.replies-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto; /* horizontal scroll */
    overflow-y: hidden; /* hide vertical scroll */
    gap: 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    width: 100%;
}

    /* Reply cards */
    .replies-container .comment {
        flex: 0 0 auto; /* do not shrink */
        width: 320px; /* fixed width */
        scroll-snap-align: start;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 12px;
        background: #fff;
    }

        /* Buttons inside replies stay visible */
        .replies-container .comment button {
            white-space: nowrap;
        }

    /* Horizontal scrollbar styling */
    .replies-container::-webkit-scrollbar {
        height: 6px;
    }

    .replies-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .replies-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

        .replies-container::-webkit-scrollbar-thumb:hover {
            background: #666;
        }

    /* Alpine visibility toggle */
    .replies-container.toggle-hidden {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .replies-container.toggle-visible {
        max-height: 1000px; /* large enough to show all replies */
        opacity: 1;
        transition: all 0.3s ease;
    }

/* Mobile adjustment */
@media (max-width: 768px) {
    .replies-container .comment {
        width: 280px;
    }
}
