/* =========================================
   GAJAPATI VIKAS RESIDENTIAL SCHOOL THEME
   ========================================= */

:root {
    --blue: #0A1B3F;
    /* Deep Navy Blue from the design */
    --blue-dark: #07132B;
    --red: #E60000;
    /* Strong Red from the design */
    --light-gray: #F4F6F9;
    --text-muted: #6C757D;

    /* Icon Box Colors */
    --blue-light: #E8F0FE;
    --red-light: #FDE8E8;
    --green-light: #E8F5E9;
    --orange-light: #FFF3E0;
    --purple-light: #F3E5F5;
    --purple-dark-light: #EDE7F6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #f5fbff;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.font-weight-bolder {
    font-family: 'Poppins', sans-serif;
}

/* Typography Utilities */
.text-blue {
    color: var(--blue) !important;
}

.text-red {
    color: var(--red) !important;
}

.bg-blue {
    background-color: var(--blue) !important;
}

.bg-blue-dark {
    background-color: var(--blue-dark) !important;
}

.bg-red {
    background-color: var(--red) !important;
}

.bg-light-gray {
    background-color: var(--light-gray) !important;
}

.bg-blue-light {
    background-color: var(--blue-light) !important;
}

.bg-red-light {
    background-color: var(--red-light) !important;
}

.bg-green-light {
    background-color: var(--green-light) !important;
}

.bg-orange-light {
    background-color: var(--orange-light) !important;
}

.bg-purple-light {
    background-color: var(--purple-light) !important;
}

.bg-purple-dark-light {
    background-color: var(--purple-dark-light) !important;
}

.text-orange {
    color: #F39C12;
}

.text-purple {
    color: #9B59B6;
}

.text-purple-dark {
    color: #6C5CE7;
}

.text-sm {
    font-size: 0.85rem;
}

.text-xs {
    font-size: 0.75rem;
}

.leading-tight {
    line-height: 1.2;
}

/* Buttons */
.btn-red {
    background-color: var(--red);
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-red:hover {
    background-color: #CC0000;
    color: white;
}

.btn-outline-blue {
    color: var(--blue);
    border: 1px solid var(--blue);
    transition: all 0.3s ease;
}

.btn-outline-blue:hover {
    background-color: var(--blue);
    color: white;
}

.btn-white {
    background-color: white;
    color: var(--blue);
    border: none;
}

.btn-white:hover {
    background-color: #f1f1f1;
}

.btn-prospectus {
    background: linear-gradient(45deg, #fbbc05, #f39c12);
    color: #081d3c !important;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(251, 188, 5, 0.25);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-prospectus:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 188, 5, 0.45);
    color: #081d3c;
    background: linear-gradient(45deg, #f39c12, #fbbc05);
}

/* Top Bar */
.top-bar {
    background-color: #081d3c;
    color: white;
    font-size: 0.75rem;
    padding: 6px 0;
}

.top-contact-list li {
    margin-right: 20px;
}

.top-contact-list i {
    color: var(--light-gray);
    margin-right: 5px;
}

.top-link-list a {
    color: white;
    text-decoration: none;
}

.top-link-list a:hover {
    color: var(--red);
}

/* Main Navigation */
.navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1;
}

.main-logo {
    height: 85px;
    max-height: 88px;
    width: auto;
    object-fit: contain;
    object-position: left;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 1199.98px) {
    .main-logo {
        height: 75px;
        max-height: 78px;
    }
}

@media (max-width: 768px) {
    .main-logo {
        height: 65px;
        max-height: 68px;
        max-width: 75vw;
    }
}

.navbar-brand .school-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--blue);
}

.navbar-brand .school-tagline {
    font-size: 0.65rem;
    color: var(--red);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue) !important;
    padding: 0.5rem 0.65rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--red) !important;
}

/* Hero Section */
.hero-section {
    height: 500px;
    background: #E8F0FE;
    /* Fallback */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/dvrs_bg.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--blue);
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
}

.hero-desc {
    font-size: 1.1rem;
    color: #444;
    max-width: 90%;
}

.play-icon-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--blue-light);
}

.hero-students-img {
    height: 110%;
    object-fit: cover;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
    mix-blend-mode: darken;
    /* Makes the solid white background transparent */
}

/* Features Strip */
.features-strip {
    position: relative;
    z-index: 20;
    margin-top: -30px;
}

.feature-row {
    border-radius: 5px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.5rem;
}

/* Section Headings */
.sub-heading {
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.line-red {
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: var(--red);
}

/* Academic Cards */
.academic-card {
    border-radius: 8px;
    overflow: hidden;
}

.academic-card img {
    height: 180px;
    object-fit: cover;
}

.custom-bullets li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
}

