/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #1a237e;
    --primary-dark: #0d1259;
    --primary-light: #3949ab;
    --secondary: #ff6f00;
    --secondary-light: #ffa000;
    --accent: #00c853;
    --accent-light: #69f0ae;
    --dark: #1a1a2e;
    --darker: #0f0f23;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6f00 0%, #ffa000 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-hover: 0 15px 50px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    background: var(--white);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Full Width Container Override - makes site full width not centered */
.container {
    max-width: 100% !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    width: 100% !important;
}

.container-fluid {
    width: 100% !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

section.section-padding {
    width: 100%;
    max-width: 100%;
}

section.section-padding > .container,
section.section-padding > .container-fluid {
    width: 100%;
    max-width: 100%;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: capitalize;
}

.section-title .subtitle {
    color: var(--gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title.text-start::after {
    margin: 15px 0 0;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--secondary);
}

/* ===== MAIN HEADER ===== */
.main-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
}

.header-logo {
    height: 160px;
    max-height: 160px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.header-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 991.98px) {
    .header-logo {
        height: 100px;
        max-height: 100px;
    }
}

@media (max-width: 575.98px) {
    .header-logo {
        height: 75px;
        max-height: 75px;
    }
}

.school-name {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.3;
}

.school-motto {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 500;
    font-style: italic;
}

/* ===== NAVIGATION ===== */
.top-bar,
.main-header {
    position: relative;
    z-index: 999990 !important;
}

.main-nav {
    background: var(--gradient-primary);
    padding: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    z-index: 999995 !important;
    overflow: visible !important;
}

.main-nav .container,
.main-nav .navbar-collapse,
.main-nav .navbar-nav {
    overflow: visible !important;
}

.main-nav .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    padding: 15px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.main-nav .navbar-nav .nav-link i {
    margin-right: 5px;
}

.main-nav .dropdown-menu {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    padding: 8px;
    min-width: 240px;
    position: absolute !important;
    top: 100% !important;
    left: 0;
    z-index: 999999 !important;
    animation: fadeInDown 0.25s ease;
    margin-top: 0 !important;
}

.main-nav .dropdown-item {
    padding: 10px 15px;
    font-size: 13px;
    color: #444;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav .dropdown-item:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(5px);
}

.main-nav .dropdown-item.fw-bold {
    color: var(--primary);
    font-size: 13px;
    pointer-events: none;
}

/* Enable hover dropdown for desktop screens */
@media (min-width: 992px) {
    .main-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE OFFCANVAS SIDEBAR NAV ===== */
.mobile-nav-offcanvas {
    width: 300px !important;
    background: var(--primary-dark);
    color: var(--white);
}

.mobile-nav-offcanvas .offcanvas-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 16px 20px;
}

.mobile-nav-offcanvas .offcanvas-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-nav-offcanvas .offcanvas-body {
    padding: 0;
    overflow-y: auto;
    background: var(--primary-dark);
}

/* Scrollbar styling */
.mobile-nav-offcanvas .offcanvas-body::-webkit-scrollbar {
    width: 4px;
}
.mobile-nav-offcanvas .offcanvas-body::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}
.mobile-nav-offcanvas .offcanvas-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Main nav list */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

/* Direct link items */
.mobile-nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.25s ease;
    text-decoration: none;
}

.mobile-nav-list > li > a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    padding-left: 28px;
}

.mobile-nav-list > li > a i:first-child {
    width: 18px;
    text-align: center;
    color: var(--secondary);
    font-size: 14px;
}

/* Toggle button for items with sub-menus */
.mobile-nav-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}

.mobile-nav-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    padding-left: 28px;
}

.mobile-nav-toggle i:first-child {
    width: 18px;
    text-align: center;
    color: var(--secondary);
    font-size: 14px;
}

.mobile-nav-toggle .arrow-icon {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    transition: transform 0.3s ease;
}

.mobile-nav-toggle:not(.collapsed) .arrow-icon {
    transform: rotate(-180deg);
    color: var(--secondary);
}

.mobile-nav-toggle:not(.collapsed) {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border-left: 3px solid var(--secondary);
}

/* Sub-navigation (Bootstrap Collapse) */
.mobile-sub-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,0.2);
}

