:root {
    --cbhe-navy: #0f2f6b;
    --cbhe-blue: #183f87;
    --cbhe-gold: #d6a11a;
    --cbhe-sky: #edf4ff;
    --cbhe-ink: #0b1b3f;
    --cbhe-cream: #f6f8fc;
    --cbhe-text: #1f2d3d;
    --cbhe-border: rgba(15, 47, 107, 0.12);
}

* { box-sizing: border-box; }
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--cbhe-text);
    background:
        radial-gradient(circle at top left, rgba(24, 63, 135, 0.05), transparent 32%),
        radial-gradient(circle at right 20%, rgba(214, 161, 26, 0.06), transparent 26%),
        #fff;
}
a { text-decoration: none; }
.topbar { background: #fff; border-bottom: 1px solid var(--cbhe-border); }
.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(15, 47, 107, .14));
}
.brand-mark {
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center;
    background: radial-gradient(circle at 30% 30%, #fff 0, #f3e7b3 35%, #d5a51e 100%);
    color: var(--cbhe-navy); font-weight: 800; font-size: 13px;
    box-shadow: 0 8px 18px rgba(15, 47, 107, 0.15);
}
.brand-title { font-weight: 800; color: var(--cbhe-navy); font-size: 1.05rem; line-height: 1.05; }
.brand-subtitle, .top-links { font-size: .78rem; color: #667085; }
.top-links a, .top-links span { color: #44546a; }
.main-nav { background: linear-gradient(90deg, #0a2a66, #163d84); box-shadow: 0 8px 20px rgba(7, 23, 59, .15); }
.main-nav .nav-link { color: rgba(255,255,255,.92) !important; font-weight: 600; font-size: .9rem; padding: .9rem .85rem !important; }
.main-nav .nav-link:hover,
.main-nav .nav-link:focus { color: #ffd66d !important; }
.hero {
    position: relative; overflow: hidden;
    padding-top: 2.5rem;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.85), transparent 26%),
        linear-gradient(135deg, #eef5ff 0%, #f6f9ff 40%, #ffffff 100%);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(24,63,135,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(24,63,135,.06) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 85%);
    pointer-events: none;
}
.hero-card { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.75)); border: 1px solid var(--cbhe-border); border-radius: 28px; box-shadow: 0 24px 60px rgba(15, 47, 107, .08); backdrop-filter: blur(4px); }
.hero-copy h1 { color: var(--cbhe-navy); font-size: clamp(1.9rem, 3.4vw, 3.2rem); font-weight: 800; line-height: 1.05; overflow-wrap: break-word; word-break: break-word; }
.hero-copy, .hero-image { min-width: 0; }
.hero-card .row { min-width: 0; }
.hero-copy .eyebrow { color: var(--cbhe-gold); font-weight: 800; letter-spacing: .04em; }
.hero-copy p { color: #415064; max-width: 620px; }
.hero-copy h1 span { color: var(--cbhe-ink); }
.hero-cta-row .btn { min-width: 172px; justify-content: center; display: inline-flex; }
.btn-cbhe { border-radius: 12px; font-weight: 700; padding: .85rem 1.2rem; }
.btn-blue { background: var(--cbhe-navy); color: #fff; }
.btn-gold { background: var(--cbhe-gold); color: #fff; }
.btn-outline-cbhe { border: 1px solid #c7d3eb; color: var(--cbhe-navy); background: #fff; }
.btn-blue:hover, .btn-gold:hover { color: #fff; }
.btn-blue:hover { background: var(--cbhe-blue); }
.btn-gold:hover { background: #c4900f; }
.btn-outline-cbhe:hover { background: var(--cbhe-sky); color: var(--cbhe-navy); }
.hero-image {
    min-height: 400px; border-radius: 24px;
    padding: 1rem;
    background:
        radial-gradient(circle at 70% 30%, rgba(214,161,26,.35), transparent 22%),
        radial-gradient(circle at 35% 20%, rgba(24,63,135,.22), transparent 22%),
        linear-gradient(135deg, #b4c7e8, #f9fbff 55%, #d8e5f8);
    position: relative; overflow: hidden;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image img,
.hero-image svg {
    position: static;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100%;
}
.hero-carousel .carousel-inner { padding: 10px 10px 34px; }
.hero-carousel { margin-bottom: -24px; }
/* Hero carousel (auto-sliding banners) */
.hero-carousel .carousel-item { transition: transform .7s ease-in-out; }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 56px;
    opacity: 1;
}
.hero-carousel-arrow {
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(15,47,107,.88);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem;
    box-shadow: 0 10px 22px rgba(15,47,107,.25);
    transition: background .15s ease, transform .15s ease;
}
.hero-carousel .carousel-control-prev:hover .hero-carousel-arrow,
.hero-carousel .carousel-control-next:hover .hero-carousel-arrow {
    background: var(--cbhe-gold);
    transform: scale(1.06);
}
.hero-carousel .carousel-indicators {
    position: static;
    margin: 1rem 0 0;
    gap: .5rem;
}
.hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--cbhe-navy);
    opacity: .25;
    border: 0;
    text-indent: 0;
}
.hero-carousel .carousel-indicators .active { opacity: 1; background: var(--cbhe-gold); }
.stats-strip { position: relative; z-index: 3; margin-top: -20px; background: linear-gradient(90deg, #123777, #0e2d63); border-radius: 18px; color: #fff; box-shadow: 0 18px 36px rgba(15, 47, 107, .2); }
.stats-item { display: flex; align-items: center; gap: 12px; padding: 20px 14px; }
.stats-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #ffd55d; font-size: 1.1rem; flex-shrink: 0; }
.section-title { text-align: center; margin-bottom: 1.5rem; }
.section-title h2 { color: var(--cbhe-navy); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.section-title p { color: #6b7280; }
.soft-alert { border: 0; box-shadow: 0 10px 24px rgba(15,47,107,.08); }
.page-hero { padding-top: 1rem; }
.page-hero-card {
    background: linear-gradient(135deg, rgba(15,47,107,.96), rgba(24,63,135,.92));
    color: #fff;
    border-radius: 26px;
    padding: 1.6rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 18px 42px rgba(15,47,107,.16);
}
.page-kicker {
    color: #ffd55d;
    letter-spacing: .12em;
    font-size: .75rem;
    font-weight: 800;
    margin-bottom: .4rem;
}
.page-hero-card h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 800;
}
.page-hero-card p {
    margin: .35rem 0 0;
    color: rgba(255,255,255,.88);
    max-width: 760px;
    line-height: 1.65;
}
.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.14);
    padding: .75rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}
.quick-card, .info-card, .panel-card, .notice-card, .testimonial-card { background: #fff; border: 1px solid var(--cbhe-border); border-radius: 18px; box-shadow: 0 10px 30px rgba(15, 47, 107, .05); }
.panel-card {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    overflow: hidden;
}
.quick-card { padding: 1.25rem; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 47, 107, .09); }
.course-card { background: linear-gradient(180deg, #fff, #f8fbff); }
.course-detail-card { display: flex; flex-direction: column; }
.course-detail-card .course-list {
    padding-left: 1rem;
    margin: .5rem 0 0;
    color: #556173;
    font-size: .9rem;
}
.course-detail-card .course-list li { margin-bottom: .25rem; }
.course-hero-card { overflow: hidden; }
.course-feature-box {
    height: 100%;
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    border: 1px solid rgba(15,47,107,.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.course-stats-card { background: linear-gradient(180deg, #ffffff, #f8fbff); }
.gallery-card { padding-bottom: .85rem; }
.gallery-thumb {
    background:
        linear-gradient(135deg, rgba(15,47,107,.12), rgba(255,255,255,.5)),
        radial-gradient(circle at 30% 30%, rgba(214,161,26,.18), transparent 24%),
        linear-gradient(135deg, #dfe8f7, #fafcff);
}
.gallery-thumb img { object-position: center top; }
.quick-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; color: #fff; font-size: 1.5rem; }
.quick-card h5 { font-size: 1rem; font-weight: 700; color: var(--cbhe-navy); }
.quick-card p { color: #6b7280; font-size: .9rem; margin-bottom: 0; }
.section-soft { background: var(--cbhe-cream); }
.about-timeline { position: relative; border-top: 2px solid rgba(24,63,135,.15); }
.about-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cbhe-navy); margin-top: -7px; }
.about-portrait {
    height: 360px;
    border-radius: 24px;
    background: linear-gradient(180deg, #dde8f8 0%, #eef4fc 100%);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(15,47,107,.08);
}
.center-card { background: linear-gradient(180deg, #ffffff, #f7fbff); }
.footer { background: linear-gradient(180deg, #14356f, #0b2555); color: rgba(255,255,255,.85); }
.footer-links a { display: block; color: rgba(255,255,255,.85); margin-bottom: .45rem; }
.map-box { overflow: hidden; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); min-height: 180px; }
.map-box iframe { width: 100%; height: 180px; border: 0; }
.footer-bottom { background: rgba(0,0,0,.08); color: rgba(255,255,255,.8); }
.admin-body { background: #eef3fb; }
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: linear-gradient(180deg, #0f2f6b, #143d81); color: #fff; padding: 1.25rem; }
.admin-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}
.admin-brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.admin-sidebar nav { display: flex; flex-direction: column; }
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: rgba(255,255,255,.82);
    padding: .68rem .85rem;
    border-radius: 12px;
    margin-bottom: .25rem;
    font-size: .92rem;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.admin-sidebar a i { width: 18px; text-align: center; color: rgba(255,255,255,.65); font-size: .92rem; }
.admin-nav-group-label {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    padding: .9rem .85rem .3rem;
}
.admin-nav-group-label:first-child { padding-top: 0; }
.password-field { position: relative; }
.password-field .form-control { padding-right: 42px; }
.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8a94a6;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
}
.password-toggle:hover { color: var(--cbhe-navy); background: rgba(15,47,107,.06); }
.admin-sidebar a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-sidebar a.active { background: linear-gradient(90deg, rgba(214,161,26,.22), rgba(255,255,255,.08)); color: #fff; box-shadow: inset 3px 0 0 var(--cbhe-gold); }
.admin-sidebar a.active i { color: #ffd55d; }
.admin-sidebar a.admin-logout { margin-top: .75rem; padding-top: .85rem; border-top: 1px solid rgba(255,255,255,.14); color: #ffb4b4; }
.admin-sidebar a.admin-logout i { color: #ffb4b4; }
.admin-sidebar a.admin-logout:hover { background: rgba(255, 80, 80, .14); color: #fff; }
.admin-main { min-width: 0; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--cbhe-border); padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.admin-menu-toggle { border: 1px solid var(--cbhe-border); background: #fff; border-radius: 10px; width: 42px; height: 42px; color: var(--cbhe-navy); }
.admin-user { display: flex; align-items: center; gap: .6rem; }
.admin-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--cbhe-navy), var(--cbhe-blue)); color: #fff; font-weight: 800; }
.dashboard-stat { border-radius: 18px; background: #fff; border: 1px solid var(--cbhe-border); padding: 1rem; box-shadow: 0 8px 20px rgba(15,47,107,.05); }
.dashboard-stat h3 { color: var(--cbhe-navy); font-weight: 800; }
.table thead th { white-space: nowrap; }
.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(24,63,135,.08), transparent 45%),
        linear-gradient(180deg, #eef4fc, #f9fbff);
}
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}
.auth-brand { max-width: 420px; margin-inline: auto; }
.auth-logo { width: 90px; height: 90px; object-fit: contain; }
.auth-card { max-width: 440px; margin: 0 auto; }
.auth-card .panel-card,
.auth-shell .panel-card {
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 47, 107, .12);
}
.study-center-body { background: linear-gradient(135deg, #f4f8ff, #fff); min-height: 100vh; }
.result-panel, .verify-panel { border-radius: 22px; border: 1px solid var(--cbhe-border); box-shadow: 0 14px 36px rgba(15,47,107,.08); overflow: hidden; }
.result-head { background: linear-gradient(90deg, #0f2f6b, #163d84); color: #fff; padding: 1.25rem; }
.board-badge { display: inline-block; background: rgba(255,255,255,.12); padding: .35rem .7rem; border-radius: 999px; font-size: .78rem; }
.subject-table td, .subject-table th { vertical-align: middle; }
.result-sheet {
    max-width: 1060px;
    margin: 0 auto;
    padding: 1rem;
    background: #f4f7fc;
    border: 1px solid #c3ceE0;
    box-shadow: 0 18px 40px rgba(15,47,107,.12);
}
.result-sheet-inner {
    background: #fff;
    border: 1px solid #c3cee0;
    padding: 1.25rem;
}
.result-sheet-head {
    display: grid;
    grid-template-columns: 92px 1fr 92px;
    gap: 1rem;
    align-items: center;
    margin-bottom: .75rem;
}
.result-sheet-logo-box {
    width: 72px;
    height: 72px;
    justify-self: center;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #c3cee0;
    background-color: #fff;
}
.result-sheet-script {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
    text-align: center;
    color: #222;
    font-weight: 700;
}
.result-sheet-main {
    text-align: center;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    margin-top: .5rem;
    color: #202020;
    font-weight: 500;
}
.result-meta-table,
.result-subject-table {
    border-color: #b7c2d9;
    margin-bottom: 0;
}
.result-meta-table th,
.result-meta-table td,
.result-subject-table th,
.result-subject-table td {
    border-color: #b7c2d9 !important;
    color: #1d1d1d;
    padding: .5rem .6rem;
    font-size: .92rem;
}
.result-meta-table th {
    width: 20%;
    background: #eef2fa;
    font-weight: 700;
    color: var(--cbhe-navy);
}
.result-subject-table thead th {
    background: #eef2fa;
    text-align: center;
    font-weight: 700;
    color: var(--cbhe-navy);
}
.result-subject-table tbody td {
    text-align: center;
}
.result-subject-table tbody td:first-child {
    text-align: center;
}
.table-total-row td {
    background: #eef2fa;
}
.result-actions {
    display: flex;
    justify-content: center;
    gap: .85rem;
    margin-top: 1.5rem;
}
.btn-result-action {
    min-width: 190px;
    border-radius: 10px;
    background: #2f8f75;
    color: #fff;
    font-weight: 700;
    padding: .7rem 1.4rem;
    box-shadow: 0 10px 22px rgba(15,47,107,.18);
}
.btn-result-action:hover { color: #fff; transform: translateY(-1px); }
.btn-result-view:hover { background: var(--cbhe-blue); }
.btn-result-download:hover { background: #257a63; }
.btn-result-view { background: #0f2f6b; }
.btn-result-download { background: #2f8f75; }
.section-soft {
    background:
        linear-gradient(180deg, rgba(237,244,255,.8), rgba(246,248,252,.95));
}
.section-title h2 {
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    display: block;
    width: 90px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--cbhe-navy), var(--cbhe-gold));
}
.notice-card .table { --bs-table-bg: transparent; }
.center-hero {
    background:
        linear-gradient(rgba(12,29,68,.12), rgba(12,29,68,.12)),
        linear-gradient(90deg, rgba(237,242,249,.98), rgba(244,248,255,.98));
}
.center-banner {
    min-height: 250px;
    border-radius: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr .8fr .8fr;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(23,41,96,.78), rgba(26,53,124,.95)),
        url('../img/hero-illustration.svg') center/cover no-repeat;
    position: relative;
}
.center-banner-left {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.18));
}
.center-kicker {
    color: var(--cbhe-gold);
    font-weight: 800;
    letter-spacing: .12em;
    font-size: .88rem;
    margin-bottom: .5rem;
}
.center-banner-left h1 {
    color: #fff;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    font-weight: 800;
    margin-bottom: .4rem;
    text-shadow: 0 8px 22px rgba(0,0,0,.14);
}
.center-banner-left p {
    color: rgba(255,255,255,.88);
    margin: 0;
    font-size: 1.05rem;
}
.center-banner-right {
    min-height: 250px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.14), transparent 45%),
        radial-gradient(circle at 75% 70%, rgba(214,161,26,.28), transparent 40%),
        linear-gradient(135deg, #17296a, #1f3f8f);
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.center-banner-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,.9), transparent 75%);
}
.center-banner-icon {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,.9);
    font-size: 4.5rem;
    text-shadow: 0 10px 26px rgba(0,0,0,.2);
}
.center-banner-pill {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    background: rgba(255,255,255,.16);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: .8rem 1.2rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
    font-weight: 500;
    z-index: 2;
}
.center-table-wrap {
    background: #fff;
    border: 1px solid var(--cbhe-border);
    box-shadow: 0 16px 40px rgba(15,47,107,.08);
}
.center-table thead th {
    background: #fff;
    color: #1f2937;
    font-weight: 700;
    border-bottom: 2px solid #1c2d57;
}
.center-table td, .center-table th {
    font-size: .88rem;
    text-align: center;
}
.center-contact-card {
    background: #fff;
    border: 1px solid var(--cbhe-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(15,47,107,.08);
}
.verify-panel .result-head,
.result-panel .result-head,
.panel-card .result-head {
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.verify-panel .form-control,
.panel-card .form-control,
.panel-card .form-select {
    border-radius: 12px;
    min-height: 48px;
}
.upload-actions {
    position: sticky;
    bottom: 1rem;
    z-index: 2;
    padding-top: .5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96) 45%);
}
.quick-card p,
.panel-card p,
.page-hero-card p {
    line-height: 1.65;
}
@media (max-width: 991.98px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; inset: 0 30% 0 0; z-index: 1050; transform: translateX(-100%); transition: transform .2s ease; overflow-y: auto; }
    .admin-sidebar.open { transform: translateX(0); box-shadow: 20px 0 40px rgba(0,0,0,.25); }
    .admin-menu-toggle { display: inline-grid !important; place-items: center; }
}
@media (min-width: 992px) { .admin-menu-toggle { display: none !important; } }

/* ===== Global polish layer — applies site-wide (public + admin) ===== */
::selection { background: rgba(214,161,26,.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef2f9; }
::-webkit-scrollbar-thumb { background: #b9c7e2; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--cbhe-navy); }

h1, h2, h3, h4, h5, h6 { letter-spacing: -.01em; }
p { line-height: 1.7; }
a { transition: color .15s ease; }
.main-nav { position: sticky; top: 0; z-index: 1030; }

/* Buttons */
.btn { border-radius: 10px; font-weight: 600; letter-spacing: .01em; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-blue, .btn-gold, .btn-result-action, .btn-cbhe:not(.btn-outline-cbhe):not(.btn-outline-secondary):not(.btn-outline-primary) { box-shadow: 0 10px 22px rgba(15,47,107,.16); }
.btn-blue:hover, .btn-gold:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(15,47,107,.22); }
.btn:focus-visible, .form-control:focus, .form-select:focus { outline: none; box-shadow: 0 0 0 .2rem rgba(15,47,107,.18) !important; border-color: var(--cbhe-navy) !important; }

/* Forms */
.form-control, .form-select { border-radius: 10px; border-color: #d7deec; }
.form-control::placeholder { color: #97a3b8; }
label.form-label { font-weight: 600; color: var(--cbhe-navy); font-size: .88rem; }

/* Cards get a subtle unified lift + border-radius baseline */
.panel-card, .quick-card, .info-card, .notice-card, .testimonial-card, .dashboard-stat, .center-contact-card, .course-feature-box {
    transition: box-shadow .2s ease, transform .2s ease;
}
.panel-card:hover, .dashboard-stat:hover { box-shadow: 0 16px 36px rgba(15,47,107,.1); }

/* Tables */
.table { --bs-table-hover-bg: rgba(15,47,107,.035); }
.table thead th { background: #f3f6fc; color: var(--cbhe-navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; border-bottom-width: 1px !important; }
.table-responsive { border-radius: 14px; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--cbhe-border); }
.table-responsive .table { margin-bottom: 0; }

/* Badges / status pills */
.badge { font-weight: 600; letter-spacing: .01em; border-radius: 999px; padding: .45em .85em; }
.badge-status-pass, .badge.bg-success { background: #e6f6ee !important; color: #157a4a !important; }
.badge-status-fail, .badge.bg-danger { background: #fdeaea !important; color: #c62828 !important; }
.badge-status-pending, .badge.bg-warning { background: #fff4e0 !important; color: #a1650a !important; }

/* Alerts */
.alert { border-radius: 14px; border: 0; }

/* Auth card polish */
.auth-shell .panel-card { padding: 2.25rem !important; }
.auth-logo { filter: drop-shadow(0 10px 22px rgba(15,47,107,.18)); }

/* Dashboard stat cards */
.dashboard-stat { display: flex; align-items: center; gap: .9rem; }
.dashboard-stat .stat-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--cbhe-navy), var(--cbhe-blue)); flex-shrink: 0; }

@media (max-width: 767.98px) {
    .auth-shell .panel-card { padding: 1.5rem !important; }
}
@media (max-width: 767.98px) {
    .page-hero-card,
    .admin-topbar,
    .topbar .container {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .center-banner { grid-template-columns: 1fr; }
    .center-banner-left,
    .center-banner-right { min-height: 180px; }
    .center-banner-pill {
        position: static;
        transform: none;
        display: inline-flex;
        margin: 1rem 0 0 1rem;
    }
    .page-hero-badge {
        width: 100%;
        justify-content: center;
    }
    .hero { padding-top: 1.5rem; }
    .hero-image { min-height: 280px; }
    .hero-copy h1 { font-size: clamp(2rem, 9vw, 3rem); }
    .hero-cta-row .btn { width: 100%; }
    .result-sheet { padding: .5rem; }
    .result-sheet-inner { padding: .75rem; }
    .result-sheet-head { grid-template-columns: 1fr; text-align: center; }
    .result-sheet-logo-box { justify-self: center; }
    .result-actions { flex-direction: column; }
    .btn-result-action { width: 100%; min-width: 0; }
}
@media print {
    .topbar, .main-nav, .footer, .no-print, .admin-sidebar, .admin-topbar { display: none !important; }
    body { background: #fff; }
    .result-sheet { max-width: 100%; margin: 0; border: 0; box-shadow: none; padding: 0; }
    .result-sheet-inner { border: 0; padding: 0; }
    .container { max-width: 100%; }
    .page-hero, .panel-card { display: none !important; }
}

/* ===== Mobile responsiveness (site-wide) ===== */
img, svg { max-width: 100%; height: auto; }
.table-responsive { -webkit-overflow-scrolling: touch; }
.admin-cell-wrap { white-space: normal; word-break: break-word; }
.admin-body .table { table-layout: auto; }
.admin-body .table td { vertical-align: top; }
.admin-body .table td.admin-cell-wrap { min-width: 180px; }

@media (max-width: 991.98px) {
    .main-nav .navbar-nav { padding: .5rem 0; }
    .main-nav .nav-link { padding: .7rem .5rem !important; }
    .quick-icon { width: 54px; height: 54px; font-size: 1.25rem; }
}

@media (max-width: 575.98px) {
    .topbar .brand-title { font-size: .9rem; }
    .topbar .brand-subtitle { font-size: .7rem; }
    .brand-logo { width: 44px; height: 44px; }
    .page-hero-card { padding: 1.2rem; }
    .page-hero-card h1 { font-size: 1.5rem; }
    .section-title h2 { font-size: 1.3rem; }
    .quick-icon { width: 48px; height: 48px; font-size: 1.1rem; }
    .quick-card h5 { font-size: .9rem; }
    .quick-card p { font-size: .8rem; }
    .stats-item { padding: 12px 8px; gap: 8px; }
    .stats-icon { width: 38px; height: 38px; font-size: .95rem; }
    .stats-item .fs-5 { font-size: 1rem !important; }
    .center-banner-left h1 { font-size: 2rem; }
    .hero-copy h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
    .btn-cbhe { padding: .7rem 1rem; font-size: .92rem; }
}