.video-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 2;
    transition: opacity 0.3s ease;
}
.video-banner__content {
    background: rgba(0, 0, 0, 0.5);
    padding: 3em 6em;
    text-align: center;
    border-radius: 1em;
}
.video-banner__content h1{
    font-size: 2em;
}
.video-banner__content p{
    font-size: 1.3em;
}

.video-banner__overlay.hidden {
    opacity: 0;
    pointer-events: none;
}


/* Component Title */
.component_title{
    color: #000;
    background: rgba(var(--primary), 1);
    width: fit-content;
    padding: 8px 10px;
    -webkit-border-bottom-left-radius: 10px;
    -webkit-border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin: 0em auto 1em auto;
    font-size: 2em;
    text-align: center;
}

.component_title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: rgb(var(--secondary));
    margin: auto;
    border-radius: 5px;
    transform: scaleX(0.5);
    transform-origin: center;
    transition: transform 0.4s ease-in-out;
}

.news-section__box:hover .component_title::after,
.table-section:hover .component_title::after,
.testimonials-section:hover .component_title::after,
.photo-carousel-section:hover .component_title::after {
    transform: scaleX(1.5);
}

/* ====================================================
   VIDEO BANNER SECTION
   - Fullscreen video banner with overlay text.
==================================================== */

/* Container for the video banner */
.video-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

/* Background video styling */
.video-banner__background {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
    /* filter: brightness(0.5); */
}
.video-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 0;
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 1;
}

/* Basic arrow styling */
.scroll-down .arrow {
    display: block;
    width: 30px;
    height: 30px;
    border-bottom: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* Bounce animation */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(10px) rotate(45deg);
    }

    60% {
        transform: translateY(5px) rotate(45deg);
    }
}



/* Style for the Back to Top button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    z-index: 1000;
    background: rgba(var(--secondary-dark), 0.9);
    transition: background-color 0.3s;
}

#backToTop:hover {
    background: rgba(var(--secondary-light), 0.9);
}

#backToTop svg {
    fill: #fff;
    width: 24px;
    height: 24px;
    position: relative;
    top: 25%;
    left: 25%;
    transform: translate(-50%, -50%);
}

/* ====================================================
   COUNTER SECTION
   - Displays counters with a number and a label.
==================================================== */
/* Container for all counter items */
.counter-section {
    background: rgba(var(--primary-light), 0);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
    padding: 5em 3em;
}

.counter-section__box {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(var(--primary-dark), 0.8);
    padding: 2em 2em;
    border-radius: 10px;
}

/* Counter item container with modern styling */
.counter-section__item {
    height: 155px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-light), 1);
    color: rgba(var(--on-primary), 1);
    padding: 2em;
    margin: 1em;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    text-align: center;
    cursor: pointer;
}

