/* =========================================================
   College of Nursing & Midwifery, Mampong-Ashanti
   Design tokens derived from the college crest:
   shield green, lamp-flame gold, cream parchment, charcoal ink
   ========================================================= */
:root {
    --cnm-green:        #1B6E3C;
    --cnm-green-deep:    #0F4A28;
    --cnm-green-pale:    #E9F3EC;
    --cnm-gold:          #D4A94C;
    --cnm-gold-deep:      #B4872F;
    --cnm-cream:          #FAFAF7;
    --cnm-ink:            #23261F;
    --cnm-ink-soft:       #55594F;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--cnm-ink);
    background: var(--cnm-cream);
    line-height: 1.65;
}

h1, h2, h3, h4, .display-font {
    font-family: var(--font-display);
    color: var(--cnm-green-deep);
    font-weight: 700;
}

a { text-decoration: none; }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--cnm-green-deep);
    color: #E8F0E8;
    font-size: 0.82rem;
    padding: 6px 0;
    letter-spacing: .02em;
}
.topbar-motto { font-style: italic; opacity: .9; }

/* ---------- Navbar ---------- */
.main-nav {
    background: var(--cnm-cream);
    border-bottom: 3px solid var(--cnm-gold);
    padding: 10px 0;
}
.brand-logo {
    height: 56px;
    width: 56px;
    object-fit: contain;
}
.brand-text { margin-left: 12px; display: flex; flex-direction: column; line-height: 1.15; }
.brand-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--cnm-green-deep);
}
.brand-sub {
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cnm-gold-deep);
    font-weight: 600;
}
.main-nav .nav-link {
    color: var(--cnm-ink);
    font-weight: 600;
    font-size: .93rem;
    padding: .5rem .9rem !important;
    border-bottom: 2px solid transparent;
    transition: all .2s ease;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--cnm-green);
    border-bottom-color: var(--cnm-gold);
}
.btn-apply {
    background: var(--cnm-green);
    color: #fff !important;
    font-weight: 700;
    padding: .55rem 1.3rem !important;
    border-radius: 3px;
    border: 2px solid var(--cnm-green);
    transition: all .2s ease;
}
.btn-apply:hover { background: var(--cnm-green-deep); border-color: var(--cnm-green-deep); }

/* ---------- Hero (photo carousel) ---------- */
.hero-carousel { position: relative; overflow: hidden; }
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 620px;
}
.hero-slide-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.kenburns {
    animation: cnmKenBurns 8s ease-in-out infinite alternate;
}
@keyframes cnmKenBurns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(15,74,40,.72) 0%, rgba(15,74,40,.42) 45%, rgba(15,74,40,.15) 75%);
    pointer-events: none;
    z-index: 1;
}
.hero-caption-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    color: #fff;
    padding-bottom: 40px;
}
.hero-caption-layer .lede {
    font-size: 1.15rem;
    color: rgba(255,255,255,.92);
    max-width: 560px;
    margin-bottom: 32px;
    text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.hero-caption-layer h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.cnm-indicators { bottom: 24px; z-index: 3; }
.cnm-indicators button {
    width: 10px; height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.5);
    border: none;
    margin: 0 5px;
    transition: all .25s ease;
}
.cnm-indicators button.active { background-color: var(--cnm-gold); width: 26px; border-radius: 5px; }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 6%;
    opacity: 0;
    transition: opacity .2s ease;
    z-index: 3;
}
.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next { opacity: .8; }

/* legacy hero (still used on interior pages if needed) */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--cnm-green-deep) 0%, var(--cnm-green) 65%);
    color: #fff;
    padding: 90px 0 110px;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -80px; top: -80px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(212,169,76,.18) 0%, transparent 70%);
}
.hero-est {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,169,76,.15);
    border: 1px solid var(--cnm-gold);
    color: var(--cnm-gold);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero .lede {
    font-size: 1.15rem;
    color: rgba(255,255,255,.88);
    max-width: 560px;
    margin-bottom: 32px;
}
.hero-motto {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--cnm-gold);
    font-size: 1.05rem;
    margin-top: 10px;
}
.btn-hero-primary {
    background: var(--cnm-gold);
    border: 2px solid var(--cnm-gold);
    color: var(--cnm-green-deep);
    font-weight: 700;
    padding: .75rem 1.8rem;
    border-radius: 3px;
}
.btn-hero-primary:hover { background: var(--cnm-gold-deep); border-color: var(--cnm-gold-deep); color: #fff; }
.btn-hero-outline {
    border: 2px solid rgba(255,255,255,.6);
    color: #fff;
    font-weight: 700;
    padding: .75rem 1.8rem;
    border-radius: 3px;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

.hero-crest {
    width: 230px;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,.35));
}

