﻿/* =========================================================
   VARIABLES
========================================================= */
:root {
    --navbar-h: 74px;
    --school: #7b3a46;
    --school-dark: #6a3240;
    --muted-bg: #f6f4f5;
}

/* =========================================================
   BASE
========================================================= */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.text-school {
    color: var(--school) !important;
}

.bg-school {
    background: var(--school) !important;
}

.btn-school {
    background: var(--school);
    border-color: var(--school);
    color: #fff;
}

    .btn-school:hover {
        background: var(--school-dark);
        border-color: var(--school-dark);
        color: #fff;
    }

.home-section-muted {
    background: var(--muted-bg);
}

.section-title .title-underline {
    width: 64px;
    height: 3px;
    background: var(--school);
    margin: 0 auto;
    border-radius: 3px;
}

/* =========================================================
   NAVBAR (fixed + transparent on hero + solid on scroll)
========================================================= */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-h);
    z-index: 1050;
    transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}

.fixed-header-spacer {
    height: var(--navbar-h);
}

/* Default solid */
.navbar-school {
    background: var(--school);
}

/* Only transparent on homepage */
.home-page .navbar-school {
    background: transparent;
}

    .navbar-school.is-scrolled {
        background: var(--school);
        box-shadow: 0 12px 30px rgba(0,0,0,.18);
        backdrop-filter: blur(6px);
    }

/* Brand / Logo */
.navbar-logo {
    height: 68px;
    width: auto;
    object-fit: contain;
}

/* Nav links */
.navbar-school .nav-link {
    color: rgba(255,255,255,.92);
    font-weight: 500;
    padding-left: .9rem;
    padding-right: .9rem;
}

    .navbar-school .nav-link:hover,
    .navbar-school .nav-link:focus {
        color: #fff;
    }

/* Language dropdown */
.navbar-school .dropdown-menu {
    border-radius: .75rem;
    border: 0;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.navbar-school .dropdown-item {
    font-weight: 500;
}

    .navbar-school .dropdown-item:hover {
        background: rgba(123,58,70,.08);
    }

/* =========================================================
   HOME HERO (matches your screenshot 1)
========================================================= */
.home-hero {
    position: relative;
    min-height: 640px;
    background: url("/images/surguuli.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Put hero under fixed navbar (so transparent nav overlays) */
    margin-top: calc(-1 * var(--navbar-h));
    padding-top: var(--navbar-h);
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

.home-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
    padding-bottom: 11rem;
}

.home-hero-title {
    color: #fff;
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 18px;
}

.home-hero-sub {
    color: rgba(255,255,255,.88);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 860px;
}

.home-hero-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(123,58,70,.65);
    color: #fff;
    max-width: 760px;
    backdrop-filter: blur(6px);
}

/* =========================================================
   FEATURE CARDS (overlapping hero)
========================================================= */
.home-feature-cards {
    margin-top: -95px; /* overlap like screenshot */
    position: relative;
    z-index: 10;
    padding-bottom: 12px;
}

.feature-card {
    background: #fff;
    border-radius: 14px;
    padding: 34px 28px;
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
    height: 100%;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #f2eef0;
    color: var(--school);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    font-size: 28px;
}

/* =========================================================
   EVENT STRIP
========================================================= */
.home-event-strip {
    padding: 32px 0 0 0;
}

.event-strip {
    background: #efe9ea;
    border-radius: 16px;
    padding: 18px 18px;
}

.event-date {
    width: 110px;
    border-radius: 12px;
    background: var(--school);
    color: #fff;
    text-align: center;
    padding: 10px 8px;
}

.event-date-month {
    font-size: 12px;
    letter-spacing: .12em;
    opacity: .9;
}

.event-date-day {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

/* =========================================================
   ABOUT / MISSION
========================================================= */
.stat-num {
    font-weight: 900;
    font-size: 22px;
    color: var(--school);
}

    .stat-num.soft {
        color: #b89aa1;
    }

.stat-label {
    font-size: 11px;
    letter-spacing: .08em;
    color: #7a7a7a;
    margin-top: 2px;
}

.quote-box {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 16px 16px 16px 26px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.quote-bar {
    position: absolute;
    left: 12px;
    top: 12px;
    bottom: 12px;
    width: 4px;
    background: var(--school);
    border-radius: 999px;
}

.quote-text {
    color: #333;
    font-style: italic;
}

.about-image-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
}

.about-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: #fff;
    border: 2px solid var(--school);
    border-radius: 14px;
    padding: 12px 14px;
    min-width: 160px;
}

.about-badge-num {
    font-size: 22px;
    font-weight: 900;
    color: var(--school);
    line-height: 1;
}

.about-badge-text {
    font-size: 11px;
    letter-spacing: .08em;
    color: #444;
    margin-top: 4px;
}

/* =========================================================
   PROGRAMS
========================================================= */
.program-card-large {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    position: relative;
}

.program-pill {
    position: absolute;
    left: 18px;
    top: 18px;
    font-size: 12px;
    background: #fff;
    border: 1px solid #e8dfe2;
    border-radius: 999px;
    padding: 6px 10px;
}

.program-mini {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
}

    .program-mini:hover {
        border-color: #e3d6da;
        box-shadow: 0 10px 24px rgba(0,0,0,.06);
    }

    .program-mini img {
        width: 155px;
        height: 155px;
        border-radius: 12px;
        object-fit: cover;
    }

.mini-arrow {
    color: var(--school);
    font-weight: 900;
    font-size: 22px;
}

/* =========================================================
   STUDENTS LIFE
========================================================= */
.student-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}

