/* ===== Sivagiri Vidya Niketan - Website Theme ===== */
/* Matches live Blade markup + responsive design inspired by sivagirividya.edu.in */

:root {
    --primary: #001f4d;
    --primary-light: #003366;
    --secondary: #e63946;
    --accent: #ffc600;
    --gold: #ffc600;
    --light: #f4f7fb;
    --dark: #1d2025;
    --gray: #6c757d;
    --muted: #505050;
    --white: #ffffff;
    --shadow: 0 4px 14px rgba(0, 31, 77, 0.08);
    --shadow-hover: 0 10px 28px rgba(0, 31, 77, 0.16);
    --radius: 10px;
    --website-header-height: 120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Outfit", "Segoe UI", Tahoma, sans-serif;
    color: var(--dark);
    background: #fff;
    line-height: 1.65;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

a:hover,
a:focus {
    color: var(--secondary);
    text-decoration: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: middle;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

.py-60 { padding: 60px 0; }
.py-40 { padding: 40px 0; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }
.text-center { text-align: center; }

/* ===== Top Bar ===== */
.topbar {
    background: var(--primary);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.topbar-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.topbar-item,
.topbar-links a {
    color: #fff;
    margin: 0;
    font-size: 13px;
}

.topbar-links a:hover {
    color: var(--accent);
}

.topbar-item i,
.topbar-links i {
    margin-right: 6px;
    color: var(--accent);
}

.topbar-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-follow {
    font-size: 12px;
    opacity: 0.9;
}

.topbar-socials a {
    color: #fff;
    font-size: 16px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.topbar-socials a:hover {
    color: var(--primary);
    background: var(--accent);
}

/* ===== News Ticker ===== */
.news-ticker-bar {
    background: linear-gradient(90deg, #0a2a5c, #123a75);
    color: #fff;
    border-bottom: 2px solid var(--accent);
}

.news-ticker-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 38px;
}

.news-ticker-label {
    flex: 0 0 auto;
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.news-ticker-track {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.news-ticker-track a {
    color: #fff;
    font-size: 13px;
    margin: 0 4px;
}

.news-ticker-track a:hover {
    color: var(--accent);
}

.news-sep {
    color: rgba(255, 255, 255, 0.45);
    margin: 0 8px;
}

/* ===== Header ===== */
.website-site-header {
    background: #fff;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1040;
    width: 100%;
}

.website-site-header.affix {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: headerDrop 0.28s ease;
}

@keyframes headerDrop {
    from { transform: translateY(-12px); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

#header-spacer {
    width: 100%;
}

.topsection {
    background: #fff;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 16px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.header-logo-link {
    flex: 0 0 auto;
}

.header-logo img {
    height: 64px;
    width: auto;
    display: block;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.school-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
    letter-spacing: 0.2px;
}

.school-affiliation,
.school-session {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    line-height: 1.35;
}

.school-session {
    color: var(--secondary);
    font-weight: 600;
}

.header-extras {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.fit-india-logo img {
    height: 48px;
    width: auto;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    list-style: none;
}

.header-phone i {
    color: var(--secondary);
    font-size: 18px;
}

.header-phone .he-text span {
    display: block;
    color: var(--primary-light);
    font-weight: 700;
}

.header-login-btn {
    background: var(--secondary);
    color: #fff !important;
    padding: 9px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    display: inline-block;
}

.header-login-btn:hover {
    background: #c1121f;
    color: #fff !important;
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: var(--primary);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    line-height: 1;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    background: var(--secondary);
    color: #fff;
}

/* ===== Navigation ===== */
.navborder {
    background: var(--primary);
    position: relative;
    z-index: 1000;
}

.navborder .container {
    width: 100%;
    max-width: 1240px;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 1200px) {
    .navborder .container {
        max-width: 1280px;
    }
}

@media (min-width: 1400px) {
    .navborder .container {
        max-width: 1360px;
    }
}

.navborder .navbar {
    margin: 0;
    border: 0;
    min-height: 0;
    background: transparent;
}

.navborder .navbar-header {
    display: none;
}

.navborder .navbar-collapse {
    padding: 0;
    border: 0;
    box-shadow: none;
}

/* Desktop Navigation (>= 992px) - ALL items strictly in ONE row */
@media (min-width: 992px) {
    .navborder .navbar-collapse {
        display: flex !important;
        align-items: center;
        width: 100%;
        overflow: visible;
    }

    .navborder .navbar-nav {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap !important;
        align-items: stretch;
        justify-content: space-between;
        float: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .navborder .navbar-nav > li {
        float: none;
        position: relative;
        display: flex;
        align-items: stretch;
        flex: 1 1 auto;
        text-align: center;
    }

    .navborder .navbar-nav > li > a {
        color: #fff !important;
        padding: 13px 8px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        background: transparent !important;
        line-height: 1.3;
        white-space: nowrap !important;
        width: 100%;
        text-align: center;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .navborder .navbar-nav > li > a:hover,
    .navborder .navbar-nav > li > a:focus,
    .navborder .navbar-nav > li.active > a,
    .navborder .navbar-nav > li.open > a {
        background: var(--secondary) !important;
        color: #fff !important;
    }

    .navborder .navbar-nav > li > a .caret {
        margin-left: 4px;
        border-top-color: #fff;
        border-bottom-color: #fff;
    }

    .navborder .navbar-nav > li > ul.dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        min-width: 240px;
        max-width: 320px;
        box-shadow: var(--shadow-hover);
        border: 0;
        border-radius: 0 0 8px 8px;
        z-index: 1050;
        padding: 6px 0;
        margin: 0;
        float: none;
        text-align: left;
    }

    .navborder .navbar-nav > li:hover > ul.dropdown-menu,
    .navborder .navbar-nav > li.open > ul.dropdown-menu {
        display: block;
    }

    /* Trailing dropdowns align right to prevent horizontal page overflow */
    .navborder .navbar-nav > li:last-child > ul.dropdown-menu,
    .navborder .navbar-nav > li:nth-last-child(2) > ul.dropdown-menu,
    .navborder .navbar-nav > li:nth-last-child(3) > ul.dropdown-menu {
        left: auto;
        right: 0;
    }

    .navborder .navbar-nav > li > ul.dropdown-menu > li {
        display: block;
        width: 100%;
    }

    .navborder .navbar-nav > li > ul.dropdown-menu > li > a {
        color: var(--dark);
        padding: 10px 18px;
        display: block;
        font-size: 13px;
        font-weight: 500;
        white-space: normal;
        background: transparent;
        text-align: left;
        text-transform: none;
        letter-spacing: 0;
    }

    .navborder .navbar-nav > li > ul.dropdown-menu > li > a:hover {
        background: #f0f4ff;
        color: var(--secondary);
        padding-left: 22px;
    }
}

/* ===== Hero / Banner Carousel & Fade ===== */
.hero-section {
    position: relative;
    background: var(--primary);
    overflow: hidden;
}

#bootstrap-touch-slider {
    margin: 0;
    position: relative;
}

/* ===== Smooth Fade + Zoom Slider ===== */
#bootstrap-touch-slider.carousel-fade .carousel-inner .item {
    opacity: 0;
    -webkit-transition: opacity 1.2s ease-in-out;
    transition: opacity 1.2s ease-in-out;
    position: absolute;
    inset: 0;
}

#bootstrap-touch-slider.carousel-fade .carousel-inner .active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

#bootstrap-touch-slider.carousel-fade .carousel-inner .active.left,
#bootstrap-touch-slider.carousel-fade .carousel-inner .active.right {
    left: 0;
    opacity: 0;
    z-index: 2;
}

#bootstrap-touch-slider.carousel-fade .carousel-inner .next.left,
#bootstrap-touch-slider.carousel-fade .carousel-inner .prev.right {
    opacity: 1;
}

/* Indicator positioning fix for absolute items */
#bootstrap-touch-slider.carousel-fade .carousel-indicators {
    z-index: 4;
    bottom: 24px;
}

/* ===== Slide Background (Ken Burns) ===== */
#bootstrap-touch-slider .carousel-inner > .item {
    position: relative;
    min-height: 520px;
    background: var(--primary);
    overflow: hidden;
}

#bootstrap-touch-slider .hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-animation: kenburns 22s ease-in-out infinite alternate;
    animation: kenburns 22s ease-in-out infinite alternate;
    will-change: transform;
}

#bootstrap-touch-slider .carousel-inner > .active .hero-slide-bg {
    -webkit-animation: kenburns 22s ease-in-out infinite alternate;
    animation: kenburns 22s ease-in-out infinite alternate;
}

#bootstrap-touch-slider .carousel-inner > .item:not(.active) .hero-slide-bg {
    -webkit-animation: none;
    animation: none;
}

