/* ================================================================
   UX Enhancements  – MGIPMS  (maroon #7f132a / gold #f3bd00)
   ================================================================ */

:root {
    --bs-primary: #7f132a;
    /* RGB used by Bootstrap utilities like rgba(var(--bs-primary-rgb), ...) */
    --bs-primary-rgb: 127,19,42;
    --bs-secondary: #f3bd00;
    /* RGB used by Bootstrap utilities like rgba(var(--bs-secondary-rgb), ...) */
    --bs-secondary-rgb: 243,189,0;
}

/* ── Smooth scroll & base ──────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ── Top bar ───────────────────────────────────────────────────── */
.topbar { font-size: .8rem; letter-spacing: .02em; }
.topbar-social a { transition: opacity .2s; }
.topbar-social a:hover { opacity: .75; }

/* ── Sticky navbar ─────────────────────────────────────────────── */
#mainNav {
    transition: box-shadow .25s ease, background-color .25s ease;
}
#mainNav.nav-scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,.12) !important;
}
#mainNav .navbar-nav .nav-link {
    padding: .45rem .9rem;
    font-size: .92rem;
    color: #333;
    position: relative;
    transition: color .2s;
}
#mainNav .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: .9rem; right: .9rem;
    height: 2px;
    background: var(--bs-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}
#mainNav .navbar-nav .nav-link:hover::after,
#mainNav .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* ── Hero carousel ─────────────────────────────────────────────── */
.hero-slide {
    height: 520px;
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,rgba(127,19,42,.45) 0%,rgba(0,0,0,.28) 100%);
    pointer-events: none;
}
.hero-caption {
    position: absolute;
    inset: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 8% 4%;
    text-align: center;
}
.hero-eyebrow {
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bs-secondary);
    margin-bottom: .5rem;
}
.hero-title {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1rem;
}
.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 1.5rem;
    max-width: 560px;
    text-align: center;
}
.btn-hero {
    padding: .65rem 1.6rem;
    font-weight: 600;
    border-radius: 30px;
    transition: transform .2s, box-shadow .2s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.carousel-indicators [data-bs-target] {
    width: 10px; height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.6);
    border: none;
    margin: 0 4px;
}
.carousel-indicators .active { background-color: var(--bs-secondary); }
@media (max-width: 767px) {
    .hero-slide { height: 300px; }
    .hero-caption { padding: 0 5% 5%; align-items: center; text-align: center; }
    .hero-title { font-size: 1.5rem; }
}

/* ── Stats bar ─────────────────────────────────────────────────── */
.stats-bar { border-top: 4px solid var(--bs-secondary); }
.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--bs-secondary);
}
.stat-label {
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
}
.stat-item { padding: .5rem; }

/* ── Section typography helpers ────────────────────────────────── */
.section-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin-bottom: .4rem;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: .55rem;
    margin-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 3px;
    background: var(--bs-secondary);
    border-radius: 2px;
}
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }

/* ── About section ─────────────────────────────────────────────── */
.about-image-container { padding-bottom: 28%; }
.about-overlay {
    position: absolute;
    bottom: -12%;
    right: -8%;
    width: 55%;
    border: 4px solid #fff;
}
.feature-list li { font-size: .95rem; font-weight: 500; }

/* ── Course cards ──────────────────────────────────────────────── */
.course-card {
    transition: transform .25s ease, box-shadow .25s ease;
    border-radius: 10px;
    overflow: hidden;
}
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(127,19,42,.15) !important;
}
.course-card-img {
    position: relative;
    overflow: hidden;
    height: 190px;
}
.course-card-img img {
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.course-card:hover .course-card-img img { transform: scale(1.06); }
.course-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(127,19,42,.68);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}
.course-card:hover .course-card-overlay { opacity: 1; }
.course-badge {
    display: inline-block;
    background: var(--bs-secondary);
    color: #222;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .2rem .55rem;
    border-radius: 20px;
    margin-top: .25rem;
}
.course-card .card-title { font-size: .98rem; font-weight: 700; color: #1a1a1a; }

/* ── VMO section ───────────────────────────────────────────────── */
.vmo-section { background: #fff; }
.vmo-card {
    background: #f8f6f6;
    transition: transform .25s, box-shadow .25s;
    border-top: 4px solid transparent;
}
.vmo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
    border-top-color: var(--bs-primary);
}
.vmo-card--accent {
    background: var(--bs-primary);
    color: #fff;
    border-top-color: var(--bs-secondary);
}
.vmo-card--accent .text-muted { color: rgba(255,255,255,.75) !important; }
.vmo-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--bs-secondary);
    color: var(--bs-primary);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform .2s;
}
.vmo-card:hover .vmo-icon { transform: rotate(8deg) scale(1.1); }
.vmo-card--accent .vmo-icon { background: rgba(255,255,255,.2); color: #fff; }
.vmo-title { font-weight: 700; font-size: 1.1rem; }

/* ── Contact section ───────────────────────────────────────────── */
.contact-section {
    /* lighten the gradient to avoid an overly dark background */
    background: linear-gradient(135deg, var(--bs-primary) 0%, #8b2b2f 100%);
}
.contact-section .section-eyebrow { color: var(--bs-secondary); }
.contact-info-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    transition: background .2s;
}
.contact-info-card:hover { background: rgba(255,255,255,.14); }
.contact-info-icon {
    min-width: 40px; height: 40px;
    background: var(--bs-secondary);
    color: var(--bs-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.contact-info-title { font-weight: 700; color: #fff; font-size: .9rem; }
.contact-info-card .text-muted { color: rgba(255,255,255,.7) !important; }
.contact-form {
    background: #fff;
    border-radius: 12px;
}
.contact-form .form-control,
.contact-form .form-select {
    border-color: #ced4da;
    border-radius: 8px;
    transition: border-color .2s, box-shadow .2s;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .2rem rgba(127,19,42,.15);
}

/* ── Mega footer ───────────────────────────────────────────────── */
.mega-footer { border-top: 3px solid var(--bs-secondary); }
.footer-heading {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bs-secondary);
    margin-bottom: .75rem;
}
.footer-links { font-size: .88rem; }
.footer-links li { margin-bottom: .3rem; }
.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color .2s;
}
.footer-links a:hover { color: var(--bs-secondary); }
.footer-social a {
    font-size: 1.3rem;
    color: #adb5bd;
    transition: color .2s;
}
.footer-social a:hover { color: var(--bs-secondary); }

/* ── Back to top ───────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-3px); }


/* -- Page Hero Banner (interior pages) -------------------------- */
.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 180px;
    display: flex;
    align-items: center;
}
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* -- Custom logo sizing ------------------------------------------- */
.custom-logo { height: 56px; width: auto; }

/* -- Bootstrap WP menu active state ------------------------------- */
.navbar-nav .current-menu-item > .nav-link,
.navbar-nav .current_page_item > .nav-link {
    color: var(--bs-primary) !important;
}
.navbar-nav .current-menu-item > .nav-link::after,
.navbar-nav .current_page_item > .nav-link::after {
    width: 100%;
}
