/* ============================================
   Baptist Theological Seminary — Custom Styles
   ============================================ */

:root {
    --navy: #0B1F3A;
    --navy-light: #16325a;
    --navy-dark: #071528;
    --gold: #D4A017;
    --gold-hover: #b8860b;
    --gold-soft: rgba(212, 160, 23, 0.12);
    --white: #ffffff;
    --light-gray: #F8F9FA;
    --text: #2c3e50;
    --text-muted: #6c757d;
    --font-body: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
    --shadow: 0 8px 30px rgba(11, 31, 58, 0.08);
    --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--light-gray);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--navy);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Navbar ---------- */
.navbar {
    background: var(--navy);
    padding: 0.85rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    transition: padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white) !important;
}

.brand-shield {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 46px;
    color: var(--white);
    flex-shrink: 0;
}

.brand-shield svg {
    width: 100%;
    height: 100%;
}

.brand-text-single {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 1.6vw, 1.05rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
    max-width: 220px;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 50%;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
    font-size: 0.95rem;
    padding: 0.5rem 0.95rem !important;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold) !important;
}

.navbar .dropdown-menu {
    background: var(--white);
    border: 0;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 0.65rem;
    margin-top: 0.75rem;
}

.navbar .dropdown-item {
    color: var(--navy);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.55rem 0.85rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item.active {
    background: var(--gold-soft);
    color: var(--gold);
}

@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
    }

    .navbar .dropdown:hover .dropdown-toggle {
        color: var(--gold) !important;
    }
}

.btn-apply {
    padding: 0.5rem 1.35rem !important;
    font-size: 0.9rem;
    border-radius: 6px;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.35rem 0.55rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Buttons ---------- */
.btn-gold {
    background: var(--gold);
    color: var(--white) !important;
    border: 2px solid var(--gold);
    font-weight: 600;
    border-radius: 6px;
    transition: all var(--transition);
}

.btn-gold:hover,
.btn-gold:focus {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--white) !important;
}

.btn-outline-gold {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid var(--gold);
    font-weight: 600;
    border-radius: 6px;
    transition: all var(--transition);
}

.btn-outline-gold:hover,
.btn-outline-gold:focus {
    background: var(--gold);
    color: var(--white) !important;
}

.btn-navy {
    background: var(--navy);
    color: var(--white) !important;
    border: 2px solid var(--navy);
    font-weight: 600;
    border-radius: var(--radius);
}

.btn-navy:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    color: var(--white) !important;
}

/* ---------- Page Hero ---------- */
.page-hero {
    position: relative;
    background: var(--navy);
    background-image:
        linear-gradient(135deg, rgba(11, 31, 58, 0.92) 0%, rgba(7, 21, 40, 0.85) 100%),
        url('https://images.unsplash.com/photo-1438233916034-2612d987a047?w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 5.5rem 0 4rem;
    text-align: center;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
}

.page-hero .breadcrumb {
    justify-content: center;
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.page-hero .breadcrumb-item.active {
    color: var(--gold);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

.page-hero-solid {
    background: var(--navy);
    background-image: none;
    padding: 4rem 0 3.25rem;
}

.page-hero-solid::after {
    display: none;
}

/* ---------- About page ---------- */
.about-mission-section {
    padding: 4.5rem 0;
    background: var(--light-gray);
}

.about-mission-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-mission-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.about-mv-block {
    margin-bottom: 2.25rem;
}

.about-mv-block h2 {
    color: var(--gold);
    font-size: clamp(1.65rem, 2.5vw, 2rem);
    margin-bottom: 0.85rem;
}

.about-mv-block p {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.about-history-section {
    padding: 4.5rem 0;
    background: var(--white);
}

.about-section-title {
    color: var(--gold);
    font-size: clamp(1.75rem, 3vw, 2.15rem);
    margin-bottom: 0.5rem;
}

.about-history-content p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1.35rem;
    text-align: justify;
}

.about-mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.about-mission-list li {
    background: var(--light-gray);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.85rem;
    align-items: center;
    color: var(--navy);
    font-weight: 500;
    box-shadow: 0 4px 18px rgba(11, 31, 58, 0.05);
}

.about-mission-list i {
    color: var(--gold);
    flex-shrink: 0;
}

.about-values-section {
    padding: 4rem 0 4.5rem;
    background: var(--light-gray);
}

.about-value-item {
    text-align: center;
    padding: 1rem 0.75rem;
}

.about-value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.35rem;
    background: rgba(212, 160, 23, 0.06);
}

.about-value-item h3 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
}

.about-value-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

.about-verse-banner {
    background: var(--navy);
    padding: 3.5rem 0;
    text-align: center;
}

.about-verse-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    color: var(--white);
    line-height: 1.7;
    max-width: 820px;
    margin: 0 auto;
    border: none;
}