.student-main {
    grid-row: 1 / span 2;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

    .student-main img,
    .student-small img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.student-small {
    border-radius: 18px;
    overflow: hidden;
    height: 190px;
}

.student-chip {
    position: absolute;
    right: 14px;
    top: 14px;
    background: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
    font-weight: 700;
    color: var(--school);
}

.life-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 16px;
}

/* =========================================================
   NEWS
========================================================= */
.news-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 14px;
}

/* =========================================================
   EVENTS CARDS
========================================================= */
.event-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    border: 1px solid #eee;
}

.event-card-date {
    width: 120px;
    background: var(--school);
    color: #fff;
    text-align: center;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date-year {
    font-size: 12px;
    opacity: .9;
    margin-top: 2px;
}

.event-card-body {
    padding: 16px 18px;
    flex: 1;
}

/* =========================================================
   CMS PAGE CONTENT HTML
========================================================= */
.page-content img {
    max-width: 100%;
    height: auto;
}

.page-content p {
    line-height: 1.8;
    font-size: 1.05rem;
}

.page-content h2, .page-content h3 {
    margin-top: 1.5rem;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 991px) {
    .home-hero-content {
        padding-top: 4.5rem;
        padding-bottom: 12rem;
    }

    .home-feature-cards {
        margin-top: -45px;
    }

    .student-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .student-small {
        height: 180px;
    }

    .event-card {
        flex-direction: column;
    }

    .event-card-date {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 36px;
    }

    .home-hero-pill {
        border-radius: 1rem;
    }
}
/* =========================================================
   FOOTER
========================================================= */
.site-footer {
    background: #0f0f12;
    color: #fff;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .2px;
}

.footer-title {
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .85rem;
}

.footer-links li {
    margin-bottom: .55rem;
}

.footer-links a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-weight: 500;
}

    .footer-links a:hover {
        color: #fff;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.footer-contact {
    color: rgba(255,255,255,.7);
}

    .footer-contact i {
        color: rgba(255,255,255,.55);
        margin-top: 2px;
    }

.footer-newsletter input {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
}

    .footer-newsletter input::placeholder {
        color: rgba(255,255,255,.45);
    }

    .footer-newsletter input:focus {
        background: rgba(255,255,255,.08);
        border-color: rgba(255,255,255,.22);
        color: #fff;
        box-shadow: none;
    }

.footer-hr {
    border-color: rgba(255,255,255,.12);
}

.footer-social a {
    color: rgba(255,255,255,.6);
    font-size: 1.1rem;
    text-decoration: none;
}

    .footer-social a:hover {
        color: #fff;
    }


