/* =====================================================================
   Word of God Bible College – site theme
   Loaded after bootstrap.min.css + style.css. Overrides the template.
   ===================================================================== */

:root {
    --primary: #F0592E;
    --primary-600: #D94A21;
    --primary-50: #FFF3EE;
    --dark: #0F2F3A;
    --dark-2: #173F4C;
    --gold: #E9A93B;
    --light: #FFF7F4;
    --surface: #FFFFFF;
    --surface-2: #F7F8FA;
    --text: #1F2A30;
    --muted: #5F6B72;
    --border: #E8ECEF;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 47, 58, .06), 0 2px 8px rgba(15, 47, 58, .05);
    --shadow: 0 6px 24px rgba(15, 47, 58, .08);
    --shadow-lg: 0 18px 48px rgba(15, 47, 58, .14);
    --font-head: 'Poppins', 'Noto Sans Telugu', system-ui, sans-serif;
    --font-body: 'Inter', 'Noto Sans Telugu', system-ui, sans-serif;
    --nav-h: 76px;

    --bs-primary: #F0592E;
    --bs-primary-rgb: 240, 89, 46;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.font-secondary {
    font-family: var(--font-head);
    color: var(--dark);
    letter-spacing: -.01em;
    line-height: 1.25;
}

h1, .h1 { font-weight: 700; }
h2, .h2, h3, .h3 { font-weight: 600; }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-600); }

img { max-width: 100%; }

.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.text-muted { color: var(--muted) !important; }

/* Full-width page wrapper (replaces the template's fixed 1320px box) */
.site-wrapper {
    width: 100%;
    max-width: 100%;
    background: var(--surface);
    overflow-x: clip;
}

.container { max-width: 1240px; }

/* Remove the template's scalloped edge patterns */
.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after { display: none !important; content: none !important; }

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 999px;
    padding: .7rem 1.4rem;
    transition: all .2s ease;
}

.btn-sm { padding: .45rem 1rem; font-size: .875rem; }
.btn-lg { padding: .9rem 1.8rem; }

.btn-primary,
.btn.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(240, 89, 46, .25);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--primary-600) !important;
    border-color: var(--primary-600) !important;
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary);
    border: 1.5px solid var(--primary);
    background: transparent;
}