/* ===== Ken Burns Keyframes (slow zoom in/out + pan) ===== */
@-webkit-keyframes kenburns {
    0% {
        -webkit-transform: scale(1) translate(0, 0);
        transform: scale(1) translate(0, 0);
    }
    50% {
        -webkit-transform: scale(1.12) translate(1.5%, -1.5%);
        transform: scale(1.12) translate(1.5%, -1.5%);
    }
    100% {
        -webkit-transform: scale(1.06) translate(-1%, 1%);
        transform: scale(1.06) translate(-1%, 1%);
    }
}

@keyframes kenburns {
    0% {
        -webkit-transform: scale(1) translate(0, 0);
        transform: scale(1) translate(0, 0);
    }
    50% {
        -webkit-transform: scale(1.12) translate(1.5%, -1.5%);
        transform: scale(1.12) translate(1.5%, -1.5%);
    }
    100% {
        -webkit-transform: scale(1.06) translate(-1%, 1%);
        transform: scale(1.06) translate(-1%, 1%);
    }
}

#bootstrap-touch-slider .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 16, 45, 0.82) 0%, rgba(0, 31, 77, 0.55) 50%, rgba(0, 31, 77, 0.28) 100%);
    pointer-events: none;
    z-index: 1;
}

#bootstrap-touch-slider .carousel-control {
    width: 48px;
    height: 48px;
    top: 50%;
    margin-top: -24px;
    background: rgba(0, 31, 77, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 0.85;
    text-shadow: none;
    z-index: 3;
    transition: all 0.3s ease;
}

#bootstrap-touch-slider .carousel-control:hover {
    opacity: 1;
    background: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.08);
}

#bootstrap-touch-slider .carousel-control.left {
    left: 24px;
    background-image: none;
    filter: none;
}
#bootstrap-touch-slider .carousel-control.right {
    right: 24px;
    background-image: none;
    filter: none;
}

#bootstrap-touch-slider .carousel-control .fa {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    color: #fff;
}

#bootstrap-touch-slider .hero-caption {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    color: #fff;
    pointer-events: none;
}

#bootstrap-touch-slider .hero-caption .container {
    pointer-events: auto;
}

.hero-caption-inner {
    max-width: 800px;
}

#bootstrap-touch-slider .hero-caption h1 {
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.22;
    margin: 0 0 14px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.3px;
    opacity: 0;
}

#bootstrap-touch-slider .hero-caption p {
    color: #f2f5fa;
    font-size: 17px;
    margin: 0 0 24px;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    opacity: 0;
}

#bootstrap-touch-slider .hero-caption .hero-actions {
    opacity: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--primary) !important;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: #e6b300;
    border-color: #e6b300;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.hero-btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.85);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.hero-btn-outline:hover {
    background: #fff;
    color: var(--primary) !important;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Manifestation actions on active slide */
#bootstrap-touch-slider .item.active .hero-caption h1,
#bootstrap-touch-slider .item.active .hero-caption p,
#bootstrap-touch-slider .item.active .hero-caption .hero-actions {
    opacity: 1;
}

/* Animations (Animate.css compatible bounceInLeft & fadeInUp) */
.animated {
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@-webkit-keyframes bounceInLeft {
    from, 60%, 75%, 90%, to {
        -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        -webkit-transform: translate3d(-3000px, 0, 0) scaleX(3);
        transform: translate3d(-3000px, 0, 0) scaleX(3);
    }
    60% {
        opacity: 1;
        -webkit-transform: translate3d(25px, 0, 0) scaleX(1);
        transform: translate3d(25px, 0, 0) scaleX(1);
    }
    75% {
        -webkit-transform: translate3d(-10px, 0, 0) scaleX(0.98);
        transform: translate3d(-10px, 0, 0) scaleX(0.98);
    }
    90% {
        -webkit-transform: translate3d(5px, 0, 0) scaleX(0.995);
        transform: translate3d(5px, 0, 0) scaleX(0.995);
    }
    to {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes bounceInLeft {
    from, 60%, 75%, 90%, to {
        -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        -webkit-transform: translate3d(-3000px, 0, 0) scaleX(3);
        transform: translate3d(-3000px, 0, 0) scaleX(3);
    }
    60% {
        opacity: 1;
        -webkit-transform: translate3d(25px, 0, 0) scaleX(1);
        transform: translate3d(25px, 0, 0) scaleX(1);
    }
    75% {
        -webkit-transform: translate3d(-10px, 0, 0) scaleX(0.98);
        transform: translate3d(-10px, 0, 0) scaleX(0.98);
    }
    90% {
        -webkit-transform: translate3d(5px, 0, 0) scaleX(0.995);
        transform: translate3d(5px, 0, 0) scaleX(0.995);
    }
    to {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

.bounceInLeft {
    -webkit-animation-name: bounceInLeft;
    animation-name: bounceInLeft;
}

@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 40px, 0);
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 40px, 0);
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

.fadeInUp {
    -webkit-animation-name: fadeInUp;
    animation-name: fadeInUp;
}

/* ===== Hero Indicators ===== */
.hero-indicators li {
    width: 28px;
    height: 5px;
    margin: 0 4px;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    display: inline-block;
}

.hero-indicators li.active {
    width: 42px;
    background: var(--accent);
}

/* ===== Hero Responsive ===== */
@media (max-width: 992px) {
    #bootstrap-touch-slider .carousel-inner > .item {
        min-height: 420px;
    }
    #bootstrap-touch-slider .hero-caption h1 {
        font-size: 32px;
    }
    #bootstrap-touch-slider .hero-caption p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    #bootstrap-touch-slider .carousel-inner > .item {
        min-height: 350px;
    }
    #bootstrap-touch-slider .hero-caption h1 {
        font-size: 26px;
        margin-bottom: 10px;
    }
    #bootstrap-touch-slider .hero-caption p {
        font-size: 14px;
        margin-bottom: 16px;
    }
    .hero-btn,
    .hero-btn-outline {
        padding: 10px 22px;
        font-size: 13px;
    }
    #bootstrap-touch-slider .carousel-indicators {
        bottom: 18px;
    }
    .hero-indicators li {
        width: 22px;
    }
    .hero-indicators li.active {
        width: 34px;
    }
}