.mobile-sub-nav li a {
    display: block;
    padding: 10px 20px 10px 50px;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-sub-nav li a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.07);
    padding-left: 58px;
}

/* Section group title within sub-nav */
.mobile-sub-nav .sub-group-title {
    padding: 8px 20px 4px 50px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary);
    pointer-events: none;
    margin-top: 4px;
}

/* Hide desktop toggler on mobile and vice versa */
@media (min-width: 992px) {
    .navbar-toggler.d-lg-none {
        display: none !important;
    }
    #mobileNav {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    #mainNav {
        display: none !important;
    }
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    margin-top: 0;
}

.hero-slider .slider-item {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slider .slider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}

.slider-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 40px;
}

.slider-content h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.slider-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.slider-content .btn {
    padding: 14px 35px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.slider-content .btn-primary {
    background: var(--secondary);
    border: none;
    box-shadow: 0 5px 20px rgba(255,111,0,0.3);
}

.slider-content .btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,111,0,0.4);
}

.slider-content .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
}

.owl-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2) !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    color: var(--white) !important;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.owl-carousel .owl-nav button:hover {
    background: var(--secondary) !important;
}

.owl-carousel .owl-nav .owl-prev { left: 20px; }
.owl-carousel .owl-nav .owl-next { right: 20px; }

.owl-carousel .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.owl-carousel .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.owl-carousel .owl-dots .owl-dot.active span {
    background: var(--secondary);
    width: 30px;
    border-radius: 6px;
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    opacity: 0.03;
    border-radius: 50%;
}

.welcome-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.welcome-content p {
    color: #555;
    line-height: 1.8;
}

.welcome-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.welcome-features li {
    list-style: none;
    color: #555;
    font-size: 14px;
}

.welcome-features li i {
    color: var(--accent);
    margin-right: 8px;
}

.headmaster-card {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.headmaster-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.headmaster-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.headmaster-card h5 {
    color: var(--primary);
    font-weight: 600;
}

.headmaster-card p {
    color: var(--gray);
    font-size: 14px;
    font-style: italic;
}

/* ===== HOME VIDEO SECTION ===== */
.home-video-section {
    background: #f8f9fa;
}

.home-video-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.home-video-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(26, 35, 126, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.home-video-copy h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}

.home-video-copy p {
    margin-bottom: 0;
    color: #555;
}

.home-video-frame {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    background: #000;
}

.home-video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== STATISTICS SECTION ===== */
.statistics-section {
    background: var(--gradient-primary);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 100px;
}

.stat-item {
    text-align: center;
    color: var(--white);
    padding: 20px;
    position: relative;
    z-index: 1;
}

.stat-item .stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-item .stat-number {
    font-size: 42px;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

.stat-item .stat-label {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

/* ===== DEPARTMENTS SECTION ===== */
.departments-section {
    background: var(--light-gray);
}

.dept-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: var(--transition);
}

.dept-card:hover::before {
    transform: scaleX(1);
}

.dept-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.dept-card .dept-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 28px;
    transition: var(--transition);
}

.dept-card:hover .dept-icon {
    transform: rotateY(180deg);
    background: var(--gradient-secondary);
}

.dept-card h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.dept-card p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
}

.dept-card .btn-sm {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
}

/* ===== NEWS SECTION ===== */
.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 30px;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-card .news-image {
    height: 230px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card .news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.news-card .news-body {
    padding: 20px;
}

.news-card .news-body .news-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 10px;
}

.news-card .news-body h5 {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.news-card .news-body h5 a {
    color: var(--dark);
}

.news-card .news-body h5 a:hover {
    color: var(--primary);
}

.news-card .news-body p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
}

.news-card .news-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* ===== EVENTS SECTION ===== */
.event-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-secondary);
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.event-card .event-date-box {
    text-align: center;
    background: var(--primary);
    color: var(--white);
    padding: 15px;
    border-radius: 8px;
    min-width: 80px;
}

