/* =====================================================================
   Central Public School — Professional Upgrade Stylesheet
   Loaded after css/style.css and css/main.css. Builds a cohesive,
   modern design system across every page on the navy / gold / red brand.
   ===================================================================== */

:root {
    --cps-navy: #061d49;
    --cps-navy-2: #0a2a63;
    --cps-blue: #123b7a;
    --cps-red: #d71920;
    --cps-red-dark: #b3141a;
    --cps-gold: #f4bd19;
    --cps-gold-soft: #fff4d2;
    --cps-ink: #172033;
    --cps-muted: #5b6678;
    --cps-soft: #f4f7fb;
    --cps-soft-2: #eef3fa;
    --cps-line: #dce4ef;
    --cps-white: #ffffff;
    --cps-shadow-sm: 0 6px 18px rgba(6, 29, 73, .08);
    --cps-shadow-md: 0 14px 40px rgba(6, 29, 73, .10);
    --cps-shadow-lg: 0 26px 60px rgba(6, 29, 73, .16);
    --cps-radius: 14px;
    --cps-radius-sm: 10px;
    --cps-font-head: 'Poppins', 'Segoe UI', 'Open Sans', sans-serif;
    --cps-font-body: 'Inter', 'Segoe UI', 'Open Sans', sans-serif;
    --cps-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base / typography refinements ---------- */
body {
    font-family: var(--cps-font-body);
    color: var(--cps-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.cps-modern-home,
.cps-modern-page {
    overflow-x: clip;
}

.cps-modern-home h1, .cps-modern-home h2, .cps-modern-home h3, .cps-modern-home h4,
.cps-modern-page h1, .cps-modern-page h2, .cps-modern-page h3, .cps-modern-page h4 {
    font-family: var(--cps-font-head);
    color: var(--cps-navy);
    letter-spacing: -0.01em;
    font-weight: 700;
}

.cps-modern-home p, .cps-modern-page p {
    font-family: var(--cps-font-body);
    color: var(--cps-muted);
    line-height: 1.75;
}

/* Keep the strong brand display face only on the big hero title + logo */
.cps-hero h1 { font-family: font3, var(--cps-font-head); }

a { transition: color .2s var(--cps-ease); }

/* Skip link for accessibility */
.cps-skip {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 2000;
    background: var(--cps-navy);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 8px 0;
    font-family: var(--cps-font-head);
}
.cps-skip:focus { left: 0; color: #fff; }

/* =====================================================================
   HEADER / NAVBAR refinements
   ===================================================================== */
.topbar {
    background: linear-gradient(90deg, var(--cps-navy) 0%, var(--cps-blue) 100%) !important;
    padding: 7px 0;
}
.topbar a, .topbar .info .info-item { color: #fff !important; font-family: var(--cps-font-body); font-size: 13.5px; }
.topbar a:hover { color: var(--cps-gold) !important; }
.topbar .info .info-item i { color: var(--cps-gold); margin-right: 6px; }

.topbar .sosmed-icon span,
.footer .sosmed-icon span {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff; cursor: pointer;
    transition: background .25s var(--cps-ease), transform .25s var(--cps-ease);
}
.topbar .sosmed-icon a, .footer .sosmed-icon a { line-height: 0; }
.topbar .sosmed-icon span:hover,
.footer .sosmed-icon span:hover { background: var(--cps-gold); color: var(--cps-navy); transform: translateY(-2px); }

.navbar-main {
    background: #fff;
    box-shadow: 0 4px 18px rgba(6,29,73,.06);
    transition: box-shadow .3s var(--cps-ease), padding .3s var(--cps-ease);
}
.navbar-main.stiky {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(6,29,73,.14);
    animation: cpsSlideDown .4s var(--cps-ease);
}
@keyframes cpsSlideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.navbar-brand h1 { font-family: var(--cps-font-head); font-weight: 700; letter-spacing: -.01em; }

.header-1 .navbar-main .nav-link {
    font-family: var(--cps-font-head);
    font-weight: 500;
    font-size: 14px;
    color: var(--cps-ink);
    border-radius: 8px;
    position: relative;
    padding: 9px 12px !important;
}
.header-1 .navbar-main .nav-link:hover,
.header-1 .navbar-main .nav-link:focus { background: var(--cps-soft); color: var(--cps-navy); }
.header-1 .navbar-main .active > .nav-link { background: var(--cps-navy); color: #fff; }

/* Admissions CTA pill in the nav */
.cps-nav-cta > .nav-link,
.cps-nav-cta > .nav-link:hover {
    background: var(--cps-red) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(215,25,32,.28);
}
.cps-nav-cta > .nav-link:hover { background: var(--cps-red-dark) !important; transform: translateY(-1px); }

.dropdown-menu {
    border: 0; border-top: 3px solid var(--cps-gold);
    box-shadow: var(--cps-shadow-md); border-radius: 10px; padding: 8px;
}
.dropdown-item { border-radius: 7px; font-family: var(--cps-font-body); font-size: 13.5px; padding: 9px 12px; }
.dropdown-item:hover { background: var(--cps-soft); color: var(--cps-navy); }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.cps-btn {
    font-family: var(--cps-font-head);
    font-weight: 600;
    letter-spacing: .01em;
    border: 0; cursor: pointer;
}
.cps-btn--ghost {
    background: transparent;
    border: 2px solid rgba(255,255,255,.6);
    color: #fff;
}
.cps-btn--ghost:hover { background: #fff; color: var(--cps-navy); border-color: #fff; }
.cps-btn--navy { background: var(--cps-navy); color: #fff; }
.cps-btn--navy:hover { background: var(--cps-navy-2); color: #fff; }
.cps-btn--gold { background: var(--cps-gold); color: var(--cps-navy); }
.cps-btn--gold:hover { background: #ffcb33; color: var(--cps-navy); }
.cps-btn--sm { min-height: 40px; padding: 9px 16px; font-size: 13px; }

/* =====================================================================
   PAGE HERO (inner pages) + breadcrumb
   ===================================================================== */
.cps-page-hero {
    position: relative;
    padding: 96px 0 76px;
    background: linear-gradient(135deg, var(--cps-navy) 0%, var(--cps-blue) 100%);
    overflow: hidden;
    text-align: center;
}
.cps-page-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image: var(--cps-hero-img, none);
    background-size: cover; background-position: center;
    opacity: .18;
}
.cps-page-hero::after {
    content: "";
    position: absolute; right: -120px; top: -120px;
    width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(244,189,25,.22), transparent 70%);
}
.cps-page-hero__inner { position: relative; z-index: 2; }
.cps-page-hero h1 {
    color: #fff !important;
    font-size: 46px; line-height: 1.1; margin: 0 0 14px;
    text-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.cps-crumb {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    padding: 9px 18px; border-radius: 100px;
    font-family: var(--cps-font-head); font-size: 13.5px;
}
.cps-crumb a { color: var(--cps-gold); }
.cps-crumb a:hover { color: #fff; }
.cps-crumb span { color: rgba(255,255,255,.85); }
.cps-crumb i { color: rgba(255,255,255,.5); font-size: 11px; }

/* =====================================================================
   SECTION SCAFFOLD
   ===================================================================== */
.cps-sec { padding: 84px 0; }
.cps-sec--tight { padding: 60px 0; }
.cps-sec--soft { background: var(--cps-soft); }
.cps-sec--navy { background: linear-gradient(135deg, var(--cps-navy), var(--cps-blue)); }

.cps-sec-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.cps-sec-head.is-left { margin-left: 0; text-align: left; }
.cps-eyebrow {
    display: inline-block;
    color: var(--cps-red);
    font-family: var(--cps-font-head); font-weight: 600;
    text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px;
    margin-bottom: 12px;
}
.cps-sec-head h2 { font-size: 38px; line-height: 1.18; margin: 0; }
.cps-sec-head p { margin: 14px auto 0; max-width: 620px; font-size: 16px; }
.cps-sec--navy .cps-sec-head h2, .cps-sec--navy .cps-sec-head p { color: #fff; }
.cps-sec--navy .cps-eyebrow { color: var(--cps-gold); }
.cps-divider { width: 64px; height: 4px; border-radius: 4px; background: var(--cps-gold); margin: 16px auto 0; }
.is-left .cps-divider { margin-left: 0; }

/* =====================================================================
   ABOUT — intro / values / vision-mission / principal
   ===================================================================== */
.cps-intro__img {
    position: relative; border-radius: var(--cps-radius); overflow: hidden;
    box-shadow: var(--cps-shadow-lg);
}
.cps-intro__img img { width: 100%; display: block; }
.cps-intro__badge {
    position: absolute; left: 22px; bottom: 22px;
    background: var(--cps-gold); color: var(--cps-navy);
    padding: 14px 20px; border-radius: 12px;
    font-family: var(--cps-font-head); box-shadow: var(--cps-shadow-md);
}
.cps-intro__badge strong { display: block; font-size: 30px; line-height: 1; }
.cps-intro__badge span { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.cps-intro__copy h2 { font-size: 34px; margin: 0 0 16px; }
.cps-intro__copy p { font-size: 16px; }
.cps-checklist { list-style: none; margin: 18px 0 26px; padding: 0; }
.cps-checklist li {
    display: flex; gap: 12px; align-items: flex-start;
    margin-bottom: 12px; color: var(--cps-ink); font-family: var(--cps-font-body); font-weight: 500;
}
.cps-checklist i {
    flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
    background: var(--cps-gold-soft); color: var(--cps-red);
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 2px;
}

.cps-values-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.cps-value-card {
    background: #fff; border: 1px solid var(--cps-line);
    border-radius: var(--cps-radius); padding: 32px 26px; text-align: center;
    box-shadow: var(--cps-shadow-sm);
    transition: transform .3s var(--cps-ease), box-shadow .3s var(--cps-ease), border-color .3s var(--cps-ease);
}
.cps-value-card:hover { transform: translateY(-6px); box-shadow: var(--cps-shadow-md); border-color: var(--cps-gold); }
.cps-value-card__icon {
    width: 70px; height: 70px; border-radius: 20px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--cps-navy), var(--cps-blue));
    color: var(--cps-gold); font-size: 28px;
    box-shadow: var(--cps-shadow-sm);
}
.cps-value-card h3 { font-size: 19px; margin: 0 0 10px; }
.cps-value-card p { font-size: 14.5px; margin: 0; line-height: 1.7; }

.cps-vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cps-vm-card {
    position: relative; border-radius: var(--cps-radius); padding: 40px 36px; overflow: hidden;
    color: #fff; box-shadow: var(--cps-shadow-md);
}
.cps-vm-card--vision { background: linear-gradient(135deg, var(--cps-navy), var(--cps-blue)); }
.cps-vm-card--mission { background: linear-gradient(135deg, #2a1608, var(--cps-red)); }
.cps-vm-card__icon { font-size: 34px; color: var(--cps-gold); margin-bottom: 16px; display: block; }
.cps-vm-card h3 { color: #fff !important; font-size: 24px; margin: 0 0 12px; }
.cps-vm-card p { color: rgba(255,255,255,.9) !important; margin: 0; }
.cps-vm-card::after {
    content: ""; position: absolute; right: -40px; bottom: -40px;
    width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.06);
}

.cps-principal {
    display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center;
}
.cps-principal__photo {
    border-radius: var(--cps-radius); overflow: hidden; box-shadow: var(--cps-shadow-lg);
    border: 6px solid #fff; background: var(--cps-soft);
}
.cps-principal__photo img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; }
.cps-principal__quote-mark { font-size: 56px; color: var(--cps-gold); line-height: .6; font-family: Georgia, serif; }
.cps-principal blockquote {
    border: 0; padding: 0; margin: 12px 0 20px; background: none;
    font-size: 19px; line-height: 1.75; color: var(--cps-ink); font-style: italic;
}
.cps-principal cite { font-style: normal; }
.cps-principal cite strong { display: block; font-family: var(--cps-font-head); color: var(--cps-navy); font-size: 18px; }
.cps-principal cite span { color: var(--cps-red); font-weight: 600; font-size: 14px; }

/* =====================================================================
   ADMISSIONS
   ===================================================================== */
.cps-admit-banner {
    position: relative; overflow: hidden;
    border-radius: var(--cps-radius); padding: 46px 48px;
    background: linear-gradient(120deg, var(--cps-red) 0%, var(--cps-red-dark) 100%);
    color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
    box-shadow: var(--cps-shadow-lg);
}
.cps-admit-banner::before {
    content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
    border-radius: 50%; background: rgba(255,255,255,.10);
}
.cps-admit-banner__txt { position: relative; z-index: 2; }
.cps-pulse-tag {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,.16); border-radius: 100px; padding: 6px 15px;
    font-family: var(--cps-font-head); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px;
}
.cps-pulse-tag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cps-gold); box-shadow: 0 0 0 0 rgba(244,189,25,.7); animation: cpsPulse 1.8s infinite; }
@keyframes cpsPulse { 0%{box-shadow:0 0 0 0 rgba(244,189,25,.7);} 70%{box-shadow:0 0 0 12px rgba(244,189,25,0);} 100%{box-shadow:0 0 0 0 rgba(244,189,25,0);} }
.cps-admit-banner h2 { color: #fff !important; font-size: 32px; margin: 0 0 6px; }
.cps-admit-banner p { color: rgba(255,255,255,.92) !important; margin: 0; }

.cps-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.cps-step {
    position: relative; background: #fff; border: 1px solid var(--cps-line);
    border-radius: var(--cps-radius); padding: 34px 24px 28px; text-align: center;
    box-shadow: var(--cps-shadow-sm); transition: transform .3s var(--cps-ease), box-shadow .3s var(--cps-ease);
}
.cps-step:hover { transform: translateY(-6px); box-shadow: var(--cps-shadow-md); }
.cps-step__num {
    counter-increment: step; width: 52px; height: 52px; margin: 0 auto 16px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--cps-navy); color: var(--cps-gold);
    font-family: var(--cps-font-head); font-weight: 700; font-size: 20px;
}
.cps-step__num::before { content: counter(step, decimal-leading-zero); }
.cps-step h3 { font-size: 17px; margin: 0 0 8px; }
.cps-step p { font-size: 13.5px; margin: 0; }

/* =====================================================================
   NEWS / ANNOUNCEMENTS
   ===================================================================== */
.cps-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cps-news-card {
    display: flex; gap: 18px; background: #fff; border: 1px solid var(--cps-line);
    border-radius: var(--cps-radius); padding: 22px; box-shadow: var(--cps-shadow-sm);
    transition: transform .3s var(--cps-ease), box-shadow .3s var(--cps-ease);
}
.cps-news-card:hover { transform: translateY(-5px); box-shadow: var(--cps-shadow-md); }
.cps-news-date {
    flex: 0 0 auto; width: 64px; height: 64px; border-radius: 14px;
    background: linear-gradient(135deg, var(--cps-navy), var(--cps-blue)); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.cps-news-date strong { font-family: var(--cps-font-head); font-size: 22px; }
.cps-news-date span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; opacity: .85; }
.cps-news-card .tag {
    display: inline-block; font-family: var(--cps-font-head); font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em; color: var(--cps-red); margin-bottom: 6px;
}
.cps-news-card h3 { font-size: 16.5px; margin: 0 0 6px; line-height: 1.4; }
.cps-news-card p { font-size: 13.5px; margin: 0; }

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.cps-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cps-testi-card {
    background: #fff; border-radius: var(--cps-radius); padding: 32px 28px;
    box-shadow: var(--cps-shadow-sm); border: 1px solid var(--cps-line); position: relative;
}
.cps-testi-card__stars { color: var(--cps-gold); font-size: 15px; margin-bottom: 14px; letter-spacing: 2px; }
.cps-testi-card p { font-size: 15px; line-height: 1.75; color: var(--cps-ink); margin: 0 0 22px; }
.cps-testi-person { display: flex; align-items: center; gap: 14px; }
.cps-testi-person .avatar {
    width: 50px; height: 50px; border-radius: 50%; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--cps-gold), #ffcb33); color: var(--cps-navy);
    font-family: var(--cps-font-head); font-weight: 700; font-size: 18px;
}
.cps-testi-person strong { display: block; font-family: var(--cps-font-head); color: var(--cps-navy); font-size: 15px; }
.cps-testi-person span { font-size: 13px; color: var(--cps-muted); }
.cps-quote-bg { position: absolute; top: 18px; right: 24px; font-size: 60px; color: var(--cps-soft-2); font-family: Georgia, serif; line-height: 1; }

/* =====================================================================
   PROGRAMS / ACTIVITY CARDS
   ===================================================================== */
.cps-activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cps-activity-card {
    background: #fff; border: 1px solid var(--cps-line); border-radius: var(--cps-radius);
    overflow: hidden; box-shadow: var(--cps-shadow-sm);
    transition: transform .3s var(--cps-ease), box-shadow .3s var(--cps-ease);
    display: flex; flex-direction: column;
}
.cps-activity-card:hover { transform: translateY(-6px); box-shadow: var(--cps-shadow-md); }
.cps-activity-card__media { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.cps-activity-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--cps-ease); }
.cps-activity-card:hover .cps-activity-card__media img { transform: scale(1.06); }
.cps-activity-card__media .badge-tag {
    position: absolute; left: 14px; top: 14px;
    background: var(--cps-gold); color: var(--cps-navy);
    font-family: var(--cps-font-head); font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; padding: 5px 12px; border-radius: 100px;
}
.cps-activity-card__body { padding: 24px; flex: 1 1 auto; }
.cps-activity-card__body h3 { font-size: 19px; margin: 0 0 10px; }
.cps-activity-card__body p { font-size: 14px; margin: 0; line-height: 1.7; }

/* =====================================================================
   ACADEMICS — stream tables
   ===================================================================== */
.cps-stream-card {
    background: #fff; border: 1px solid var(--cps-line); border-radius: var(--cps-radius);
    overflow: hidden; box-shadow: var(--cps-shadow-sm); margin-bottom: 28px;
}
.cps-stream-card__head {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, var(--cps-navy), var(--cps-blue)); color: #fff;
    padding: 18px 26px;
}
.cps-stream-card__head i { color: var(--cps-gold); font-size: 22px; }
.cps-stream-card__head h3 { color: #fff !important; margin: 0; font-size: 20px; }
.cps-subjects { display: flex; flex-wrap: wrap; gap: 12px; padding: 26px; }
.cps-subjects .subj {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--cps-soft); border: 1px solid var(--cps-line); border-radius: 100px;
    padding: 9px 16px; font-family: var(--cps-font-body); font-weight: 500; font-size: 14px; color: var(--cps-ink);
}
.cps-subjects .subj i { color: var(--cps-red); font-size: 12px; }
.cps-subjects .subj .code { color: var(--cps-muted); font-size: 12px; font-weight: 400; }

.cps-info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cps-info-card {
    background: #fff; border: 1px solid var(--cps-line); border-left: 4px solid var(--cps-gold);
    border-radius: var(--cps-radius-sm); padding: 26px; box-shadow: var(--cps-shadow-sm);
}
.cps-info-card i { color: var(--cps-navy); font-size: 26px; margin-bottom: 12px; display: block; }
.cps-info-card h3 { font-size: 18px; margin: 0 0 8px; }
.cps-info-card p { font-size: 14px; margin: 0; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.cps-contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.cps-contact-cards { display: grid; gap: 18px; }
.cps-contact-card {
    display: flex; gap: 16px; align-items: flex-start;
    background: #fff; border: 1px solid var(--cps-line); border-radius: var(--cps-radius);
    padding: 22px 24px; box-shadow: var(--cps-shadow-sm);
}
.cps-contact-card__icon {
    flex: 0 0 auto; width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--cps-gold-soft); color: var(--cps-red); font-size: 20px;
}
.cps-contact-card h3 { font-size: 16px; margin: 0 0 4px; }
.cps-contact-card p, .cps-contact-card a { font-size: 14px; margin: 0; color: var(--cps-muted); }
.cps-contact-card a:hover { color: var(--cps-red); }

.cps-form-panel {
    background: #fff; border: 1px solid var(--cps-line); border-radius: var(--cps-radius);
    padding: 36px; box-shadow: var(--cps-shadow-md);
}
.cps-form-panel h3 { font-size: 24px; margin: 0 0 6px; }
.cps-form-panel > p { margin: 0 0 22px; font-size: 14.5px; }
.cps-form-panel .form-control {
    border: 1.5px solid var(--cps-line); border-radius: 10px; padding: 13px 16px;
    font-family: var(--cps-font-body); font-size: 14.5px; box-shadow: none;
    transition: border-color .2s var(--cps-ease), box-shadow .2s var(--cps-ease);
}
.cps-form-panel .form-control:focus { border-color: var(--cps-navy); box-shadow: 0 0 0 4px rgba(6,29,73,.08); }
.cps-form-panel label { font-family: var(--cps-font-head); font-size: 13px; font-weight: 600; color: var(--cps-ink); margin-bottom: 6px; display: block; }
.cps-form-panel .form-group { margin-bottom: 18px; }
.cps-alert { border-radius: 10px; padding: 13px 18px; font-size: 14px; margin-bottom: 18px; font-family: var(--cps-font-body); }
.cps-alert--ok { background: #e8f7ee; color: #1c7a43; border: 1px solid #b8e6c9; }
.cps-alert--err { background: #fdecec; color: #b3141a; border: 1px solid #f4c2c4; }

.cps-map { border-radius: var(--cps-radius); overflow: hidden; box-shadow: var(--cps-shadow-md); border: 1px solid var(--cps-line); line-height: 0; }
.cps-map iframe { width: 100%; height: 440px; border: 0; display: block; }

/* =====================================================================
   DOCUMENT / DISCLOSURE DOWNLOAD CARDS
   ===================================================================== */
.cps-doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cps-doc-card {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid var(--cps-line); border-radius: var(--cps-radius-sm);
    padding: 18px 20px; box-shadow: var(--cps-shadow-sm); color: var(--cps-ink);
    transition: transform .25s var(--cps-ease), box-shadow .25s var(--cps-ease), border-color .25s var(--cps-ease);
}
.cps-doc-card:hover { transform: translateY(-4px); box-shadow: var(--cps-shadow-md); border-color: var(--cps-gold); color: var(--cps-ink); }
.cps-doc-card__icon {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--cps-gold-soft); color: var(--cps-red); font-size: 20px;
}
.cps-doc-card__txt { flex: 1 1 auto; }
.cps-doc-card__txt strong { display: block; font-family: var(--cps-font-head); font-size: 14px; line-height: 1.4; color: var(--cps-navy); }
.cps-doc-card__txt span { font-size: 12px; color: var(--cps-muted); }
.cps-doc-card__go { flex: 0 0 auto; color: var(--cps-navy); opacity: .4; transition: opacity .25s, transform .25s; }
.cps-doc-card:hover .cps-doc-card__go { opacity: 1; transform: translateX(3px); }

/* =====================================================================
   PROSE (privacy / generic content)
   ===================================================================== */
.cps-prose { max-width: 880px; }
.cps-prose h2 { font-size: 32px; margin: 0 0 8px; }
.cps-prose h4 { font-family: var(--cps-font-head); color: var(--cps-navy); font-size: 19px; margin: 30px 0 10px; }
.cps-prose p, .cps-prose li { font-size: 15.5px; line-height: 1.8; color: var(--cps-muted); }
.cps-prose ul { padding-left: 20px; margin-bottom: 16px; }
.cps-prose li { margin-bottom: 8px; }
.cps-prose a { color: var(--cps-red); }
.cps-prose__meta {
    display: inline-block; background: var(--cps-soft); border: 1px solid var(--cps-line);
    border-radius: 100px; padding: 8px 18px; font-size: 13px; color: var(--cps-muted); margin-bottom: 18px;
}

/* =====================================================================
   FOOTER refinements
   ===================================================================== */
.footer { border-top: 4px solid var(--cps-gold) !important; background: var(--cps-navy); }
.footer .content-wrap { background: linear-gradient(180deg, var(--cps-navy), #04153a); }
.footer, .footer p, .footer .footer-item .list li a { color: rgba(255,255,255,.78) !important; }
.footer p { font-family: var(--cps-font-body); }
.footer .footer-title { color: #fff !important; font-family: var(--cps-font-head); font-weight: 600; font-size: 17px; position: relative; padding-bottom: 12px; margin-bottom: 18px; }
.footer .footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; background: var(--cps-gold); border-radius: 3px; }
.footer .footer-item .list li { margin-bottom: 9px; }
.footer .footer-item .list li a { font-family: var(--cps-font-body); font-size: 14px; transition: color .2s, padding-left .2s; }
.footer .footer-item .list li a:hover { color: var(--cps-gold) !important; padding-left: 5px; }
.footer .logo-bottom { background: #fff; padding: 8px 12px; border-radius: 12px; }
.footer .fcopy { background: #04153a !important; border-top: 1px solid rgba(255,255,255,.08) !important; }
.footer .fcopy .ftex { color: rgba(255,255,255,.72) !important; margin: 0; font-size: 13.5px; }
.cps-foot-contact { list-style: none; padding: 0; margin: 0; }
.cps-foot-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 14px; color: rgba(255,255,255,.78); }
.cps-foot-contact li i { color: var(--cps-gold); margin-top: 3px; flex: 0 0 auto; }
.cps-foot-contact li a { color: rgba(255,255,255,.78); }
.cps-foot-contact li a:hover { color: var(--cps-gold); }

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.cps-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--cps-ease), transform .7s var(--cps-ease); will-change: opacity, transform; }
.cps-reveal.is-in { opacity: 1; transform: none; }
.cps-reveal[data-delay="1"] { transition-delay: .08s; }
.cps-reveal[data-delay="2"] { transition-delay: .16s; }
.cps-reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    .cps-reveal { opacity: 1 !important; transform: none !important; }
    .cps-pulse-tag .dot { animation: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 991px) {
    .cps-values-grid, .cps-steps { grid-template-columns: repeat(2, 1fr); }
    .cps-news-grid, .cps-testi-grid, .cps-activity-grid, .cps-doc-grid, .cps-info-cards { grid-template-columns: repeat(2, 1fr); }
    .cps-vm-grid { grid-template-columns: 1fr; }
    .cps-principal { grid-template-columns: 1fr; text-align: center; }
    .cps-principal__photo { max-width: 280px; margin: 0 auto; }
    .cps-contact-grid { grid-template-columns: 1fr; }
    .cps-sec-head h2 { font-size: 30px; }
    .cps-page-hero h1 { font-size: 36px; }

    /* Mobile nav polish */
    .header-1 .navbar-main .navbar-collapse {
        background: #fff; border-radius: 12px; margin-top: 12px;
        padding: 10px; box-shadow: var(--cps-shadow-md);
    }
    .header-1 .navbar-main .nav-link { padding: 12px 14px !important; }
    .cps-nav-cta > .nav-link { margin-top: 6px; text-align: center; }
}

@media (max-width: 575px) {
    .cps-sec { padding: 56px 0; }
    .cps-values-grid, .cps-steps, .cps-news-grid, .cps-testi-grid, .cps-activity-grid, .cps-doc-grid, .cps-info-cards { grid-template-columns: 1fr; }
    .cps-page-hero { padding: 70px 0 54px; }
    .cps-page-hero h1 { font-size: 30px; }
    .cps-sec-head h2 { font-size: 26px; }
    .cps-admit-banner { padding: 32px 26px; text-align: center; justify-content: center; }
    .cps-admit-banner h2 { font-size: 26px; }
    .cps-form-panel { padding: 24px; }
    .cps-intro__copy h2 { font-size: 27px; }
}

/* =====================================================================
   FIX: Homepage hero — show the full designed banner poster cleanly
   (the banner image already contains the title, tagline & highlights,
   so we do NOT overlay any text on top of it).
   ===================================================================== */
.cps-hero-banner { background: var(--cps-navy); line-height: 0; }
.cps-hero-banner img { width: 100%; height: auto; display: block; }

.cps-hero-cta { background: linear-gradient(90deg, var(--cps-navy) 0%, var(--cps-blue) 100%); }
.cps-hero-cta__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px 26px; flex-wrap: wrap; padding: 20px 0;
}
.cps-hero-cta__inner p {
    margin: 0; color: #fff !important; font-family: var(--cps-font-head);
    font-weight: 500; font-size: 17px;
}
.cps-hero-cta__inner p i { color: var(--cps-gold); margin-right: 8px; }
.cps-hero-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 575px) {
    .cps-hero-cta__inner { flex-direction: column; align-items: stretch; text-align: center; }
    .cps-hero-cta__inner p { font-size: 15px; }
    .cps-hero-cta__btns { width: 100%; }
    .cps-hero-cta__btns .cps-btn { flex: 1 1 auto; }
}

/* =====================================================================
   FIX: Navbar — prevent the brand wordmark from overlapping the menu
   ===================================================================== */
.navbar-brand .mainlogo { max-width: 58px !important; height: 58px !important; }
.navbar-brand h1 { font-size: 16px !important; white-space: nowrap; line-height: 1.15; }
.header-1 .navbar-main .nav-link { font-size: 13px; padding: 8px 9px !important; white-space: nowrap; }
.cps-nav-cta > .nav-link { padding: 8px 14px !important; }
@media (min-width: 992px) and (max-width: 1299px) {
    .navbar-brand h1 { font-size: 13.5px !important; }
    .navbar-brand .mainlogo { max-width: 50px !important; height: 50px !important; }
    .header-1 .navbar-main .nav-link { font-size: 12px; padding: 7px 7px !important; }
}

/* About section no longer sits under an overlapping strip — normalise its top spacing */
.cps-modern-home .cps-about { padding-top: 84px; }

/* Brand lockup: school name with "Run by Bharat Shiksha Trust" tagline beneath */
.navbar-brand { gap: 12px; }
.navbar-brand .cps-brand-text { display: flex; flex-direction: column; justify-content: center; }
.navbar-brand .cps-brand-text h1 { margin: 0; line-height: 1.1; }
.cps-brand-tag {
    font-family: var(--cps-font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--cps-red);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 3px;
    white-space: nowrap;
}
@media (min-width: 992px) and (max-width: 1299px) {
    .cps-brand-tag { font-size: 10px; }
}
/* Keep the school name + tagline visible on mobile (just smaller) */
@media (max-width: 575px) {
    .navbar-brand { gap: 9px; }
    .navbar-brand .mainlogo { max-width: 46px !important; height: 46px !important; }
    .navbar-brand .cps-brand-text { display: flex !important; }
    .navbar-brand .cps-brand-text h1 { display: block !important; font-size: 14px !important; line-height: 1.05; }
    .cps-brand-tag { font-size: 9px; letter-spacing: .02em; margin-top: 2px; }
}
@media (max-width: 360px) {
    .navbar-brand .cps-brand-text h1 { font-size: 12.5px !important; }
    .cps-brand-tag { font-size: 8.5px; }
}