/* =========================================================
   CMS RICH CONTENT STYLES (for Page.ContentHtml)
========================================================= */
.page-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #222;
}

    /* Headings */
    .page-content h1, .page-content h2, .page-content h3, .page-content h4 {
        font-weight: 800;
        line-height: 1.2;
        margin-top: 1.8rem;
        margin-bottom: .8rem;
    }

    .page-content h2 {
        font-size: 1.7rem;
    }

    .page-content h3 {
        font-size: 1.35rem;
    }

    .page-content h4 {
        font-size: 1.15rem;
    }

    /* Paragraph + links */
    .page-content p {
        margin-bottom: 1rem;
    }

    .page-content a {
        color: var(--school);
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

        .page-content a:hover {
            color: var(--school-dark);
        }

    /* Images */
    .page-content img {
        max-width: 100%;
        height: auto;
        border-radius: 14px;
        box-shadow: 0 12px 28px rgba(0,0,0,.08);
        margin: 1rem 0;
    }

    /* Lists */
    .page-content ul, .page-content ol {
        padding-left: 1.3rem;
        margin-bottom: 1rem;
    }

    .page-content li {
        margin-bottom: .45rem;
    }

    /* Blockquote */
    .page-content blockquote {
        margin: 1.4rem 0;
        padding: 1rem 1.1rem;
        border-left: 4px solid var(--school);
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 10px 24px rgba(0,0,0,.06);
        color: #333;
    }

    /* Horizontal rule */
    .page-content hr {
        border-top: 1px solid rgba(0,0,0,.1);
        margin: 1.6rem 0;
    }

    /* Tables */
    .page-content table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        margin: 1.25rem 0;
        border: 1px solid rgba(0,0,0,.1);
        border-radius: 14px;
        overflow: hidden;
    }

    .page-content th, .page-content td {
        padding: .85rem .9rem;
        border-bottom: 1px solid rgba(0,0,0,.08);
        vertical-align: top;
    }

    .page-content th {
        background: rgba(123,58,70,.08);
        font-weight: 800;
    }

    .page-content tr:last-child td {
        border-bottom: 0;
    }

    /* Code */
    .page-content code {
        background: rgba(0,0,0,.06);
        padding: .1rem .35rem;
        border-radius: .35rem;
    }

    .page-content pre {
        background: #0f0f12;
        color: #fff;
        padding: 1rem;
        border-radius: 14px;
        overflow: auto;
    }

    /* Buttons inside HTML (optional helper classes) */
    .page-content .btn {
        border-radius: 999px;
        font-weight: 700;
    }

    .page-content .btn-school {
        background: var(--school);
        border-color: var(--school);
        color: #fff;
    }

        .page-content .btn-school:hover {
            background: var(--school-dark);
            border-color: var(--school-dark);
        }

    /* Callout boxes (you can use these in CMS HTML) */
    .page-content .callout {
        border-radius: 16px;
        padding: 16px 18px;
        background: #fff;
        box-shadow: 0 12px 28px rgba(0,0,0,.07);
        border: 1px solid rgba(0,0,0,.06);
        margin: 1.25rem 0;
    }

    .page-content .callout--info {
        border-left: 4px solid #0d6efd;
    }

    .page-content .callout--success {
        border-left: 4px solid #198754;
    }

    .page-content .callout--warning {
        border-left: 4px solid #ffc107;
    }

    .page-content .callout--danger {
        border-left: 4px solid #dc3545;
    }

    /* Spacing helpers for CMS */
    .page-content .mb-0 {
        margin-bottom: 0 !important;
    }

    .page-content .mt-0 {
        margin-top: 0 !important;
    }

/* =========================================================
   ORG CHART (Bootstrap friendly, uses --school maroon)
========================================================= */
.orgchart-bs {
    --line: var(--school);
    --box-bg: #e7c36c; /* gold like your picture */
    --box-border: rgba(123,59,71,.55); /* maroon-tinted border */
    --text: #2b2b2b;
    position: relative;
    padding: 14px 0 6px;
    color: var(--text);
}