.event-card .event-date-box .date {
    font-size: 28px;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.event-card .event-date-box .month {
    font-size: 14px;
    text-transform: uppercase;
}

.event-card h5 {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.event-card .event-meta {
    font-size: 13px;
    color: var(--gray);
}

.event-card .event-meta i {
    margin-right: 5px;
    color: var(--primary);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    background: var(--light-gray);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 35px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin: 15px;
    position: relative;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 40px;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: 20px;
    left: 25px;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid var(--primary-light);
}

.testimonial-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 3px;
}

.testimonial-card .position {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 15px;
}

.testimonial-card p {
    font-size: 14px;
    color: #555;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-card .rating {
    color: #ffc107;
    margin-top: 10px;
}

/* ===== GALLERY SECTION ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26,35,126,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-item .gallery-overlay i {
    color: var(--white);
    font-size: 40px;
}

/* ===== PRODUCTS SECTION ===== */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 30px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-card .product-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-card .product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.product-card .product-body {
    padding: 20px;
}

.product-card .product-body h5 {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.product-card .product-body .product-category {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
}

.product-card .product-body p {
    font-size: 14px;
    color: var(--gray);
    margin: 10px 0;
}

.product-card .product-body .product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--gradient-primary);
    padding: 80px 0 60px;
    position: relative;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 100px;
}