.about-verse-text cite {
    display: block;
    font-style: normal;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gold);
    margin-top: 1rem;
}

/* ---------- Principal message ---------- */
.principal-message-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.principal-message-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: clamp(2rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    border-top: 5px solid var(--gold);
}

.principal-message-photo {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--gold-soft);
    border: 4px solid var(--white);
}

.principal-message-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.principal-message-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
}

.principal-message-content > p:not(.section-eyebrow) {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.principal-signature {
    border-left: 4px solid var(--gold);
    padding-left: 1.25rem;
}

.principal-signature h3 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.principal-signature p {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0;
}

/* ---------- Staff page ---------- */
.staff-page-section {
    padding: 4rem 0 5rem;
    background: var(--light-gray);
}

.staff-member-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 18px rgba(11, 31, 58, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: center;
}

.staff-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.staff-member-photo {
    background: #e9ecef;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.staff-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.staff-member-info {
    padding: 1.35rem 1rem 1.6rem;
}

.staff-member-info h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.staff-member-affil {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.staff-member-role {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---------- Gallery page ---------- */
.gallery-page-section {
    padding: 3rem 0 4.5rem;
    background: var(--light-gray);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.gallery-filter-btn {
    background: var(--white);
    color: var(--navy);
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.55rem 1.35rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.gallery-filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.gallery-filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(11, 31, 58, 0.06);
    background: #e9ecef;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-grid-item.hidden-by-filter {
    display: none !important;
}

/* ---------- Admin gallery ---------- */
.admin-body {
    min-height: 100vh;
    background: var(--light-gray);
    font-family: var(--font-body);
}

.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        linear-gradient(135deg, rgba(11, 31, 58, 0.94), rgba(11, 31, 58, 0.78)),
        url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?w=1600&q=80');
    background-size: cover;
    background-position: center;
}

.admin-login-card {
    width: min(100%, 420px);
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.admin-login-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.admin-login-card h1 {
    font-size: 1.9rem;
    margin-bottom: 0.4rem;
}

.admin-login-card p,
.admin-login-help {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-login-help {
    text-align: center;
    margin-top: 1.2rem;
}

.admin-topbar {
    background: var(--navy);
    color: var(--white);
    padding: 1.25rem clamp(1rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-topbar h1 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 0.15rem;
}

.admin-topbar p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.admin-topbar-actions {
    display: flex;
    gap: 0.75rem;
}

.admin-layout {
    width: min(1180px, calc(100% - 2rem));
    margin: 2rem auto 4rem;
}

.admin-panel {
    background: var(--white);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-panel-header h2 {
    font-size: 1.45rem;
    margin-bottom: 0;
}

.admin-panel-header span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-crop-wrap {
    max-height: 520px;
    border: 1px dashed rgba(11, 31, 58, 0.24);
    border-radius: 12px;
    padding: 0.75rem;
    background: var(--light-gray);
}

.admin-crop-wrap img {
    display: block;
    max-width: 100%;
    max-height: 480px;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.admin-gallery-card {
    border: 1px solid rgba(11, 31, 58, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

.admin-gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #e9ecef;
}

.admin-gallery-card-body {
    padding: 1rem;
}

.admin-gallery-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.admin-gallery-card p {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-bottom: 0.9rem;
}

.admin-gallery-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

/* ---------- Home Hero ---------- */
.home-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(100deg, rgba(11, 31, 58, 0.88) 0%, rgba(11, 31, 58, 0.55) 45%, rgba(11, 31, 58, 0.25) 100%),
        url('../images/hero.jpg');
    background-size: cover;
    background-position: center 40%;
    color: var(--white);
    overflow: visible;
    padding-bottom: 6rem;
}

.home-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 5rem 0 3rem;
}

.hero-kicker {
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.1rem;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.05rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2rem;
    max-width: 480px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---------- Values strip (overlaps hero) ---------- */
.values-overlap {
    margin-top: -5.5rem;
    position: relative;
    z-index: 5;
    padding-bottom: 1rem;
}

.values-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.value-col {
    text-align: center;
    padding: 2.75rem 2rem;
}

.value-col-border {
    border-left: 1px solid #e8eaed;
    border-right: 1px solid #e8eaed;
}

.value-icon {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 1.1rem;
}

.value-col h3 {
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
    color: var(--navy);
}

.value-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Welcome panel ---------- */
.welcome-section {
    padding: 3.5rem 0 2rem;
}

.welcome-panel {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 3rem;
    color: var(--white);
    overflow: hidden;
}

.welcome-eyebrow {
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.welcome-title {
    color: var(--white);
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    margin-bottom: 1.25rem;
}

.welcome-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    max-width: 480px;
}

.welcome-image {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 280px;
}

.welcome-image img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

/* ---------- Stats home panel ---------- */
.stats-home {
    padding: 1.5rem 0 4rem;
}

.stats-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.stat-home-item {
    text-align: center;
    padding: 2.25rem 1.25rem;
}

.stat-home-border {
    border-left: 1px solid #e8eaed;
}

.stat-home-icon {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}

.stat-home-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.stat-home-label {
    font-size: 0.88rem;
    color: var(--navy);
    font-weight: 500;
    opacity: 0.85;
}

/* ---------- Our Programs ---------- */
.programs-section {
    padding: 1rem 0 4.5rem;
    background: var(--light-gray);
}

.programs-header {
    margin-bottom: 2.5rem;
}

.programs-header h2 {
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    margin-bottom: 0.75rem;
}

.program-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(11, 31, 58, 0.06);
    padding: 1.5rem 1.25rem;
    height: 100%;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform var(--transition), box-shadow var(--transition);
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.program-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    background: rgba(212, 160, 23, 0.06);
}

.program-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.program-card-body p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
    line-height: 1.55;
}

.program-link {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.program-link i {
    font-size: 0.75rem;
    transition: transform var(--transition);
}

.program-link:hover {
    color: var(--gold-hover);
}

.program-link:hover i {
    transform: translateX(3px);
}

/* ---------- Sections ---------- */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.gold-divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 1.25rem;
    border: none;
}

/* ---------- Feature / About preview ---------- */
.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-soft);
    color: var(--gold);
    border-radius: 50%;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.feature-block h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-accent {
    position: absolute;
    bottom: -1.25rem;
    left: -1.25rem;
    background: var(--gold);
    color: var(--navy);
    padding: 1.25rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    max-width: 200px;
}

/* ---------- Course Cards ---------- */
.course-card {
    background: var(--white);
    border: 1px solid rgba(11, 31, 58, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.course-card-img {
    height: 180px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
}

.course-card-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.course-card-img i {
    position: relative;
    z-index: 1;
}

.course-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-level {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.course-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.course-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    flex: 1;
}

.course-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(11, 31, 58, 0.08);
}

/* ---------- Staff Cards ---------- */
.staff-card {
    text-align: center;
    background: var(--white);
    border: 1px solid rgba(11, 31, 58, 0.08);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
}

.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.staff-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    border: 4px solid var(--gold-soft);
    display: block;
    background: var(--navy);
}

.staff-avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    border: 4px solid var(--gold-soft);
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.staff-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.staff-role {
    color: var(--gold);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.staff-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---------- Gallery ---------- */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 31, 58, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    color: var(--white);
    font-size: 1.5rem;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ---------- Stats ---------- */
.stats-section {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    background:
        linear-gradient(135deg, rgba(11, 31, 58, 0.95), rgba(11, 31, 58, 0.9)),
        url('https://images.unsplash.com/photo-1507692049790-de58290a4334?w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 2rem;
}

/* ---------- Contact ---------- */
.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: var(--gold-soft);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contact-info-item h5 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.contact-info-item p,
.contact-info-item a {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.92rem;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid rgba(11, 31, 58, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form .form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--navy);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid rgba(11, 31, 58, 0.15);
    border-radius: var(--radius);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 160, 23, 0.2);
}

.map-embed {
    border: 0;
    width: 100%;
    height: 320px;
    border-radius: var(--radius);
    filter: grayscale(20%);
}

.alert-success-custom {
    background: rgba(212, 160, 23, 0.12);
    border: 1px solid var(--gold);
    color: var(--navy);
    border-radius: var(--radius);
}

/* ---------- Values / Mission ---------- */
.value-block {
    text-align: center;
    padding: 2rem 1.5rem;
}

.value-block .feature-icon {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.35rem;
    width: 14px;
    height: 14px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateX(-5.5px);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--gold);
}

.timeline-year {
    font-weight: 600;
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.75);
}

.footer-main {
    padding: 4rem 0 3rem;
}

.footer-brand {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-brand h5 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 0;
}

.footer-about {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--navy);
}

.footer-heading {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.65rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: var(--gold);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--gold);
    margin-top: 0.25rem;
    width: 16px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    font-size: 0.85rem;
}

.footer-verse {
    color: var(--gold);
    font-size: 0.85rem;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 1060;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--navy);
    color: var(--gold);
}

/* ---------- Quote / Verse ---------- */
.verse-block {
    background: var(--light-gray);
    border-left: 4px solid var(--gold);
    padding: 1.75rem 2rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--navy);
}

