:root {
    --primary: #123a73;
    --primary-dark: #092b56;
    --green: #008b70;
    --gold: #e9ae37;
    --light: #f3f7fc;
    --text: #263548;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Hind Siliguri', sans-serif;
    color: var(--text);
    background: #fff;
}

a {
    text-decoration: none;
}

.top-bar {
    background: var(--primary-dark);
    color: #fff;
    padding: 9px 0;
    font-size: 13px;
}

.top-bar a {
    color: #fff;
}

.top-bar a:hover {
    color: var(--gold);
}

.school-branding {
    background: #fff;
    padding: 19px 0;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand-logo {
    flex-shrink: 0;
}

.brand-logo img {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.brand-content {
    flex: 1;
}

.brand-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(20px, 2.3vw, 31px);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.brand-content p {
    color: var(--green);
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.btn-admission {
    background: var(--green);
    color: #fff;
    border-radius: 30px;
    padding: 12px 22px;
    font-weight: 600;
}

.btn-admission:hover {
    background: #006c58;
    color: #fff;
}

.main-navbar {
    background: var(--primary);
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0,0,0,.09);
}

.main-navbar .nav-link {
    color: #fff;
    font-weight: 600;
    padding: 17px 13px !important;
    transition: .2s;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--gold);
}

.main-navbar .navbar-brand {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.nav-apply-btn {
    background: var(--gold);
    color: #152b45;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 700;
}

.nav-apply-btn:hover {
    background: #ffd16c;
}

.dropdown-menu {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
    padding: 8px;
}

.dropdown-item {
    border-radius: 6px;
    padding: 10px 14px;
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
}

.school-hero {
    background: linear-gradient(
        120deg,
        #f3f7fc 0%,
        #e5f3ef 100%
    );
    padding: 100px 0;
}

.school-hero h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(30px, 4vw, 55px);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.hero-tag {
    display: inline-block;
    background: #fff0c4;
    color: #7a5200;
    padding: 9px 18px;
    border-radius: 30px;
    font-weight: 700;
}

.site-footer {
    background: var(--primary-dark);
    color: #d8e4f2;
    padding: 65px 0 20px;
}

.site-footer h4,
.site-footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.site-footer p {
    line-height: 1.9;
}

.footer-tagline {
    color: var(--gold);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.site-footer a {
    color: #d8e4f2;
}

.footer-links a:hover,
.site-footer a:hover {
    color: var(--gold);
}

.footer-divider {
    border-color: rgba(255,255,255,.2);
    margin-top: 35px;
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: none;
    z-index: 1050;
    box-shadow: 0 5px 18px rgba(0,0,0,.2);
}

.back-to-top.show {
    display: block;
}

@media (max-width: 991px) {
    .brand-wrapper {
        justify-content: center;
    }

    .brand-logo img {
        width: 70px;
        height: 70px;
    }

    .brand-content h1 {
        font-size: 21px;
    }

    .main-navbar .nav-link {
        padding: 12px 10px !important;
    }

    .nav-apply-btn {
        margin: 12px 0;
        width: 100%;
    }

    .navbar-toggler {
        border-color: rgba(255,255,255,.5);
    }

    .navbar-toggler-icon {
        filter: brightness(0) invert(1);
    }
}

@media (max-width: 575px) {
    .top-bar {
        text-align: center;
    }

    .top-bar .d-flex {
        justify-content: center !important;
    }

    .school-branding {
        padding: 15px 0;
    }

    .brand-wrapper {
        gap: 12px;
    }

    .brand-logo img {
        width: 55px;
        height: 55px;
    }

    .brand-content h1 {
        font-size: 16px;
        line-height: 1.4;
    }

    .brand-content p {
        font-size: 11px;
    }

    .school-hero {
        padding: 65px 0;
        text-align: center;
    }

    .school-hero h2 {
        font-size: 30px;
    }
}

/* IBSB Student Portal Button */

.ibsb-student-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f6bf48, #e9a72c);
    color: #17365d !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid #e6a32a;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.ibsb-student-btn:hover {
    background: #ffffff;
    color: #087d66 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

@media (max-width: 991px) {
    .ibsb-student-btn {
        width: 100%;
        margin-top: 12px;
        padding: 12px 18px;
    }

    .school-tagline {
        font-size: 13px;
    }
}


/* =========================================
   IBSB PREMIUM GRADIENT FEATURE CARDS
========================================= */

.ibsb-features-wrap {
    position: relative;
    z-index: 5;
    margin-top: -25px;
    margin-bottom: 50px;
}

.ibsb-feature-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 125px;
    padding: 26px 24px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 15px 35px rgba(9, 33, 72, .18);
    transition: transform .35s ease,
                box-shadow .35s ease;
}

/* Blue Gradient */
.ibsb-feature-card.feature-blue {
    background: linear-gradient(
        125deg, #0877B9 0%, #1645A5 100%
    );
}

/* Emerald Gradient */
.ibsb-feature-card.feature-green {
    background: linear-gradient(
        125deg, #0A9F86 0%, #087C75 100%
    );
}

/* Orange Gradient */
.ibsb-feature-card.feature-orange {
    background: linear-gradient(
        125deg, #F59E0B 0%, #E05B23 100%
    );
}

/* Decorative Light Circle */
.ibsb-feature-card::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    right: -65px;
    top: -85px;
    background: rgba(255,255,255,.12);
}

.ibsb-feature-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.25);
}