@media (max-width: 576px) {
    #bootstrap-touch-slider .carousel-inner > .item {
        min-height: 300px;
    }
    #bootstrap-touch-slider .hero-caption h1 {
        font-size: 21px;
    }
    #bootstrap-touch-slider .hero-caption p {
        font-size: 13px;
        line-height: 1.5;
    }
    .hero-actions {
        gap: 10px;
    }
    .hero-btn,
    .hero-btn-outline {
        padding: 9px 18px;
        font-size: 12px;
    }
    #bootstrap-touch-slider .carousel-control {
        width: 38px;
        height: 38px;
        margin-top: -19px;
    }
    #bootstrap-touch-slider .carousel-control.left { left: 10px; }
    #bootstrap-touch-slider .carousel-control.right { right: 10px; }
}

@media (max-width: 400px) {
    #bootstrap-touch-slider .carousel-inner > .item {
        min-height: 260px;
    }
    #bootstrap-touch-slider .hero-caption h1 {
        font-size: 18px;
    }
    #bootstrap-touch-slider .hero-caption p {
        font-size: 12px;
    }
}

/* ===== Section Titles ===== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 30px;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-block;
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 8px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    margin: 8px 0 0;
    font-size: 15px;
}

/* ===== Quick Links / Services ===== */
.services-section {
    background: #fff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.service-box {
    background: #fff;
    border: 1px solid #e6ebf5;
    border-radius: var(--radius);
    padding: 28px 18px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.service-box:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.service-box-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #001f4d, #0a3a7a);
    color: var(--accent);
    font-size: 28px;
}

.service-box h3 {
    margin: 0;
    font-size: 18px;
}

.service-box h3 a {
    color: var(--primary);
    display: block;
}

.service-box h3 a:hover {
    color: var(--secondary);
}

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

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text,
.about-image {
    flex: 1;
    min-width: 0;
}

.about-text h2 {
    font-size: 26px;
    margin-bottom: 16px;
}

.about-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 12px;
}

.about-image img,
.about-image .img-rounded {
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    width: 100%;
}

/* ===== Guru / Principal ===== */
.guru-section { background: #fff; }
.principal-section { background: var(--light); }

.guru-row,
.principal-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.guru-left,
.principal-left {
    flex: 1;
    min-width: 0;
}

.guru-right,
.principal-right {
    flex: 0 0 34%;
    text-align: center;
}

.guru-left h2,
.principal-left h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.guru-left p,
.principal-left p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 12px;
}

.guru-img-wrap,
.principal-photo-wrap,
.ourprencipal {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.guru-portrait,
.principal-portrait {
    width: 100%;
    max-width: 280px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.ourprencipal h4 {
    margin: 12px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.principal-teaser p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 12px;
}

.principal-more-text {
    margin-top: 4px;
    margin-bottom: 14px;
}

.principal-more-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 12px;
}

.principal-signoff {
    margin-top: 18px !important;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 15px;
    color: var(--dark) !important;
    line-height: 1.6 !important;
}

.principal-signoff strong {
    color: var(--primary);
    display: inline-block;
    margin-bottom: 4px;
}

.principal-sign-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.principal-sign-title {
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
    display: block;
}

.principal-card-designation,
.principal-page-designation {
    font-size: 13px;
    color: var(--muted);
    margin: 4px 0 0;
    font-weight: 500;
}

/* ===== Message Scroll Box (Principal & Manager) ===== */
.message-scroll-box {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 14px;
    margin-bottom: 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #bbb #f4f4f4;
}

.message-scroll-box::-webkit-scrollbar {
    width: 6px;
}

.message-scroll-box::-webkit-scrollbar-track {
    background: #f4f4f4;
    border-radius: 4px;
}

.message-scroll-box::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

.message-scroll-box::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.message-scroll-box p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 12px;
}

.message-scroll-box p:last-child {
    margin-bottom: 4px;
}

/* ===== Leadership Tab Pills (Home Page) ===== */
.leadership-tab-nav-wrap {
    margin-top: 18px;
    margin-bottom: 24px;
    text-align: center;
}

.leadership-pills {
    display: inline-flex;
    gap: 8px;
    background: #e9ecef;
    padding: 6px;
    border-radius: 30px;
    list-style: none;
    margin: 0 auto;
}

.leadership-pills > li > a {
    border-radius: 24px;
    padding: 9px 22px;
    font-weight: 700;
    font-size: 14px;
    color: #495057;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
}

.leadership-pills > li.active > a,
.leadership-pills > li.active > a:hover,
.leadership-pills > li.active > a:focus {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.leadership-pills > li > a:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--primary);
}

.principal-readmore-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 0;
}

.principal-toggle-btn {
    cursor: pointer;
    border: 2px solid var(--primary);
    outline: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--primary) !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 8px;
}

.principal-toggle-btn:hover {
    background: var(--primary);
    color: #fff !important;
}

.principal-toggle-btn i {
    transition: transform 0.3s ease;
}

.principal-toggle-btn:focus,
.principal-toggle-btn:active {
    outline: none;
}

.principal-fullpage-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    margin-top: 8px;
    padding: 10px 14px;
}

.principal-fullpage-link:hover {
    color: var(--secondary);
    text-decoration: underline;
    transform: translateX(3px);
}

/* ===== Notices / Events / Achievements ===== */
.notices-section {
    background: #fff;
}

.widget-col {
    background: #fff;
    border: 1px solid #e6ebf5;
    border-radius: var(--radius);
    padding: 22px;
    height: 100%;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.widget-title {
    font-size: 18px;
    color: var(--primary);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent);
}

.widget-title i {
    color: var(--secondary);
    margin-right: 6px;
}

.widget-list {
    max-height: 360px;
    overflow-y: auto;
}

.widget-list-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.widget-list-item:last-child {
    border-bottom: none;
}

.widget-date {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 8px;
    margin-bottom: 4px;
}

.widget-title-link {
    display: block;
    font-weight: 600;
    color: var(--dark);
    font-size: 13px;
    line-height: 1.45;
    margin-top: 4px;
}

.widget-title-link:hover {
    color: var(--secondary);
}

.widget-btn-wrap {
    margin-top: 14px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--secondary);
    color: #fff !important;
    padding: 8px 22px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: none;
    text-decoration: none !important;
}