.verse-ref {
    display: block;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    margin-top: 0.75rem;
}

/* ---------- Academics page ---------- */
.academics-hero {
    position: relative;
    min-height: 42vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(11, 31, 58, 0.92) 0%, rgba(11, 31, 58, 0.62) 48%, rgba(11, 31, 58, 0.25) 100%),
        url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?w=1800&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 4.5rem 0;
}

.academics-hero-content {
    max-width: 560px;
}

.academics-hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
}

.academics-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.2rem;
}

.academics-hero .breadcrumb {
    margin-bottom: 0;
}

.academics-hero .breadcrumb-item,
.academics-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

.academics-hero .breadcrumb-item.active {
    color: var(--gold);
}

.academics-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.55);
}

.academics-approach {
    background: var(--white);
    padding: 3rem 0;
}

.academics-approach-intro {
    padding-right: 2rem;
}

.academics-approach-intro span,
.academic-programs-header span {
    display: inline-block;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.academics-approach-intro h2,
.academic-programs-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    margin-bottom: 0.8rem;
}

.academics-approach-intro p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0;
}

.academics-pillars {
    border-left: 1px solid #e4e7eb;
}

.academics-pillar {
    height: 100%;
    text-align: center;
    padding: 1.75rem 1.1rem;
    border-right: 1px solid #e4e7eb;
}