.btn-outline-primary:hover { background: var(--primary); color: #fff; }

.btn-light-outline {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(4px);
}

.btn-light-outline:hover { background: #fff; color: var(--dark); }

.btn-dark { background: var(--dark); border-color: var(--dark); }

.btn-info { background: var(--dark-2); border-color: var(--dark-2); color: #fff !important; }
.btn-info:hover { background: var(--dark); border-color: var(--dark); }

.back-to-top {
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    box-shadow: var(--shadow);
}

/* ---------- Navbar ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--border);
    min-height: var(--nav-h);
    padding: 0;
}

.site-nav .navbar-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem 0;
    margin: 0;
}

.site-nav .brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.site-nav .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-nav .brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark);
    letter-spacing: .01em;
}

.site-nav .brand-tag {
    font-size: .72rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.site-nav .navbar-nav .nav-link {
    padding: .5rem .9rem !important;
    margin: 0 .1rem;
    font-weight: 500;
    font-size: .95rem;
    color: var(--dark);
    border-radius: 999px;
}

.site-nav .navbar-nav .nav-link:hover { color: var(--primary); background: var(--primary-50); }

.site-nav .navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--primary-50);
}

.site-nav .navbar-toggler {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .45rem .6rem;
}

.site-nav .navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        padding: .5rem 0 1rem;
        border-top: 1px solid var(--border);
    }

    .site-nav .navbar-nav { margin: 0; border: 0; }
    .site-nav .navbar-nav .nav-link { padding: .7rem 1rem !important; }
    .site-nav .nav-cta { margin-top: .5rem; width: 100%; }
}

@media (max-width: 420px) {
    .site-nav .brand-name { font-size: .92rem; }
    .site-nav .brand-logo { width: 44px; height: 44px; }
}

/* ---------- Hero carousel ---------- */
.hero {
    position: relative;
    background: var(--dark);
}

.hero .owl-carousel-item,
.hero-slide {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 440px;
    max-height: calc(100vh - var(--nav-h));
    overflow: hidden;
}

/* Each slide = blurred cover backdrop + the full photo (never cropped/stretched) */
.hero-slide .hero-bg,
.hero-slide .hero-img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.hero-slide .hero-bg {
    object-fit: cover;
    filter: blur(28px) brightness(.55) saturate(1.1);
    transform: scale(1.15);
}

.hero-slide .hero-img {
    object-fit: contain;
    object-position: right center;
}

@media (max-width: 767.98px) {
    .hero-slide .hero-img { object-position: center top; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(10, 30, 38, .82) 0%, rgba(10, 30, 38, .55) 45%, rgba(10, 30, 38, .1) 100%);
}

.hero-content { max-width: 640px; color: #fff; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    color: #fff;
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}

.hero-text {
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    margin-bottom: 1.75rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.hero .owl-nav {
    position: absolute;
    right: 32px;
    bottom: 32px;
    top: auto;
    transform: none;
    display: flex;
    flex-direction: row;
    gap: .5rem;
}

.hero .owl-nav .owl-prev,
.hero .owl-nav .owl-next {
    width: 48px;
    height: 48px;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(255, 255, 255, .45) !important;
    border-radius: 50%;
    font-size: 20px;
    backdrop-filter: blur(4px);
}

.hero .owl-nav .owl-prev:hover,
.hero .owl-nav .owl-next:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.hero .owl-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.hero .owl-dot span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .5);
    transition: all .3s;
}

.hero .owl-dot.active span { width: 26px; background: #fff; }

@media (max-width: 767.98px) {
    .hero .owl-carousel-item,
    .hero-slide { aspect-ratio: 4 / 5; min-height: 480px; max-height: 640px; }

    .hero-overlay {
        align-items: flex-end;
        padding-bottom: 72px;
        background: linear-gradient(0deg, rgba(10, 30, 38, .9) 0%, rgba(10, 30, 38, .45) 60%, rgba(10, 30, 38, .1) 100%);
    }

    .hero .owl-nav { display: none; }
}

.store-badge img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--surface-2); }
.section-warm { background: var(--light); }

@media (max-width: 767.98px) {
    .section { padding: 60px 0; }
    .section-sm { padding: 40px 0; }
}

.section-head {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-head.text-start { margin-left: 0; text-align: left; }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: .6rem;
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: .9rem;
}

.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
    position: relative;
    padding: 72px 0 64px;
    background:
        linear-gradient(100deg, rgba(10, 30, 38, .92) 0%, rgba(10, 30, 38, .72) 55%, rgba(240, 89, 46, .55) 100%),
        var(--page-hero-img, url(../img/carousel-1.jpg)) center / cover no-repeat;
    color: #fff;
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3rem);
    margin-bottom: .6rem;
}

.page-hero .breadcrumb { margin: 0; font-size: .92rem; }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .8); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: var(--gold); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }

@media (max-width: 767.98px) {
    .page-hero { padding: 48px 0 40px; }
}

/* ---------- Generic card ---------- */
.card-soft {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}

.card-soft.hoverable:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* ---------- Feature cards ---------- */
.feature-card {
    height: 100%;
    padding: 32px 28px;
    text-align: left;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    background: var(--primary-50);
    color: var(--primary);
}

.feature-icon.teal { background: #E6F4F1; color: #11856E; }
.feature-icon.gold { background: #FDF3E1; color: #B9791A; }
.feature-icon.blue { background: #E8F0FB; color: #2B64B8; }

.feature-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- About ---------- */
.about-collage {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    aspect-ratio: 5 / 4;
}

.about-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-collage img:first-child { grid-row: span 2; }

.about-text ul { padding-left: 1.1rem; }
.about-text li { margin-bottom: .6rem; color: var(--muted); }
.about-text p { color: var(--muted); }

.founder {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.founder img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-50);
}

.founder .name { font-family: var(--font-head); font-weight: 600; color: var(--dark); margin: 0; }
.founder .role { font-size: .85rem; color: var(--muted); }

.rich-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 { margin-top: 1.4rem; }
.rich-content p, .rich-content li { color: var(--muted); }

/* ---------- Course cards ---------- */
.course-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.course-card .course-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-2);
}