.ibsb-feature-icon i {
    font-size: 29px;
    color: #fff;
}

.ibsb-feature-content {
    position: relative;
    z-index: 1;
}

.ibsb-feature-content h4 {
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
}

.ibsb-feature-content p {
    color: rgba(255,255,255,.90) !important;
    font-size: 13px;
    margin: 0;
}

.ibsb-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 45px rgba(9,33,72,.24);
}

/* Responsive */
@media (max-width: 991.98px) {
    .ibsb-features-wrap {
        margin-top: 20px;
    }
}

@media (max-width: 575.98px) {
    .ibsb-feature-card {
        min-height: 110px;
        padding: 20px;
        border-radius: 16px;
    }

    .ibsb-feature-icon {
        width: 54px;
        height: 54px;
        min-width: 54px;
    }

    .ibsb-feature-content h4 {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ibsb-feature-card {
        transition: none;
    }
}


/* ==========================================
   IBSB ACADEMICS CARD DESIGN UPDATE
   Text Justify + Full Width Green Button
   ========================================== */

/* Card layout */
.ibsb-academic-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card content */
.ibsb-academic-card .ibsb-academic-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

/* Justified description */
.ibsb-academic-card .ibsb-academic-description {
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 1.85;
    color: #52635e;
    font-size: 14px;
    margin-bottom: 24px;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Full width green View Details button */
.ibsb-academic-card .ibsb-academic-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100% !important;
    min-height: 48px;
    margin-top: auto;
    padding: 13px 18px;
    background: #08734d !important;
    color: #ffffff !important;
    border: 1px solid #08734d !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    transition: background .25s ease,
                transform .25s ease,
                box-shadow .25s ease;
}

.ibsb-academic-card .ibsb-academic-btn:hover,
.ibsb-academic-card .ibsb-academic-btn:focus-visible {
    background: #055638 !important;
    border-color: #055638 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 115, 77, .20);
}

.ibsb-academic-card .ibsb-academic-btn i {
    color: inherit !important;
    transition: transform .25s ease;
}

.ibsb-academic-card .ibsb-academic-btn:hover i {
    transform: translateX(4px);
}

/* Mobile */
@media (max-width: 575.98px) {
    .ibsb-academic-card .ibsb-academic-body {
        padding: 18px;
    }

    .ibsb-academic-card .ibsb-academic-description {
        font-size: 13px;
        line-height: 1.75;
    }
}


/* =========================================
   IBSB ADMIN PANEL LOGIN NAVBAR BUTTON
   ========================================= */

.ibsb-admin-login-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 16px !important;
    border-radius: 8px;

    background: #08734d !important;
    border: 1px solid #e5bd58 !important;
    color: #ffffff !important;

    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;

    transition: all 0.25s ease;
}

.ibsb-admin-login-btn i {
    font-size: 15px;
    color: #ffffff !important;
}

.ibsb-admin-login-btn:hover,
.ibsb-admin-login-btn:focus-visible {
    background: #055638 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
}

/* Mobile responsive */
@media (max-width: 991.98px) {
    .ibsb-admin-login-btn {
        width: 100%;
        margin: 8px 0;
        padding: 12px 16px !important;
    }
}


/* Admin Login & Student Portal Button Spacing */

.ibsb-admin-login-btn {
    margin-right: 12px !important;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .ibsb-admin-login-btn {
        margin-right: 0 !important;
        margin-bottom: 12px !important;
    }
}


/* IBSB Homepage Academic Cards - 4 Line Description */

.ibsb-program-content .ibsb-home-academic-summary,
.ibsb-program-content > p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    line-clamp: 4 !important;

    overflow: hidden !important;
    text-overflow: ellipsis;

    line-height: 1.6 !important;
    max-height: 6.4em !important;
    min-height: 6.4em !important;

    text-align: left !important;
    overflow-wrap: break-word;
    margin-bottom: 20px !important;
}

