/* css/style.css */

html{
    scroll-behavior: smooth;

  /* 
    !! IMPORTANT !!
    This prevents your fixed header from covering the section title.
    Measure the height of your header and set it here. 
    If your header is 80px tall, use 80px.
  */
  /* scroll-padding-top: 80px;  */
}

/* --- Google Fonts --- */
body {
    font-family: 'Lato', sans-serif;
    padding-right: var(--bs-gutter-x, 0);
}
.modal-open {
    padding-right: var(--bs-modal-padding, 0) !important;
}

/* You might also need to ensure your body itself doesn't have an explicit padding-right */


h1, h2, h3, h4, h5, h6, .display-4 {
    /* font-family: 'Playfair Display', serif; */
    font-weight: 700;
    font-family: 'Lato', sans-serif;
}

/* --- Navbar Styling --- */
.navbar {
    transition: background-color 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: rgba(21, 51, 14, 0.95); /* Dark green */
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


.navbar-brand .logo-img {
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    transition: height 0.4s ease-in-out;
}

.navbar.scrolled .logo-img {
    height: 45px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin: 0 10px;
    position: relative;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: #28a745; /* Bootstrap success green */
    transition: width .3s;
    position: absolute;
    bottom: 0;
    left: 10px;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: calc(100% - 20px);
}

/* --- Hero Carousel --- */
#hero-carousel .carousel-item {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#hero-carousel .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

#hero-carousel .carousel-caption {
    bottom: 20%;
    z-index: 2;
}

#hero-carousel .carousel-caption h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.d-none {
    display: block!important;
}

/* --- General Section Styling --- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}
.section-title span {
    color: #198754; /* Bootstrap success green */
}

.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}
.py-9 {
    padding-top: 9rem !important;
    padding-bottom: 4rem !important;
}

.bg-light_govt {
    --bs-bg-opacity: 1;
    background-color: rgb(198 200 201) !important;
}
.py-16 {padding-top: 2.6rem !important;
padding-bottom: 2.6rem !important;
}
/* --- Why Bamboo Section --- */
.feature-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
}

/* --- Gallery Section --- */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 135, 84, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- Gallery Modal (Lightbox) --- */
#galleryModal .modal-dialog {
    max-width: 80%;
}
#galleryModal .btn-close {
    position: absolute;
    top: -25px;
    right: -25px;
    opacity: 1;
    font-size: 1.2rem;
}

/* css/style.css (Add this to the end of the file) */

/* --- Smooth Scroll Base --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for the fixed navbar */
}

/* --- Enhanced Vision/Principle Cards --- */
.principle-card {
    border: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.principle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.principle-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto; /* Center the icon */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* --- Parallax Section Styling --- */
#impact-parallax {
    position: relative;
    background-image: url('../assets/32.jpeg'); /* High-quality background image */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 8rem 0;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 41, 15, 0.75); /* Dark green overlay */
    z-index: 1;
}

#impact-parallax .container {
    position: relative;
    z-index: 2; /* Content sits above the overlay */
}

.impact-stat h3 {
    font-family: 'Lato', sans-serif; /* Use a clearer font for numbers */
    font-weight: 700;
}

.impact-stat p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* --- Active Nav Link Highlight --- */
.navbar-dark .navbar-nav .nav-link.active {
    color: #28a745 !important; /* Bright green for active state */
}

.navbar-dark .navbar-nav .nav-link.active::after {
    width: 0; /* We don't need the underline for the active JS state */
}

/* css/style.css (Add this to the end of the file) */

/* --- About Section Enhancements --- */
.about-icon {
    flex-shrink: 0; /* Prevents the icon container from shrinking */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9f5ec; /* A very light green */
    color: #198754; /* Bootstrap success green */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
@keyframes wiggle-animation {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
  }
  
  .principle-card:hover .principle-icon i {
    animation: wiggle-animation 0.5s;
  }

  /* css/style.css (Add to the end) */

/* --- Why Bamboo Parallax Section --- */
#why-bamboo-parallax {
    background-image: url('../assets/26.jpeg'); /* The bamboo forest image */
    background-attachment: fixed;
    background-position: center; /* or 'top center', 'bottom center', etc. */
    background-repeat: no-repeat;
    background-size: cover;  /* or 'contain' */
    color: white; /* Change text color to white for better visibility */
}