.academics-pillar i {
    color: var(--gold);
    font-size: 2.1rem;
    margin-bottom: 0.9rem;
}

.academics-pillar h3 {
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.45rem;
}

.academics-pillar p {
    color: var(--text-muted);
    font-size: 0.83rem;
    line-height: 1.55;
    margin-bottom: 0;
}

.academic-programs-section {
    background: var(--light-gray);
    padding: 3rem 0 1rem;
}

.academic-programs-header {
    margin-bottom: 2rem;
}

.academic-program-card {
    position: relative;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 22px rgba(11, 31, 58, 0.07);
    height: 100%;
    overflow: hidden;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.academic-program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.academic-program-image {
    height: 95px;
    overflow: hidden;
    background: var(--navy);
}

.academic-program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.academic-program-card:hover .academic-program-image img {
    transform: scale(1.07);
}

.academic-program-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -23px auto 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 14px rgba(212, 160, 23, 0.35);
}

.academic-program-body {
    padding: 1rem 1rem 1.25rem;
}

.academic-program-body h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.academic-program-duration {
    color: var(--navy) !important;
    font-size: 0.82rem !important;
    font-weight: 700;
    margin-bottom: 0.55rem !important;
}

.academic-program-body p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.academic-program-body a {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 600;
}

.academic-program-body a i {
    margin-left: 0.25rem;
    font-size: 0.7rem;
    transition: transform var(--transition);
}

