/* ==========================================================================
   Dr. MCS College of Legal Studies — Design Tokens
   Palette: judicial navy, brass gold, legal-ribbon maroon, ivory, charcoal
   Type: Fraunces (display) / Source Sans 3 (body) / IBM Plex Mono (data)
   ========================================================================== */
:root {
    --navy: #14213D;
    --navy-dark: #0C1526;
	--skyblue: #028FA2;
	--skyblue2: #016774;

    --gold: #C89B3C;
    --gold-light: #E4C77A;
    --maroon: #7A1F2B;
    --maroon-dark: #4E1119;
    --ivory: #F7F5F0;
    --charcoal: #22262B;
    --grey: #6B7280;
    --line: #E4E0D6;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --radius: 4px;
    --shadow-card: 0 12px 30px -12px rgba(20, 33, 61, 0.25);
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--ivory);
    margin: 0;
    line-height: 1.65;
}

h1, h2, h3, h4, .brand-name, .footer-logo-text {
    font-family: var(--font-display);
    color: var(--navy);
    font-weight: 600;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 18px; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-light);
    border: 1px solid rgba(228, 199, 122, 0.5);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

/* ===== Buttons ===== */
.btn-scale, .btn-outline-light, .btn-maroon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: all .2s ease;
    border: 2px solid transparent;
}
.btn-scale { background: var(--gold); color: var(--navy-dark); }
.btn-scale:hover { background: var(--gold-light); color: var(--navy-dark); }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { background: #611722; color: #fff; }

/* ===== Top Utility Bar ===== */
.topbar { background: var(--navy-dark); color: #cdd3e0; font-size: 0.85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; flex-wrap: wrap; gap: 8px; }
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-contact a { color: #cdd3e0; }
.topbar-contact a:hover { color: var(--gold-light); }
.topbar-affil { color: var(--gold-light); }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-social a { color: #cdd3e0; font-size: 0.95rem; }
.topbar-cta { background: var(--gold); color: var(--navy-dark); padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* ===== Sticky Header + Nav ===== */
.sticky-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow .25s ease;
}
.sticky-wrap.is-scrolled {
    box-shadow: 0 8px 24px -8px rgba(12, 21, 38, 0.35);
}

/* ===== Header ===== */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 56px; width: 56px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.25rem; font-weight: 700; }
.brand-tagline { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--maroon); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-badge { display: none; }
.header-badge i { color: var(--gold); font-size: 1.6rem; }
.header-badge strong { display: block; font-size: 0.85rem; color: var(--navy); }
.header-badge small { color: var(--grey); font-size: 0.72rem; }

@media (min-width: 992px) {
    .header-badge { display: flex; align-items: center; gap: 10px; border-left: 1px solid var(--line); padding-left: 20px; }
}

/* ===== Navigation ===== */
.site-nav { background: var(--skyblue); }
.navbar-nav { gap: 4px; }
.site-nav .nav-link {
    color: #eef0f5 !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 15px 16px !important;
    position: relative;
}
.site-nav .nav-link:hover { color: var(--gold-light) !important; }
.site-nav .dropdown-menu {
    border: none;
    border-top: 3px solid var(--gold);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-card);
    padding: 8px 0;
}
.site-nav .dropdown-item { font-size: 0.9rem; padding: 9px 20px; color: var(--charcoal); }
.site-nav .dropdown-item:hover { background: var(--ivory); color: var(--maroon); }
.navbar-toggler { border-color: rgba(255,255,255,0.3); }


.site-nav .nav-link.active {
    color: var(--navy) !important;
    background: var(--gold);
    border-radius: var(--radius);
    font-weight: 600;
}

.site-nav .dropdown-item.active {
    background: var(--gold);
    color: var(--navy);
    font-weight: 600;
}



/* ===== Hero Carousel ===== */
.hero-carousel { position: relative; overflow: hidden; height: 78vh; min-height: 480px; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    background-size: cover; background-position: center;
    display: flex; align-items: center;
    transition: opacity .8s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,21,38,0.88) 0%, rgba(12,21,38,0.55) 55%, rgba(12,21,38,0.35) 100%); }