.view-all-btn:hover {
    background: #a50d18;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.view-all-btn i {
    font-size: 13px;
}

/* ===== Home Achievement Widget Carousel (Matching Reference Image) ===== */
#home-achievement-carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #edf0f5;
    margin-top: 4px;
}

#home-achievement-carousel .carousel-inner {
    border-radius: 12px;
    overflow: hidden;
}

#home-achievement-carousel .item {
    transition: transform 0.5s ease-in-out;
}

.home-achievement-card {
    display: block;
    text-decoration: none !important;
    color: inherit;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.home-achievement-img-wrap {
    width: 100%;
    height: 275px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
}

.home-achievement-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.home-achievement-card:hover .home-achievement-img-wrap img {
    transform: scale(1.03);
}

/* Red/Crimson Bottom Caption Box - Matches Reference Image */
.home-achievement-caption {
    background: var(--secondary);
    color: #ffffff;
    padding: 12px 16px 14px;
    text-align: left;
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.achievement-caption-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achievement-caption-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Round White Floating Arrows - Matches Reference Image */
#home-achievement-carousel .carousel-control {
    position: absolute;
    top: 135px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #334155 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22) !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 1 !important;
    text-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

#home-achievement-carousel .carousel-control.left {
    left: 12px !important;
    right: auto !important;
}

#home-achievement-carousel .carousel-control.right {
    right: 12px !important;
    left: auto !important;
}

#home-achievement-carousel .carousel-control:hover {
    background: #ffffff !important;
    color: var(--primary) !important;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3) !important;
}

#home-achievement-carousel .carousel-control .fa {
    position: static;
    transform: none;
    font-size: 18px;
    color: #334155;
    line-height: 1;
    display: block;
    margin: 0;
}

#home-achievement-carousel .carousel-control:hover .fa {
    color: var(--primary);
}

@media (max-width: 991px) {
    .home-achievement-img-wrap {
        height: 250px;
    }
    #home-achievement-carousel .carousel-control {
        top: 125px;
    }
}

@media (max-width: 767px) {
    .home-achievement-img-wrap {
        height: 240px;
    }
    #home-achievement-carousel .carousel-control {
        top: 120px;
        width: 36px;
        height: 36px;
    }
    #home-achievement-carousel .carousel-control.left {
        left: 10px !important;
    }
    #home-achievement-carousel .carousel-control.right {
        right: 10px !important;
    }
    #home-achievement-carousel .carousel-control .fa {
        font-size: 15px;
    }
    .achievement-caption-title {
        font-size: 13px;
    }
    .achievement-caption-desc {
        font-size: 11.5px;
    }
}

/* ===== Facilities Section ===== */
.facilities-section {
    background: #f8fafc;
    position: relative;
}

.facilities-carousel-wrapper {
    position: relative;
    padding: 0 28px;
}

.facilities-carousel.owl-carousel {
    position: relative;
}

.facilities-carousel .owl-stage-outer {
    padding: 12px 0 24px;
    overflow: hidden;
}

.facilities-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.facilities-carousel .owl-item {
    display: flex;
    height: auto;
}

/* Facility Card - Matches Image 2 */
.facilities-carousel .facility-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    border: 1px solid #edf0f5;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-align: left;
    padding: 0;
    margin: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.facilities-carousel .facility-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #dbe3ee;
}

.facilities-carousel .facility-img-wrap {
    width: 100%;
    height: 215px;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
    flex-shrink: 0;
}

.facilities-carousel .facility-card img,
.facilities-carousel .facility-img-wrap img {
    width: 100%;
    height: 215px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px 12px 0 0;
    transition: transform 0.4s ease;
}

.facilities-carousel .facility-card:hover .facility-img-wrap img,
.facilities-carousel .facility-card:hover img {
    transform: scale(1.04);
}

.facilities-carousel .facility-card-body {
    padding: 20px 22px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    text-align: left;
}

.facilities-carousel .facility-card-body h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.35;
}

.facilities-carousel .facility-card-body p {
    font-size: 13.5px;
    line-height: 1.65;
    color: #64748b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 88px;
}

/* Carousel Navigation Buttons - Round White Floating Arrows */
.facilities-carousel .owl-nav,
.celebrations-carousel .owl-nav {
    display: block !important;
    position: static;
}

.facilities-carousel .owl-nav .owl-prev,
.facilities-carousel .owl-nav .owl-next,
.facilities-carousel .owl-nav button.owl-prev,
.facilities-carousel .owl-nav button.owl-next,
.celebrations-carousel .owl-nav .owl-prev,
.celebrations-carousel .owl-nav .owl-next,
.celebrations-carousel .owl-nav button.owl-prev,
.celebrations-carousel .owl-nav button.owl-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #334155 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 15 !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.25s ease !important;
}

.facilities-carousel .owl-nav .owl-prev,
.facilities-carousel .owl-nav button.owl-prev,
.celebrations-carousel .owl-nav .owl-prev,
.celebrations-carousel .owl-nav button.owl-prev {
    left: 0 !important;
}

.facilities-carousel .owl-nav .owl-next,
.facilities-carousel .owl-nav button.owl-next,
.celebrations-carousel .owl-nav .owl-next,
.celebrations-carousel .owl-nav button.owl-next {
    right: 0 !important;
}

.facilities-carousel .owl-nav .owl-prev:hover,
.facilities-carousel .owl-nav .owl-next:hover,
.facilities-carousel .owl-nav button.owl-prev:hover,
.facilities-carousel .owl-nav button.owl-next:hover,
.celebrations-carousel .owl-nav .owl-prev:hover,
.celebrations-carousel .owl-nav .owl-next:hover,
.celebrations-carousel .owl-nav button.owl-prev:hover,
.celebrations-carousel .owl-nav button.owl-next:hover {
    background: #ffffff !important;
    color: var(--primary) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22) !important;
    transform: translateY(-50%) scale(1.08) !important;
}

.facilities-carousel .owl-nav i,
.facilities-carousel .owl-nav button i,
.celebrations-carousel .owl-nav i,
.celebrations-carousel .owl-nav button i {
    font-size: 20px !important;
    line-height: 1 !important;
    display: block !important;
    margin: 0 !important;
}

@media (max-width: 991px) {
    .facilities-carousel-wrapper {
        padding: 0 24px;
    }
    .facilities-carousel .facility-img-wrap,
    .facilities-carousel .facility-card img {
        height: 200px;
    }
    .facilities-carousel .facility-card-body {
        padding: 18px 18px 20px;
    }
}

@media (max-width: 767px) {
    .facilities-carousel-wrapper {
        padding: 0 14px;
    }
    .facilities-carousel .owl-nav .owl-prev,
    .facilities-carousel .owl-nav button.owl-prev {
        left: 2px !important;
        width: 38px !important;
        height: 38px !important;
    }
    .facilities-carousel .owl-nav .owl-next,
    .facilities-carousel .owl-nav button.owl-next {
        right: 2px !important;
        width: 38px !important;
        height: 38px !important;
    }
    .facilities-carousel .owl-nav i,
    .facilities-carousel .owl-nav button i {
        font-size: 16px !important;
    }
    .facilities-carousel .facility-img-wrap,
    .facilities-carousel .facility-card img {
        height: 190px;
    }
    .facilities-carousel .facility-card-body h4 {
        font-size: 17px;
    }
    .facilities-carousel .facility-card-body p {
        font-size: 13px;
        min-height: auto;
    }
}