/* Hover effect for counter items */
.counter-section__item:hover {
    background: rgba(var(--primary-light), 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Big number styling */
.counter-section__item>div:first-child {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5em;
}

/* Label styling */
.counter-section__item>div:last-child {
    font-size: 1.2rem;
    font-weight: bold;
}


/* ====================================================
   CHAIRMAN & PRIDE SECTIONS
   - Showcases a chairman’s image, title, a message, and pride slider.
==================================================== */
/* Shared styling for chairman profile and pride box */
.chairman-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3em;
    padding: 5em;
}

.chairman-section__profile,
.pride-section {
    color: rgba(var(--on-primary), 1);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
}

.chairman-section__profile {
    max-width: 600px;
}

.pride-section {
    padding: 1em;
}

.pride-section h2 {
    font-size: 2.2rem;
}

/* Chairman Profile Picture */
.chairman-section__image {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    border: 2px solid rgba(var(--on-primary));
    object-fit: cover;
}

/* Name and Designation */
.chairman-section__name {
    font-size: 2em;
    font-weight: bold;
    margin: 0.5em auto;
}

.chairman-section__designation {
    font-size: 1rem;
    color: rgba(var(--on-primary));
    font-style: italic;
    font-weight: bold;
    margin-bottom: 1em;
}

/* Message Styling */
.chairman-section__message {
    font-size: 1rem;
    line-height: 1.3;
    text-align: justify;
}

/* PRIDE SECTION */
/* Slider Wrapper */
.pride-section__slider {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}


/* Each Slide Content */
.pride-section__slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Each Pride Item */
.pride-section__item {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2em;
    box-sizing: border-box;
}

/* Student Image */
.pride-section__image {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    border: 2px solid rgba(var(--on-primary));
    object-fit: cover;
    object-position: 50% 0%;
}

/* Student Name */
.pride-section__name {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 1em;
}

/* Course and Award Styling */
.pride-section__course {
    font-size: 1em;
    margin-top: 10px;
    font-weight: bold;
}

.pride-section__award {
    font-size: 1em;
    font-style: italic;
}

/* Navigation Buttons */
.pride-section__nav {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Slider Navigation Buttons */
.pride-section__nav-prev,
.pride-section__nav-next {
    background: rgba(var(--secondary), 0.8);
    color: rgba(var(--on-secondary), 0.8);
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition:background 0.5s, color 0.5s;
    position: absolute;
    bottom: 4%;
}
.pride-section__nav-prev:hover,
.pride-section__nav-next:hover {
    background: rgba(var(--secondary-dark), 1);
}


/* Left Button */
.pride-section__nav-prev {
    left: 20px;
    height: 3em;
    width: 3em;
}

/* Right Button */
.pride-section__nav-next {
    right: 20px;
    height: 3em;
    width: 3em;
}


/* ====================================================
   NEWS SECTION
   - Displays news boxes with a slider for news items.
==================================================== */
.news-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 5em 1em;
    flex-wrap: wrap;
    background: rgba(var(--primary-light), 0.4);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

/* News Box */
.news-section__box {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    background: rgba(var(--primary-light), 1);
    color: rgba(var(--on-primary), 1);
    border-radius: 10px;
    box-shadow: 0 0px 30px rgba(var(--secondary-dark), 0.6);
    overflow: hidden;
    position: relative;
    padding: 0em 1em 1em 1em;
}

/* News Slider */
.news-section__slider {
    display: flex;
    flex-direction: column;
    height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4C662B #2F312A;
}

/* Custom Scrollbar for News Slider (WebKit) */
.news-section__slider::-webkit-scrollbar {
    width: 8px;
    border-radius: 10px;
}

.news-section__slider::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4C662B, #586249);
}

.news-section__slider::-webkit-scrollbar-track {
    background: #2F312A;
}

/* Individual News/Event Item */
.news-section__item {
    padding: 15px;
    border-radius: 10px;
    background: rgba(var(--primary), 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 8px 0;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
}

/* News/Event Item Heading */
.news-section__item h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
    text-align: center;
}

/* News/Event Date */
.news-section__date {
    font-size: 1em;
    color: rgba(var(--primary-yellow));
    font-style: italic;
    margin-bottom: 5px;
    display: block;
    text-align: right;
}

/* News/Event Description */
.news-section__item p {
    font-size: 1em;
    line-height: 1.5;
    text-align: left;
}

/* ====================================================
   TABLE SECTION (ACHIEVEMENTS)
   - Displays a responsive table with sticky headers/columns.
==================================================== */
.table-section {
    width: 90%;
    margin: 50px auto;
    background: rgba(var(--primary-light), 1);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
    box-shadow: 0 0px 30px rgba(var(--secondary-dark), 0.6);
    padding: 0em 1em 1em 1em;
    border-radius: 10px;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}


/* Table Heading */
.heading-container h2 {
    width: fit-content;
    margin: 0 auto 1em auto;
    font-size: 2em;
}

.table-container {
    overflow-x: auto;
    width: 100%;
    border-radius: 10px;
}

.achievements-table {
    width: 100%;
    border-spacing: 0;
    min-width: 700px;
}

.achievements-table th {
    background: rgba(var(--secondary-light), 0.7);
    color: black;
    font-weight: bold;
    text-align: center;
    font-size: 1em;
}

.achievements-table th,
.achievements-table td {
    border: 1px solid #ddd;
    padding: 0.5em;
    text-align: center;
    font-size: 1em;
}

.achievements-table tr:nth-child(even) {
    background: #E1E4D5;
}

.achievements-table tr:nth-child(odd) {
    background: #F9FAEF;
}

.achievements-table tr:hover {
    background: #CDEDA3;
    transition: 0.3s ease-in-out;
}


/* Custom Horizontal Scrollbar for Table */
.table-container::-webkit-scrollbar {
    height: 10px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #4C662B;
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-track {
    background: #CDEDA3;
}


/* ====================================================
   TESTIMONIALS SECTION
   - Horizontal scroll section for student testimonials.
==================================================== */
/* Container for the slider and navigation buttons */
.testimonials-section {
    padding: 0em 1em 1em 1em;
    background: rgba(var(--primary), 0.5);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.testimonials-section__title {
    text-align: center;
    font-size: 2em;
    background: rgba(var(--primary-light), 1);
}

.testimonials-section__container {
    position: relative;
}

/* Navigation buttons for testimonials */
.testimonials-section__nav-left,
.testimonials-section__nav-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(var(--secondary-dark), 0.6);
    color: rgba(var(--on-secondary), 1);
    border: none;
    width: 2em;
    height: 2em;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.testimonials-section__nav-left {
    left: -15px;
}

.testimonials-section__nav-right {
    right: -15px;
}

.testimonials-section__nav-left:hover,
.testimonials-section__nav-right:hover {
    background: rgba(var(--secondary-dark), 1);
}

/* Testimonials Slider */
.testimonials-section__slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0em 2em 2em 2em;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-section__slider::-webkit-scrollbar {
    display: none;
}

.testimonials-section__item {
    flex: 0 0 auto;
    width: 300px;
    background: rgba(var(--primary-light), 1);
    color: rgba(var(--on-primary), 1);
    box-shadow: 0 0px 30px rgba(var(--secondary-dark), 0.6);
    padding: 20px;
    border-radius: 16px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
    text-align: left;
}

.testimonials-section__item:hover {
    box-shadow: 0 0px 30px rgba(var(--secondary-dark), 1);
}

.testimonials-section__text {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 1em;
    text-align: justify;
}

.testimonials-section__name {
    font-size: 1.5em;
    font-weight: bold;
}

.testimonials-section__course {
    font-size: 1em;
    font-style: italic;
}


/* ====================================================
   PHOTO CAROUSEL SECTION
   - Displays a photo carousel with unique navigation.
==================================================== */
.photo-carousel-section {
    padding: 2em 0em;
    position: relative;
}

.photo-carousel-section__wrapper {
    position: relative;
    margin: 2em 1em;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: rgba(var(--primary-dark), 0.5);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
    padding: 5em 5em 2em 5em;
    border-radius: 10px;
}

.photo-carousel-section__title {
    position: absolute;
    background: rgba(var(--primary-light), 1);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5em;
    z-index: 10;
}

/* Nav Buttons */
.photo-carousel-section__nav-left,
.photo-carousel-section__nav-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(var(--primary-light), 1);
    color: rgba(var(--on-primary), 1);
    padding: 12px 18px;
    margin: 0 2.5em;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
    z-index: 10;
    border: none;
}

.photo-carousel-section__nav-left:hover,
.photo-carousel-section__nav-right:hover {
    background: rgba(var(--secondary-light), 1);
}

.photo-carousel-section__nav-left {
    left: -30px;
}

.photo-carousel-section__nav-right {
    right: -30px;
}

/* Carousel Track */
.photo-carousel-section__carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2em;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.photo-carousel-section__carousel::-webkit-scrollbar {
    display: none;
}

.photo-carousel-section__item {
    flex: 0 0 auto;
    height: 20em;
    width: 30em;
    scroll-snap-align: start;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.photo-carousel-section__item:hover {
    transform: scale(1.05);
}

.photo-carousel-section__item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 0%;
}


/* ====================================================
   RESPONSIVE STYLES (MOBILE VIEWS)
==================================================== */
@media (max-width: 1300px) {
    .chairman-section {
        flex-direction: column;
    }
    .chairman-section__profile,
    .pride-section {
        margin: 0em auto;
    }
}
@media screen and (max-width: 768px) {
    .video-banner__content {
        padding: 2em;
    }
    .video-banner__content h1{
        font-size: 1.5em;
    }
    .video-banner__content p{
        font-size: 1em;
    }

    /* Counter Section: Stack items vertically */
    .counter-section {
        padding: 3em 1em;
    }
    .counter-section__box {
        flex-direction: column;
        align-items: center;
        padding: 1em 1em;
    }

    .counter-section__item {
        width: 90%;
        margin: 0.5em;
        padding: 0.5em;
    }

    /* Chairman Section: Stack image and content vertically */
    .chairman-section {
        flex-direction: column;
        gap: 20px;
        padding: 30px 10px;
    }

    /* Chairman Profile and Pride Section: Stack Vertically */
    .chairman-section__profile,
    .pride-section {
        min-width: 0%;
        width: 100%;
        max-width: 100%;
    }

    /* Adjust Chairman Image for Mobile */
    .chairman-section__image {
        width: 100px;
        height: 100px;
    }

    /* Adjust Pride Images for Mobile */
    .pride-section__image {
        width: 150px;
        height: 150px;
    }

    /* Adjust Pride Slider Width */
    .pride-section__slider {
        width: 100%;
    }

    /* Adjust Text Size for Mobile */
    .chairman-section__profile h2,
    .pride-section h2 {
        font-size: 1.8rem;
    }

    .chairman-section__name,
    .pride-section__name {
        font-size: 1.3rem;
    }

    .chairman-section__designation,
    .pride-section__course,
    .pride-section__award {
        font-size: 1rem;
    }

    /* Reduce Box Shadow on Mobile */
    .chairman-section__profile,
    .pride-section {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    .pride-section {
        height: 27em;
    }

    /* News Section: Stack news boxes vertically */
    .news-section {
        flex-direction: column;
        padding: 30px 10px;
    }

    .news-section__box {
        min-width: 0%;
        max-width: 100%;
    }

    .news-section__box h2 {
        font-size: 1.8rem;
    }

    .news-section__item h3 {
        font-size: 1.3rem;
    }

    .news-section__item p {
        font-size: 0.95rem;
    }

    .view-more-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Table Section: Adjust padding and heading for mobile */
    .table-section {
        padding: 0em 0.5em 0.5em 0.5em;
        width: 95%;
    }

    .table-container {
        overflow-x: auto;
        max-width: 100%;
        border-radius: 10px;
    }

    .heading-container h2 {
        font-size: 1.5rem;
    }

    .achievements-table {
        display: block;
        min-width: 600px;
        white-space: nowrap;
    }

    .achievements-table th,
    .achievements-table td {
        padding: 10px;
        font-size: 0.9rem;
    }

    .achievements-table th:first-child,
    .achievements-table td:first-child {
        position: sticky;
        left: 0;
        background-color: #4C662B;
        color: #FFFFFF;
        z-index: 1;
        font-weight: bold;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }

    .achievements-table tr:hover td:first-child {
        background-color: #CDEDA3;
        color: #4C662B;
    }

    /* Testimonials Section */
    .testimonials-section__slider {
        gap: 10px;
        padding-top: 0em;
    }

    .testimonials-section__item {
        width: 100%;
        max-width: 280px;
    }

    .testimonials-section__nav-left,
    .testimonials-section__nav-right {
        width: 2em;
        height: 2em;
        font-size: 1.2rem;
    }

    .testimonials-section__text {
        font-size: 0.9rem;
    }

    .testimonials-section__name {
        font-size: 1.1rem;
    }

    /* Make the carousel wrapper full-width with reduced horizontal padding */
    .photo-carousel-section {
        padding: 0;
    }

    .photo-carousel-section__wrapper {
        position: relative;
        /* Ensure it's a positioning context */
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 4em 0 2em 0;
        /* Vertical padding only */
        border-radius: 0;
    }

    /* Position title and nav buttons in the same row at the top */
    .photo-carousel-section__title {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        font-size: 2rem;
        z-index: 10;
    }
    
    .photo-carousel-section__carousel {
        margin: 0em;
        padding: 2em 0em;
        gap: 1em;
    }

    .photo-carousel-section__item{
        width: 100%;
        margin: 0em 1em;
    }

    /* Position nav buttons flush with the left and right edges at the same top position as the title */
    .photo-carousel-section__nav-left,
    .photo-carousel-section__nav-right {
        position: absolute;
        top: 2em;
        /* Same as title */
        z-index: 10;
        margin: 0;
    }

    .photo-carousel-section__nav-left {
        left: 1em;
    }

    .photo-carousel-section__nav-right {
        right: 1em;
    }

}

@media screen and (max-width: 400px) {
    .chairman-section__profile,
    .pride-section {
        padding: 0.5em;
    }
    
    .pride-section h3{
        font-size: 1em;;
    }

    .news-section__box {
        padding: 0em 0.5em;
    }
}