#why-bamboo-parallax .container {
    position: relative; /* Ensure content is on top */
    z-index: 1;
}

/* Ensure feature icons and text are visible against the background */
#why-bamboo-parallax .feature-icon {
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white background */
    border-radius: 8px;
    color: #28a745; /* Keep the green color for the icons */
    transition: background-color 0.3s ease; /* Optional: Add a hover effect */
}

#why-bamboo-parallax .feature-icon:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#why-bamboo-parallax .text-muted {
    color: rgba(255, 255, 255, 0.8); /* Slightly less opaque text */
}

/*  If the image is too bright, add this overlay to ensure text is readable.
    Comment out if you want the full image. */
#why-bamboo-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);  /* Dark overlay to improve text contrast */
    z-index: 0; /* Put the overlay behind the content */
}

/* ============================================= */
/* ========= CONTACT PAGE HERO (EXISTING) ====== */
/* ============================================= */
#contact-hero {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: bottom;
    position: relative;
}

#contact-hero .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

#contact-hero .container {
    z-index: 2;
}

/* ============================================= */
/* ===== NEW DYNAMIC CONTACT FORM SECTION ====== */
/* ============================================= */
#contact-form-section {
    position: relative;
    background-image: url('../assets/32.jpeg'); /* CHOOSE A NICE BACKGROUND IMAGE */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* THIS CREATES THE PARALLAX EFFECT */
    color: #fff; /* Default text color for this section is white */
}

#contact-form-section .section-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(15, 48, 33, 0.3); /* Dark green overlay */
    z-index: 1;
}

#contact-form-section .container {
    position: relative;
    z-index: 2;
}

/* Card style for form and info blocks */
.contact-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* Style for the form fields on dark background */
#contact-form-section .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
}

#contact-form-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#contact-form-section .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #198754; /* Your theme's green color */
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.5);
    color: #fff;
}

/* Styling for the contact info icons */
#contact-form-section .contact-icon {
    font-size: 1.5rem;
    color: #198754; /* Bright green stands out */
    line-height: 1;
}
#contact-form-section h5 {
    color: #fff;
    font-weight: 600;
}
#contact-form-section p {
    color: rgba(255, 255, 255, 0.85);
}

/* Light version of the section title for dark backgrounds */
.section-title-light {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    color: #fff;
}
.section-title-light span {
    color: #28a745; /* A slightly brighter green for contrast */
}
.section-title-light::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: #28a745;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================= */
/* ============= MAP SECTION STYLES ============ */
/* ============================================= */
.map-container {
    border-radius: 15px;
    overflow: hidden; /* Important for border-radius on iframe */
    line-height: 0; /* Removes extra space below iframe */
}

/* Reusable Section Title from your theme */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
}

.section-title span {
    color: #198754;
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: #198754;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================= */
/* ============= "JOIN HANDS" PAGE ============= */
/* ============================================= */

/* --- Hero Section Styling --- */
.page-hero-join {
    height: 60vh;
    min-height: 400px;
    background-image: url('assets/34.jpeg'); /* Choose a relevant background image */
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-hero-join .container {
    position: relative;
    z-index: 2;
}

/* --- Redesigned "Join" Card Styling --- */
.join-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Key for footer alignment */
    width: 100%;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.join-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.join-card-img-top {
    width: 100%;
    height:318px;
    object-fit: cover; /* Ensures image covers the area without distortion */
}
.join-card-img-topcert{
    width: 100%;
    height:318px;
}

.join-card-body {
    padding: 1.5rem;
    flex-grow: 1; /* Allows this section to grow, pushing the footer down */
    display: flex;
    flex-direction: column;
}

.join-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

.join-card-text {
    color: #6c757d;
    line-height: 1.6;
    flex-grow: 1; /* Ensures the text takes up space, pushing the button down */
}

.join-card-footer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    background: #fff;
}

/* --- Reusable Section Title (from your theme) --- */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
}

