/**
 * Frontend Stylesheet for Student One Islamic School
 * Principles: Guided by frontend-design skill (anti-AI-slop, intentional, subject-grounded)
 * Typography: Signika (matches employee/admin dashboard)
 * Colors: Strictly 100% bound to database theme settings
 */

/* ============================================================
   1. TYPOGRAPHY & FOUNDATION
   ============================================================ */
body,
input,
select,
textarea {
    font-family: 'Signika', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.sub-banner h2,
.main-heading1,
.main-heading2,
.footer-area h4 {
    font-family: 'Signika', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Explicitly preserve Font Awesome (Solid, Regular, Brands) across all elements */
.fa, .fas, .fa-solid, .fal, .fad {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

.far, .fa-regular {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

.fab, .fa-brands,
i.fab, span.fab,
a > i.fab,
.social i.fab,
.whatsapp-popup .fab,
.teacher-card-social i.fab {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

body {
    color: var(--thm-text, #232323);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--thm-primary, #f96283);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: var(--thm-hover, #e94f70);
    text-decoration: none;
}

/* ============================================================
   2. NAVBAR & DROPDOWNS
   ============================================================ */
#nav .arrow:after,
#nav .dropdown-menu a.dropdown-item:before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

#nav .dropdown-menu {
    border-top: 3px solid var(--thm-primary, #f96283) !important;
    border-radius: var(--thm-radius, 0px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

#nav .dropdown-menu > .dropdown-item {
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

#nav .dropdown-menu > .dropdown-item:hover,
#nav .dropdown-menu > .dropdown-item:focus {
    background-color: var(--thm-primary, #f96283) !important;
    color: #ffffff !important;
    padding-left: 26px !important;
}

/* ============================================================
   SPMB CTA BUTTON (NAVBAR)
   ============================================================ */
.nav-spmb-item {
    display: flex;
    align-items: center;
    margin-left: 10px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* Explicitly disable all bracket borders/pseudo-elements from style.css */
#nav .navbar-nav > li.nav-spmb-item > a:before,
#nav .navbar-nav > li.nav-spmb-item > a:after,
#nav .navbar-nav > li.nav-spmb-item:hover > a:before,
#nav .navbar-nav > li.nav-spmb-item:hover > a:after,
#nav .navbar-nav > li.nav-spmb-item.active > a:before,
#nav .navbar-nav > li.nav-spmb-item.active > a:after,
#nav .navbar-nav > li.nav-spmb-item > a:hover:before,
#nav .navbar-nav > li.nav-spmb-item > a:hover:after,
.btn-spmb-nav:before,
.btn-spmb-nav:after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
}

.btn-spmb-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background-color: var(--thm-primary, #f96283) !important;
    color: #ffffff !important;
    font-family: 'Signika', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 8px 18px !important;
    border-radius: 4px;
    border: none !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    text-decoration: none !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    position: relative;
}

.btn-spmb-nav:hover,
.btn-spmb-nav:focus {
    background-color: var(--thm-hover, #e0486a) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    border: none !important;
    outline: none !important;
}

.btn-spmb-nav i {
    font-size: 14px;
}

.topbar-spmb-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--thm-primary, #f96283);
    color: #ffffff !important;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.topbar-spmb-badge:hover {
    background: var(--thm-hover, #e0486a);
    color: #ffffff !important;
}

/* Floating SPMB Action Badge (Bottom Left, perfectly balancing WhatsApp on Bottom Right) */
.sois-floating-spmb {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99990;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--thm-primary, #f96283);
    color: #ffffff !important;
    font-family: 'Signika', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.sois-floating-spmb:hover {
    background: var(--thm-hover, #e0486a);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.26);
    color: #ffffff !important;
}

.sois-floating-spmb i {
    font-size: 15px;
}

@media (max-width: 768px) {
    .sois-floating-spmb {
        bottom: 16px;
        left: 16px;
        padding: 9px 14px;
        font-size: 12px;
    }
    .nav-spmb-item {
        margin: 6px 0;
        width: 100%;
    }
    .nav-spmb-item .btn-spmb-nav {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   3. BANNER & BREADCRUMB
   ============================================================ */
.main-banner {
    background-size: cover !important;
    position: relative;
    padding: 55px 0 50px;
}

.main-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(38, 38, 38, 0.85);
}

.main-banner .container {
    position: relative;
    z-index: 2;
}

.main-banner h2 span {
    font-size: 32px;
    font-weight: 700;
    color: var(--thm-text, #323232);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 28px 0;
    padding: 14px 50px 16px 30px;
    display: inline-block;
    letter-spacing: 0.3px;
}

.main-banner h2::first-letter,
.main-banner h2 span::first-letter {
    color: var(--thm-primary, #f96283) !important;
}

.breadcrumb {
    background-color: #fafafa;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
    margin-bottom: 35px;
    border-radius: 0;
}

.breadcrumb a {
    color: var(--thm-secondary-text, #8d8d8d);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--thm-primary, #f96283);
}

.breadcrumb .active {
    color: var(--thm-text, #232323);
    font-weight: 600;
}

/* ============================================================
   4. EDITORIAL CONTENT & HEADINGS
   ============================================================ */
.page-lead-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    line-height: 1.3;
    margin-bottom: 10px;
}

.page-lead-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--thm-secondary-text, #8d8d8d);
    margin-bottom: 24px;
    line-height: 1.5;
}

.content-lead-text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--thm-text, #232323);
}

.content-lead-text p {
    margin-bottom: 16px;
}

/* Section Header (Restrained, no tracking/all-caps eyebrow) */
.section-headline {
    margin-bottom: 30px;
}

.section-headline h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 6px;
    border-bottom: 2px solid var(--thm-primary, #f96283);
    display: inline-block;
    padding-bottom: 4px;
}

.section-headline p {
    color: var(--thm-secondary-text, #8d8d8d);
    font-size: 15px;
    margin-top: 8px;
    max-width: 780px;
}

/* Structural History Panel */
.history-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--thm-primary, #f96283);
    border-radius: var(--thm-radius, 0px);
    padding: 32px;
    margin-bottom: 35px;
}

/* Structural Legal Note */
.legal-note {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 16px 20px;
    margin-top: 24px;
    font-size: 13.5px;
    color: var(--thm-secondary-text, #8d8d8d);
}

.legal-note strong {
    color: var(--thm-text, #232323);
}

/* Timeline Milestones (Actual Sequence) */
.milestones-sequence {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 28px 0 10px;
}

.milestone-node {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 20px;
}

.milestone-node .node-period {
    font-size: 13px;
    font-weight: 700;
    color: var(--thm-primary, #f96283);
    margin-bottom: 6px;
}

.milestone-node .node-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 4px;
}

.milestone-node .node-desc {
    font-size: 13px;
    color: var(--thm-secondary-text, #8d8d8d);
    margin: 0;
    line-height: 1.5;
}

/* Curriculum Section (Editorial contrast) */
.curriculum-editorial-panel {
    background: var(--thm-footer-bg, #8f3045);
    color: var(--thm-footer-text, #ffffff);
    border-radius: var(--thm-radius, 0px);
    padding: 36px;
    margin-bottom: 35px;
}

.curriculum-editorial-panel h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.curriculum-editorial-panel p {
    color: #f1f5f9;
    font-size: 15.5px;
    line-height: 1.7;
}

.curriculum-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.curriculum-pillar-cell {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--thm-radius, 0px);
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

/* ============================================================
   5. LEADERSHIP & TEACHERS (STRUCTURAL HIERARCHY)
   ============================================================ */

/* Tier 1: Board of Management */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.board-member-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.board-member-photo {
    position: relative;
    padding-top: 105%;
    background-color: #f3f4f6;
    overflow: hidden;
}

.board-member-photo img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}

.board-member-body {
    padding: 20px;
    flex-grow: 1;
}

.board-member-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 4px;
}

.board-member-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--thm-primary, #f96283);
    margin-bottom: 10px;
}

.board-member-bio {
    font-size: 13px;
    color: var(--thm-secondary-text, #8d8d8d);
    line-height: 1.5;
    margin: 0;
}

/* Tier 2: Principals & Vice Principals */
.principals-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

.principal-row-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.principal-row-card.lead {
    border-left: 3px solid var(--thm-primary, #f96283);
}

.principal-avatar-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--thm-radius, 0px);
    background: #f3f4f6;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.principal-detail h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 2px;
}

.principal-detail .principal-position {
    font-size: 13px;
    font-weight: 600;
    color: var(--thm-primary, #f96283);
    margin-bottom: 0;
}

/* Tier 3: Teachers Filter & Cards */
#doctors-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    padding-left: 0;
}

#doctors-filter li {
    margin: 0;
}


#doctors-filter li a {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: var(--thm-text, #232323);
    font-weight: 600;
    font-size: 13px;
    padding: 7px 16px;
    border-radius: var(--thm-radius, 0px);
    display: inline-block;
}

#doctors-filter li a:hover,
#doctors-filter li a.active {
    background: var(--thm-primary, #f96283);
    color: #ffffff;
    border-color: var(--thm-primary, #f96283);
}

.dlab-border-left,
.dlab-border-right {
    display: none !important;
}

.bio-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    overflow: hidden;
    margin-bottom: 25px;
}

.bio-box .profile-img {
    position: relative;
    padding-top: 100%;
    background-color: #f3f4f6;
}

.bio-box .profile-img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.bio-box .txt-holder {
    padding: 14px 12px;
    text-align: center;
}

.bio-box .txt-holder h5 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bio-box .txt-holder p.designation {
    font-size: 12px;
    color: var(--thm-secondary-text, #8d8d8d);
    font-weight: 600;
    margin: 0;
}

/* ============================================================
   6. CAMBRIDGE CURRICULUM (SUBSTANCE & STRUCTURE)
   ============================================================ */
.cambridge-banner-block {
    background: var(--thm-footer-bg, #8f3045);
    color: #ffffff;
    padding: 45px 0 40px;
}

.cambridge-banner-block h1 {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.cambridge-banner-block .subtitle {
    font-size: 18px;
    color: #fce7eb;
    margin-bottom: 12px;
}

.cambridge-banner-block p {
    font-size: 15px;
    color: #f1f5f9;
    max-width: 820px;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Framework Comparative Layout */
.framework-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.framework-column {
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 24px;
    background: #fafafa;
}

.framework-column.enrichment {
    border-left: 3px solid var(--thm-primary, #f96283);
    background: #ffffff;
}

.framework-column h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 8px;
}

.framework-column p {
    font-size: 14px;
    color: var(--thm-secondary-text, #8d8d8d);
    line-height: 1.6;
    margin: 0;
}

/* School Units Grid */
.units-pathway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 20px 0 35px;
}

.unit-cell {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 24px;
}

.unit-cell .unit-scope {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--thm-primary, #f96283);
    margin-bottom: 6px;
}

.unit-cell h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 10px;
}

.unit-cell p {
    font-size: 14px;
    color: var(--thm-secondary-text, #8d8d8d);
    line-height: 1.6;
    margin: 0;
}

/* Subjects Structure */
.subjects-unit-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 22px;
    height: 100%;
}

.subjects-unit-card h5 {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.subject-bullet {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    color: var(--thm-text, #232323);
    margin-bottom: 8px;
}

.subject-bullet::before {
    content: '■';
    color: var(--thm-primary, #f96283);
    font-size: 10px;
}

/* Methodology Columns */
.methodology-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0 35px;
}

.methodology-box {
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 26px;
    background: #ffffff;
}

.methodology-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 8px;
}

.methodology-box p {
    font-size: 14px;
    color: var(--thm-secondary-text, #8d8d8d);
    line-height: 1.6;
    margin: 0;
}

/* Assessment Comparison */
.assessment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0 35px;
}

.assessment-box {
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 26px;
    background: #ffffff;
}

.assessment-box.external {
    border-left: 3px solid var(--thm-primary, #f96283);
}

.assessment-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 4px;
}

.assessment-box .schedule {
    font-size: 13px;
    font-weight: 600;
    color: var(--thm-primary, #f96283);
    margin-bottom: 12px;
}

.assessment-box p {
    font-size: 14px;
    color: var(--thm-secondary-text, #8d8d8d);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   7. BUTTONS & UTILITIES
   ============================================================ */
.btn-primary, .btn-black, .btn-action {
    background-color: var(--thm-primary, #f96283) !important;
    border: 1px solid var(--thm-primary, #f96283) !important;
    color: #ffffff !important;
    border-radius: var(--thm-radius, 0px) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 24px;
}

.btn-primary:hover, .btn-black:hover, .btn-action:hover {
    background-color: var(--thm-hover, #e94f70) !important;
    border-color: var(--thm-hover, #e94f70) !important;
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .framework-layout, .methodology-row, .assessment-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   8. PAGINATION STYLING
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 35px 0 10px;
    list-style: none;
    padding: 0;
}

.pagination > li > a,
.pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    color: var(--thm-text, #232323);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--thm-radius, 0px);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination > li > a:hover {
    color: #ffffff;
    background: var(--thm-hover, #e94f70);
    border-color: var(--thm-hover, #e94f70);
}

.pagination > .active > span,
.pagination > .active > a {
    color: #ffffff !important;
    background: var(--thm-primary, #f96283) !important;
    border-color: var(--thm-primary, #f96283) !important;
}

/* ============================================================
   9. HOMEPAGE FEATURE CARDS (Fix top-left bug & Anti-AI-slop design)
   ============================================================ */
.home-features-boxes .feature-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
}

.home-features-boxes .feature-card:hover {
    border-color: var(--thm-primary, #f96283);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
    transform: translateY(-3px);
}

.home-features-boxes .feature-icon {
    position: static !important; /* Strictly prevents floating to top-left corner */
    width: 52px;
    height: 52px;
    border-radius: var(--thm-radius, 0px);
    background: var(--thm-primary-soft, rgba(249, 98, 131, 0.1));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--thm-primary, #f96283);
    margin-bottom: 18px;
    transition: all 0.25s ease;
}

.home-features-boxes .feature-card:hover .feature-icon {
    background: var(--thm-primary, #f96283);
    color: #ffffff;
}

.home-features-boxes .feature-icon i {
    color: inherit;
    font-size: 22px;
    line-height: 1;
}

.home-features-boxes .feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 8px;
    line-height: 1.35;
}

.home-features-boxes .feature-card p {
    font-size: 14px;
    color: var(--thm-secondary-text, #8d8d8d);
    line-height: 1.6;
    margin-bottom: 18px;
}

.home-features-boxes .feature-card .btn-primary {
    padding: 6px 18px !important;
    font-size: 13px !important;
}

/* Also reset legacy notification-boxes icon just in case */
.notification-boxes .box .icon {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 auto 15px auto !important;
}

/* ============================================================
   10. ABOUT US - ADVANTAGES SECTION (Clean Modern Cards, No Parallax)
   ============================================================ */
.about-advantages-section {
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 65px 0 45px;
}

.about-advantages-section .advantages-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--thm-primary, #f96283);
    margin-bottom: 8px;
}

.about-advantages-section .advantages-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.3;
}

.about-advantages-section .advantages-title span {
    color: var(--thm-primary, #f96283);
}

.about-advantages-section .advantage-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.about-advantages-section .advantage-card:hover {
    border-color: var(--thm-primary, #f96283);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.about-advantages-section .advantage-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--thm-radius, 0px);
    background: var(--thm-primary-soft, rgba(249, 98, 131, 0.1));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--thm-primary, #f96283);
    margin-bottom: 18px;
    transition: all 0.25s ease;
}

.about-advantages-section .advantage-card:hover .advantage-icon {
    background: var(--thm-primary, #f96283);
    color: #ffffff;
}

.about-advantages-section .advantage-icon i {
    color: inherit;
    font-size: 22px;
    line-height: 1;
}

.about-advantages-section .advantage-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 10px;
    line-height: 1.35;
}

.about-advantages-section .advantage-card p {
    font-size: 14px;
    color: var(--thm-secondary-text, #8d8d8d);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================================
   11. TEACHERS & FACULTY DIRECTORY (Clean Cards, Perfect Ratio, No Overlap)
   ============================================================ */
.teachers-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    padding: 0;
    list-style: none;
}

.teachers-filter-tabs .list-inline-item {
    margin-right: 0 !important;
}

.teachers-filter-tabs a {
    display: inline-block;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--thm-radius, 0px);
    color: var(--thm-text, #232323);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.teachers-filter-tabs a:hover {
    border-color: var(--thm-primary, #f96283);
    color: var(--thm-primary, #f96283);
    background: #ffffff;
}

.teachers-filter-tabs a.active {
    background: var(--thm-primary, #f96283);
    border-color: var(--thm-primary, #f96283);
    color: #ffffff;
}

#teachers-grid-container {
    display: flex;
    flex-wrap: wrap;
}

#teachers-grid-container > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.team-card,
.teacher-card {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--thm-radius, 12px);
    overflow: hidden;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.team-card:hover,
.teacher-card:hover {
    border-color: rgba(249, 98, 131, 0.45) !important;
    box-shadow: 0 20px 35px -8px rgba(249, 98, 131, 0.18), 0 6px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-5px);
}

.team-card-photo,
.teacher-card-photo {
    position: relative;
    width: 100%;
    height: 290px;
    overflow: hidden;
    background-color: #f8fafc;
    flex-shrink: 0;
}

.team-card-photo img,
.teacher-card-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
    transition: transform 0.35s ease;
}

.team-card-photo.is-default,
.teacher-card-photo.is-default {
    background: #f1f5f9 !important;
}

.team-card-photo.is-default img,
.teacher-card-photo.is-default img {
    object-fit: contain !important;
    padding: 35px !important;
    opacity: 0.65;
    filter: none !important;
}

.team-card:hover .team-card-photo img,
.teacher-card:hover .teacher-card-photo img {
    transform: scale(1.04);
}

.team-card-social,
.teacher-card-social {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.team-card-social a,
.teacher-card-social a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--thm-radius, 4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--thm-text, #232323);
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.team-card-social a:hover,
.teacher-card-social a:hover {
    background: var(--thm-primary, #f96283);
    color: #ffffff;
}

.team-card-body,
.teacher-card-body {
    padding: 16px 18px;
    background: #ffffff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid #f1f5f9;
    transition: background 0.25s ease;
}

.team-card-name,
.teacher-card-name {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--thm-text, #232323);
    margin-bottom: 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.team-card-dept,
.teacher-card-dept {
    font-size: 12.5px;
    color: var(--thm-primary, #f96283) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.4;
    display: block;
}

/* ============================================================
   12. WHATSAPP POPUP & SOCIAL MEDIA ICONS ENHANCEMENT
   ============================================================ */
.whatsapp-popup .whatsapp-button {
    background: #25D366 !important;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4) !important;
}

.whatsapp-popup .whatsapp-button i.fab.fa-whatsapp,
.whatsapp-popup .whatsapp-button .i-open {
    font-size: 30px !important;
    line-height: 1 !important;
    color: #ffffff !important;
}

.whatsapp-popup .whatsapp-button i.far.fa-times-circle,
.whatsapp-popup .whatsapp-button .i-close {
    font-size: 26px !important;
    line-height: 1 !important;
    color: #ffffff !important;
}

.whatsapp-popup .popup-content-header i.fab.fa-whatsapp {
    color: #ffffff !important;
}

.social {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 16px 0 0 0 !important;
    list-style: none !important;
}

.social li {
    display: inline-block !important;
    margin: 0 !important;
}

.social li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: var(--thm-radius, 0px) !important;
    color: var(--thm-footer-text, #ffffff) !important;
    font-size: 15px !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

.social li a:hover {
    background: var(--thm-primary, #f96283) !important;
    border-color: var(--thm-primary, #f96283) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ============================================================
   CONTACT PAGE — reduce excessive padding on info-box section
   ============================================================ */
.contact-info-box {
    margin-bottom: 24px !important;
}

.contact-info-box .info-box {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

/* Testimonial Avatar & Title Spacing */
.single-testimonial-style .client-info .title {
    padding-left: 0 !important;
}

/* ============================================================
   13. CIA FIRST SCHOOL INSPIRED GLOBAL SECTIONS & STYLING
   ============================================================ */

/* Section Headers & Badges */
.sois-section-badge {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--thm-primary, #991b1b);
    background: rgba(var(--thm-primary-rgb, 153, 27, 27), 0.08);
    border: 1px solid rgba(var(--thm-primary-rgb, 153, 27, 27), 0.2);
    border-radius: var(--thm-radius, 4px);
    margin-bottom: 10px;
}

.sois-section-badge.light {
    color: #fef08a;
    background: rgba(254, 240, 138, 0.12);
    border-color: rgba(254, 240, 138, 0.25);
}

.sois-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 12px;
}

.sois-section-lead {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
}

/* --- QUICK PATHWAY BAR --- */
.sois-quick-pathway-section {
    position: relative;
    z-index: 20;
    margin-top: -30px;
    margin-bottom: 40px;
}

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

.quick-pathway-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--thm-radius, 4px);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.quick-pathway-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--thm-primary, #991b1b);
}

.quick-pathway-card .pathway-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: rgba(var(--thm-primary-rgb, 153, 27, 27), 0.1);
    color: var(--thm-primary, #991b1b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.quick-pathway-card .pathway-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.quick-pathway-card .pathway-content p {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
}

.quick-pathway-card .pathway-arrow {
    margin-left: auto;
    color: #cbd5e1;
    font-size: 14px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.quick-pathway-card:hover .pathway-arrow {
    transform: translateX(4px);
    color: var(--thm-primary, #991b1b);
}

.quick-pathway-card.highlighted {
    background: #102a45;
    border-color: #1e3a5f;
}

.quick-pathway-card.highlighted .pathway-icon {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.quick-pathway-card.highlighted .pathway-content h4 {
    color: #ffffff;
}

.quick-pathway-card.highlighted .pathway-content p {
    color: #94a3b8;
}

.quick-pathway-card.highlighted .pathway-arrow {
    color: #eab308;
}

/* --- DIRECTOR EDITORIAL SECTION --- */
.sois-director-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--thm-radius, 4px);
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.director-portrait-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portrait-frame {
    position: relative;
    border-radius: var(--thm-radius, 4px);
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.director-photo {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.director-meta-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 75%, transparent 100%);
    color: #ffffff;
}

.director-meta-box .director-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 3px 0;
    color: #ffffff;
}

.director-meta-box .director-title {
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 500;
}

.director-quote-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--thm-primary, #991b1b);
    padding: 16px 18px;
    border-radius: var(--thm-radius, 4px);
    position: relative;
}

.director-quote-badge .quote-mark {
    font-size: 18px;
    color: var(--thm-primary, #991b1b);
    opacity: 0.4;
    margin-bottom: 6px;
}

.director-quote-badge .quote-text {
    font-size: 13.5px;
    font-style: italic;
    color: #334155;
    line-height: 1.6;
    margin: 0;
}

.director-letter-content {
    padding-left: 10px;
}

.section-lead-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--thm-primary, #991b1b);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.director-section-heading {
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 6px;
}

.director-section-subheading {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
}

.director-letter-body {
    font-size: 15px;
    color: #334155;
    line-height: 1.75;
}

.director-values-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.director-values-row .value-tag {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: var(--thm-radius, 4px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.director-values-row .value-tag i {
    color: #10b981;
    font-size: 13px;
}

/* --- WHY CHOOSE US (8 PILLARS) --- */
.sois-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--thm-radius, 4px);
    padding: 26px 22px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.sois-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--thm-primary, #991b1b);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(var(--thm-primary-rgb, 153, 27, 27), 0.08);
    color: var(--thm-primary, #991b1b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}

.sois-feature-card:hover .feature-icon-wrapper {
    background: var(--thm-primary, #991b1b);
    color: #ffffff;
}

.sois-feature-card .feature-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 10px;
}

.sois-feature-card .feature-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* --- CURRICULUM FRAMEWORK PANEL --- */
.curriculum-framework-panel {
    background: #102a45;
    border-radius: var(--thm-radius, 6px);
    padding: 48px 36px;
    box-shadow: 0 10px 30px rgba(16, 42, 69, 0.25);
}

.pillar-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--thm-radius, 4px);
    padding: 24px 20px;
    color: #ffffff;
    transition: all 0.25s ease;
}

.pillar-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.pillar-box.highlight {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.35);
}

.pillar-badge {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.pillar-badge.cambridge {
    color: #fef08a;
}

.pillar-box h4 {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.35;
}

.pillar-box p {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.delivery-phases-wrap {
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--thm-radius, 4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.phase-node {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    height: 100%;
}

.phase-node .phase-number {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 8px;
}

.phase-node h5 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.phase-node p {
    font-size: 12.5px;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
}

/* --- 14 SCHOOL SERVICES --- */
.sois-service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--thm-radius, 4px);
    padding: 24px 22px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.sois-service-card:hover {
    transform: translateY(-3px);
    border-color: var(--thm-primary, #991b1b);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.service-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: rgba(var(--thm-primary-rgb, 153, 27, 27), 0.08);
    color: var(--thm-primary, #991b1b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: 12px;
    transition: all 0.25s ease;
}

.sois-service-card:hover .service-icon-box {
    background: var(--thm-primary, #991b1b);
    color: #ffffff;
}

.service-category-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 3px;
}

.service-card-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 8px;
}

.service-card-text {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .quick-pathway-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sois-director-section {
        padding: 24px;
    }
    .curriculum-framework-panel {
        padding: 30px 20px;
    }
}

@media (max-width: 575px) {
    .quick-pathway-grid {
        grid-template-columns: 1fr;
    }
    .sois-section-title {
        font-size: 26px;
    }
    .director-section-heading {
        font-size: 24px;
    }
}

/* ============================================================
   CIA FIRST INTERNATIONAL SCHOOL INSPIRED DESIGN SYSTEM
   Principles: Grounded in Brief, Anti-AI-Slop, High Usability
   ============================================================ */

/* 1. TOP BRAND & ACTION BAR */
.cia-top-brand-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #eef2f6;
}

.cia-header-logo {
    height: 56px;
    max-height: 62px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

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

.cia-school-titles {
    line-height: 1.15;
}

.cia-arabic-motto {
    font-size: 11px;
    color: var(--thm-primary, #f96283);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cia-main-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.5px;
}

.cia-sub-title {
    font-size: 11px;
    font-weight: 700;
    color: #6c6f77;
    letter-spacing: 1.5px;
}

.cia-contact-social-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cia-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    margin: 0 !important;
    text-decoration: none;
    transition: color 0.2s;
}

.cia-meta-item:hover {
    color: var(--thm-primary, #f96283) !important;
}

.cia-meta-item i {
    font-size: 13px;
    margin: 0 !important;
}

.cia-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #ffffff !important;
    font-size: 12px;
    margin-left: 6px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
}

.cia-social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.cia-social-btn.fb { background-color: #1877f2; }
.cia-social-btn.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.cia-social-btn.yt { background-color: #ff0000; }
.cia-social-btn.tt { background-color: #000000; }

/* Action Buttons Row with Generous Spacing */
.cia-header-buttons-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.cia-header-buttons-row > * {
    margin-left: 4px;
    margin-right: 4px;
}

@supports (gap: 12px) {
    .cia-header-buttons-row > * {
        margin-left: 0;
        margin-right: 0;
    }
}

.btn-cia-tour {
    background-color: #6c6f77 !important;
    border-color: #6c6f77 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 8px 20px !important;
    border-radius: var(--thm-radius, 0px) !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(108, 111, 119, 0.25);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-cia-tour:hover {
    background-color: #585a61 !important;
    border-color: #585a61 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(108, 111, 119, 0.35);
}

.btn-cia-inquire {
    background-color: var(--thm-primary, #f96283) !important;
    border-color: var(--thm-primary, #f96283) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 8px 20px !important;
    border-radius: var(--thm-radius, 0px) !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(249, 98, 131, 0.25);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-cia-inquire:hover {
    background-color: var(--thm-hover, #e94f70) !important;
    border-color: var(--thm-hover, #e94f70) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(249, 98, 131, 0.35);
}

.btn-cia-login {
    background-color: #f8fafc;
    color: #334155 !important;
    border: 1.5px solid #cbd5e1;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 7px 16px !important;
    border-radius: var(--thm-radius, 0px) !important;
    transition: all 0.2s ease !important;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-cia-login:hover {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.15);
}

.btn-cia-dashboard {
    background-color: #0f172a !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 7px 16px !important;
    border-radius: var(--thm-radius, 0px) !important;
}

/* Top Lang Picker */
.cia-top-lang-picker {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--thm-radius, 0px);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
}

.cia-lang-btn {
    color: #64748b;
    padding: 2px 6px;
    text-decoration: none !important;
    border-radius: var(--thm-radius, 0px);
    transition: all 0.15s;
}

.cia-lang-btn.active {
    color: #ffffff;
    background-color: var(--thm-primary, #f96283);
}

.cia-lang-divider {
    color: #cbd5e1;
    margin: 0 4px;
}

/* 2. SOLID BRANDED NAVBAR & HOVER DROPDOWNS */
.cia-navbar-wrap {
    background-color: var(--thm-menu-bg, var(--thm-primary, #f96283)) !important;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0 !important;
    margin: 0 !important;
}

.cia-navbar-wrap .container-fluid {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: stretch !important;
}

.cia-navbar-wrap #nav,
#nav.navbar,
#nav {
    height: 100% !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    border: none !important;
}

.cia-navbar-wrap #mainNav,
#mainNav.navbar-collapse,
#mainNav {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
}

.cia-nav-list,
#nav .navbar-nav.cia-nav-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    align-content: stretch !important;
    justify-content: space-between !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 52px !important;
}

.cia-nav-item,
#nav .navbar-nav > li.cia-nav-item,
#nav .navbar-nav > li {
    position: relative !important;
    display: flex !important;
    align-items: stretch !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
}

.cia-nav-link,
#nav .navbar-nav > li > a.cia-nav-link,
#nav .navbar-nav > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch !important;
    flex-grow: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 52px !important;
    padding: 14px 18px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    white-space: nowrap;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hilangkan border sudut atas-kiri dan bawah-kanan bawaan template */
#nav .navbar-nav > li > a:before,
#nav .navbar-nav > li > a:after,
#nav .navbar-nav > li:hover > a:before,
#nav .navbar-nav > li.active > a:before,
#nav .navbar-nav > li:hover > a:after,
#nav .navbar-nav > li.active > a:after,
.cia-nav-link:before,
.cia-nav-link:after {
    display: none !important;
    content: none !important;
    border: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.cia-nav-caret {
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover state: Abu-abu (#6c6f77) background full tinggi tanpa border */
.cia-nav-item:hover,
#nav .navbar-nav > li.cia-nav-item:hover {
    align-self: stretch !important;
    height: auto !important;
    min-height: 100% !important;
}

.cia-nav-item:hover > .cia-nav-link,
#nav .navbar-nav > li:hover > a.cia-nav-link,
#nav .navbar-nav > li:hover > a {
    background-color: #6c6f77 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    align-self: stretch !important;
    flex-grow: 1 !important;
    height: auto !important;
    min-height: 52px !important;
}

.cia-nav-item:hover > .cia-nav-link .cia-nav-caret {
    color: #ffffff !important;
    transform: rotate(180deg);
}

/* Active state: Background putih (#ffffff) full tinggi dengan teks primary tanpa border */
.cia-nav-item.active,
#nav .navbar-nav > li.cia-nav-item.active {
    align-self: stretch !important;
    height: auto !important;
    min-height: 100% !important;
    background-color: transparent !important;
}

.cia-nav-item.active > .cia-nav-link,
#nav .navbar-nav > li.active > a.cia-nav-link,
#nav .navbar-nav > li.active > a {
    background-color: #ffffff !important;
    color: var(--thm-primary, #f96283) !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: none !important;
    align-self: stretch !important;
    flex-grow: 1 !important;
    height: auto !important;
    min-height: 52px !important;
}

.cia-nav-item.active > .cia-nav-link .cia-nav-caret {
    color: var(--thm-primary, #f96283) !important;
}

/* When Active item is also Hovered: tetap background putih full tinggi & teks primary */
.cia-nav-item.active:hover,
#nav .navbar-nav > li.active:hover {
    align-self: stretch !important;
    height: auto !important;
    min-height: 100% !important;
}

.cia-nav-item.active:hover > .cia-nav-link,
#nav .navbar-nav > li.active:hover > a.cia-nav-link,
#nav .navbar-nav > li.active:hover > a {
    background-color: #ffffff !important;
    color: var(--thm-primary, #f96283) !important;
    border: none !important;
    box-shadow: none !important;
    align-self: stretch !important;
    flex-grow: 1 !important;
    height: auto !important;
    min-height: 52px !important;
}

.cia-nav-item.active:hover > .cia-nav-link .cia-nav-caret {
    color: var(--thm-primary, #f96283) !important;
    transform: rotate(180deg);
}

@media (max-width: 991.98px) {
    .cia-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0;
        min-height: auto;
    }
    .cia-nav-item {
        width: 100%;
        height: auto;
    }
    .cia-nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 12px 18px !important;
    }
}

/* Dropdown Menu Styles */
.cia-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 270px;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 3px solid #6c6f77 !important;
    border-radius: 0 0 var(--thm-radius, 0px) var(--thm-radius, 0px) !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12) !important;
    padding: 6px 0 !important;
    margin-top: 0 !important;
    list-style: none;
    z-index: 1050;
}

@keyframes ciaDropdownFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover reveal on desktop */
@media (min-width: 992px) {
    .cia-nav-item:hover > .cia-dropdown-menu {
        display: block;
    }
}

.cia-dropdown-item {
    display: block !important;
    padding: 10px 22px !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.18s ease !important;
    background: transparent !important;
}

.cia-dropdown-item:hover {
    background-color: rgba(249, 98, 131, 0.08) !important;
    color: var(--thm-primary, #f96283) !important;
    padding-left: 26px !important;
}

.cia-dropdown-item.active {
    background-color: rgba(249, 98, 131, 0.12) !important;
    color: var(--thm-primary, #f96283) !important;
    font-weight: 700 !important;
}

/* 3. FLOATING LANGUAGE SELECTOR ON HERO BANNER */
.cia-hero-floating-lang-box {
    position: absolute;
    top: 25px;
    left: 35px;
    z-index: 30;
}

.cia-lang-inner {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.cia-lang-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    margin-right: 12px;
}

.cia-lang-buttons {
    display: flex;
    gap: 6px;
}

.btn-cia-lang {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-cia-lang:hover {
    color: var(--thm-primary, #f96283);
    border-color: var(--thm-primary, #f96283);
}

.btn-cia-lang.active {
    background-color: var(--thm-primary, #f96283) !important;
    border-color: var(--thm-primary, #f96283) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(249, 98, 131, 0.3);
}

/* 4. ACADEMIC DIVISIONS GATEWAY CARDS */
.sois-divisions-section {
    padding: 20px 0;
}

.sois-division-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sois-division-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

.sois-division-card.featured {
    border-color: #6c6f77;
    box-shadow: 0 6px 20px rgba(108, 111, 119, 0.15);
}

.division-card-header {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.division-card-header.preschool {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    border-top: 4px solid #0284c7;
}

.division-card-header.primary {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-top: 4px solid #6c6f77;
}

.division-card-header.secondary {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 4px solid #1e293b;
}

.division-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    margin-bottom: 6px;
}

.division-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.division-card-body {
    padding: 24px;
    flex: 1 1 auto;
}

.division-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 18px;
}

.division-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.division-features-list li {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.division-features-list li i {
    color: #10b981;
    font-size: 12px;
    margin-right: 8px;
    flex-shrink: 0;
}

.division-card-footer {
    padding: 16px 24px 24px;
}

@media (max-width: 767px) {
    .cia-hero-floating-lang-box {
        position: static;
        padding: 12px 16px;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }
    .cia-lang-inner {
        width: 100%;
        justify-content: space-between;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border: none;
    }
}

