h1.text-center {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: center;
    color: #003366; /* Vibrant red-orange for a striking look */

}


/* For extra spacing */
.mb-5 {
    margin-bottom: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1.text-center {
        font-size: 3rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 480px) {
    h1.text-center {
        font-size: 2rem;
        letter-spacing: 2px;
    }
}




/* Gallery Page Main Styles */
.event-section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.section-heading {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    color: #003366;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Horizontal scrolling row for all image galleries */
.row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-right: -10px;
    margin-left: -10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

/* Remove margin bottom for first row in sections with multiple rows */
.row + .row {
    margin-top: 0;
}

/* Hide scrollbar for aesthetic purposes */
.row::-webkit-scrollbar {
    display: none;
}

.row {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Override Bootstrap column styles for horizontal scrolling */
.row > [class*="col-"] {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding-left: 10px;
    padding-right: 10px;
    scroll-snap-align: start;
    margin-bottom: 0;
}

/* Consistent image styling */
.img-fluid.rounded.shadow {
    width: 280px;
    height: 210px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

/* Saraswati Puja section */
section:nth-of-type(1) .img-fluid.rounded.shadow {
    width: 300px;
}

/* Seminar section images */
section:nth-of-type(2) .img-fluid.rounded.shadow {
    width: 250px;
}

/* Foundation Day section */
section:nth-of-type(3) .img-fluid.rounded.shadow {
    width: 280px;
}

/* Science Exhibition section */
section:nth-of-type(4) .img-fluid.rounded.shadow {
    width: 280px;
}

/* January 23rd section */
section:nth-of-type(5) .img-fluid.rounded.shadow {
    width: 320px;
}

/* Garden section */
section:nth-of-type(6) .img-fluid.rounded.shadow {
    width: 250px;
}

/* Hover effects */
.img-fluid.rounded.shadow:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
    z-index: 1;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .img-fluid.rounded.shadow {
        width: 220px !important;
        height: 165px;
    }
    
    section:nth-of-type(5) .img-fluid.rounded.shadow {
        width: 280px !important;
    }
}

@media (max-width: 576px) {
    .img-fluid.rounded.shadow {
        width: 180px !important;
        height: 135px;
    }
    
    section:nth-of-type(5) .img-fluid.rounded.shadow {
        width: 220px !important;
    }
    
    .section-heading h2 {
        font-size: 1.5rem;
    }
}

/* Make sure all rows behave the same way */
.row.mb-4 {
    margin-bottom: 0 !important;
}

/* Ensure consistent styling for all images including main images */
.col-md-12 {
    width: auto !important;
}