.academic-program-body a:hover i {
    transform: translateX(3px);
}

.academic-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.academic-info-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.75rem;
    border-top: 4px solid var(--gold);
}

.academic-info-card h3 {
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.academic-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.academic-info-card li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    color: var(--text);
    font-size: 0.93rem;
}

.academic-info-card li i {
    color: var(--gold);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.academic-info-card p {
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.academic-info-card p:last-child {
    margin-bottom: 0;
}

.academic-feature-band {
    background: var(--navy);
    border-radius: 8px;
    margin-top: 2rem;
    overflow: hidden;
    color: var(--white);
}

.academic-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1.35rem 1.5rem;
}

.academic-feature-border {
    border-left: 1px solid rgba(255, 255, 255, 0.24);
    border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.academic-feature-item i {
    color: var(--gold);
    font-size: 2rem;
    flex-shrink: 0;
}

.academic-feature-item h3 {
    font-family: var(--font-body);
    color: var(--gold);
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.academic-feature-item p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .home-hero {
        min-height: 70vh;
        padding-bottom: 5rem;
        background:
            linear-gradient(180deg, rgba(11, 31, 58, 0.88) 0%, rgba(11, 31, 58, 0.7) 100%),
            url('https://images.unsplash.com/photo-1509023464722-18d996393ca8?w=1200&q=80');
        background-size: cover;
        background-position: center;
    }

    .home-hero .hero-content {
        padding: 3.5rem 0 2rem;
    }

    .values-overlap {
        margin-top: -4rem;
    }

    .welcome-panel {
        padding: 2rem;
    }

    .navbar-nav .nav-link {
        padding: 0.65rem 0 !important;
    }

    .about-accent {
        left: 1rem;
        bottom: 1rem;
    }

    .about-image-wrap img {
        height: 320px;
    }

    .brand-text-single {
        max-width: 160px;
        font-size: 0.8rem;
    }

    .academics-hero {
        min-height: 36vh;
        background:
            linear-gradient(90deg, rgba(11, 31, 58, 0.9) 0%, rgba(11, 31, 58, 0.72) 100%),
            url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?w=1200&q=80');
        background-size: cover;
        background-position: center;
    }

    .academics-approach-intro {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .academics-pillars {
        border-left: none;
        border-top: 1px solid #e4e7eb;
    }

    .academics-pillar {
        border-right: none;
        border-bottom: 1px solid #e4e7eb;
    }

    .academic-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .value-col-border {
        border-left: none;
        border-right: none;
        border-top: 1px solid #e8eaed;
        border-bottom: 1px solid #e8eaed;
    }

    .stat-home-border {
        border-left: none;
    }

    .col-6.col-md-3:nth-child(odd) .stat-home-item {
        border-right: 1px solid #e8eaed;
    }

    .stat-home-item {
        border-bottom: 1px solid #e8eaed;
    }

    .academic-feature-border {
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.24);
        border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    }

    .academic-feature-item {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .section {
        padding: 3.5rem 0;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .value-col {
        padding: 2rem 1.5rem;
    }

    .welcome-panel {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .principal-message-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .principal-message-photo {
        max-width: 280px;
        margin: 0 auto;
    }

    .principal-signature {
        border-left: 0;
        border-top: 4px solid var(--gold);
        padding-left: 0;
        padding-top: 1rem;
    }

    .about-accent {
        position: static;
        margin-top: 1rem;
        max-width: none;
    }

    .academics-hero {
        padding: 3.5rem 0;
    }

    .academics-hero p {
        font-size: 0.95rem;
    }

    .academic-programs-section {
        padding-top: 2.5rem;
    }

    .academic-program-image {
        height: 140px;
    }

    .academic-info-card {
        padding: 1.35rem;
    }

    .academic-info-card ul {
        grid-template-columns: 1fr;
    }
}