/* ===== Celebrations ===== */
.celebrations-wrapper {
    background: #fff;
}

.celebration-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 8px;
    border: 1px solid #eef1f7;
}

.celebration-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.celebration-card-body {
    padding: 18px;
}

.celebration-card-body h4 {
    font-size: 16px;
    margin: 0 0 8px;
}

.celebration-card-body p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* ===== What We Care + Testimonials ===== */
.wecare-section {
    background: linear-gradient(135deg, #001f4d 0%, #0a3a7a 100%);
    color: #fff;
    padding: 55px 0;
}

.wecare-section h2 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.wecare-section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    background: var(--accent);
}

.wecareall {
    margin: 0;
    padding: 0;
}

.wecareall li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
}

.wecareall li i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial4,
#home-testimonial-carousel {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 10px 40px 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 220px;
}

.wecare-section .testimonial-content {
    text-align: center;
    padding: 18px 8px;
}

.wecare-section .testimonial-content p {
    font-size: 15px;
    font-style: italic;
    color: #f0f4ff;
    line-height: 1.75;
    margin-bottom: 14px;
}

.wecare-section .testimonial-content h4 {
    color: var(--accent);
    font-size: 16px;
    margin: 0;
}

#home-testimonial-carousel .carousel-control {
    width: 34px;
    height: 34px;
    top: 45%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    opacity: 1;
    text-shadow: none;
}

#home-testimonial-carousel .carousel-control .fa {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
}

/* ===== Gallery ===== */
.gallery-section { background: var(--light); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: auto;
    min-height: 220px;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

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

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

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 31, 77, 0.85));
    display: flex;
    align-items: flex-end;
    padding: 14px;
    opacity: 0.95;
}

.gallery-item .overlay h3 {
    color: #fff;
    font-size: 14px;
    margin: 0;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ===== Website images: keep fully responsive ===== */
.about-image img,
.about-img,
.faculty-banner {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.facility-img-wrap,
.celebration-card,
.home-achievement-img-wrap {
    position: relative;
    overflow: hidden;
}

/* ===== Staff ===== */
.teachers-section { background: #fff; }

.staff-slide-card {
    text-align: center;
    padding: 18px 12px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #eef1f7;
    margin: 8px;
}

.staff-slide-photo img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--accent);
}

.staff-slide-name {
    font-size: 15px;
    color: var(--primary);
    margin: 0 0 4px;
}

.staff-slide-detail {
    color: var(--gray);
    font-size: 12px;
    margin: 0;
}

/* ===== Buttons ===== */
.btn-read {
    display: inline-block;
    background: var(--secondary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 8px;
}

.btn-read:hover {
    background: #c1121f;
    color: #fff !important;
}

.btn-read-light {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.btn-read-light:hover {
    background: var(--primary);
    color: #fff !important;
}

.btn-home-viewall {
    display: inline-block;
    background: var(--primary);
    color: #fff !important;
    padding: 8px 22px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
}

.btn-home-viewall:hover {
    background: var(--secondary);
    color: #fff !important;
}

/* ===== Footer ===== */
.website-site-footer {
    background: #00162f;
    color: #fff;
    padding-top: 48px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 28px;
    padding-bottom: 28px;
}

.footer-brand h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--accent);
}

.footer-brand p {
    font-size: 14px;
    color: #a9b4c7;
    line-height: 1.7;
    margin-bottom: 14px;
}

.footer-col h4 {
    font-size: 17px;
    margin: 0 0 16px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
}

.footer-links a,
.footer-col > a {
    display: block;
    color: #a9b4c7;
    padding: 5px 0;
    font-size: 14px;
}

.footer-links a:hover,
.footer-col > a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #fff;
}

.social-links a:hover {
    background: var(--secondary);
    color: #fff;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-contact-item i {
    color: var(--accent);
    font-size: 16px;
    margin-top: 3px;
}

.footer-contact-item p {
    margin: 0;
    font-size: 14px;
    color: #a9b4c7;
    line-height: 1.5;
}

.footer-contact-item .content-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 2px;
}

.footer-contact-item a {
    color: #a9b4c7;
}

.footer-contact-item a:hover {
    color: var(--accent);
}

.infoborderb {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.footer-bottom {
    text-align: center;
    padding: 18px 0 22px;
}

.footer-bottom p {
    color: #8e9bb0;
    font-size: 13px;
    margin: 0;
}

/* ===== Scroll Top ===== */
.scrollToTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 44px;
    font-size: 20px;
    z-index: 9999;
    box-shadow: var(--shadow-hover);
}

.scrollToTop:hover {
    background: var(--secondary);
    color: #fff !important;
}

/* ===== Owl Carousel ===== */
.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 18px;
}

.owl-carousel .owl-dot span {
    width: 10px;
    height: 10px;
    background: #ccd3e0;
    border-radius: 50%;
    margin: 0 4px;
    display: block;
}

.owl-carousel .owl-dot.active span,
.owl-carousel .owl-dot:hover span {
    background: var(--secondary);
}

.owl-carousel .owl-nav button {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 38px;
    height: 38px;
    margin: 0 4px;
}

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

/* ===== Pages / Forms / Misc ===== */
.page-content,
.program-read-page,
.about-us-page,
.principal-page {
    padding: 50px 0;
    background: #fff;
}

.program-read-title,
.page-content h1,
.program-read-page h1 {
    font-size: 26px;
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.program-read-title + hr,
.page-content h1 + hr,
.program-read-page hr {
    border-color: var(--secondary);
    width: 72px;
    margin: 0 auto 28px;
    border-width: 2px;
}

.page-body {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.page-body img {
    border-radius: 8px;
    margin: 10px 0;
}

/* ============ Achievements / gallery card grid ============ */
.achievements-page {
    background: #f7f8fb;
    padding: 40px 0 60px;
}

.achievements-page .program-read-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    margin: 0 0 6px;
    text-transform: none;
}

.achievements-page hr {
    width: 90px;
    height: 4px;
    background: var(--secondary);
    border: 0;
    border-radius: 2px;
    margin: 14px auto 22px;
}

.achievements-page .program-read-subtitle {
    max-width: 840px;
    margin: 0 auto 34px;
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.achievements-page .achievements-grid {
    margin-left: -12px;
    margin-right: -12px;
}

.achievements-page .achievements-grid > div {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 24px;
}

.cuadro_intro_hover.achievements-card {
    position: relative;
    height: 300px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 31, 77, 0.09);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cuadro_intro_hover.achievements-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 31, 77, 0.18);
}

.cuadro_intro_hover.achievements-card a {
    display: block;
    height: 100%;
}

