/* ======= Enhanced Home Page Styles ======= */

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 1rem 0 2rem 0; /* Reduce top padding */
}

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

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(253, 133, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 179, 0, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(253, 133, 53, 0.05) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(255, 179, 0, 0.05) 100%);
}

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

.hero-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(253, 133, 53, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
    margin-top: 5%;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    color: var(--text-dark);
    margin-bottom: 5%;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
    margin-top: -4%;
}

.hero-description {
    font-size: 1.2rem;
    color: #555;
    font-weight: bold;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    z-index: 10000;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 8px 25px rgba(253, 133, 53, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(253, 133, 53, 0.4);
    color: white;
}

.btn-hero-primary .btn-arrow {
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(253, 133, 53, 0.3);
}

/* Hero Social Links */
.hero-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.hero-social-link {
    width: 45px;
    height: 45px;
    background: rgba(253, 133, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 20px rgba(253, 133, 53, 0.3);
}

/* Hero Image Section */
.hero-image-section {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(253, 133, 53, 0.2));
    animation: float 6s ease-in-out infinite;
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
}

/* Hero Banner Section */
.hero-banner-section {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 700px; /* Increased from 500px to 700px */
    margin: 0 auto;
}

#heroBannerCarousel {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(253, 133, 53, 0.2);
}

.banner-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; /* Maintains 16:9 aspect ratio */
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintains aspect ratio while filling container */
    object-position: center;
    transition: transform 0.5s ease;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-wrapper:hover .banner-image {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 1.5rem;
    color: white;
}

.banner-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(253, 133, 53, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

#heroBannerCarousel:hover .carousel-control-prev,
#heroBannerCarousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 15px;
    margin: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--primary-color);
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(253, 133, 53, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.6;
}

/* Featured News Section */
.featured-news-section {
    position: relative;
    background: linear-gradient(135deg, #fffbe6 0%, #ffdeb2 100%);
    overflow: hidden;
    z-index: 1;
}

.featured-news-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%23ffd54f'/%3E%3C/svg%3E");
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}

.featured-news-section > .container {
    position: relative;
    z-index: 1;
}

.news-card {
    flex: 0 0 auto; /* Needed for horizontal scroll */
    width: 320px;    /* Default desktop */
    max-width: 28%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    scroll-snap-align: center;
    transform: scale(0.98);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 5px; /* Add small margin to prevent content from touching edges */
}

.news-card.clone {
    opacity: 0.98; /* Optional: slightly fade to differentiate clones */
    pointer-events: none; /* Prevent accidental interactions */
}

.news-card:hover {
    transform: translateY(-5px) scale(1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.news-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* 4:3 ratio for a balanced card image */
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 20px 20px 0 0;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area perfectly */
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

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

.news-card:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.news-content {
    padding: 1.2rem 1.5rem; /* Add horizontal padding */
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}


.news-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    position: relative;
    touch-action: pan-x;
    padding-left: 10px; /* Add left padding to container */
    padding-right: 10px; /* Add right padding to container */
}

.news-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.news-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding: 1rem 0;
    align-items: stretch;
    transition: transform 0.3s ease;
    min-width: max-content;
    will-change: transform; /* Performance optimization */
    padding-left: 1rem; /* Add left padding to prevent cutting */
    padding-right: 1rem; /* Add right padding to prevent cutting */
}

.news-scroll-section {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0;
    margin: 0 0px; /* Negative margin to compensate for scroll button positioning */
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-category {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.3rem 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.news-summary {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.news-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.9;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    user-select: none; /* Prevent text selection */
}

.scroll-btn.left {
    left: 15px;
    z-index: 20;
}

.scroll-btn.right {
    right: 15px;
    z-index: 20;
}

.scroll-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(253, 133, 53, 0.4);
}

.scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 2px 10px rgba(253, 133, 53, 0.3);
}

/* Scroll Indicators */
.news-scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    position: relative;
    width: 100%;
    padding: 10px 0;
}