/* ---------- Stats bar ---------- */
.stats-bar {
    background: var(--cnm-green-deep);
    margin-top: -55px;
    position: relative;
    z-index: 3;
    border-radius: 6px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 20px 40px rgba(15,74,40,.25);
}
.stat-item { padding: 28px 10px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--cnm-gold); }
.stat-label { color: rgba(255,255,255,.85); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Section shells ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--cnm-green-pale); }
.eyebrow {
    display: inline-block;
    color: var(--cnm-gold-deep);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: .78rem;
    margin-bottom: 10px;
}
.section-title { font-size: 2rem; margin-bottom: 14px; }
.section-lede { color: var(--cnm-ink-soft); max-width: 640px; }
.divider-gold {
    width: 60px; height: 3px; background: var(--cnm-gold); margin: 18px 0 0;
}

/* ---------- Cards ---------- */
.program-card, .news-card, .faculty-card, .value-card {
    background: #fff;
    border: 1px solid #E4E0D4;
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.program-card:hover, .news-card:hover, .faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(15,74,40,.12);
}
.card-img-top { height: 190px; object-fit: cover; }
.program-card .card-body, .news-card .card-body, .faculty-card .card-body { padding: 22px; }
.program-icon {
    width: 52px; height: 52px;
    background: var(--cnm-green-pale);
    color: var(--cnm-green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.card-link { color: var(--cnm-green); font-weight: 700; font-size: .9rem; }
.card-link:hover { color: var(--cnm-gold-deep); }
.news-date {
    color: var(--cnm-gold-deep);
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ---------- Faculty avatars ---------- */
.faculty-avatar {
    width: 84px;
    height: 84px;
    object-fit: cover;
}
.faculty-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cnm-green-pale);
    color: var(--cnm-green-deep);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
}

/* ---------- Testimonial / motto strip ---------- */
.motto-strip {
    background: var(--cnm-green);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.motto-strip q {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.6rem;
    display: block;
    max-width: 750px;
    margin: 0 auto 12px;
}

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--cnm-green-deep);
    color: #fff;
    border-radius: 8px;
    padding: 55px;
    margin: 0 15px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--cnm-ink); color: #C9CDBF; padding: 70px 0 24px; }
.footer-logo { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.footer-title { font-family: var(--font-display); color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-motto { font-style: italic; color: var(--cnm-gold); font-size: .85rem; }
.footer-text { color: #A9AE9C; font-size: .92rem; }
.footer-heading { color: #fff; font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #A9AE9C; font-size: .92rem; }
.footer-links a:hover { color: var(--cnm-gold); }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 40px 0 20px; }
.footer-bottom { color: #8A8F7D; }
.social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    background: rgba(255,255,255,.08);
    color: #fff; border-radius: 50%;
    margin-right: 8px; font-size: .8rem; font-weight: 700;
}
.social-icons a:hover { background: var(--cnm-gold); color: var(--cnm-green-deep); }

/* ---------- Gallery ---------- */
.gallery-item {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.gallery-thumb {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(15,74,40,.55);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem;
    opacity: 0;
    transition: opacity .25s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-thumb { transform: scale(1.06); }
.gallery-modal-content { background: var(--cnm-ink); border: none; border-radius: 8px; overflow: hidden; }
.gallery-modal-close { position: absolute; top: 12px; right: 12px; z-index: 5; }
.gallery-modal-caption { color: #C9CDBF; padding: 16px 20px; font-size: .92rem; }

/* ---------- Contact page map ---------- */
.contact-map-wrap {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
    background: linear-gradient(135deg, var(--cnm-green-deep), var(--cnm-green));
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 8px; }
.breadcrumb-custom { color: rgba(255,255,255,.75); font-size: .88rem; }
.breadcrumb-custom a { color: #fff; }

@media (max-width: 991px) {
    .stats-bar { margin-top: 30px; border-radius: 0; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
}

/* ---------- Hero carousel: tablet & mobile ---------- */
@media (max-width: 991px) {
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        height: 520px;
    }
    .hero-overlay {
        background: linear-gradient(180deg, rgba(15,74,40,.35) 0%, rgba(15,74,40,.55) 55%, rgba(15,74,40,.88) 100%);
    }
    .hero-caption-layer {
        align-items: flex-end;
        padding-bottom: 50px;
    }
    .hero-caption-layer .col-lg-7 { max-width: 100%; }
}

@media (max-width: 767px) {
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        height: 440px;
    }
    .hero-slide-img {
        background-position: center 30%;
    }
    .hero-caption-layer {
        padding-bottom: 36px;
    }
    .hero-est {
        font-size: .7rem;
        padding: 4px 12px;
        margin-bottom: 14px;
    }
    .hero-caption-layer h1 {
        font-size: 1.65rem;
        margin-bottom: 12px;
    }
    .hero-caption-layer .lede {
        font-size: .95rem;
        margin-bottom: 20px;
    }
    .hero-motto {
        font-size: .88rem;
    }
    .btn-hero-primary,
    .btn-hero-outline {
        padding: .6rem 1.3rem;
        font-size: .88rem;
    }
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        opacity: .6;
        width: 12%;
    }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.6rem;
        height: 1.6rem;
    }
    .contact-map-wrap { height: 280px; }
}

@media (max-width: 480px) {
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item {
        height: 380px;
    }
    .hero-caption-layer h1 { font-size: 1.4rem; }
    .hero-caption-layer .lede { font-size: .88rem; }
    .d-flex.flex-wrap.gap-3 { gap: .6rem !important; }
}