.cuadro_intro_hover.achievements-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.cuadro_intro_hover.achievements-card:hover img {
    transform: scale(1.07);
}

.cuadro_intro_hover.achievements-card .eventcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 18px 18px;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 31, 77, 0.93) 0%, rgba(0, 31, 77, 0.55) 55%, transparent 100%);
}

.cuadro_intro_hover.achievements-card .blur {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: transparent;
}

.cuadro_intro_hover.achievements-card .event20 {
    position: relative;
    z-index: 1;
}

.cuadro_intro_hover.achievements-card .event20 h3 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.cuadro_intro_hover.achievements-card .event20 p {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
}

.cuadro_intro_hover.achievements-card:hover .event20 p {
    max-height: 90px;
    opacity: 1;
}

.cuadro_intro_hover.achievements-card.achievements-card-no-image {
    background: linear-gradient(145deg, #001f4d, #0b3a86);
}

.cuadro_intro_hover.achievements-card.achievements-card-no-image .eventcaption {
    background: linear-gradient(to top, rgba(0, 12, 32, 0.95) 0%, rgba(0, 12, 32, 0.35) 60%, transparent 100%);
}

.achievements-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 64px;
    transition: color 0.3s ease;
}

.achievements-card.achievements-card-no-image:hover .achievements-card-placeholder {
    color: #ffc600;
}

/* ============ Achievements / gallery pagination ============ */
.photo-gallery-pagination {
    margin-top: 26px;
}

.photo-gallery-pagination-summary,
.achievements-count-summary {
    color: #666;
    font-size: 14px;
    margin-bottom: 14px;
}

.photo-gallery-pagination-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.photo-gallery-page-link,
.photo-gallery-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.photo-gallery-page-link {
    background: #fff;
    color: var(--primary);
    border: 1px solid #e2e6ee;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 31, 77, 0.06);
}

.photo-gallery-page-link:hover,
.photo-gallery-page-link:focus {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    text-decoration: none;
}

.photo-gallery-page-current {
    background: var(--secondary);
    border: 1px solid var(--secondary);
    color: #fff;
}

.achievements-empty {
    margin-top: 20px;
    padding: 34px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 31, 77, 0.08);
    color: #666;
    font-size: 14px;
}

/* ============ Achievements responsive ============ */
@media (max-width: 991px) {
    .achievements-page {
        padding: 30px 0 50px;
    }

    .achievements-page .program-read-title {
        font-size: 28px;
    }

    .cuadro_intro_hover.achievements-card {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .achievements-page {
        padding: 22px 0 44px;
    }

    .achievements-page .program-read-subtitle {
        font-size: 14px;
        margin-bottom: 26px;
    }

    .achievements-page .achievements-grid > div {
        margin-bottom: 18px;
    }

    .cuadro_intro_hover.achievements-card {
        height: 240px;
    }

    .cuadro_intro_hover.achievements-card .event20 h3 {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .achievements-page .program-read-title {
        font-size: 24px;
    }

    .cuadro_intro_hover.achievements-card {
        height: 260px;
    }

    .photo-gallery-page-link,
    .photo-gallery-page-current {
        min-width: 32px;
        height: 32px;
    }
}

.about-us-card,
.principal-page-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.principal-page-photo {
    padding: 10px;
}

.principal-page-portrait {
    width: 100%;
    max-width: 260px;
    height: 220px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    margin: 0 auto 12px;
    display: block;
}

.principal-page-name {
    font-size: 20px;
    font-weight: 700;
    color: #0d6efd;
    margin: 12px 0 4px;
}

.leadership-item {
    padding: 10px 0;
}

.leadership-title,
.principal-page-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    padding-bottom: 10px;
}

.leadership-title::after,
.principal-page-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.leadership-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.12), transparent);
    margin: 40px 0;
}

.principal-page-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 12px;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.faculty-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faculty-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.faculty-card-body {
    padding: 16px;
    text-align: center;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccd3e0;
    border-radius: 6px;
    font-size: 14px;
    height: auto;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 31, 77, 0.1);
}

.modal-content {
    border-radius: var(--radius);
    border: 0;
    overflow: hidden;
}

.badge-new {
    background: var(--secondary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
}

.commonbg { background: var(--light); }

.home-widget-scroll-wrap {
    position: relative;
    overflow: hidden;
}

.home-widget-scroll-track {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tc-leaving-certificate {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
}

body.menu-open {
    overflow: hidden;
}

/* ===== Responsive ===== */
/* Desktop screen size fine-tuning so 10 items always fit in 1 row */
@media (min-width: 992px) and (max-width: 1199px) {
    .school-name { font-size: 18px; }
    .navborder .navbar-nav > li > a {
        padding: 12px 5px !important;
        font-size: 11px !important;
        letter-spacing: 0 !important;
    }
    .navborder .navbar-nav > li > a .caret {
        margin-left: 3px;
    }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) and (max-width: 1365px) {
    .navborder .navbar-nav > li > a {
        padding: 13px 8px !important;
        font-size: 12px !important;
        letter-spacing: 0.15px !important;
    }
}

@media (min-width: 1366px) {
    .navborder .navbar-nav > li > a {
        padding: 14px 11px !important;
        font-size: 12.5px !important;
        letter-spacing: 0.25px !important;
    }
}

@media (max-width: 991px) {
    .header-phone { display: none !important; }
    .fit-india-logo img { height: 40px; }

    .mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .navborder .navbar-header {
        display: none;
    }

    .navborder .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 0;
        max-height: 75vh;
        overflow-y: auto;
        z-index: 1060;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    }

    .navborder .navbar-collapse.collapse {
        display: none !important;
    }

    .navborder .navbar-collapse.collapse.in,
    .navborder .navbar-collapse.collapsing {
        display: block !important;
    }

    .navborder .navbar-nav {
        display: block !important;
        width: 100%;
        float: none;
        margin: 0;
        padding: 0;
    }

    .navborder .navbar-nav > li {
        float: none;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navborder .navbar-nav > li > a {
        padding: 13px 20px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #fff !important;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        white-space: normal;
        background: transparent !important;
    }

    .navborder .navbar-nav > li.active > a,
    .navborder .navbar-nav > li > a:hover,
    .navborder .navbar-nav > li > a:focus,
    .navborder .navbar-nav > li.open > a {
        background: rgba(255, 255, 255, 0.08) !important;
        color: var(--accent) !important;
    }

    .navborder .navbar-nav > li > a .caret {
        margin-left: auto;
        border-top-color: #fff;
        border-bottom-color: #fff;
    }

    .navborder .navbar-nav > li > ul.dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        max-width: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.22);
        border-radius: 0;
        border: 0;
        padding: 4px 0;
        margin: 0;
        display: none;
    }

    .navborder .navbar-nav > li.open > ul.dropdown-menu {
        display: block;
    }

    .navborder .navbar-nav > li > ul.dropdown-menu > li {
        display: block;
        width: 100%;
    }

    .navborder .navbar-nav > li > ul.dropdown-menu > li > a {
        color: rgba(255, 255, 255, 0.9);
        padding: 10px 20px 10px 32px;
        display: block;
        font-size: 13px;
        font-weight: 500;
        white-space: normal;
        background: transparent;
        text-transform: none;
        letter-spacing: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .navborder .navbar-nav > li > ul.dropdown-menu > li > a:hover,
    .navborder .navbar-nav > li > ul.dropdown-menu > li > a:focus {
        background: rgba(255, 255, 255, 0.08);
        color: var(--accent);
        padding-left: 36px;
    }

    .about-content,
    .guru-row,
    .principal-row {
        flex-direction: column;
        align-items: center;
    }
    .guru-right {
        flex: 1 1 auto;
        width: 100%;
    }
    .principal-right {
        order: -1;
        flex: 0 0 auto;
        width: 100%;
        max-width: 340px;
        margin-bottom: 24px;
    }
    .principal-left {
        width: 100%;
    }
    .principal-page-layout {
        flex-direction: column;
        align-items: center;
    }
    .principal-page-photo {
        margin-bottom: 24px;
        text-align: center;
    }
    .principal-page-content h2 {
        text-align: center;
    }
    .principal-page-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-top { grid-template-columns: 1fr 1fr; }
    #bootstrap-touch-slider .hero-caption h1 {
        font-size: 28px;
    }

    #bootstrap-touch-slider .hero-caption p {
        font-size: 14px;
    }

    #bootstrap-touch-slider .carousel-inner > .item {
        min-height: 320px;
    }
}

