    :root {
        --brand-red: #b91c1c;
        --brand-gray: #e0e0e0;
        --brand-red: #b91c1c;
        /* The dark red from your logo */
        --brand-green: #198754;
        /* The green accent for hover */
        --brand-beige: #f4f1ea;
        /* The background cream color */
        --text-gray: #555;
    }

    body {
        font-family: 'Segoe UI', sans-serif;
        background-color: #fffbfb;
    }

        /* ================= CUSTOM BUTTON STYLE ================= */
        .btn-custom {
            position: relative;
            background-color: var(--brand-red);
            color: #fff;
            padding: 10px 60px 10px 30px; /* Extra padding right for the large circle */
            border-radius: 50px; /* Full pill shape */
            font-weight: 500;
            font-size: 16px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            border: none;
            transition: all 0.3s ease;
            overflow: visible; /* Allows circle to slightly clip if needed, but usually visible is safer */
        }

        /* Icon Container (The Large Circle) */
        .btn-custom .btn-icon {
            position: absolute;
            right: -1px; /* Align to the far right edge */
            top: 0;
            bottom: 0;
            margin: auto; /* Vertically center */
            
            background-color: var(--icon-bg); /* Lighter red color */
            width: 46px;  /* Slightly larger than button height for that "pop" look, or match height */
            height: 100%; /* Match button height exactly */
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease, background-color 0.3s;
        }

        /* The Arrow Icon itself */
        .btn-custom .btn-icon i {
            font-size: 18px; /* Arrow size */
            color: #fff;
            font-weight: lighter; /* Makes arrow look thinner like image */
        }

        /* Hover Effects */
        .btn-custom:hover {
            background-color: #8a1b20; /* Slightly darker red on hover */
            color: #fff;
            text-decoration: none;
            transform: translateY(-2px); /* Slight lift */
            box-shadow: 0 5px 15px rgba(163, 34, 40, 0.4);
        }
        .btn-custom .btn-icon {
            background-color: #c76571; /* Lighten circle slightly on hover */
            transform: scale(1); /* Subtle grow effect for the circle */
        }

        .btn-custom:hover .btn-icon {
            background-color: #c76571; /* Lighten circle slightly on hover */
            transform: scale(1.05); /* Subtle grow effect for the circle */
        }

    /* ================= DOTTED PATTERN ================= */
    .main-home .dotted-pattern {
        position: absolute;
        top: -20px;
        right: -30px;
        width: 180px;
        height: 180px;
        background-image: radial-gradient(rgba(120, 98, 98, 0.323) 1.5px,
                transparent 1.5px);
        background-size: 15px 15px;
        z-index: -2 !important;
    }

    /* ================= IMAGE WRAPPER ================= */
    .main-home .image-wrapper {
        position: relative;
        padding: 10px;
        border-radius: 50%;
        display: inline-block;
        background: conic-gradient(var(--brand-red) 0deg, #ffffff00 0deg);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0);
        transition: background 0.4s ease;
        margin-top: -20px;
        margin-left: -65px;
        z-index: 3 !important;
    }

    .main-home .gap-area {
        position: relative;
        padding: 10px;
        border-radius: 50%;
        display: inline-block;
        background: #FFF;
    }

    /* ================= CAROUSEL ================= */
    .main-home .carousel {
        width: 415px;
        height: 415px;
        background: #fff;
        border-radius: 50%;
        overflow: hidden;
        position: relative;
        z-index: 2;
    }

    .main-home .carousel-item img {
        width: 100%;
        height: 415px;
        object-fit: cover;
    }

    .main-home .carousel-item {
        transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out !important;
    }

    @media (max-width: 576px) {

        .main-home .carousel,
        .main-home .carousel-item img {
            width: 300px;
            height: 300px;
        }
    }

    /* ================= TEXT ================= */
    .main-home .section-header h5 {
        color: var(--brand-red);
        letter-spacing: 2px;
        font-weight: 600;
        text-transform: uppercase;
    }

    .custom-divider {
        width: 500px;
        height: 20px;
        margin: 0 auto 3rem auto;
        /* ✅ centers the divider */

        background-image: url("https://fasnoida.org/media/Group.svg");
        background-repeat: no-repeat;
        background-position: center center;
        /* ✅ image center */
        background-size: auto 100%;
    }

    @media (max-width: 576px) {
        .custom-divider {
            width: 280px;
            height: 16px;
            background-size: auto 90%;
        }
    }

    .custom-divider-white {
        width: 500px;
        height: 20px;
        margin: 0 auto 3rem auto;
        /* ✅ centers the divider */

        background-image: url("https://fasnoida.org/media/Group-white.svg");
        background-repeat: no-repeat;
        background-position: center center;
        /* ✅ image center */
        background-size: auto 100%;
    }

    @media (max-width: 576px) {
        .custom-divider-white {
            width: 280px;
            height: 16px;
            background-size: auto 90%;
        }
    }



    .main-home .divider-icon {
        color: var(--brand-red);
    }

    .main-home .content-area h2 {
        color: var(--brand-red);
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

    .main-home .content-area p {
        color: #333931;
        line-height: 1.8;
        /* text-align: justify; */
    }

  
    /* ================= HERO SECTION ================= */
    .main-home .hero-section {
        /* Placeholder image - replace with your school building photo */
        background-image: url('https://fasnoida.org/media/gallery/73de2e8abca666c37c887f1cfcb02611.png');
        background-size: cover;
        background-position: center;
        height: 500px;
        width: 100%;
        position: relative;
    }

    /* ================= OVERLAP CONTAINER ================= */
    .main-home .main-wrapper {
        background-color: var(--brand-beige);
        border-radius: 10px;
        padding: 80px;
        margin-top: -200px;
        /* Pulls the box up over the image */
        position: relative;
        z-index: 10;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    }

    /* ================= HEADER DESIGN ================= */
    .main-home .section-header h2 {
        color: var(--brand-red);
        font-family: 'Cinzel', serif;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    /* Decorative Line */
    .main-home .decorative-divider {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 50px;
    }

    .main-home .decorative-divider .line {
        height: 2px;
        width: 120px;
        background-color: var(--brand-red);
    }

    .main-home .decorative-divider .icon {
        color: var(--brand-red);
        font-size: 14px;
        margin: 0 15px;
    }

    /* ================= CARD HOVER DESIGN (KEY PART) ================= */
    .main-home .circular-card {
        background: #fff;
        padding: 30px 25px;
        border-radius: 4px;
        border: none;
        position: relative;
        /* Needed for absolute positioning of arrow */
        overflow: hidden;
        /* Keeps the side bar contained */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        height: 100%;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-decoration: none;
        /* Removes underline from link */
    }

    /* 1. The Green Side Bar */
    .main-home .circular-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 2px;
        /* Width of the green strip */
        background-color: var(--brand-green);
        transform: scaleY(0);
        /* Hidden by default */
        transform-origin: left;
        transition: transform 0.2s ease-in-out;
    }

    /* 2. The Arrow Icon (Top Right) */
    .main-home .card-arrow {
        position: absolute;
        top: 15px;
        right: 15px;
        color: var(--brand-red);
        font-size: 18px;
        opacity: 0;
        /* Hidden by default */
        transform: translateX(-10px);
        /* Pushed slightly left */
        transition: all 0.3s ease;
    }

    /* HOVER STATES */
    .main-home .circular-card:hover {
        transform: translateY(-5px);
        /* Lifts up slightly */
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    }

    .main-home .circular-card:hover::before {
        transform: scaleY(1);
        /* Reveals green bar */
    }

    .main-home .circular-card:hover .card-arrow {
        opacity: 1;
        /* Shows arrow */
        transform: translateX(0);
        /* Slides to correct position */
    }

    /* Card Text Styling */
    .main-home .circular-card p {
        color: #444;
        font-size: 0.95rem;
        line-height: 1.6;
        margin: 0;
        font-weight: 500;
    }

    /* ================= VIEW ALL BUTTON ================= */
    .main-home .btn-icon-circle {
        background: rgba(255, 255, 255, 0.2);
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }

    /* ================= HEADER STYLES (Reused) ================= */
    .main-home-sli2 .section-header h2 {
        color: var(--brand-red);
        font-family: 'Cinzel', serif;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .main-home-sli2 .decorative-divider {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 40px;
    }

    /* The divider lines */
    .main-home-sli2 .decorative-divider .line {
        height: 2px;
        /* Thicker middle part */
        width: 120px;
        background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
        /* Fades out at ends like image */
        position: relative;
    }

    /* The center dot */
    .main-home-sli2 .decorative-divider .icon {
        color: var(--brand-red);
        font-size: 14px;
        margin: 0 10px;
    }

    /* ================= CAROUSEL STYLES ================= */
    .main-home-sli2 .achievement-carousel {
        max-width: 900px;
        /* Limits width to keep image centered like your screenshot */
        margin: 0 auto;
        position: relative;
        padding: 0 60px;
        /* Space for the arrows */
    }

    /* ================= SPEED FIX ================= */
    .carousel-item {
        /* Change 0.2s to make it even faster or slower (Default is 0.6s) */
        transition: transform 0.1s ease-in-out !important;
    }

    /* Optional: If you want to remove the fade delay if using fade effect */
    .carousel-fade .carousel-item {
        transition: opacity 0.1s ease-in-out !important;
    }

    .main-home-sli2 .carousel-item img {
        border-radius: 4px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        width: 100%;
        height: auto;
    }

    /* Customizing the Arrows to match the thin red ones */
    .main-home-sli2 .custom-control {
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--brand-red);
        font-size: 24px;
        /* Size of the arrow */
        opacity: 1;
        transition: transform 0.1s;
    }

    .main-home-sli2 .custom-control:hover {
        transform: translateY(-50%) scale(1.2);
        /* Slight grow effect */
        color: #900f0f;
    }

    .main-home-sli2 .custom-prev {
        left: 0;
    }

    .main-home-sli2 .custom-next {
        right: 0;
    }

    /* Remove default bootstrap arrow styling */
    .main-home-sli2 .carousel-control-prev-icon,
    .main-home-sli2 .carousel-control-next-icon {
        display: none;
    }


    .home-video-main {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        overflow-x: hidden;
    }

    /* 1. Full Screen Container */
    .home-video-main .video-wrapper {
        position: relative;
        width: 100vw;
        /* 100% Viewport Width */
        height: 100vh;
        /* 100% Viewport Height */
        background-color: #000;
        overflow: hidden;
        cursor: pointer;
    }

    /* 2. Thumbnail Layer (Covers Full Screen) */
    .home-video-main .video-thumbnail {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: opacity 0.5s ease-out;
        z-index: 2;
    }

    .home-video-main .thumbnail-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Ensures image covers screen without distortion */
        opacity: 0.8;
    }

    /* Play Button Centered */
    .home-video-main .play-btn {
        position: absolute;
        width: 100px;
        height: 100px;
        background-color: #b91c1c;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        font-size: 40px;
        padding-left: 8px;
        box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.7);
        animation: pulse 2s infinite;
        z-index: 3;
    }

    /* 3. YouTube Iframe (Covers Full Screen) */
    .home-video-main .video-iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        /* Logic to force 16:9 ratio while covering full screen */
        width: 100vw;
        height: 56.25vw;
        /* 100 * 9 / 16 */
        min-height: 100vh;
        min-width: 177.77vh;
        /* 100 * 16 / 9 */
        z-index: 1;
        opacity: 0;
        pointer-events: none;
        /* Only active when clicked */
    }

    /* 4. Active State (When Clicked) */
    .home-video-main .video-wrapper.is-active .video-thumbnail {
        opacity: 0;
        pointer-events: none;
    }

    .home-video-main .video-wrapper.is-active .video-iframe {
        opacity: 1;
        pointer-events: auto;
        z-index: 3;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.7);
        }

        70% {
            transform: scale(1.1);
            box-shadow: 0 0 0 20px rgba(185, 28, 28, 0);
        }

        100% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(185, 28, 28, 0);
        }
    }

    /* ================= SECTION SPACING ================= */
    .director-section {
        padding: 0;
        background-color: #fff;
        position: relative;
    }

    /* ================= LEFT SIDE: IMAGE & PATTERN ================= */
    .director-section .image-container {
        position: relative;
        display: flex;
        justify-content: center;
        /* Centers image in mobile */
        justify-content: flex-start;
        /* Aligns left in desktop */
        z-index: 1;
    }

    /* The dotted pattern behind the image */
    .director-section .dotted-pattern {
        position: absolute;
        top: 40px;
        right: 0;
        /* Adjusts position relative to image */
        width: 200px;
        height: 250px;
        background-image: radial-gradient(#b91c1c33 2px, transparent 2px);
        /* Light red dots */
        background-size: 20px 20px;
        z-index: -1;
    }

    .director-section .director-img {
        max-height: 550px;
        /* Controls the height of the person */
        width: auto;
        max-width: 100%;
        /* Ideally use a PNG with transparent background */
        object-fit: contain;
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    }

    /* ================= RIGHT SIDE: TEXT CONTENT ================= */
    .director-section .content-column {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-left: 3rem;
    }

    .director-section .section-header h2 {
        color: var(--brand-red);
        font-family: 'Cinzel', serif;
        font-weight: 700;
        font-size: 2.2rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 5px;
    }

    /* Decorative Divider */
    .director-section .decorative-divider {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        /* Aligns to start of text */
        margin-bottom: 30px;
    }

    .director-section .decorative-divider .line {
        height: 2px;
        width: 80px;
        background-color: var(--brand-red);
    }

    .director-section .decorative-divider .line.long {
        width: 250px;
        /* The right side line is longer */
    }

    .director-section .decorative-divider .icon {
        color: var(--brand-red);
        font-size: 14px;
        margin: 0 10px;
    }

    .director-section .message-text {
        color: var(--text-gray);
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 2rem;
        text-align: justify;
        /* Matches the clean block text in image */
    }

    /* ================= BUTTON ================= */

    .director-section .btn-icon-circle {
        background: rgba(255, 255, 255, 0.2);
        width: 28px;
        height: 28px;
        border-radius: 50%;
        margin-left: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }

    /* Mobile Responsive */
    @media (max-width: 991px) {
        .director-section .content-column {
            padding-left: 15px;
            text-align: center;
            align-items: center;
        }

        .director-section .decorative-divider {
            justify-content: center;
        }

        .director-section .director-img {
            max-height: 400px;
            margin-bottom: 30px;
        }

        .director-section .dotted-pattern {
            right: 10%;
        }
    }



    /* Header */
    .section-padding {
        padding: 60px 0;
    }

    .section-header h2 {
        color: var(--brand-red);
        font-family: 'Cinzel', serif;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    .decorative-divider {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
    }

    .decorative-divider .line {
        height: 2px;
        width: 100px;
        background-color: var(--brand-red);
    }

    .decorative-divider .icon {
        color: var(--brand-red);
        font-size: 14px;
        margin: 0 15px;
    }

    /* News Card */
    .news-card {
        display: block;
        border: none;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        height: 400px;
        margin-bottom: 30px;
        cursor: pointer;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        text-decoration: none !important;
    }

    .news-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

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

    /* Overlay */
    .card-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
        padding: 25px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .date-badge {
        background-color: var(--brand-red);
        color: #fff;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        display: inline-block;
        margin-bottom: 10px;
        width: fit-content;
    }

    .news-title {
        color: #fff;
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 5px;
        line-height: 1.4;
        padding-right: 20px;
    }

    .arrow-icon {
        position: absolute;
        bottom: 25px;
        right: 25px;
        color: #aaa;
        font-size: 0.9rem;
    }

    /* Controls */
    .controls-row {
        margin-top: 20px;
        display: flex;
        align-items: center;
    }

    .nav-circle-btn {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        border: 1px solid #b91c1c;
        background: transparent;
        color: #b91c1c;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        transition: all 0.3s;
        text-decoration: none;
        cursor: pointer;
    }

    .nav-circle-btn:hover {
        background: #b91c1c;
        color: #fff;
    }

    /* Header */
    .section-padding {
        padding: 60px 0;
    }

    .section-header h2 {
        color: var(--brand-red);
        font-family: 'Cinzel', serif;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    .decorative-divider {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 50px;
    }

    .decorative-divider .line {
        height: 2px;
        width: 100px;
        background-color: var(--brand-red);
    }

    .decorative-divider .icon {
        color: var(--brand-red);
        font-size: 14px;
        margin: 0 15px;
    }

    /* Left Navigation */
    .topper-nav-list {
        list-style: none;
        padding: 0;
        margin-top: 40px;
    }

    .topper-nav-item {
        padding: 15px 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: #444;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        justify-content: space-between;
    }

    .topper-nav-item.active {
        color: var(--brand-red);
        padding-left: 15px;
        border-left: 4px solid var(--brand-red);
    }

    .topper-nav-item .arrow {
        opacity: 0;
        transform: translateX(-10px);
        transition: 0.3s;
    }

    .topper-nav-item.active .arrow {
        opacity: 1;
        transform: translateX(0);
    }

    /* Card Design */
    .topper-card {
        background-color: var(--brand-red);
        border-radius: 20px;
        padding: 15px;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        color: #fff;
        box-shadow: 0 15px 30px rgba(185, 28, 28, 0.2);
    }

    .topper-img-wrapper {
        width: 100%;
        height: 350px;
        border-radius: 15px;
        overflow: hidden;
        margin-bottom: 15px;
        background: #fff;
        position: relative;
    }

    .topper-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .rank-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        background: #fff;
        color: var(--brand-red);
        padding: 5px 12px;
        border-radius: 5px;
        font-weight: 700;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .topper-info {
        padding: 0 10px 10px;
    }

    .topper-name {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 10px;
    }

    .topper-stats {
        display: flex;
        justify-content: space-between;
        font-size: 0.9rem;
    }

    .stat-value {
        font-size: 1.2rem;
        font-weight: 700;
        display: block;
        line-height: 1;
    }

    .stat-label {
        font-size: 0.75rem;
        opacity: 0.8;
        text-transform: uppercase;
    }

    /* Controls */
    .card-controls {
        max-width: 350px;
        margin: 20px auto 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .nav-circle-btn {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        border: 1px solid #b91c1c;
        background: #fff;
        color: #b91c1c;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
        cursor: pointer;
    }

    .nav-circle-btn:hover {
        background: #b91c1c;
        color: #fff;
    }

    .view-all-pill {
        background: #b91c1c;
        color: #fff;
        padding: 10px 30px;
        border-radius: 50px;
        font-weight: 600;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: 0.3s;
    }

    .view-all-pill:hover {
        background: #900f0f;
        color: #fff;
        text-decoration: none;
    }

    /* Hide the second slider initially */
    #slider-class-x {
        display: none;
    }

        /* ================= LAYOUT ================= */
        .events-section {
            background-color: var(--brand-red);
            position: relative;
        }

        /* Equal height columns */
        .events-section .row-eq-height {
            display: flex;
            flex-wrap: wrap;
        }

        /* ================= LEFT COLUMN ================= */
        .events-section .left-content-area {
            background-color: var(--brand-red);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 60px 30px;
            z-index: 2;
        }

        /* Header Styles */
        .events-section .section-header h2 {
            color: #fff;
            font-family: 'Cinzel', serif;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 10px;
        }
        .events-section .section-header p {
            color: rgba(255,255,255,0.8);
            font-size: 0.9rem;
            margin-top: 15px;
            max-width: 400px;
            text-align: center;
        }
        .events-section .decorative-divider {
            display: flex; align-items: center; justify-content: center;
        }
        .events-section .decorative-divider .line { height: 2px; width: 100px; background-color: #fff; opacity: 0.8; }
        .events-section .decorative-divider .icon { color: #fff; font-size: 14px; margin: 0 15px; }

        /* ================= TEXT SLIDER (LEFT) ================= */
        .events-section #textSlider {
            width: 100%;
            max-width: 400px;
            margin-top: 40px;
            margin-bottom: 30px;
        }

        .events-section .event-card {
            background: #fff;
            border-radius: 15px;
            padding: 30px 20px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            min-height: 180px; /* Consistent height */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            margin: 10px;
        }

        .events-section .date-badge {
            background-color: #b91c1c;
            color: #fff;
            padding: 6px 20px;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 700;
            display: inline-block;
            margin-bottom: 15px;
        }

        .events-section .event-title {
            margin: 0;
            display: block;
        }
        
        .events-section .event-title a {
            color: #222;
            font-weight: 700;
            font-size: 1.1rem;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .events-section .card-arrow {
            color: #b91c1c;
            font-size: 1.2rem;
        }

        /* ================= CONTROLS ================= */
        .events-section .custom-controls {
            display: flex;
            gap: 20px;
            margin-top: 10px;
            align-items: center;
        }

        .events-section .nav-circle-btn {
            width: 50px; height: 50px;
            border-radius: 50%;
            background: #fff;
            color: #b91c1c;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
            outline: none;
        }
        .events-section .nav-circle-btn:hover { transform: scale(1.1); background: #f0f0f0; }

        /* View All Link Style */
        .events-section .view-all-link {
            color: rgba(255,255,255,0.8);
            text-transform: uppercase;
            font-size: 0.85rem;
            font-weight: 600;
            margin-left: 20px;
            text-decoration: none;
            border-bottom: 1px solid rgba(255,255,255,0.4);
            transition: 0.3s;
        }
        .events-section .view-all-link:hover { color: #fff; border-color: #fff; text-decoration: none; }

        /* ================= IMAGE SLIDER (RIGHT) ================= */
        .events-section .right-image-area {
            padding: 0;
            min-height: 500px;
        }
        
        .events-section #imageSlider,.events-section #imageSlider .carousel-inner, .events-section  #imageSlider .carousel-item {
            height: 100%;
        }

        .events-section #imageSlider .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Mobile Adjustments */
        @media (max-width: 991px) {
           .events-section  .right-image-area { height: 300px; min-height: auto; }
            .events-section .left-content-area { padding: 40px 15px; }
        }    


        .gallery-section { padding: 80px 0 0 0; }

        /* Header */
        .gallery-section .section-header h2 {
            color: var(--brand-red); font-family: 'Cinzel', serif; font-weight: 700;
            text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
        }
        .gallery-section .decorative-divider { display: flex; align-items: center; justify-content: center; margin-bottom: 40px; }
        .gallery-section .decorative-divider .line { height: 2px; width: 120px; background-color: var(--brand-red); }
        .gallery-section .decorative-divider .icon { color: var(--brand-red); font-size: 14px; margin: 0 15px; }


        /* ================= TOP: FEATURED AREA ================= */
        .gallery-section .featured-wrapper {
            margin-bottom: 60px;
            transition: opacity 0.3s ease;
        }
        
        /* Slider Styling */
        .gallery-section .gallery-carousel-wrapper {
            position: relative; border-radius: 20px; overflow: hidden;
            box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
            /* height: 450px; */
            background: #ffffff; /* Placeholder color while loading */
        }
        .gallery-section .gallery-carousel-wrapper img { width: 100%; height: 100%; object-fit: cover; }

        .gallery-section .gallery-control-btn {
            position: absolute; top: 50%; transform: translateY(-50%);
            width: 45px; height: 45px; background: #fff; color: var(--brand-red);
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            font-size: 18px; cursor: pointer; z-index: 10; border: none; opacity: 0.9;
            transition: 0.3s;
        }
        .gallery-section .gallery-control-btn:hover { transform: translateY(-50%) scale(1.1); opacity: 1; }
        .gallery-section .btn-prev { left: 20px; } .btn-next { right: 20px; }

        /* Right Content */
        .gallery-section .gallery-content { padding-left: 30px; }
        .gallery-section .gallery-title { color: var(--brand-dark-blue); font-weight: 700; font-size: 2rem; margin-bottom: 15px; }
        .gallery-section .event-meta { font-weight: 700; color: #444; font-size: 0.95rem; margin-bottom: 15px; }
        .gallery-section .event-desc { color: #666; line-height: 1.6; margin-bottom: 20px; }
    
        .gallery-section .btn-icon-circle {
            background: rgba(255,255,255,0.2); width: 25px; height: 25px;
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            margin-left: 10px; font-size: 12px;
        }


        /* ================= BOTTOM: THUMBNAIL GRID ================= */
        .gallery-section .thumb-card {
            background: #fff; border-radius: 15px; overflow: hidden;
            margin-bottom: 30px; cursor: pointer; transition: transform 0.3s;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            display: block; 
            border: 2px solid transparent; /* Ready for active state */
        }
        .gallery-section .thumb-card:hover { transform: translateY(-5px); }
        .gallery-section .thumb-card.active-thumb { border-color: var(--brand-red); } /* Highlight active */

        .gallery-section .thumb-img { height: 220px; width: 100%; object-fit: cover; }
        
        .gallery-section .thumb-body { padding: 20px; }
        .gallery-section .thumb-title { 
            font-size: 1.1rem; font-weight: 700; color: var(--brand-dark-blue); 
            margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
        }
        .gallery-section .thumb-meta { font-size: 0.85rem; color: #666; margin-bottom: 0; }

        /* Mobile adjustments */
        @media (max-width: 991px) {
           .gallery-section  .gallery-carousel-wrapper { height: 300px; margin-bottom: 30px; }
            .gallery-section .gallery-content { padding-left: 0; text-align: center; }
        }


         .custom-footer::before {
            background: #fffbfb;
         }