.section-title span {
    color: #198754; /* Bootstrap's success color */
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: #198754;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================= */
/* ========= 4-IMAGE HERO SECTION STYLE ======== */
/* ============================================= */

#page-hero-quad {
    position: relative;
    min-height: 70vh;
    background-color: #222; /* Fallback color */
    overflow: hidden; /* Important for containing the grid */
}

/* The CSS Grid container for the 4 images */
.hero-quad-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    /* On desktop, we use a 4-column by 2-row grid for an asymmetrical layout */
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px; /* The space between images */
    padding: 8px;
    z-index: 1; /* Sits behind the overlay and text */
}

/* Styling for each image item */
.hero-quad-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

/* --- This is where we define the collage layout on DESKTOP --- */
.hero-quad-item.item-a {
    /* Main image: spans 2 columns and 2 rows */
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}
.hero-quad-item.item-b {
    /* Top-right image 1 */
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}
.hero-quad-item.item-c {
    /* Top-right image 2 */
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}
.hero-quad-item.item-d {
    /* Bottom-right image: spans 2 columns */
    grid-column: 3 / 5;
    grid-row: 2 / 3;
}


/* --- Layering for Overlay and Text --- */
/* The dark overlay sits on top of the images */
#page-hero-quad .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.65); /* Dark tint for readability */
    z-index: 2;
}
/* The text container sits on top of everything */
#page-hero-quad .container {
    position: relative;
    z-index: 3;
}


/* --- RESPONSIVE BEHAVIOR for Mobile --- */
/* @media (max-width: 768px) {
    #page-hero-quad {
        min-height: 80vh; /* A bit taller on mobile */
    /* }  */

    /* On mobile, switch to a simple 2x2 grid */
    /* .hero-quad-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    } */

    /* Reset the grid spans so each image takes one cell */
    /* .hero-quad-item {
        grid-column: auto;
        grid-row: auto;
    }
} */


/* ========================================================= */
/* === RESPONSIVE BEHAVIOR for Mobile (ROBUST 2x2 GRID) ==== */
/* ========================================================= */
@media (max-width: 768px) {
    #page-hero-quad {
        min-height: 80vh; /* A bit taller on mobile */
    }

    /* On mobile, switch to a simple 2x2 grid */
    .hero-quad-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    /* --- We are now EXPLICITLY placing each item in the grid --- */
    /* This prevents auto-placement errors */
    .hero-quad-item.item-a {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    .hero-quad-item.item-b {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    .hero-quad-item.item-c {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    .hero-quad-item.item-d {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    .navbar-toggler{
        position:relative !important;
        right:100px !important;
    }
}


/* =================================================== */
/* ======== PROFESSIONAL VERTICAL TIMELINE =========== */
/* =================================================== */

/* Main container for the timeline line */
.timeline-vertical {
    position: relative;
}

/* The vertical line */
.timeline-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 19px; /* Aligns with the center of the 40px icon */
    height: 100%;
    width: 3px;
    background: #e9ecef; /* Bootstrap's light gray */
    z-index: 1;
}

/* Each timeline item block */
.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem; /* Spacing between items */
}

/* The circular icon */
.timeline-icon {
    position: relative;
    z-index: 10;
    flex-shrink: 0; /* Prevents the icon from shrinking */
    
    /* Using Bootstrap classes in the HTML is cleaner, but you can style here too */
    /* Example: width: 40px; height: 40px; border-radius: 50%; etc. */
}

/* Use Bootstrap classes directly on the icon for styling */
.timeline-item .timeline-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #198754; /* Your theme's success color */
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #f8f9fa; /* Creates a nice border matching the light background */
}

/* The card containing the content */
.timeline-card {
    margin-left: 20px; /* Space between icon and card */
    width: 100%;
    border: 1px solid #eee;
    border-radius: 0.5rem; /* Bootstrap's standard card radius */
}

/* Customizing card title for hierarchy */
.timeline-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}


/* =================================================== */
/* ============= HERO SECTION FOR STORY PAGE ========= */
/* =================================================== */
#story-hero {
    height: 60vh;
    min-height: 400px;
    background-image: url('../assets/34.jpeg'); /* Choose a fitting background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    position: relative;
}

#story-hero .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

/* =================================================== */
/* ====== PROFESSIONAL ALTERNATING TIMELINE CSS ====== */
/* =================================================== */