.course-card .course-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.course-card:hover .course-media img { transform: scale(1.05); }

.course-card .course-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: var(--dark);
    font-size: .75rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.course-card .course-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 20px;
}

.course-card .course-title {
    font-size: 1.1rem;
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.75rem;
}

.course-card .course-title a { color: var(--dark); }
.course-card .course-title a:hover { color: var(--primary); }

.course-card .course-req {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.2rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--dark);
    font-size: .8rem;
    font-weight: 500;
}

.chip i { color: var(--primary); font-size: .8rem; }

.course-card .course-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.course-card .price {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark);
}

.course-card .price small { font-size: .75rem; color: var(--muted); font-weight: 500; display: block; line-height: 1; }

/* ---------- Faculty cards ---------- */
.faculty-card {
    height: 100%;
    padding: 28px 22px;
    text-align: center;
}

.faculty-card .avatar {
    width: 132px;
    height: 132px;
    margin: 0 auto 18px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary), var(--gold));
}

.faculty-card .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    background: #fff;
}

.faculty-card h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.faculty-card .role { color: var(--primary); font-size: .88rem; font-weight: 600; margin-bottom: .6rem; }
.faculty-card .bio {
    color: var(--muted);
    font-size: .88rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- CTA band ---------- */
.cta-band {
    border-radius: var(--radius-lg);
    padding: 48px;
    background:
        radial-gradient(circle at 90% 10%, rgba(233, 169, 59, .35), transparent 40%),
        linear-gradient(120deg, var(--dark) 0%, var(--dark-2) 100%);
    color: #fff;
    overflow: hidden;
}

.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; }

@media (max-width: 767.98px) {
    .cta-band { padding: 32px 24px; }
}

/* ---------- Stats ---------- */
.stat {
    text-align: center;
    padding: 24px 12px;
}

.stat .num {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary);
    line-height: 1;
}

.stat .label { color: var(--muted); font-size: .9rem; margin-top: .4rem; }

/* ---------- Contact ---------- */
.info-card {
    height: 100%;
    padding: 28px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-card .feature-icon { margin: 0; flex-shrink: 0; }
.info-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.info-card p, .info-card a { color: var(--muted); font-size: .92rem; margin: 0; word-break: break-word; }

.map-frame {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    border-radius: var(--radius);
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: .75rem 1rem;
    font-size: .95rem;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(240, 89, 46, .12);
}

.form-floating > .form-control,
.form-floating > .form-select { height: calc(3.4rem + 2px); }
.form-floating > textarea.form-control { height: auto; }
.form-floating > label { color: var(--muted); }

.input-group-text {
    border-radius: 12px 0 0 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
}

.input-group > .form-control { border-radius: 0 12px 12px 0; }

.form-label { font-weight: 500; font-size: .9rem; color: var(--dark); }

/* Auth / form panels built from the old template's `bg-light rounded` + two columns */
.panel-split {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-split .panel-media {
    position: relative;
    min-height: 320px;
}

.panel-split .panel-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-split .panel-body { padding: 44px; }

@media (max-width: 575.98px) {
    .panel-split .panel-body { padding: 28px 22px; }
}

/* Legacy pages still using .bg-light.rounded inside .container */
.site-wrapper .container > .bg-light.rounded {
    background: var(--surface) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.site-wrapper .container > .bg-light.rounded .p-5 { padding: 44px !important; }

@media (max-width: 575.98px) {
    .site-wrapper .container > .bg-light.rounded .p-5 { padding: 28px 22px !important; }
}

.site-wrapper .card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.site-wrapper .card-header {
    background: var(--surface-2);
    color: var(--dark);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0 !important;
}

/* ---------- Donate ---------- */
.donate-card { height: 100%; overflow: hidden; display: flex; flex-direction: column; }

.donate-card .donate-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-2);
}

.donate-card .donate-media img { width: 100%; height: 100%; object-fit: cover; }
.donate-card .donate-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.donate-card h3 { font-size: 1.15rem; }
.donate-card p { color: var(--muted); font-size: .93rem; }
.donate-card .btn { margin-top: auto; align-self: flex-start; }

.pay-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .45rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: .92rem;
}