@media (max-width: 767px) {
    .topbar .container {
        flex-direction: column;
        text-align: center;
    }

    .topbar-links,
    .topbar-socials {
        justify-content: center;
    }

    .news-ticker-label {
        font-size: 11px;
        padding: 5px 8px;
    }

    .header-container {
        padding: 10px 0;
    }

    .header-logo img {
        height: 48px;
    }

    .school-name {
        font-size: 14px;
    }

    .school-affiliation,
    .school-session {
        font-size: 10px;
    }

    .header-login-btn {
        padding: 7px 14px;
        font-size: 12px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item {
        aspect-ratio: 4 / 3;
    }

    .gallery-item .overlay {
        padding: 10px;
    }

    .gallery-item .overlay h3 {
        font-size: 13px;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .py-60 {
        padding: 40px 0;
    }

    #bootstrap-touch-slider .hero-caption h1 {
        font-size: 20px;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    #bootstrap-touch-slider .hero-caption p {
        font-size: 13px;
        margin-bottom: 14px;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-btn,
    .hero-btn-outline {
        padding: 8px 16px;
        font-size: 12px;
    }

    #bootstrap-touch-slider .carousel-inner > .item {
        min-height: 280px;
    }

    #bootstrap-touch-slider .carousel-control {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .wecare-section .col-md-6 + .col-md-6 {
        margin-top: 28px;
    }

    .testimonial4,
    #home-testimonial-carousel {
        padding: 8px 34px 18px;
    }

    .scrollToTop {
        right: 16px;
        bottom: 16px;
    }

    .principal-left h2,
    .leadership-title {
        font-size: 21px;
        text-align: center;
    }

    .leadership-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .principal-readmore-wrap {
        justify-content: center;
    }

    .principal-page-box {
        padding: 24px 18px;
    }

    .principal-page-portrait {
        max-width: 240px;
        height: 200px;
    }

    .message-scroll-box {
        max-height: 220px;
        padding-right: 8px;
    }

    .leadership-divider {
        margin: 28px 0;
    }

    .leadership-pills {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        border-radius: 16px;
    }

    .leadership-pills > li {
        margin: 2px;
    }

    .leadership-pills > li > a {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-brand-text .school-affiliation {
        display: none;
    }

    .school-name {
        font-size: 13px;
    }

    #bootstrap-touch-slider .carousel-inner > .item {
        min-height: 260px;
    }

    #bootstrap-touch-slider .hero-caption h1 {
        font-size: 18px;
    }

    #bootstrap-touch-slider .hero-caption p {
        display: none;
    }

    .principal-toggle-btn {
        width: 100%;
    }

    .principal-fullpage-link {
        width: 100%;
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .topbar,
    .news-ticker-bar,
    .website-site-header,
    .navborder,
    .scrollToTop {
        display: none !important;
    }
}

/* ===== About Us Page CSS ===== */
.about-hero {
    background: var(--primary);
    color: #fff;
    padding: 50px 0 40px;
}
.about-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
}
.about-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}
.about-hero .breadcrumb-item a {
    color: #f4a261;
}
.about-hero .breadcrumb-item.active {
    color: #fff;
}
.about-hero .breadcrumb-item + .breadcrumb-item::before {
    color: #aaa;
}

.about-section {
    padding: 60px 0;
    background: #fff;
}
.about-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.about-image-col {
    flex: 0 0 45%;
    max-width: 45%;
}
.about-image-col .about-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    object-fit: cover;
}
.about-content-col {
    flex: 0 0 50%;
    max-width: 50%;
}
.about-content-col h2 {
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}
.about-content-col h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}
.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}
.about-text p {
    margin-bottom: 15px;
}
.about-empty {
    color: #999;
    font-size: 16px;
}

/* About Page Responsive */
@media (max-width: 992px) {
    .about-image-col, .about-content-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .about-hero h1 {
        font-size: 28px;
    }
}
@media (max-width: 768px) {
    .about-hero {
        padding: 30px 0;
    }
    .about-hero h1 {
        font-size: 22px;
    }
    .about-section {
        padding: 40px 0;
    }
    .about-layout {
        gap: 25px;
    }
    .about-content-col h2 {
        font-size: 22px;
    }
    .about-text {
        font-size: 14px;
    }
}
@media (max-width: 576px) {
    .about-hero h1 {
        font-size: 20px;
    }
    .about-content-col h2 {
        font-size: 20px;
    }
}

/* ===== About Guru Page (matches nyrasnest.in) ===== */
section.page-content.about-guru-page {
    padding: 20px 0 50px;
    line-height: 1.6;
    font-size: 16px;
    color: #333;
    background: #fff;
}

@media (min-width: 768px) {
    section.page-content.about-guru-page {
        padding-top: 100px;
        padding-bottom: 50px;
    }
}

.about-guru-page .about-guru-body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

.about-guru-page .about-guru-body p {
    margin: 0 0 15px;
    text-align: justify;
    color: #333;
}