/* Main container for the timeline */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* The central vertical line */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #e9ecef; /* Light grey line */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 1;
}

/* Each timeline item block */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circular icon on the line */
.timeline-item .timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 25px; /* Aligns with the content */
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #198754; /* Your theme's success color */
    color: #fff;
    font-size: 1.5rem;
    border: 4px solid #f8f9fa; /* Matches the bg-light color */
}

/* The content card */
.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    border: 1px solid #f0f0f0;
}

/* --- Positioning for LEFT items --- */
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 65px; /* Space for the icon */
}
.timeline-item:nth-child(odd) .timeline-icon {
    right: -25px; /* Position icon on the line */
}

/* --- Positioning for RIGHT items --- */
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 65px; /* Space for the icon */
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -25px; /* Position icon on the line */
}

/* The pointer ARROWS connecting card to timeline */
.timeline-content::after {
    content: " ";
    position: absolute;
    top: 28px;
    border: 10px solid transparent;
    border-style: solid;
}
/* Arrow for LEFT items (points right) */
.timeline-item:nth-child(odd) .timeline-content::after {
    right: -20px;
    border-left-color: white;
}
/* Arrow for RIGHT items (points left) */
.timeline-item:nth-child(even) .timeline-content::after {
    left: -20px;
    border-right-color: white;
}


/* --- RESPONSIVE DESIGN for Mobile (< 768px) --- */
@media screen and (max-width: 768px) {
    /* Move the timeline line to the left */
    .timeline-container::after {
        left: 35px;
    }

    /* Make all items full-width and aligned to the left */
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
        left: 0;
    }
    .timeline-item:nth-child(even) {
        left: 0; /* Reset the 50% left offset */
    }

    /* Position all icons on the left line */
    .timeline-item .timeline-icon {
        left: 10px;
    }
    .timeline-item:nth-child(odd) .timeline-icon {
        left: 10px;
    }

    /* Make all arrows point left */
    .timeline-item .timeline-content::after {
        left: -20px;
        border-right-color: white;
        border-left-color: transparent; /* Reset other side */
    }
}


/* --- HERO SECTION FOR STORY PAGE --- */
#story-hero {
    height: 60vh; min-height: 400px;
    background-image: url('../assets/34.jpeg');
    background-size: cover; background-position: center;
    background-attachment: fixed; position: relative;
}
#story-hero .hero-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}
.lead1{
    background-color: #cbdd3c9e;
    font-weight: 600 !important;
}
.mt-auto1{
margin-top:0px !important;
text-align: justify!important;
}


/* Custom CSS for Event Slider Modal */
#eventSliderModal .modal-dialog {
    max-width: 100%; /* Adjust as needed for larger screens */
    width: auto;
}

@media (min-width: 768px) {
    #eventSliderModal .modal-dialog {
        max-width: 700px; /* Specific width for desktops */
    }
}

@media (min-width: 992px) {
    #eventSliderModal .modal-dialog {
        max-width: 800px; /* Larger width for larger desktops */
    }
}


#eventSliderModal .modal-content {
    border-radius: 10px;
    overflow: hidden; /* Ensures rounded corners on images */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
}

#eventSliderModal .modal-header {
    border-bottom: none;
    padding: 0rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #27a043a3 !important; /* YBTC Green */
}

#eventSliderModal .modal-header .modal-title {
    font-weight: bold;
    color: #fff;
}

#eventSliderModal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%); /* Makes it clearly white */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#eventSliderModal .btn-close-white:hover {
    opacity: 1;
}

#eventSliderModal .modal-body {
    padding: 0;
}

#eventSliderModal .carousel-item img {
    width: 100%;
    height: 500px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures images cover the area without distortion */
    border-radius: 0 0 10px 10px; /* Only bottom corners rounded if modal-content is rounded */
}

@media (max-width: 767.98px) {
    #eventSliderModal .carousel-item img {
        height: 300px; /* Shorter height on mobile */
    }
   
}

#eventSliderModal .carousel-control-prev-icon,
#eventSliderModal .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 10px;
    transition: background-color 0.3s ease;
}