.news-scroll-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(253, 133, 53, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.news-scroll-indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .news-card {
        width: 280px;
        max-width: 80%;
    }
    
    .news-scroll-wrapper {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .news-scroll-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    .news-card {
        width: 260px;
        max-width: 85%;
    }
    
    .scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .news-scroll-wrapper {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .scroll-btn.left {
        left: 5px;
    }
    
    .scroll-btn.right {
        right: 5px;
    }
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-read-more {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-read-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(253, 133, 53, 0.3);
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(253, 133, 53, 0.3);
    color: white;
}

/* Enhanced News Scroll Animation */
@keyframes smoothScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Responsive adjustments for news cards */
@media (max-width: 992px) {
    .news-card {
        width: 280px;
        max-width: 80%;
    }
}

@media (max-width: 576px) {
    .news-card {
        width: 260px;
        max-width: 85%;
    }
    
    .news-scroll-wrapper {
        gap: 1rem;
    }
}

/* Improve touch scrolling on mobile */
.news-scroll-container {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 1.5rem 0;
}

/* Add subtle animation to news cards */
.news-card {
    animation: fadeIn 0.5s ease-in-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Statistics Section */

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, #fffd9d 0%, #fdad00 100%);
    color: rgb(255, 255, 255);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s linear infinite;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-content h3.stat-number {
    color: #095802 !important;
    -webkit-text-fill-color: initial !important;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.users-icon { background: linear-gradient(135deg, #3498db, #2980b9); }
.events-icon { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.districts-icon { background: linear-gradient(135deg, #f39c12, #e67e22); }
.projects-icon { background: linear-gradient(135deg, #27ae60, #229954); }

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

.stat-content h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
}

.stat-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
    transform: rotate(45deg);
}

/* Events Section */
.events-section {
    position: relative;
    background: linear-gradient(135deg, #f7e688 0%, #fffde7 100%);
    overflow: hidden;
    z-index: 1;
}

.events-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.events-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 188, 212, 0.10) 0, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(255, 202, 40, 0.10) 0, transparent 60%),
        radial-gradient(circle at 50% 90%, rgba(76, 175, 80, 0.10) 0, transparent 60%);
    animation: events-float 12s ease-in-out infinite;
}

@keyframes events-float {
    0%, 100% { background-position: 0 0, 100% 100%, 50% 100%; }
    50% { background-position: 0 20px, 100% 80%, 50% 90%; }
}

.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.event-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-date-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(253, 133, 53, 0.3);
}

.date-day {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

.event-meta {
    text-align: right;
}

.event-category {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
}

.event-district {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    justify-content: flex-end;
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.event-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.event-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-item i {
    color: var(--primary-color);
    width: 16px;
}

.event-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spots-available {
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-event-detail {
    background: #28a745;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-event-detail:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    color: white;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

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

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: bold;
    color: yellow;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    color: #667eea;
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* View All Button */
.btn-view-all {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(253, 133, 53, 0.4);
    color: white;
}

/* Horizontal scroll for activity images/videos */
.activity-scroll-section {
    background: linear-gradient(135deg, #fdad00 0%, #fffd9d 100%);
    box-shadow: 0 4px 24px rgba(253,133,53,0.07);
    padding: 2rem 1rem;
}

.activity-scroll-wrapper {
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.activity-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.activity-scroll-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding: 0.5rem 0.5rem 1rem 0.5rem;
    align-items: stretch;
}

.activity-scroll-card {
    flex: 0 0 360px; /* पहले 220px था */
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: center;
}
.activity-scroll-card:hover {

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.activity-scroll-img {
    width: 100%;
    height: 180px; /* bigger height */
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}
.activity-scroll-img:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

}

.activity-scroll-title {
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    color: #fd8535;
    text-align: center;
    font-weight: 600;
    line-height: 1.4;
}

.activity-scroll-video {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.activity-scroll-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 20px 20px 0 0;
    object-fit: cover;
}

/* Enhanced Video Gallery Styles */
.video-gallery-section {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0;
    margin: 0;
}

.video-gallery-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    position: relative;
    touch-action: pan-x;
    padding-left: 10px;
    padding-right: 10px;
}

.video-gallery-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.video-gallery-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding: 1rem 0;
    align-items: stretch;
    transition: transform 0.3s ease;
    min-width: max-content;
    will-change: transform;
    padding-left: 1rem;
    padding-right: 1rem;
}

.video-gallery-card {
    flex: 0 0 auto;
    width: 360px;
    max-width: 85vw;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: center;
    margin: 0 5px;
}

.video-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.video-gallery-video {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.video-gallery-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 20px 20px 0 0;
    object-fit: cover;
}

.video-gallery-title {
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    color: #fd8535;
    text-align: center;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Video Scroll Buttons */
.video-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.9;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    color: #fd8535;
}

.video-scroll-btn.left {
    left: 15px;
    z-index: 20;
}

.video-scroll-btn.right {
    right: 15px;
    z-index: 20;
}

.video-scroll-btn:hover {
    background: #fd8535;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(253, 133, 53, 0.4);
}

.video-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 2px 10px rgba(253, 133, 53, 0.3);
}
.watermark-logo-corner {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 4px;
    box-shadow: none;
    opacity: 1;
    pointer-events: none;
    z-index: 2;
}
/* Mobile responsive tweaks */
@media (max-width: 767px) {
    .activity-scroll-card {
        min-width: 80vw;
        max-width: 80vw;
    }
    .activity-scroll-img {
        height: 40vw;
        min-height: 130px;
    }
    .activity-scroll-video {
        width: 100%;
    }
    .activity-scroll-list {
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    /* Video Gallery Mobile Styles */
    .video-gallery-card {
        width: 280px;
        max-width: 80vw;
    }
    
    .video-scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .video-gallery-wrapper {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .video-gallery-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    .activity-scroll-card {
        min-width: 85vw;
        max-width: 85vw;
    }
    .activity-scroll-title {
        font-size: 0.95rem;
        padding: 0.6rem;
    }
    
    /* Video Gallery Small Mobile Styles */
    .video-gallery-card {
        width: 260px;
        max-width: 85vw;
    }
    
    .video-scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .video-gallery-wrapper {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .video-scroll-btn.left {
        left: 5px;
    }
    
    .video-scroll-btn.right {
        right: 5px;
    }
    
    .video-gallery-title {
        font-size: 0.95rem;
        padding: 0.6rem;
    }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .video-gallery-card {
        width: 320px;
        max-width: 45vw;
    }
    
    .video-scroll-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@keyframes gradient-shift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(15deg); }
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .hero-banner-section {
        max-width: 450px;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero-buttons {
        justify-content: center;
        text-align: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .stat-card {
        margin-bottom: 2rem;
    }
    
    .event-card {
        margin-bottom: 2rem;
    }
    
    .hero-banner-section {
        max-width: 400px;
        margin-top: 2rem;
    }
    
    .banner-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-badge-wrapper {
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        text-align: center;
        justify-content: center;
    }
    
    .hero-social {
        margin-top: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }

    .hero-badge-wrapper {
        margin-top: 3rem;
    }
}
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-banner-section {
        max-width: 100%;
        margin-top: 1.5rem;
    }
    
    .banner-title {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
    }
    
    .hero-social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-content h3 {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    
    .event-date-badge {
        padding: 0.8rem;
    }
    
    .date-day {
        font-size: 1.5rem;
    }

@media (max-width: 991.98px) {
    .news-card {
        width: 280px;
    }
}

@media (max-width: 767.98px) {
    .news-card {
        width: 260px;
    }

    .news-image-wrapper {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .news-summary {
        font-size: 0.9rem;
    }

    .btn-read-more {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .news-card {
        width: 85vw;
        max-width: 320px;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-summary {
        font-size: 0.9rem;
    }

    .news-content {
        padding: 1rem;
    }

    .btn-read-more {
        padding: 0.5rem 1rem;
    }
}