.about-guru-page .about-guru-title,
.about-guru-page .about-guru-title strong,
.about-guru-page .about-guru-title span {
    font-size: 20px !important;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

.about-guru-page .about-guru-image {
    margin: 0 0 15px;
}

.about-guru-page .about-guru-portrait {
    display: block;
    width: 200px !important;
    height: 267px !important;
    max-width: 100%;
    object-fit: cover;
    border: 0;
}

.about-guru-page .about-guru-body span[style*="font-size:14px"],
.about-guru-page .about-guru-body span[style*="font-size: 14px"] {
    font-size: 14px !important;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

.about-guru-page .about-guru-body h1,
.about-guru-page .about-guru-body h2,
.about-guru-page .about-guru-body h3,
.about-guru-page .about-guru-body h4,
.about-guru-page .about-guru-body h5,
.about-guru-page .about-guru-body h6,
.about-guru-page .about-guru-messages-title,
.about-guru-page .about-guru-message-lead h2 {
    color: var(--primary) !important;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.about-guru-page .about-guru-messages-title,
.about-guru-page .about-guru-body h4 {
    font-size: 14px;
    line-height: 1.6;
}

.about-guru-page .about-guru-messages-title span,
.about-guru-page .about-guru-body h4 span {
    font-size: 14px !important;
    color: var(--primary) !important;
}

.about-guru-page .about-guru-message-lead h2,
.about-guru-page .about-guru-body ul li h2 {
    margin: 0;
    font-size: 14px !important;
    line-height: 1.6;
    text-transform: none;
    background: none;
    padding: 0;
    border: 0;
    color: var(--primary) !important;
}

.about-guru-page .about-guru-message-lead h2 span,
.about-guru-page .about-guru-body ul li h2 span {
    font-size: 14px !important;
    color: var(--primary) !important;
}

.about-guru-page .about-guru-body ul {
    list-style-type: square;
    margin: 0 0 15px;
    padding-left: 30px;
}

.about-guru-page .about-guru-body ul li {
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.about-guru-page .about-guru-body ul li span {
    font-size: 14px !important;
    color: #333;
}

.about-guru-page .about-guru-body blockquote {
    border-left: 4px solid var(--secondary);
    padding: 16px 24px;
    margin: 20px 0;
    background: #fdf6f6;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: #555;
}

.about-guru-page .about-guru-body img:not(.about-guru-portrait) {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

@media (max-width: 767px) {
    section.page-content.about-guru-page {
        padding: 20px 0 40px;
    }

    .about-guru-page > .container {
        width: 100%;
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .about-guru-page .about-guru-portrait {
        width: 200px !important;
        height: auto !important;
        max-width: 100%;
    }
}

/* ============ Contact Us page ============ */
section.page-content.contact-page {
    padding: 0 0 60px;
    background-color: #f7f8fb;
    min-height: 60vh;
}

.contact-page .spacet60 {
    padding-top: 60px;
}

.contact-page .contact-form-title {
    margin: 0 0 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    padding-bottom: 14px;
}

.contact-page .contact-form-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.contact-page .contact-alert {
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 31, 77, 0.06);
}

.contact-page .contact-alert i {
    margin-right: 8px;
}

.contact-page .contact-form {
    margin: 18px 0 10px;
    padding: 30px 28px 20px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e9ecf3;
    box-shadow: 0 8px 24px rgba(0, 31, 77, 0.08);
}

.contact-page .contact-form .form-group {
    margin-bottom: 22px;
}

.contact-page .contact-form .control-label {
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding-top: 11px;
    text-align: right;
}

.contact-page .contact-form .form-control {
    border-radius: 8px;
    border-color: #d6dce8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-page .contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 31, 77, 0.12);
}

.contact-page .contact-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.contact-page .contact-form .form-group.has-error .form-control {
    border-color: #d9534f;
}

.contact-page .contact-form .form-group.has-error .form-control:focus {
    box-shadow: 0 0 0 4px rgba(217, 83, 79, 0.15);
}

.contact-page .contact-field-error {
    display: block;
    margin-top: 7px;
    color: #d9534f;
    font-size: 13px;
    font-weight: 600;
}

.contact-page .contact-form .btn.btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 34px;
    border-radius: 40px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.contact-page .contact-form .btn.btn-primary:hover,
.contact-page .contact-form .btn.btn-primary:focus {
    background: #c1121f;
    border-color: #c1121f;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(230, 57, 70, 0.35);
}

/* Contact page content (info cards + map) */
.contact-page .contact-page-content {
    margin-top: 30px;
}

.contact-page .contact-page-content .contact-item {
    margin: 0 0 24px;
    padding: 34px 22px 30px;
    text-align: center;
    background: #fff;
    border: 1px solid #e9ecf3;
    border-radius: 14px;
    min-height: 220px;
    box-shadow: 0 6px 18px rgba(0, 31, 77, 0.07);
    transition: all 0.3s ease;
}

.contact-page .contact-page-content .contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 31, 77, 0.14);
}

.contact-page .contact-page-content .contact-item img {
    display: inline-block;
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.contact-page .contact-page-content .contact-item h3 {
    margin: 0 0 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.contact-page .contact-page-content .contact-item p {
    margin: 0 0 6px;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}

.contact-page .contact-page-content .col-md-4,
.contact-page .contact-page-content .col-sm-4 {
    margin-bottom: 10px;
}

.contact-page .contact-page-content iframe,
.contact-page .contact-page-content .mapWrapper iframe,
.contact-page .contact-page-content .contact-map-iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 450px !important;
    min-height: 450px;
    display: block;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 31, 77, 0.08);
}

.contact-page .contact-page-content .contact-map-wrap,
.contact-page .contact-page-content .col-md-12 > div[style*="margin-left"],
.contact-page .contact-page-content .col-md-12 > div {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
}

.contact-page .contact-page-content .col-md-12 {
    width: 100%;
    float: left;
    padding-left: 15px;
    padding-right: 15px;
    clear: both;
}

/* Contact page responsive */
@media (max-width: 991px) {
    .contact-page .spacet60 {
        padding-top: 44px;
    }

    .contact-page .contact-form {
        padding: 26px 22px 16px;
    }

    .contact-page .contact-page-content iframe,
    .contact-page .contact-page-content .contact-map-iframe {
        height: 380px !important;
        min-height: 380px;
    }
}

@media (max-width: 767px) {
    section.page-content.contact-page {
        padding-bottom: 44px;
    }

    .contact-page .spacet60,
    .contact-page .pt-0-mobile {
        padding-top: 24px;
    }

    .contact-page .contact-form-title {
        font-size: 23px;
    }

    .contact-page .contact-form {
        padding: 22px 18px 14px;
        margin-top: 14px;
    }

    .contact-page .contact-form .control-label {
        text-align: left;
        padding-top: 0;
        margin-bottom: 8px;
    }

    .contact-page .contact-form .col-sm-2,
    .contact-page .contact-form .col-sm-9 {
        width: 100%;
        float: none;
        padding-left: 15px;
        padding-right: 15px;
    }

    .contact-page .contact-form .btn.btn-primary.pull-right {
        float: none !important;
        width: 100%;
    }

    .contact-page .contact-field-error {
        margin-top: 5px;
    }

    .contact-page .contact-page-content iframe,
    .contact-page .contact-page-content .contact-map-iframe {
        height: 300px !important;
        min-height: 300px;
    }

    .contact-page .contact-page-content .contact-item {
        min-height: 0;
        padding: 26px 18px 24px;
    }
}

@media (max-width: 480px) {
    .contact-page .contact-form-title {
        font-size: 20px;
    }

    .contact-page .contact-page-content .contact-item img {
        width: 50px;
        height: 50px;
    }

    .contact-page .contact-page-content .contact-item h3 {
        font-size: 15px;
    }
}