#eventSliderModal .carousel-control-prev-icon:hover,
#eventSliderModal .carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

#eventSliderModal .carousel-indicators [data-bs-target] {
    background-color: #fff;
    border-radius: 50%; /* Make indicators round */
    width: 10px;
    height: 10px;
    margin: 0 4px;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#eventSliderModal .carousel-indicators .active {
    opacity: 1;
    background-color: #28a74651; /* Active indicator color */
    transform: scale(1.2); /* Make active indicator slightly larger */
}

/* //event */

/* Gallery Page Specific Styles */
#gallery-page .section-title {
    font-size: 2.5rem;
    color: #333;
    font-weight: 700;
}

#gallery-page .section-title span {
    color: #28a745; /* YBTC Green */
}

#gallery-page .lead {
    font-size: 1.25rem;
    color: #666;
}

.gallery-item-fullpage {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.gallery-item-fullpage:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item-fullpage img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures images cover the area without distortion */
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item-fullpage:hover img {
    transform: scale(1.05); /* Slightly zoom in on hover */
}

.gallery-overlay-fullpage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 167, 69, 0.7); /* YBTC Green with opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.gallery-item-fullpage:hover .gallery-overlay-fullpage {
    opacity: 1;
}

/* Lightbox Modal Specific Styles */
#imageLightboxModal .modal-content {
    border-radius: 10px; /* Rounded corners for the actual image content */
}

#imageLightboxModal .modal-header {
    background-color: transparent; /* Transparent header for the image modal */
    border-bottom: none;
    padding: 1rem;
}

#imageLightboxModal .modal-title {
    color: #fff;
    font-weight: 600;
}

#imageLightboxModal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

#imageLightboxModal .modal-body {
    padding: 0; /* No padding around the image */
}

#imageLightboxModal #lightboxModalImage {
    max-height: 85vh; /* Limit image height to 85% of viewport height */
    width: auto; /* Allow width to adjust proportionally */
    max-width: 100%; /* Ensure it doesn't overflow horizontally */
    object-fit: contain; /* Contain the image within the modal, showing full image */
    background-color: #000; /* Black background for image area in transparent modal */
    padding: 10px; /* Small padding within the black area for aesthetics */
    border-radius: 8px; /* Slightly rounded corners for the image itself */
}

/* Ensure mobile responsiveness for image height */
@media (max-width: 767.98px) {
    #eventSliderModalLabel{
        font-size: 0.9rem;
    }
    .gallery-item-fullpage img {
        height: 200px; /* Slightly shorter on mobile grid */
    }
    #imageLightboxModal #lightboxModalImage {
        max-height: 70vh; /* Shorter for mobile lightbox */
    }
}

/* A general fix for Bootstrap modals that cause body shift on open */
/* This is crucial if you haven't already applied it */
/* Event Description Section */
.event-description-section {
    background: linear-gradient(135deg, #e6f2e6, #cce0cc);
    padding: 100px 20px 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .event-description-section .container {
    max-width: 900px;
  }
  
  .event-text-box {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .event-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: #2d572c;
    font-weight: 700;
  }
  
  .event-text-box p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 15px;
    text-align: justify;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .event-title {
      font-size: 1.6rem;
    }
  
    .event-text-box {
      padding: 20px;
    }
  
    .event-text-box p {
      font-size: 0.95rem;
    }
  }
  

  .gallery-thumb {
    width: 100%;
    height: 250px; /* consistent height */
    object-fit: cover; /* fills box, no distortion */
    border-radius: 8px;
  }
  
  .gallery-item-fullpage {
    position: relative;
  }
  
  .gallery-overlay-fullpage {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity .3s;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
  }
  
  .gallery-item-fullpage:hover .gallery-overlay-fullpage {
    opacity: 1;
  }
  
  .gallery-overlay-fullpage i {
    color: #fff;
  }
  .video-item .gallery-overlay-fullpage {
    opacity: 1 !important; /* always visible */
  }
  
  /* Make play icon larger and bright */
  .video-item .gallery-overlay-fullpage i {
    color: #fff;
    text-shadow: 0 0 5px #000;
  }