:root {
    --primary-color: #2d5a27;
    --secondary-color: #4a7c59;
    --third-color: #8c2e31;
    --accent-color: #6b8e23;
    --dark-green: #1a3d1a;
    --light-green: #e8f5e8;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --font-primary: 'Hind Siliguri', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
}

table tr th,
table tr td {
    vertical-align: middle;
}

/* Header Section */
.header-section {
    background: var(--light-green);
    border-bottom: 2px solid var(--primary-color);
}

.logo {
    height: 100px;
    width: auto;
}

.school-name {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
}

.school-subtitle {
    color: var(--third-color);
    font-size: 1.4rem;
    font-weight: 600;
}

.contact-info {
    text-align: right !important;
}

.contact-item {
    text-align: right;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.contact-item-top {
    font-size: 16px;
}

/* Navigation */
.navbar {
    background: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: var(--secondary-color);
    border-radius: 5px;
}

.navbar-nav .nav-link.last {
    background: var(--accent-color);
    border-radius: 5px;
}

/* Dropdown hover functionality */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 0;
    transition: all 0.3s ease;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--light-green);
    color: var(--primary-color);
}

/* Hero Slider */
.hero-slider {
    height: 70vh;
    position: relative;
}

.heroSwiper {
    height: 100%;
}

.slide-content {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--white);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Featured Services */
.featured-services {
    background: var(--white);
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon i {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

.service-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.service-text {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* About Section */
.about-section {
    background: var(--light-gray);
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.about-image img {
    border-radius: 15px;
}

/* News and Events */
.news-events {
    background: var(--white);
}

.news-item,
.event-item {
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.news-item:hover,
.event-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-title,
.event-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-date,
.event-date {
    font-size: 0.85rem;
}

.news-excerpt,
.event-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Statistics Section */
.statistics-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.stat-item {
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Footer */
.footer-section {
    background: #1a1a1a;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 50px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.contact-item {
    margin-bottom: 10px;
}

.contact-item i {
    margin-top: 2px;
    color: var(--accent-color);
}

/* Copyright Section */
.copyright-section {
    background: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slider {
        height: 50vh;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .school-name {
        font-size: 1.2rem;
    }
    
    .contact-info {
        text-align: center;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .service-card {
        margin-bottom: 20px;
    }
    
    .hero-slider {
        height: 40vh;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .slide-content .lead {
        font-size: 1rem;
    }
}


.swiper-button-next,
.swiper-button-prev {
    color: var(--white);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Featured Services */
.featured-services {
    background: var(--white);
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon i {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

.service-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.service-text {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* About Section */
.about-section {
    background: var(--light-gray);
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.about-image img {
    border-radius: 15px;
}

/* News and Events */
.news-events {
    background: var(--white);
}

.news-item,
.event-item {
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.news-item:hover,
.event-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-title,
.event-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-date,
.event-date {
    font-size: 0.85rem;
}

.news-excerpt,
.event-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Statistics Section */
.statistics-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.stat-item {
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Footer */
.footer-section {
    background: #1a1a1a;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.contact-item {
    margin-bottom: 10px;
}

.contact-item i {
    margin-top: 2px;
    color: var(--accent-color);
}

/* Copyright Section */
.copyright-section {
    background: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slider {
        height: 50vh;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .school-name {
        font-size: 1.2rem;
    }
    
    .contact-info {
        text-align: center;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .service-card {
        margin-bottom: 20px;
    }
    
    .hero-slider {
        height: 40vh;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .slide-content .lead {
        font-size: 1rem;
    }
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--white);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Featured Services */
.featured-services {
    background: var(--white);
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon i {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

.service-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.service-text {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* About Section */
.about-section {
    background: var(--light-gray);
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

.about-image img {
    border-radius: 15px;
}

/* News and Events */
.news-events {
    background: var(--white);
}

.news-item,
.event-item {
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.news-item:hover,
.event-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-title,
.event-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-date,
.event-date {
    font-size: 0.85rem;
}

.news-excerpt,
.event-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Statistics Section */
.statistics-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.stat-item {
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Footer */
.footer-section {
    background: #1a1a1a;
}

.footer-logo {
    height: 100px;
    width: auto;
}

.footer-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 50px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.contact-item {
    margin-bottom: 10px;
}

.contact-item i {
    margin-top: 2px;
    color: var(--accent-color);
}

/* Copyright Section */
.copyright-section {
    background: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slider {
        height: 50vh;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .school-name {
        font-size: 1.2rem;
    }
    
    .contact-info {
        text-align: center;
        margin-top: 15px;
    }

    .contact-item {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .service-card {
        margin-bottom: 20px;
    }
    
    .hero-slider {
        height: 40vh;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .slide-content .lead {
        font-size: 1rem;
    }
}

/* Navigation Item Spacing */
.navbar-nav .nav-item {
    margin-right: 15px;
}

/* Remove margin from last item */
.navbar-nav .nav-item:last-child {
    margin-right: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Footer Contact Info - Left Alignment */
.footer-section .contact-info {
    text-align: left !important;
}

.footer-section .contact-item {
    text-align: left !important;
    margin-bottom: 10px;
}

/* Video Gallery Styles */
.video-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* Removed zoom transform effect */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Only affects the overlay area, not the title */
}

.video-overlay i {
    color: white;
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.video-item:hover .video-overlay {
    opacity: 1;
}

/* Removed the hover zoom effect on image */
/* .video-item:hover img { transform: scale(1.05); } */

.video-title {
    /* Ensure title stays outside overlay and maintains opacity */
    position: relative;
    z-index: 2;
    background: white;
    margin-top: 0;
}

.video-title h6 {
    font-size: 1.0rem;
    color: #333;
    margin-bottom: 0;
    padding: 8px;
    /* Ensure text doesn't get affected by hover */
}

.video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-link:hover {
    text-decoration: none;
    color: inherit;
}

.video-link:hover .video-title h6 {
    /* Explicitly maintain text color and opacity on hover */
    color: #333;
    opacity: 1;
}

/* Magnific Popup Video Styles */
.mfp-iframe-holder .mfp-content {
    line-height: 0;
    width: 100%;
    max-width: 900px;
}

.mfp-iframe-scaler {
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    position: relative;
}

.mfp-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Departments Table Styles */
.departments-section .table {
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.departments-section .table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.departments-section .table tbody tr:hover {
    background-color: rgba(0,123,255,0.1);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.departments-section .table tbody td {
    vertical-align: middle;
    padding: 15px;
    border-color: #e9ecef;
}

.departments-section .info-card {
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.departments-section .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.departments-section .table-responsive {
    border-radius: 8px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .departments-section .table {
        font-size: 0.9rem;
    }
    
    .departments-section .table tbody td {
        padding: 10px 8px;
    }
}

/* Teacher Photos */
.teacher-photo {
    width: 100px;
    height: auto;
}

/* Teachers Table Responsive */
@media (max-width: 768px) {
    .teachers-section .table-responsive {
        font-size: 0.875rem;
    }
    
    .teacher-photo {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Staff Photos */
.staff-photo {
    width: 100px;
    height: auto;
}

/* Staffs Section */
.staffs-section {
    background: var(--light-gray);
}

/* Staffs Table Responsive */
@media (max-width: 768px) {
    .staffs-section .table-responsive {
        font-size: 0.875rem;
    }
    
    .staff-photo {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Students Section */
.students-section {
    background: var(--light-gray);
}

.search-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-section .form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.search-section .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.search-section .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.25);
}

.search-section .btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-section .btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Student Photos */
.student-photo {
    width: 100px;
    height: auto;
}

/* Students Table Responsive */
@media (max-width: 768px) {
    .students-section .table-responsive {
        font-size: 0.875rem;
    }
    
    .student-photo {
        width: 45px !important;
        height: 45px !important;
    }
    
    .search-section {
        padding: 1.5rem;
    }
    
    .search-section .row.g-3 {
        gap: 1rem;
    }
}

/* Governing Body Photos */
.governing-photo {
    width: 100px;
    height: auto;
}


/* Governing Body Section */
.governing-body-section {
    background: var(--light-gray);
}

/* Governing Body Table Responsive */
@media (max-width: 768px) {
    .governing-body-section .table-responsive {
        font-size: 0.875rem;
    }
    
    .governing-photo {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Former Principal Photos */
.principal-photo {
    width: 100px;
    height: auto;
}

/* Former Principals Section */
.former-principals-section {
    background: var(--light-gray);
}

/* Former Principals Table Responsive */
@media (max-width: 768px) {
    .former-principals-section .table-responsive {
        font-size: 0.875rem;
    }
    
    .principal-photo {
        width: 60px !important;
        height: 60px !important;
    }
}


.select2-container .select2-search--inline .select2-search__field {
    height: 24px!important;
}

.contact_page_form input[type="text"],
.contact_page_form textarea {
    font-size: 16px;
}

.table-student-all tr td {
    border: 1px solid #a6b5cc;
}
.table-student-all tr td:nth-of-type(1) {
    width: 25%;
}