.hero-content { position: relative; color: #fff; max-width: 680px; }
.hero-content h1 { color: #fff; font-size: 2.6rem; margin: 0 0 16px; }
.hero-content p { font-size: 1.05rem; color: #dfe3ee; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35);
    color: #fff; width: 44px; height: 44px; border-radius: 50%; z-index: 3;
}
.hero-nav:hover { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.hero-nav-prev { left: 24px; }
.hero-nav-next { right: 24px; }

/* ===== Stat Strip ===== */
.stat-strip { background: var(--navy-dark); padding: 30px 0; }
.stat-strip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: center; }
.stat-item { color: #cdd3e0; }
.stat-number, .stat-suffix { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; color: var(--gold-light); }
.stat-suffix { font-size: 1.1rem; margin-left: 2px; }
.stat-label { display: block; font-size: 0.8rem; letter-spacing: 0.03em; text-transform: uppercase; margin-top: 4px; }

@media (min-width: 768px) {
    .stat-strip-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ===== Page Banner (inner pages) ===== */
.page-banner { position: relative; height: 260px; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.page-banner-content { position: relative; color: #fff; padding-bottom: 26px; }
.page-banner-content h1 { color: #fff; font-size: 2.1rem; margin: 0 0 8px; }
.breadcrumb { margin: 0; font-size: 0.85rem; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb-item.active { color: #dfe3ee; }
.breadcrumb-item + .breadcrumb-item::before { color: #dfe3ee; }

/* ===== Section Basics ===== */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: #fff; }
.section-header { max-width: 680px; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; margin: 6px 0 14px; }
.section-header p { color: var(--grey); }

/* ===== Docket Numbering (used only where content is genuinely sequential: syllabus / process steps) ===== */
.docket-item { display: flex; gap: 18px; border-bottom: 1px solid var(--line); padding: 22px 0; }
.docket-num { font-family: var(--font-mono); font-weight: 600; color: var(--gold); font-size: 1.1rem; min-width: 46px; }
.docket-item h4 { margin: 0 0 6px; font-size: 1.1rem; }
.docket-item p { margin: 0; color: var(--grey); font-size: 0.95rem; }

/* ===== Cards ===== */
.card-lift { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); transition: transform .2s ease; height: 100%; }
.card-lift:hover { transform: translateY(-4px); }
.card-lift img { width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.card-body-pad { padding: 22px; }

/* ===== Seal Badge (signature element: certification stamp used for trust/verification content) ===== */
.seal-badge {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px dashed var(--gold);
    border-radius: var(--radius); padding: 18px 22px;
}
.seal-badge i { font-size: 2.4rem; color: var(--gold); }
.seal-badge strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1.05rem; }
.seal-badge span { color: var(--grey); font-size: 0.85rem; }

/* ===== Tables (staff, courses) ===== */
.table-legal { width: 100%; border-collapse: collapse; background: #fff; }
.table-legal th { background: var(--navy); color: #fff; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 14px 16px; text-align: left; }
.table-legal td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.table-legal tr:nth-child(even) td { background: #FBFAF7; }

/* ===== Sidebar ===== */
.sidebar-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.sidebar-box h5 { font-family: var(--font-display); color: var(--navy); margin-top: 0; }
.sidebar-list a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.sidebar-list a:last-child { border-bottom: none; }
.sidebar-list a:hover { color: var(--maroon); }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: #b8beca; padding-top: 56px; }

.footer-logo { height: 120px; margin-bottom: 14px; }
.footer-col h5 { color: #fff; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 26px; height: 26px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }
.footer-bottom { background: var(--skyblue2); padding: 16px 0; font-size: 0.82rem; color: #e6d9c9; margin-top: 40px; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 768px) {
    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ===== Back To Top ===== */
#backToTop {
    position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px;
    border-radius: 50%; background: var(--maroon); color: #fff; border: none;
    display: none; align-items: center; justify-content: center; font-size: 1.1rem;
    box-shadow: var(--shadow-card); z-index: 999;
}
#backToTop.show { display: flex; }

/* ===== Utility ===== */
.text-gold { color: var(--gold); }
.text-maroon { color: var(--maroon); }
.bg-ivory { background: var(--ivory); }
.divider-gold { width: 60px; height: 3px; background: var(--gold); margin: 10px 0 20px; }


.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
    align-items: flex-start;
}



@media (max-width:992px){
    .footer-grid{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:25px;
    }
}

@media (max-width:768px){
    .footer-grid{
        grid-template-columns:1fr;
        text-align:center;
    }

    .footer-social{
        justify-content:center;
        display:flex;
        gap:12px;
    }
}