.custom-bullets li::before {
    content: "•";
    color: var(--red);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* Facilities */
.facility-card img {
    transition: transform 0.3s ease;
}

.facility-card:hover img {
    transform: scale(1.05);
}

.fac-icon {
    width: 35px;
    text-align: center;
}

.facility-bottom {
    position: relative;
    z-index: 2;
}

/* Testimonials */
.testimonial-card {
    background-color: white;
    height: 100%;
}

.nav-arrows button {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* News List */
.date-box {
    width: 60px;
}

.news-list a:hover {
    color: var(--red) !important;
}

/* Footer */
.footer-links a:hover {
    color: white !important;
}

.footer-links a:hover i {
    transform: translateX(4px);
    transition: transform 0.2s;
}

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-circle:hover {
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}

.bg-facebook {
    background-color: #1877F2;
}

.bg-youtube {
    background-color: #FF0000;
}

.bg-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.bg-linkedin {
    background-color: #0A66C2;
}

.bg-twitter {
    background-color: #1DA1F2;
}

/* Responsive Overrides */
/* Responsive Overrides */
@media (max-width: 991px) {
    .main-logo {
        max-width: 75vw;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        height: auto;
        padding-bottom: 50px;
    }

    .hero-overlay {
        width: 100%;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 100%);
    }

    .features-strip {
        margin-top: 0;
    }

    .border-right {
        border-right: none !important;
        border-bottom: 1px solid #dee2e6;
    }

    .footer-col {
        border-right: none !important;
        border-bottom: none !important;
    }
}

/* =========================================
   PREMIUM NAVBAR STYLES
   ========================================= */
.navbar {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    z-index: 1040 !important;
}

.navbar .nav-item {
    margin: 0 8px;
    position: relative;
}

.navbar .nav-link {
    font-weight: 600;
    color: var(--blue) !important;
    padding: 10px 15px !important;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

/* Hover effect with sliding underline */
.navbar .nav-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--red);
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: center;
    border-radius: 2px;
}

.navbar .nav-link:hover::before,
.navbar .nav-item.active .nav-link::before,
.navbar .nav-item:hover .nav-link::before {
    transform: scaleX(0.7);
}

.navbar .nav-link:hover {
    color: var(--red) !important;
}

/* Premium Dropdown Styles */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 15px;
    background: #ffffff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    display: block;
    /* to allow transition */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (min-width: 1200px) {

    /* Hover to open dropdown on desktop */
    .navbar .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        margin-top: 0;
        /* Align perfectly below */
    }
}

@media (max-width: 1199px) {
    .navbar .dropdown-menu {
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
    }

    .navbar .dropdown-menu.show {
        display: block;
    }
}

.navbar .dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    color: var(--blue);
    transition: all 0.2s ease;
    position: relative;
}

.navbar .dropdown-item:hover {
    background-color: #f8f9fc;
    color: var(--red);
    padding-left: 25px;
    /* Slide effect */
}

/* Apply Now Premium Button */
.navbar .btn-red {
    background: linear-gradient(135deg, var(--red) 0%, #ff3333 100%);
    border: none;
    border-radius: 30px !important;
    padding: 12px 25px !important;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.navbar .btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 0, 0.3);
    background: linear-gradient(135deg, #ff3333 0%, var(--red) 100%);
}

.navbar .navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

/* =========================================
   PREMIUM MOBILE MENU STYLES
   ========================================= */

/* Animated Hamburger Icon */
.custom-toggler {
    border: none !important;
    padding: 10px;
    background: transparent !important;
    box-shadow: none !important;
}

.custom-toggler:focus {
    outline: none;
}

.custom-toggler .icon-bar {
    display: block;
    width: 25px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--blue);
    margin: 5px auto;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}




/* =========================================
   OFFCANVAS MOBILE MENU STYLES
   ========================================= */

@media (max-width: 1199px) {

    /* Prevent bootstrap default collapse */
    .navbar-collapse.custom-mobile-sidebar {
        display: block !important;
        position: fixed;
        top: 0;
        left: auto !important;
        right: -320px;
        /* Slide in from right */
        width: 300px;
        max-width: 85%;
        height: 100vh;
        background: #ffffff;
        z-index: 1050;
        padding: 20px;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    }

    .navbar-collapse.custom-mobile-sidebar.active {
        right: 0;
    }

    /* Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(3px);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .custom-mobile-sidebar .nav-link {
        padding: 12px 15px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        font-size: 1.1rem;
    }

    .custom-mobile-sidebar .nav-link::before {
        display: none;
    }

    .custom-mobile-sidebar .dropdown-menu {
        border: none;
        background: #f8faff;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
        margin-top: 5px;
        padding: 10px 0;
        border-radius: 8px;
    }

    .custom-toggler.active .top-bar {
        transform: translateY(7px) rotate(45deg);
    }

    .custom-toggler.active .middle-bar {
        opacity: 0;
    }

    .custom-toggler.active .bottom-bar {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Testimonial container scrollbar hiding */
#testimonialContainer::-webkit-scrollbar {
    display: none;
}

/* =========================================
   UNIVERSAL FOOTER WAVE CLEARANCE PROTECTION
   Balanced gap ensuring text never hides under the 80px wave
   ========================================= */
body>section:last-of-type,
section:has(+ footer),
div:has(+ footer),
main:has(+ footer),
.page-main-section {
    padding-bottom: 95px !important;
}

footer>svg {
    pointer-events: none;
    z-index: 2;
}