.pay-row:last-child { border-bottom: 0; }
.pay-row span:first-child { color: var(--muted); }
.pay-row span:last-child { font-weight: 600; color: var(--dark); text-align: right; }

/* ---------- Prose (policy pages) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, .7);
    padding-top: 72px;
    margin-top: 0 !important;
}

.site-footer h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.site-footer p, .site-footer li { font-size: .92rem; }

.site-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1rem;
}

.site-footer .footer-brand img { width: 52px; height: 52px; object-fit: contain; }
.site-footer .footer-brand span { font-family: var(--font-head); font-weight: 700; color: #fff; line-height: 1.2; }

.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: .55rem; }
.site-footer .footer-links a { color: rgba(255, 255, 255, .7); }
.site-footer .footer-links a:hover { color: #fff; padding-left: 4px; }

.site-footer .contact-line { display: flex; gap: .75rem; margin-bottom: .8rem; }
.site-footer .contact-line i { color: var(--gold); margin-top: .3rem; width: 16px; }
.site-footer .contact-line a { color: rgba(255, 255, 255, .8); }

.site-footer .social { display: flex; gap: .5rem; margin-top: 1.2rem; }

.site-footer .social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    transition: all .2s;
}

.site-footer .social a:hover { background: var(--primary); transform: translateY(-2px); }

.site-footer .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.site-footer .gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: zoom-in;
    opacity: .9;
    transition: opacity .2s, transform .2s;
}

.site-footer .gallery-grid img:hover { opacity: 1; transform: scale(1.03); }

.site-footer .footer-bottom {
    margin-top: 56px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .88rem;
}

.site-footer .footer-bottom a { color: rgba(255, 255, 255, .8); }

/* ---------- Misc ---------- */
.img-open { cursor: zoom-in; }

#image-modal .modal-content { border: 0; }
#image-modal img { max-height: 85vh; object-fit: contain; }

.breadcrumb { background: transparent; padding: 0; }



/* Mobile app embed mode: page is rendered inside the app WebView */
.in-app .site-nav,
.in-app .site-footer,
.in-app .back-to-top,
.in-app .page-hero { display: none !important; }

.site-footer .footer-colleges {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.site-footer .college-chips { display: flex; flex-wrap: wrap; gap: .5rem; }

.site-footer .college-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .85);
    font-size: .85rem;
}

.site-footer .college-chip i { color: var(--gold); font-size: .75rem; }

/* Back-to-top: shown by a class instead of the template's jQuery fade (which left it visible on load) */
.btn.back-to-top {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0 !important;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s;
}

.btn.back-to-top.show {
    opacity: 1 !important;
    pointer-events: auto;
    transform: none;
}

/* Dark palette for pages shown inside the app when the app is in dark mode (?type=application&theme=dark) */
.in-app-dark {
    --surface: #162027;
    --surface-2: #1D2931;
    --light: #1D2931;
    --dark: #E7EEF1;
    --text: #E7EEF1;
    --muted: #A6B4BB;
    --border: #26333B;
    --primary-50: #3B2219;
    color-scheme: dark;
}

.in-app-dark body,
.in-app-dark .site-wrapper,
.in-app-dark .section-alt,
.in-app-dark .section-warm { background: #0D1418 !important; color: var(--text); }
.in-app-dark .card-soft,
.in-app-dark .site-wrapper .card,
.in-app-dark .form-control { background: var(--surface) !important; color: var(--text); }
.in-app-dark .text-dark { color: var(--text) !important; }