/* Box */
.org-box {
    background: var(--box-bg);
    border: 2px solid var(--box-border);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    text-align: center;
    min-width: 220px;
    max-width: 320px;
    box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

/* vertical line between CEO -> next sections */
.org-vline {
    position: relative;
}

    .org-vline::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 100%;
        width: 2px;
        height: 18px;
        background: var(--line);
        transform: translateX(-50%);
    }

/* Branch container: has vertical line down from CEO + horizontal line */
.org-branch-bs {
    position: relative;
    padding-top: 30px; /* room for horizontal line */
}

    /* vertical line down from CEO to the branch bar */
    .org-branch-bs::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        width: 2px;
        height: 30px;
        background: var(--line);
        transform: translateX(-50%);
    }

/* horizontal line connecting columns (only on lg+) */
.org-branch-hline {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 30px;
    height: 2px;
    background: var(--line);
    opacity: .95;
}

/* Each column: line from horizontal bar down to title */
.org-col {
    position: relative;
    padding-top: 18px;
}

    .org-col::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        width: 2px;
        height: 18px;
        background: var(--line);
        transform: translateX(-50%);
    }

/* Column title like your red labels */
.org-col-title {
    text-align: center;
    font-weight: 800;
    color: var(--school);
    margin-bottom: 12px;
}

/* Stack with vertical connectors between items */
.org-stack {
    display: grid;
    gap: 12px;
    justify-items: center;
}

    .org-stack .org-box {
        position: relative;
        min-width: 240px;
    }

        .org-stack .org-box:not(:last-child)::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 100%;
            width: 2px;
            height: 12px;
            background: var(--line);
            transform: translateX(-50%);
        }

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .org-box {
        min-width: 100%;
        max-width: 100%;
    }

    .org-stack .org-box {
        min-width: 100%;
    }

    .org-branch-hline {
        display: none;
    }
    /* hide horizontal line when stacked */
    .org-col::before {
        display: none;
    }
    /* hide column lines when stacked */
}
.page-simple-hero {
    background: #f3f3f3;
    padding-top: calc(var(--navbar-h) + 60px);
    padding-bottom: 50px;
}

.page-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 15px;
}

.page-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: #6c757d;
    font-size: 15px;
    line-height: 1.7;
}

.page-breadcrumb-strip {
    background: #e9e9e9;
    padding: 14px 0;
}

    .page-breadcrumb-strip .breadcrumb-item a {
        color: var(--school);
        text-decoration: none;
        font-weight: 600;
    }

    .page-breadcrumb-strip .breadcrumb-item.active {
        color: #444;
    }

/* =========================================================
   CAMBRIDGE PROGRAM PAGE
========================================================= */
.cam-nav-wrap {
    position: sticky;
    top: var(--navbar-h);
    z-index: 40;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.cam-nav {
    gap: 10px;
    padding: 10px 0;
}

    .cam-nav .nav-link {
        border-radius: 999px;
        font-weight: 700;
        white-space: nowrap;
        color: #333;
        background: rgba(123,59,71,.08);
    }

        .cam-nav .nav-link.active {
            background: var(--school);
            color: #fff;
        }

.cam-content {
    max-width: 1100px;
}

.cam-section {
    padding: 42px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

    .cam-section:last-child {
        border-bottom: 0;
    }

.cam-kicker {
    font-size: 12px;
    letter-spacing: .18em;
    font-weight: 900;
    color: var(--school);
    margin-bottom: 10px;
}

.cam-title {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 900;
    color: #222;
    margin-bottom: 12px;
}

.cam-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.9;
}

.cam-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 14px 14px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.cam-img img {
    box-shadow: 0 18px 40px rgba(0,0,0,.10);
}

.cam-cta {
    background: rgba(123,59,71,.06);
    border: 1px solid rgba(123,59,71,.14);
    border-radius: 16px;
    padding: 16px;
    margin-top: 16px;
}

/* Cambridge long text readability */
.cam-prose p {
    line-height: 1.9;
    font-size: 16px;
    color: #444;
}

.cam-side-card {
    background: rgba(123,59,71,.06);
    border: 1px solid rgba(123,59,71,.14);
    border-radius: 16px;
    padding: 16px;
}

.cam-side-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.9;
}