/* =========================================================
   IUIU Faculties Portal — public skin
   Direction: "Heritage" — a quiet, institutional voice.
   Palette   : Mbale emerald + brass on paper white.
   Type      : Spectral (display serif) + Public Sans (body).
   Principle : calm, honest, no decorative noise.
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
    --green:            #0e5b3f;   /* heritage emerald (primary)      */
    --green-dark:       #0a4631;   /* hover / pressed                 */
    --green-deep:       #081f17;   /* deepest field                   */
    --green-950:        #0b3a2a;   /* hero & stat bands               */
    --green-soft:       #e5efe9;   /* pale tint for chips / icons     */
    --green-light:      #d7e8df;   /* legacy alias (chips)            */
    --brass:            #c49a3d;   /* gold accent                     */
    --brass-dark:       #9e7a27;   /* hovered brass                   */
    --brass-soft:       #f1e8d3;   /* pale brass wash                 */
    --yellow:           #c49a3d;   /* legacy alias: maps to brass     */

    --blue:             #205e8c;   /* legacy utility (admin)          */
    --blue-dark:        #1a4a6e;
    --red:              #a3422f;   /* legacy utility (admin)          */
    --red-dark:         #84331f;
    --dark:             #1a2a22;   /* headings / strong               */
    --dark-2:           #1b2420;
    --body-text:        #46534c;   /* running text                    */
    --muted:            #7a857f;

    --paper:            #ffffff;
    --soft:             #f4f7f4;   /* alternating section surface     */
    --line:             #e2e8e4;   /* hairlines                       */

    --gray-100:         #f4f6f5;
    --gray-200:         #ecefec;
    --gray-300:         #d9dfda;
    --gray-600:         #7a857f;

    --shadow-sm:        0 1px 2px rgba(20,36,28,.05), 0 6px 18px rgba(20,36,28,.05);
    --shadow-md:        0 2px 4px rgba(20,36,28,.06), 0 12px 28px rgba(20,36,28,.08);
    --shadow-lg:        0 8px 24px rgba(20,36,28,.10);

    --radius:           .6rem;
    --radius-lg:        .75rem;
    --font:             "Public Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display:     "Spectral", "Georgia", "Times New Roman", serif;

    --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.09'%3E%3Cpath d='M36 5l6.5 24.5L67 36l-24.5 6.5L36 67l-6.5-24.5L5 36l24.5-6.5z'/%3E%3Ccircle cx='36' cy='36' r='17'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--body-text);
    background: var(--paper);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--green); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--dark);
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin-top: 0;
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin-bottom: 1rem; }
.text_white { color: var(--paper) !important; }
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
::selection { background: var(--green); color: #fff; }

/* ---------- 3. Buttons ---------- */
.btn {
    border-radius: .42rem;
    font-weight: 600;
    padding: .62rem 1.35rem;
    font-size: .95rem;
    border: 1px solid transparent;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn-brand { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 1px 2px rgba(10,60,42,.24); }
.btn-brand:hover, .btn-brand:focus { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-brand-outline { background: transparent; border: 1px solid var(--green); color: var(--green); }
.btn-brand-outline:hover, .btn-brand-outline:focus { background: var(--green); border-color: var(--green); color: #fff; }
.btn-yellow { background: var(--brass); border-color: var(--brass); color: #2b2110; }
.btn-yellow:hover, .btn-yellow:focus { background: var(--brass-dark); border-color: var(--brass-dark); color: #fff; }
.btn-white-outline { background: transparent; border: 1px solid rgba(255,255,255,.65); color: #fff; }
.btn-white-outline:hover, .btn-white-outline:focus { background: #fff; border-color: #fff; color: var(--green-dark); }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
/* Bootstrap overrides so mixed templates stay on palette */
.btn-primary { background-color: var(--green); border-color: var(--green); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--green-dark); border-color: var(--green-dark); }
.btn-outline-primary { color: var(--green); border-color: var(--green); }
.btn-outline-primary:hover, .btn-outline-primary:focus { background-color: var(--green); border-color: var(--green); color: #fff; }

/* ---------- 4. Section titles ---------- */
.section-title { margin-bottom: 2.4rem; }
.section-title .eyebrow {
    all: unset; display: block; font: 600 .8rem var(--font); color: var(--muted);
    margin-bottom: .35rem;
}
.section-title h2 { font-family: var(--font-display); font-weight: 600; color: var(--dark); margin: 0 0 .5rem; }
.section-title h2 span { color: inherit; }
.section-title .bar {
    width: 36px; height: 2px; border-radius: 1px; background: var(--brass);
    margin: .85rem 0 1rem;
}
.section-title p { color: var(--muted); max-width: 720px; }
.section-title.center { text-align: center; }
.section-title.center .bar { margin-left: auto; margin-right: auto; }
.section-title.center p { margin-left: auto; margin-right: auto; }
.section-title.light h2 { color: #fff; }
.section-title.light .eyebrow { color: var(--brass); }

/* ---------- 5. Top utility bar ---------- */
.topbar {
    background: var(--green-950);
    color: rgba(255,255,255,.82);
    font-size: .8rem;
    line-height: 1.4;
    padding: .45rem 0;
}
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: #fff; }
.topbar .social a { display: inline-block; padding: 0 .55rem; }
.topbar .quick-links a { padding: 0 .7rem; border-right: 1px solid rgba(255,255,255,.18); }
.topbar .quick-links a:last-child { border-right: 0; }
.topbar .quick-links a:first-child { padding-left: 0; }

/* ---------- 6. Masthead ---------- */
.mid-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.05rem 0;
}
.brand-wrap { display: flex; align-items: center; gap: .95rem; }
.brand-logo {
    width: 74px; height: 74px; border-radius: 50%; flex: 0 0 auto;
    background: #fff; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    padding: 9px;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo svg { width: 40px; height: 40px; }
.brand-name { line-height: 1.3; }
.brand-name .uni { font-size: .68rem; text-transform: uppercase; letter-spacing: .2em; color: var(--brass-dark); font-weight: 600; }
.brand-name .fac { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; color: var(--dark); letter-spacing: -0.01em; }
.brand-name .fac b { color: var(--green); }
.brand-tagline {
    display: block; margin-top: .12rem; font-size: .78rem; font-weight: 400;
    letter-spacing: .02em; text-transform: none; color: var(--muted);
    background: none; padding: 0; border-radius: 0;
}
.contact-chip {
    display: flex; align-items: center; gap: .6rem;
    padding: .5rem .9rem; background: none; border-left: 1px solid transparent;
    border-radius: 0; box-shadow: none;
}
.contact-chip + .contact-chip { border-left-color: var(--line); }
.contact-chip .chip-icon { width: auto; height: auto; border-radius: 0; background: none; color: var(--green); font-size: .95rem; display: inline-flex; }
.contact-chip .chip-label { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.contact-chip .chip-value { font-size: .88rem; font-weight: 600; color: var(--dark); }

/* ---------- 7. Main navigation ---------- */
.main-nav {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 1030;
    box-shadow: none;
}
.main-nav .navbar-brand { display: none; }
.main-nav .nav-link {
    font-family: var(--font);
    font-weight: 600; color: var(--dark);
    padding: 1.05rem .95rem !important; font-size: .92rem;
    display: flex; align-items: center; gap: .35rem;
    position: relative;
}
.main-nav .nav-link::after {
    content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .75rem;
    height: 2px; border-radius: 1px; background: var(--brass);
    transform: scaleX(0); transform-origin: left center; transition: transform .22s ease;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--green); }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); }
.main-nav .dropdown-menu {
    border: 1px solid var(--line); border-radius: .55rem;
    box-shadow: var(--shadow-md); padding: .4rem;
    min-width: 240px; margin-top: .35rem;
}
.main-nav .dropdown-menu .dropdown-item {
    border-radius: .42rem; padding: .5rem .85rem; font-weight: 500;
    color: var(--dark); font-size: .9rem;
}
.main-nav .dropdown-menu .dropdown-item:hover { background: var(--green-soft); color: var(--green-dark); }
.nav-icons a { color: var(--dark); padding: .25rem .5rem; }

/* ---------- 8. Hero carousel ---------- */
.hero-slider { overflow: hidden; }
.hero-slider .carousel-item {
    min-height: 460px; background-size: cover; background-position: center;
    background-color: var(--green-950);
    position: relative;
}
.hero-slider .carousel-item.active {
    display: flex; align-items: center;
}
.hero-slider .carousel-item::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(6,44,31,.95) 0%, rgba(6,44,31,.62) 44%, rgba(6,44,31,.08) 82%);
    background-image: var(--star), linear-gradient(90deg, rgba(6,44,31,.96) 0%, rgba(6,44,31,.62) 44%, rgba(6,44,31,.08) 82%);
}
.hero-slider .carousel-caption {
    position: static; transform: none; padding: 5rem 0; text-align: left; color: #fff;
    z-index: 2; width: 100%;
}
.hero-slider .carousel-caption .container { max-width: 1200px; text-align: left; }
.hero-slider .carousel-caption h1 {
    color: #fff; font-family: var(--font-display); font-weight: 600;
    font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.01em;
    max-width: 640px; margin-bottom: .8rem;
}
.hero-slider .carousel-caption p { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 560px; }
.hero-slider .carousel-caption .btn { margin-right: .5rem; margin-top: .75rem; }
.hero-slider .carousel-indicators { bottom: 1.1rem; }
.hero-slider .carousel-indicators [data-bs-target] {
    width: 22px; height: 3px; border-radius: 2px;
    background-color: rgba(255,255,255,.4); border: 0; opacity: 1;
}
.hero-slider .carousel-indicators .active { background-color: var(--brass); width: 34px; }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 6%; opacity: 0; transition: opacity .25s ease; }
.hero-slider:hover .carousel-control-prev, .hero-slider:hover .carousel-control-next { opacity: 1; }

/* ---------- 8b. Institutional hero (portal home, static) ---------- */
.hero-institutional {
    position: relative; overflow: hidden;
    background-color: var(--green-950);
    background-image: var(--star), linear-gradient(130deg, rgba(20,74,52,.35) 0%, rgba(5,30,20,.55) 60%, rgba(5,30,20,0) 100%);
    color: #fff; padding: 5.5rem 0 5.75rem;
}
.hero-institutional::after {
    content: ""; position: absolute; right: -120px; top: -140px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(196,154,61,.16) 0%, transparent 62%);
}
.hero-institutional .container { position: relative; z-index: 2; }
.hero-institutional .hero-kicker {
    display: block; font: 600 .72rem var(--font); letter-spacing: .22em; text-transform: uppercase;
    color: var(--brass); margin-bottom: 1.1rem;
}
.hero-institutional h1 {
    color: #fff; font-family: var(--font-display); font-weight: 600;
    font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.12; letter-spacing: -0.015em;
    max-width: 680px; margin-bottom: 1.1rem;
}
.hero-institutional p { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 600px; margin-bottom: 1.7rem; }
.hero-institutional .btn { margin-right: .5rem; }
.hero-crest {
    width: 92px; height: 92px; border-radius: 50%; flex: 0 0 auto;
    background: #fff; padding: 12px; margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.hero-crest img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- 9. Service boxes (quick index) ---------- */
.service-boxes { position: relative; z-index: 5; }
.service-box {
    border-radius: var(--radius-lg); padding: 1.6rem 1.4rem; height: 100%; color: var(--body-text);
    background: var(--paper) !important; border: 1px solid var(--line);
    box-shadow: none; transition: box-shadow .2s ease, border-color .2s ease;
}
.service-box:hover { box-shadow: var(--shadow-sm); border-color: var(--green-soft); }
.service-box.bg-dark, .service-box.bg-blue, .service-box.bg-red, .service-box.bg-green {
    background: var(--paper) !important; color: var(--body-text);
}
.service-box .icon {
    width: 52px; height: 52px; border-radius: .6rem; background: var(--green-soft);
    color: var(--green); border: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1rem;
}
.service-box.bg-dark .icon { background: #e8ece9; color: #3a4540; }
.service-box.bg-blue .icon { background: #e6eef7; color: #205e8c; }
.service-box.bg-red .icon { background: #f8eae6; color: #a3422f; }
.service-box.bg-green .icon { background: var(--green-soft); color: var(--green); }
.service-box h3 { color: var(--dark); font-size: 1.08rem; margin-bottom: .4rem; }
.service-box p { color: var(--muted); font-size: .9rem; margin-bottom: .9rem; }
.service-box a { color: var(--green); font-weight: 600; font-size: .86rem; }

/* ---------- 10. About ---------- */
.bg-gray-200 { background: var(--soft) !important; }
.about-media { position: relative; }
.about-media .main-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.about-media .floating-badge {
    position: absolute; bottom: -1.2rem; right: -1rem;
    background: var(--paper); color: var(--dark);
    border: 1px solid var(--line); border-left: 3px solid var(--brass);
    border-radius: .55rem; padding: .9rem 1.1rem;
    box-shadow: var(--shadow-md); text-align: center;
}
.about-media .floating-badge .n { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1; color: var(--green); }
.about-media .floating-badge .t { font-size: .68rem; font-weight: 600; text-transform: none; letter-spacing: .08em; color: var(--muted); }
.about-list { margin: 0; padding: 0; list-style: none; }
.about-list li { padding: .4rem 0; display: flex; gap: .7rem; align-items: flex-start; }
.about-list li i { color: var(--green); margin-top: .3rem; }

/* ---------- 11. Stats ---------- */
.stats-wrap {
    background-color: var(--green-950);
    background-image: var(--star);
    position: relative; overflow: hidden;
}
.stat-item { text-align: left; color: #fff; padding: 3rem 1.4rem; position: relative; }
.stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,.14); }
.stat-item .icon { display: none; }
.stat-item .number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; line-height: 1.1; color: var(--brass); }
.stat-item .label { color: rgba(255,255,255,.68); margin-top: .3rem; display: block; font-size: .8rem; font-weight: 500; letter-spacing: .04em; }

/* ---------- 12. News cards ---------- */
.blog-card {
    background: var(--paper); border-radius: var(--radius); overflow: hidden; height: 100%;
    box-shadow: none; border: 1px solid var(--line);
    display: flex; flex-direction: column;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.blog-card:hover { box-shadow: var(--shadow-sm); border-color: var(--green-soft); }
.blog-card .thumb { position: relative; overflow: hidden; }
.blog-card .thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.blog-card .date-badge {
    position: absolute; top: .8rem; left: .8rem; background: rgba(8,31,23,.86); color: #fff;
    border-radius: .4rem; text-align: center; padding: .3rem .6rem; line-height: 1.1;
    font-family: var(--font);
}
.blog-card .date-badge .d { font-size: 1rem; font-weight: 700; display: block; }
.blog-card .date-badge .m { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; }
.blog-card .cat-tag {
    position: absolute; top: .8rem; right: .8rem; background: var(--brass); color: #fff;
    font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    padding: .24rem .55rem; border-radius: 99px;
}
.blog-card .body { padding: 1.2rem 1.3rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.blog-card .meta { font-size: .78rem; color: var(--muted); margin: 0 0 .5rem; }
.blog-card .title { font-size: 1.02rem; font-family: var(--font-display); font-weight: 600; color: var(--dark); margin-bottom: .5rem; }
.blog-card .title a { color: var(--dark); }
.blog-card .title a:hover { color: var(--green); }
.blog-card .excerpt { font-size: .9rem; color: var(--muted); flex: 1; }
.blog-card .readmore { font-family: var(--font); font-weight: 600; font-size: .85rem; color: var(--green); }
.blog-card .readmore:hover { color: var(--green-dark); text-decoration: underline; }

/* ---------- 13. Panels / videos / testimonials ---------- */
.tool-panel {
    background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: none; border: 1px solid var(--line); height: 100%;
}
.tool-panel .panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; background: var(--paper); border-bottom: 1px solid var(--line);
}
.tool-panel .panel-head h3 { font-size: 1rem; margin: 0; }
.tool-panel .panel-head .panel-icon {
    width: 36px; height: 36px; border-radius: .5rem; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .95rem;
}
.video-thumb { position: relative; border-radius: .6rem; overflow: hidden; cursor: pointer; }
.video-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.video-thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8,31,23,.35); }
.video-thumb .play i {
    width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--green);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem; padding-left: .2rem;
    box-shadow: var(--shadow-md); transition: transform .2s ease;
}
.video-thumb:hover .play i { transform: scale(1.08); }
.testi-box {
    background: var(--green); color: #fff;
    border-radius: var(--radius-lg); padding: 1.6rem;
}
.testi-box .stars { color: var(--brass); margin-bottom: .7rem; }
.testi-box blockquote { margin: 0; font-size: .95rem; color: rgba(255,255,255,.9); }
.testi-box .author { margin-top: 1rem; display: flex; align-items: center; gap: .75rem; }
.testi-box .author .avatar {
    width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center; font-weight: 600; color: #fff;
}
.testi-box .author .who { font-weight: 600; color: #fff; }
.testi-box .author .role { font-size: .8rem; color: rgba(255,255,255,.72); }
.carousel-indicators.inside { position: static; margin: 1rem 0 0; }
.carousel-indicators.inside [data-bs-target] { background-color: rgba(26,42,34,.3); border: 0; }
.carousel-indicators.inside .active { background-color: var(--green); }

/* ---------- 14. Partners ---------- */
.partner-logo {
    height: 84px; border-radius: .6rem; background: var(--paper); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; margin: .4rem;
    padding: 1rem;
}
.partner-logo .pl { font-weight: 600; font-size: 1.05rem; color: var(--muted); text-align: center; line-height: 1.2; }
.partner-logo .pl small { display: block; font-weight: 500; font-size: .64rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- 15. Page hero (inner pages) ---------- */
.page-hero {
    background-image: linear-gradient(120deg, var(--green-950) 0%, var(--green) 120%);
    padding: 3.75rem 0 3.1rem; position: relative; overflow: hidden;
    background-color: var(--green-950);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: var(--star);
}
.page-hero::after {
    content: ""; position: absolute; right: -90px; top: -110px;
    width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, rgba(196,154,61,.14) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin: 0 0 .5rem; }
.page-hero p { color: rgba(255,255,255,.8); margin: 0; max-width: 640px; }
.page-hero .breadcrumb { position: relative; margin: .65rem 0 0; --bs-breadcrumb-divider-color: rgba(255,255,255,.4); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.page-hero .breadcrumb a:hover { color: var(--brass); }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.6); }
.page-hero-tag {
    display: block; margin-bottom: .7rem; font: 600 .74rem var(--font);
    letter-spacing: .14em; text-transform: uppercase; color: var(--brass);
}

/* ---------- 16. Faculty cards ---------- */
.faculty-card {
    text-align: center; background: var(--paper); border-radius: var(--radius-lg);
    border: 1px solid var(--line); box-shadow: none; padding: 1.5rem 1.1rem; height: 100%;
    transition: box-shadow .2s ease;
}
.faculty-card:hover { box-shadow: var(--shadow-sm); }
.faculty-card .avatar {
    width: 96px; height: 96px; margin: 0 auto 1rem; border-radius: 50%;
    background: var(--green-soft); border: 1px solid var(--line); outline: 3px solid var(--paper);
    display: flex; align-items: center; justify-content: center; color: var(--green);
    font-size: 1.9rem; font-weight: 600;
    position: relative; box-shadow: none;
}
.faculty-card .avatar::after { content: none; }
.faculty-card h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.faculty-card .role { color: var(--green); font-weight: 600; font-size: .78rem; text-transform: none; letter-spacing: .02em; }
.faculty-card .dept { color: var(--muted); font-size: .85rem; margin-top: .35rem; }
.faculty-card .email { font-size: .84rem; color: var(--green); word-break: break-all; }

/* ---------- 17. Department cards ---------- */
.dept-card {
    background: var(--paper); border: 1px solid var(--line); border-top-color: var(--line);
    border-radius: var(--radius); padding: 1.5rem; height: 100%;
    transition: box-shadow .2s ease;
}
.dept-card:hover { box-shadow: var(--shadow-sm); }
.dept-card .icon {
    width: 50px; height: 50px; border-radius: .6rem; background: var(--green-soft); color: var(--green);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 1rem;
}
.dept-card h3 { font-size: 1.06rem; }
.dept-card p { font-size: .9rem; color: var(--muted); }
.dept-card ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.dept-card ul li { padding: .25rem 0; font-size: .88rem; color: var(--body-text); display: flex; gap: .55rem; }
.dept-card ul li i { color: var(--green); margin-top: .28rem; width: .95rem; flex: 0 0 auto; }

/* ---------- 18. Feature / icon blocks ---------- */
.feature-block { display: flex; gap: 1rem; padding: 1.2rem; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); height: 100%; }
.feature-block .f-icon { width: 48px; height: 48px; flex: 0 0 auto; border-radius: .55rem; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: #fff; }
.feature-block h3 { font-size: 1rem; margin-bottom: .35rem; }
.feature-block p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- 19. CTA band ---------- */
.cta-band {
    background: var(--green); border-radius: var(--radius-lg); padding: 2.4rem 2.2rem; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.cta-band::before {
    content: ""; position: absolute; inset: 0;
    background-image: var(--star);
}
.cta-band::after { content: none; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin: 0 0 .35rem; font-size: 1.6rem; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }

/* ---------- 20. Forms ---------- */
.form-control, .form-select { border-radius: .5rem; padding: .68rem 1rem; border-color: var(--gray-300); }
.form-control:focus, .form-select:focus { border-color: var(--green); box-shadow: 0 0 0 .18rem rgba(14,91,63,.14); }
label { font-weight: 600; color: var(--dark); font-size: .92rem; }

/* ---------- 21. Footer ---------- */
.footer { background: var(--green-950); color: rgba(255,255,255,.78); }
.footer h5 { color: #fff; font-size: .95rem; font-family: var(--font); font-weight: 600; margin-bottom: 1.1rem; position: relative; padding-bottom: .55rem; }
.footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; border-radius: 1px; background: var(--brass); }
.footer a { color: rgba(255,255,255,.78); }
.footer a:hover { color: var(--brass); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { padding: .26rem 0; }
.footer ul:not(.contact) li i { display: none; }
.footer .contact li { display: flex; gap: .7rem; padding: .35rem 0; }
.footer .contact li i { color: var(--brass); margin-top: .28rem; }
.footer .social a {
    width: 38px; height: 38px; border-radius: 50%; background: transparent;
    border: 1px solid rgba(255,255,255,.28);
    display: inline-flex; align-items: center; justify-content: center; margin-right: .45rem;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.footer .social a:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.footer .newsletter .form-control { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.footer .newsletter .form-control::placeholder { color: rgba(255,255,255,.45); }
.footer-bottom {
    background: #071d15; color: rgba(255,255,255,.6); font-size: .85rem; padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,.06);
}
.footer-bottom a { color: rgba(255,255,255,.72); }
.footer-bottom a:hover { color: var(--brass); }

/* ---------- 22. Utilities ---------- */
.bg-green { background: var(--green) !important; }
.bg-blue  { background: var(--blue) !important; }
.bg-red   { background: var(--red) !important; }
.bg-yellow { background: var(--brass) !important; }
.bg-dark  { background: var(--dark) !important; }
.bg-gray-200 { background: var(--gray-200) !important; }
.color-green { color: var(--green) !important; }
.color-blue  { color: var(--blue) !important; }
.color-red   { color: var(--red) !important; }
.color-yellow { color: var(--brass) !important; }
.shadow-md { box-shadow: var(--shadow-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.anchor-link { display: block; scroll-margin-top: 110px; }

/* ---------- 23. Back to top ---------- */
#back-to-top {
    position: fixed; right: 1.4rem; bottom: 1.4rem; width: 44px; height: 44px; z-index: 1040;
    background: var(--green); color: #fff; border: 0; border-radius: .55rem; font-size: .95rem;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--green-dark); }

/* ---------- 24. Preloader & reveal ---------- */
#preloader {
    position: fixed; inset: 0; background: #fff; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
}
#preloader .loader {
    width: 46px; height: 46px; border: 3px solid var(--line); border-top-color: var(--green);
    border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loaded #preloader { display: none; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- 25. Feature boxes (vertical icon cards) ---------- */
.feature-box {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1.7rem 1.5rem; height: 100%; box-shadow: none;
    transition: box-shadow .2s ease;
}
.feature-box:hover { box-shadow: var(--shadow-sm); }
.feature-box .icon {
    width: 52px; height: 52px; border-radius: .6rem; background: var(--green-soft); color: var(--green);
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1rem;
}
.feature-box h3 { font-size: 1.06rem; margin-bottom: .5rem; }
.feature-box p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- 26. Check list ---------- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { padding: .35rem 0; display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; }
.check-list li i { color: var(--green); margin-top: .3rem; }

/* ---------- 27. Step cards ---------- */
.step-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1.7rem 1.5rem; height: 100%; text-align: center; position: relative; box-shadow: none;
}
.step-card .step-n {
    width: 48px; height: 48px; margin: 0 auto 1rem; border-radius: 50%;
    background: var(--green-soft); border: 1px solid var(--line); color: var(--green);
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 600;
    font-family: var(--font-display); box-shadow: none;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- 28. Resource cards ---------- */
.resource-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1.6rem; height: 100%; box-shadow: none;
    transition: box-shadow .2s ease;
}
.resource-card:hover { box-shadow: var(--shadow-sm); }
.resource-card .icon {
    width: 50px; height: 50px; border-radius: .6rem; background: var(--green-soft); color: var(--green);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 1rem;
}
.resource-card h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.resource-card p { font-size: .9rem; color: var(--muted); }

/* ---------- 29. Member cards ---------- */
.member-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; height: 100%; box-shadow: none;
    transition: box-shadow .2s ease;
}
.member-card:hover { box-shadow: var(--shadow-sm); }
.member-card .photo { background: var(--green-soft); padding: 1.5rem 1.5rem 0; text-align: center; }
.member-card .photo img { width: 104px; height: 104px; border-radius: 50%; border: 3px solid var(--paper); object-fit: cover; box-shadow: var(--shadow-sm); }
.member-card .info { padding: 1.3rem 1.3rem 1.5rem; text-align: center; }
.member-card h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.member-card .role { color: var(--green); font-weight: 600; font-size: .78rem; text-transform: none; letter-spacing: .02em; }
.member-card .bio { font-size: .86rem; color: var(--muted); margin: .6rem 0 .9rem; }
.member-card .social a {
    display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
    background: var(--paper); border: 1px solid var(--line); color: var(--dark); align-items: center; justify-content: center;
    margin: 0 .2rem; transition: background-color .2s ease, color .2s ease;
}
.member-card .social a:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- 30. Event cards ---------- */
.event-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1.4rem; height: 100%; display: flex; gap: 1.1rem; box-shadow: none;
    transition: box-shadow .2s ease;
}
.event-card:hover { box-shadow: var(--shadow-sm); }
.event-card .ev-date {
    flex: 0 0 auto; width: 74px; height: 86px; border-radius: .6rem; text-align: center;
    background: var(--green); color: #fff; padding-top: .8rem;
}
.event-card .ev-date .d { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1; }
.event-card .ev-date .m { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.event-card .ev-info h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.event-card .ev-info p { font-size: .85rem; color: var(--muted); margin-bottom: .2rem; }
.event-card .ev-info p i { color: var(--green); }

/* ---------- 31. Contact boxes & map ---------- */
.contact-box {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1.7rem 1.5rem; text-align: center; height: 100%; box-shadow: none;
    transition: box-shadow .2s ease;
}
.contact-box:hover { box-shadow: var(--shadow-sm); }
.contact-box .icon {
    width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 50%;
    background: var(--green); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.contact-box h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.contact-box p { font-size: .9rem; color: var(--muted); margin-bottom: .25rem; }
.contact-box p a { font-weight: 600; color: var(--green); }
.contact-form-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: none; height: 100%; }
.contact-form-wrap h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: none; border: 1px solid var(--line); height: 100%; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.map-note { background: var(--paper); border: 1px solid var(--line); border-radius: .55rem; padding: .85rem 1.05rem; font-size: .9rem; color: var(--muted); }

/* ---------- 32. Timeline ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding: .5rem 0; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--brass); }
.tl-item { position: relative; padding: 0 0 2rem 2.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: .4rem; width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
.tl-year { font-weight: 600; color: var(--green); font-size: .88rem; letter-spacing: .04em; }
.tl-body { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: none; }
.tl-body h4 { font-size: 1.02rem; margin-bottom: .3rem; }
.tl-body p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- 33. Admissions note ---------- */
.admissions-note {
    background: var(--green-soft); color: var(--green-dark); border-radius: var(--radius);
    padding: 1rem 1.4rem; font-weight: 500; font-size: .94rem;
}

/* ---------- 34. Theme toggle ---------- */
.theme-toggle {
    background: transparent; border: 1px solid var(--gray-300); color: var(--dark);
    width: 38px; height: 38px; border-radius: .5rem; display: inline-flex;
    align-items: center; justify-content: center; font-size: .9rem; flex: 0 0 auto;
    transition: background-color .2s ease, color .2s ease;
}
.theme-toggle:hover { background: var(--green-soft); color: var(--green-dark); }

/* ---------- 35. Password visibility toggle ---------- */
.input-password { position: relative; }
.input-password input { padding-right: 2.7rem; }
.password-toggle {
    position: absolute; right: .65rem; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: var(--muted); cursor: pointer;
    font-size: 1.05rem; padding: .3rem; line-height: 1;
}
.password-toggle:hover { color: var(--green-dark); }

/* ---------- 36. Cookie banner ---------- */
#cookie-banner {
    position: fixed; left: 1.2rem; bottom: 1.2rem; max-width: 380px; z-index: 2000;
    background: var(--dark-2); color: #e8eeea; padding: 1rem 1.1rem; border-radius: .55rem;
    box-shadow: var(--shadow-lg); font-size: .85rem; line-height: 1.55;
    opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
#cookie-banner.show { opacity: 1; visibility: visible; transform: translateY(0); }
#cookie-banner a { color: var(--brass); text-decoration: underline; }

/* ---------- 37. Rich content (markdown bodies) ---------- */
.rich-content { color: var(--body-text); }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 { margin-top: 2rem; margin-bottom: .8rem; }
.rich-content p { margin-bottom: 1rem; }
.rich-content ul, .rich-content ol { padding-left: 1.3rem; margin-bottom: 1rem; }
.rich-content li { margin-bottom: .35rem; }
.rich-content img { border-radius: var(--radius); }
.rich-content blockquote {
    border-left: 3px solid var(--brass); background: var(--soft);
    padding: .9rem 1.2rem; margin: 1.2rem 0; border-radius: 0 .5rem .5rem 0;
}
.rich-content blockquote p:last-child { margin-bottom: 0; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.rich-content table th, .rich-content table td { border: 1px solid var(--line); padding: .55rem .8rem; }
.rich-content table th { background: var(--soft); font-weight: 600; }
.rich-content a { text-decoration: underline; text-underline-offset: 2px; }
.rich-content hr { border: 0; border-top: 1px solid var(--line); margin: 1.8rem 0; }

/* ---------- 38. Dark mode ---------- */
html.dark {
    color-scheme: dark;
    --green:           #2f9c6e;
    --green-dark:      #3fb37e;
    --green-deep:      #0a1f17;
    --green-950:       #0c3225;
    --green-soft:      #173026;
    --green-light:     #1c3a2d;
    --brass:           #d3a441;
    --brass-dark:      #c49a3d;
    --yellow:          #d3a441;
    --dark-2:          #141b17;
    --dark:            #e6ece8;
    --body-text:       #cdd6d0;
    --muted:           #96a39b;
    --paper:           #131a16;
    --soft:            #161f1a;
    --line:            #27372f;
    --gray-100:        #18201c;
    --gray-200:        #1d2722;
    --gray-300:        #2e3b34;
    --gray-600:        #96a39b;
    --shadow-sm:       0 1px 2px rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.25);
    --shadow-md:       0 2px 4px rgba(0,0,0,.4), 0 12px 28px rgba(0,0,0,.35);
    --shadow-lg:       0 8px 24px rgba(0,0,0,.5);
}
html.dark body { background: var(--paper); color: var(--body-text); }
html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6 { color: var(--dark); }
html.dark .mid-header { background: var(--paper); border-bottom-color: var(--line); }
html.dark .main-nav { background: var(--paper); border-color: var(--line); }
html.dark .main-nav .nav-link { color: var(--dark); }
html.dark .theme-toggle { border-color: var(--gray-300); color: var(--dark); }
html.dark .bg-white,
html.dark .card,
html.dark .feature-box,
html.dark .dropdown-menu,
html.dark .modal-content,
html.dark .accordion-button,
html.dark .accordion-item,
html.dark .list-group-item,
html.dark .offcanvas,
html.dark .popover,
html.dark .table,
html.dark .form-control,
html.dark .form-select,
html.dark .input-group-text,
html.dark .page-link,
html.dark .breadcrumb,
html.dark .alert,
html.dark [class*="-card"],
html.dark [class*="-box"]:not(.contact-chip),
html.dark .tl-body,
html.dark .comment,
html.dark .forum-post,
html.dark .content-body { background: var(--soft); border-color: var(--line); color: var(--body-text); }
html.dark [style*="background:#fff"], html.dark [style*="background: #fff"] { background: var(--soft) !important; }
html.dark .form-control, html.dark .form-select { color: var(--body-text); border-color: var(--gray-300); }
html.dark .form-control:focus, html.dark .form-select:focus { background: var(--soft); color: var(--body-text); }
html.dark .form-control::placeholder { color: var(--gray-600); }
html.dark .table { --bs-table-bg: transparent; }
html.dark .footer-bottom { background: #08150f; }
html.dark .text-muted, html.dark .muted { color: var(--gray-600) !important; }
html.dark .brand-logo { background: var(--soft); }
html.dark .dept-card, html.dark .blog-card, html.dark .service-box,
html.dark .feature-block, html.dark .resource-card, html.dark .step-card,
html.dark .event-card, html.dark .contact-box, html.dark .member-card,
html.dark .faculty-card, html.dark .tool-panel { background: var(--soft); border-color: var(--line); }
html.dark .rich-content blockquote { background: var(--green-dark); border-color: var(--brass); }
html.dark .member-card .photo { background: var(--green-dark); }

/* ---------- 39. Print ---------- */
@media print {
    .topbar, .mid-header, .main-nav, .navbar, .footer, .footer-bottom,
    #back-to-top, #cookie-banner, .theme-toggle, .social, .newsletter,
    .btn, .hero-slider, .breadcrumb, .reveal { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    a { color: #000 !important; text-decoration: underline; }
    .section { padding: .5rem 0 !important; }
    .card, .feature-box, [class*="-card"], [class*="-box"], .tl-body {
        box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid;
    }
    .main { padding: 0 !important; }
}

/* ---------- 40. Responsive & overflow guards ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 640px; }
@media (max-width: 575.98px) {
    .login-card { margin: 1rem; }
    .hero-slider .carousel-item { min-height: 360px; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    #cookie-banner { left: .9rem; right: .9rem; bottom: .9rem; max-width: none; }
    #back-to-top { right: 1rem; bottom: 1rem; }
}