.page-header h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb {
    background: transparent;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.page-header .breadcrumb-item.active {
    color: var(--secondary);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ===== ABOUT PAGE ===== */
.about-content h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.about-content .vision-box,
.about-content .mission-box {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.about-content .mission-box {
    border-left-color: var(--secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.value-item {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.value-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.value-item i {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.value-item h6 {
    font-weight: 600;
    color: var(--primary);
}

/* ===== CONTACT PAGE ===== */

/* Contact Map Section - Full width with map background */
.contact-map-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
}

.contact-map-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contact-map-bg iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(30%) brightness(0.7);
    pointer-events: none;
}

.contact-overlay {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(5px);
}

.contact-info-wrapper {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-lg);
}

.contact-info-box {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 20px 25px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.contact-info-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.contact-info-box .icon {
    width: 55px;
    height: 55px;
    line-height: 55px;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 22px;
    border-radius: 50%;
    text-align: center;
    margin-right: 18px;
    flex-shrink: 0;
}

.contact-info-box h6 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 3px;
    font-size: 14px;
}

.contact-info-box p {
    color: var(--gray);
    margin: 0;
    font-size: 13px;
}

.contact-form {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact-form .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Contact page responsive */
@media (max-width: 991.98px) {
    .contact-overlay {
        padding: 50px 0;
    }
    .contact-info-wrapper {
        padding: 25px;
    }
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 767.98px) {
    .contact-map-section {
        min-height: auto;
    }
    .contact-map-bg {
        position: relative;
        height: 300px;
    }
    .contact-map-bg iframe {
        filter: grayscale(20%) brightness(0.8);
    }
    .contact-overlay {
        padding: 30px 0;
        background: rgba(255, 255, 255, 0.95);
    }
    .contact-info-wrapper {
        padding: 20px;
        margin-bottom: 20px;
    }
    .contact-form {
        padding: 25px;
    }
    .contact-info-box {
        padding: 15px 18px;
    }
    .contact-info-box .icon {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 18px;
        margin-right: 12px;
    }
}

@media (max-width: 575.98px) {
    .contact-map-bg {
        height: 200px;
    }
    .contact-overlay {
        padding: 20px 0;
    }
    .contact-info-wrapper {
        padding: 15px;
    }
    .contact-form {
        padding: 20px;
    }
    .contact-info-box {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    .contact-info-box .icon {
        margin: 0 auto 10px;
    }
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(26,35,126,0.3);
}

.btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 8px;
}

.btn-secondary:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,111,0,0.3);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    z-index: 999;
    display: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--gradient-dark);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 0;
    position: relative;
    margin-top: auto;
    clear: both;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
}

.footer-widget h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-widget p {
    line-height: 1.6;
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-widget small {
    font-size: 11px;
    font-weight: 400;
}

.footer-wave {
    margin-top: 0;
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 40px;
}

.main-footer .container {
    max-width: 100% !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

.main-footer .contact-info p i {
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links li a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-links li a i {
    font-size: 8px;
    margin-right: 6px;
}

.social-links a {
    display: inline-block;
    width: 34px;
    height: 34px;
    line-height: 34px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    margin-right: 5px;
    font-size: 14px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 13px;
}

.contact-info p i {
    width: 20px;
    color: var(--secondary);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 12px 0;
    margin-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0;
}

/* ===== TEACHERS PAGE ===== */
.teacher-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 30px;
    text-align: center;
}

.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.teacher-card .teacher-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 30px auto 15px;
    border: 5px solid var(--light-gray);
    transition: var(--transition);
}

.teacher-card:hover .teacher-photo {
    border-color: var(--primary-light);
}

.teacher-card .card-body {
    padding: 0 20px 25px;
}

.teacher-card h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.teacher-card .qualification {
    color: var(--secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
}

.teacher-card .department {
    color: var(--gray);
    font-size: 13px;
}

/* ===== TABLE STYLES ===== */
.table-custom {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-custom thead {
    background: var(--gradient-primary);
    color: var(--white);
}

.table-custom thead th {
    padding: 15px;
    font-weight: 500;
    font-size: 14px;
    border: none;
}

.table-custom tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199.98px) {
    .school-name { font-size: 24px; }
    .hero-slider .slider-item { height: 500px; }
    .slider-content h1 { font-size: 40px; }
    .container { padding-left: 25px !important; padding-right: 25px !important; }
}

@media (max-width: 991.98px) {
    .main-header .school-name { font-size: 20px; }
    .main-header .header-logo { max-height: 60px; }
    .navbar-nav .nav-link { padding: 10px 12px; font-size: 13px; }
    .hero-slider .slider-item { height: 450px; }
    .slider-content h1 { font-size: 35px; }
    .slider-content { padding: 30px; }
    .section-padding { padding: 60px 0; }
    .section-title h2 { font-size: 28px; }
    .stat-item .stat-number { font-size: 34px; }
    .container { padding-left: 20px !important; padding-right: 20px !important; }
    
    /* Mobile navigation improvements */
    .main-nav .navbar-nav .nav-link {
        padding: 12px 15px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .main-nav .dropdown-menu {
        background: rgba(0,0,0,0.2);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
    .main-nav .dropdown-item {
        color: rgba(255,255,255,0.8);
        padding: 10px 25px;
        font-size: 13px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .main-nav .dropdown-item:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
        transform: none;
    }
    .main-nav .dropdown-item.fw-bold {
        color: var(--secondary);
        pointer-events: none;
        background: transparent;
    }
    .main-nav .navbar-nav {
        max-height: 80vh;
        overflow-y: auto;
    }
}

@media (max-width: 767.98px) {
    .school-name { font-size: 18px; }
    .school-motto { font-size: 12px; }
    .header-logo { max-height: 50px; }
    .hero-slider .slider-item { height: 400px; }
    .slider-content h1 { font-size: 28px; }
    .slider-content p { font-size: 15px; }
    .slider-content .btn { padding: 10px 25px; font-size: 12px; }
    .stat-item .stat-number { font-size: 28px; }
    .section-padding { padding: 40px 0; }
    .page-header { padding: 60px 0 40px; }
    .page-header h1 { font-size: 28px; }
    .welcome-content h3 { font-size: 24px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .contact-form { padding: 25px; }
    .footer-widget { margin-bottom: 30px; }
    .container { padding-left: 15px !important; padding-right: 15px !important; }
    
    /* Better mobile spacing */
    .welcome-features { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .stat-item { padding: 15px 10px; }
    .event-card { flex-direction: column !important; text-align: center; }
    .event-card .event-date-box { margin: 0 auto 15px !important; }
    .event-card::before { display: none; }
    .news-card .news-image { height: 200px; }
    .product-card .product-image { height: 200px; }
    .teacher-card .teacher-photo { width: 120px; height: 120px; }
    .contact-info-box { flex-direction: column; text-align: center; }
    .contact-info-box .icon { margin: 0 auto 15px; }
    .headmaster-card { padding: 20px; }
    .headmaster-card img { width: 120px; height: 120px; }
    .dept-card { padding: 20px; }
    .testimonial-card { padding: 25px; }
    .section-title h2 { font-size: 24px; }
    .section-title { margin-bottom: 30px; }
    .footer-widget h4 { font-size: 16px; }
    .footer-links li a { font-size: 13px; }
    .social-links a { width: 35px; height: 35px; line-height: 35px; font-size: 14px; }
    .back-to-top { width: 40px; height: 40px; line-height: 40px; bottom: 20px; right: 20px; }
    
    /* Better touch targets */
    .btn { padding: 10px 20px; font-size: 14px; }
    .btn-lg { padding: 12px 25px; font-size: 15px; }
    .btn-sm { padding: 8px 16px; font-size: 12px; }
    .navbar-toggler { padding: 8px 12px; }
    .navbar-toggler-icon { width: 1.2em; height: 1.2em; }
    
    /* Fix slider on mobile */
    .owl-carousel .owl-nav button { width: 40px; height: 40px; font-size: 18px !important; }
    .owl-carousel .owl-nav .owl-prev { left: 10px; }
    .owl-carousel .owl-nav .owl-next { right: 10px; }
    .owl-carousel .owl-dots { bottom: 15px; }
    .owl-carousel .owl-dots .owl-dot span { width: 10px; height: 10px; }
}

@media (max-width: 575.98px) {
    .school-name { font-size: 16px; }
    .header-logo { max-height: 40px; }
    .top-bar { font-size: 11px; }
    .hero-slider .slider-item { height: 300px; }
    .slider-content h1 { font-size: 22px; }
    .slider-content p { font-size: 13px; }
    .slider-content { padding: 15px; }
    .slider-content .btn { padding: 8px 18px; font-size: 11px; }
    .stat-item .stat-number { font-size: 22px; }
    .stat-item .stat-icon { font-size: 30px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .container { padding-left: 12px !important; padding-right: 12px !important; }
    .section-padding { padding: 30px 0; }
    .page-header { padding: 40px 0 30px; }
    .page-header h1 { font-size: 24px; }
    .welcome-content h3 { font-size: 20px; }
    .home-video-copy h3 { font-size: 22px; }
    .home-video-card { padding: 20px; }
    .section-title h2 { font-size: 20px; }
    .values-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .value-item { padding: 15px; }
    .value-item i { font-size: 24px; }
    .value-item h6 { font-size: 12px; }
    .gallery-item { height: 200px; }
    .news-card .news-image { height: 180px; }
    .product-card .product-image { height: 180px; }
    .stat-item { padding: 10px; }
    .stat-item .stat-label { font-size: 13px; }
    .contact-form { padding: 20px; }
    .footer-bottom p { font-size: 12px; }
    .footer-wave { margin-top: 0; }
    .footer-wave svg { height: 30px; }
    
    /* Better mobile grid */
    .row.g-4 > [class*="col-"] { padding-bottom: 15px; }
    .row.g-4 { --bs-gutter-y: 15px; }
    
    /* Fix newsletter on mobile */
    #newsletterForm .input-group { flex-direction: column; }
    #newsletterForm .input-group .form-control { border-radius: 8px !important; margin-bottom: 10px; }
    #newsletterForm .input-group .btn { border-radius: 8px !important; width: 100%; }
    
    /* Fix statistics on very small screens */
    .statistics-section .col-6 { padding: 5px; }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.card-hover-effect {
    transition: var(--transition);
}

.card-hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== NEWS DETAIL ===== */
.news-detail img {
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.news-detail .meta {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.news-detail .meta i {
    margin-right: 5px;
    color: var(--primary);
}

.news-detail .content {
    line-height: 1.9;
}

.news-detail .content p {
    margin-bottom: 20px;
}

/* ===== SEARCH ===== */
.search-box {
    position: relative;
}

.search-box input {
    padding-right: 50px;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    border: none;
    background: var(--primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* ===== ADDITIONAL RESPONSIVE FIXES ===== */

/* Fix page-wrapper to prevent overflow */
.page-wrapper {
    flex: 1 0 auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix table horizontal scroll on mobile */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Fix list-group sidebar on mobile */
@media (max-width: 991.98px) {
    .list-group {
        flex-direction: row !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    .list-group .list-group-item {
        display: inline-block;
        border-radius: 50px !important;
        margin-right: 8px;
        border: 1px solid #dee2e6 !important;
        flex-shrink: 0;
        font-size: 13px;
        padding: 8px 16px;
    }
    .list-group .list-group-item.active {
        background: var(--primary);
        border-color: var(--primary) !important;
    }
}

/* Fix about page sidebar on mobile */
@media (max-width: 767.98px) {
    .about-content .vision-box,
    .about-content .mission-box {
        padding: 20px;
    }
    .about-content h3 {
        font-size: 22px;
    }
}

/* Fix departments page */
@media (max-width: 575.98px) {
    .dept-card .dept-icon {
        width: 55px;
        height: 55px;
        line-height: 55px;
        font-size: 22px;
    }
    .dept-card h5 {
        font-size: 15px;
    }
    .dept-card p {
        font-size: 13px;
    }
}

/* Fix teachers page */
@media (max-width: 575.98px) {
    .teacher-card .teacher-photo {
        width: 100px;
        height: 100px;
        margin-top: 20px;
    }
    .teacher-card h5 {
        font-size: 15px;
    }
}

/* Fix product cards */
@media (max-width: 575.98px) {
    .product-card .product-body h5 {
        font-size: 15px;
    }
    .product-card .product-body .product-price {
        font-size: 18px;
    }
}

/* Fix gallery items */
@media (max-width: 575.98px) {
    .gallery-item {
        height: 180px;
    }
}

/* Fix owl carousel on mobile */
@media (max-width: 575.98px) {
    .owl-carousel .owl-nav {
        display: none;
    }
    .owl-carousel .owl-dots .owl-dot span {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

/* Fix modal on mobile */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 10px;
    }
    .modal-body {
        padding: 15px;
    }
}

/* Fix AOS animations on mobile - prevent overflow */
[data-aos] {
    overflow: hidden;
}

/* Fix preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fix main-footer container */
.main-footer .container {
    max-width: 100% !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

@media (max-width: 767.98px) {
    .main-footer .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Fix top bar on mobile */
@media (max-width: 575.98px) {
    .top-bar {
        padding: 6px 0;
    }
    .top-bar span {
        font-size: 10px;
    }
    .top-bar a {
        font-size: 12px;
    }
    .top-bar .ms-3 {
        margin-left: 8px !important;
    }
}

/* Fix main header on mobile */
@media (max-width: 575.98px) {
    .main-header {
        padding: 10px 0;
    }
    .main-header .school-name {
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    .main-header .school-motto {
        font-size: 10px;
    }
    .main-header .header-logo {
        max-height: 35px;
    }
}

/* Fix navigation on mobile */
@media (max-width: 991.98px) {
    .main-nav {
        padding: 5px 0;
    }
    .main-nav .navbar-toggler {
        border: 1px solid rgba(255,255,255,0.3);
        padding: 6px 10px;
    }
    .main-nav .navbar-toggler:focus {
        box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
    }
    .main-nav .navbar-collapse {
        background: var(--gradient-primary);
        border-radius: 0 0 12px 12px;
        max-height: 80vh;
        overflow-y: auto;
    }
    .main-nav .navbar-nav .nav-link {
        padding: 12px 15px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .main-nav .dropdown-menu {
        background: rgba(0,0,0,0.2);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
    .main-nav .dropdown-item {
        color: rgba(255,255,255,0.8);
        padding: 10px 25px;
        font-size: 13px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .main-nav .dropdown-item:hover {
        background: rgba(255,255,255,0.1);
        color: #fff;
        transform: none;
    }
    .main-nav .dropdown-item.fw-bold {
        color: var(--secondary);
        pointer-events: none;
        background: transparent;
    }
    .main-nav .navbar-nav {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Fix hero slider on very small screens */
@media (max-width: 400px) {
    .hero-slider .slider-item {
        height: 250px;
    }
    .slider-content h1 {
        font-size: 18px;
    }
    .slider-content p {
        font-size: 12px;
        margin-bottom: 15px;
    }
    .slider-content .btn {
        padding: 6px 14px;
        font-size: 10px;
    }
}

/* Fix statistics on very small screens */
@media (max-width: 400px) {
    .stat-item .stat-number {
        font-size: 18px;
    }
    .stat-item .stat-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }
    .stat-item .stat-label {
        font-size: 11px;
    }
}

/* Fix section titles on mobile */
@media (max-width: 575.98px) {
    .section-title .subtitle {
        font-size: 14px;
        padding: 0 10px;
    }
}

/* Fix welcome features on mobile */
@media (max-width: 575.98px) {
    .welcome-features li {
        font-size: 13px;
    }
    .welcome-features li i {
        font-size: 14px;
    }
}

/* Fix event cards on mobile */
@media (max-width: 575.98px) {
    .event-card {
        padding: 20px;
    }
    .event-card .event-date-box {
        min-width: 60px;
        padding: 10px;
    }
    .event-card .event-date-box .date {
        font-size: 22px;
    }
    .event-card .event-date-box .month {
        font-size: 12px;
    }
    .event-card h5 {
        font-size: 15px;
    }
}

/* Fix testimonial cards on mobile */
@media (max-width: 575.98px) {
    .testimonial-card {
        padding: 20px;
        margin: 10px;
    }
    .testimonial-card img {
        width: 60px;
        height: 60px;
    }
    .testimonial-card h5 {
        font-size: 14px;
    }
    .testimonial-card p {
        font-size: 13px;
    }
}

/* Fix newsletter section on mobile */
@media (max-width: 575.98px) {
    .bg-gradient-primary .section-padding {
        padding: 30px 0;
    }
    .bg-gradient-primary h3 {
        font-size: 20px;
    }
    .bg-gradient-primary p {
        font-size: 13px;
    }
}

/* Fix partners on mobile */
@media (max-width: 575.98px) {
    .partners-section .col-6 {
        padding: 10px;
    }
    .partners-section img {
        max-height: 50px;
    }
}

/* Fix page header breadcrumb on mobile */
@media (max-width: 575.98px) {
    .page-header .breadcrumb {
        font-size: 13px;
    }
    .page-header .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 3px;
    }
}

/* Fix table on mobile */
@media (max-width: 575.98px) {
    .table-custom thead th {
        padding: 10px;
        font-size: 12px;
    }
    .table-custom tbody td {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Fix download items on mobile */
@media (max-width: 575.98px) {
    .download-item {
        padding: 15px;
    }
    .download-item h5 {
        font-size: 14px;
    }
    .download-item .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Fix form elements on mobile */
@media (max-width: 575.98px) {
    .form-control {
        font-size: 14px;
        padding: 10px 12px;
    }
    .form-label {
        font-size: 13px;
    }
    select.form-control {
        font-size: 14px;
    }
}

/* Fix accordion on mobile */
@media (max-width: 575.98px) {
    .accordion-button {
        font-size: 14px;
        padding: 12px 15px;
    }
    .accordion-body {
        font-size: 13px;
        padding: 12px 15px;
    }
}

/* Fix tabs on mobile */
@media (max-width: 575.98px) {
    .nav-tabs .nav-link {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Fix pagination on mobile */
@media (max-width: 575.98px) {
    .pagination .page-link {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Fix alert messages on mobile */
@media (max-width: 575.98px) {
    .alert {
        font-size: 13px;
        padding: 10px 15px;
    }
}

/* Fix card decks on mobile */
@media (max-width: 575.98px) {
    .card {
        margin-bottom: 15px;
    }
    .card-body {
        padding: 15px;
    }
    .card-title {
        font-size: 16px;
    }
    .card-text {
        font-size: 13px;
    }
}

/* Fix row gutters on mobile */
@media (max-width: 575.98px) {
    .row.g-4 {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }
    .row.g-3 {
        --bs-gutter-x: 10px;
        --bs-gutter-y: 10px;
    }
}

/* Ensure no horizontal scroll on any element */
.main-header,
.main-nav,
.main-footer,
.top-bar,
.page-header,
.hero-slider,
.statistics-section,
.testimonials-section,
.departments-section,
.welcome-section {
    overflow-x: hidden;
}

/* ===== MAP SECTION ===== */
.map-section {
    width: 100%;
    overflow: hidden;
}

.map-container {
    width: 100%;
    position: relative;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
}

@media (max-width: 767.98px) {
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .map-container iframe {
        height: 250px;
    }
}
