/* =========================================================
   UNIGOM — faculty.css
   Shared styles for all 10 faculty / training pages
   Extends university.css design tokens — no overrides
   All classes prefixed  fac-
========================================================= */

/* ================================================================
   HERO — faculty variant (image set per page via inline style)
================================================================ */
.fac-hero {
    min-height: 460px;
    background-position: center 40%;
    background-size: cover;
    background-repeat: no-repeat;
}

/* ================================================================
   INTRO SPLIT — faculty image side uses a taller crop
================================================================ */
.fac-intro-img {
    height: 500px;
    object-position: center top;
}

/* ================================================================
   HIGHLIGHTS STRIP  (3 quick-fact pills below intro)
================================================================ */
.fac-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.fac-highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--ug-pale);
    border: 1px solid var(--ug-border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ug-blue);
}
.fac-highlight-pill svg {
    width: 14px; height: 14px;
    color: var(--ug-gold);
    flex-shrink: 0;
}

/* ================================================================
   PROGRAMMES SECTION
================================================================ */
.fac-programmes-section { background: var(--ug-pale); }

/* ================================================================
   ACCORDION  (one card per programme type)
================================================================ */
.fac-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

.fac-acc-item {
    background: var(--ug-white);
    border: 1px solid var(--ug-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(6,56,82,.04);
    transition: box-shadow .24s;
}
.fac-acc-item.is-open {
    box-shadow: 0 8px 32px rgba(6,56,82,.10);
    border-color: var(--ug-blue);
}

/* trigger button */
.fac-acc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background .18s;
}
.fac-acc-trigger:hover { background: var(--ug-pale); }
.fac-acc-item.is-open .fac-acc-trigger { background: var(--ug-pale); }

.fac-acc-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ug-pale);
    border-radius: 10px;
    color: var(--ug-blue);
    transition: background .18s, color .18s;
}
.fac-acc-item.is-open .fac-acc-icon {
    background: var(--ug-blue);
    color: var(--ug-white);
}
.fac-acc-icon svg { width: 20px; height: 20px; }

.fac-acc-label {
    flex: 1;
}
.fac-acc-label strong {
    display: block;
    font-family: var(--ug-font-serif);
    font-size: 18px;
    color: var(--ug-blue);
    line-height: 1.25;
    margin-bottom: 3px;
}
.fac-acc-label span {
    font-size: 12px;
    color: var(--ug-muted);
    font-weight: 500;
}

.fac-acc-chevron {
    flex-shrink: 0;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ug-pale);
    color: var(--ug-blue);
    transition: transform .28s, background .18s;
}
.fac-acc-item.is-open .fac-acc-chevron {
    transform: rotate(180deg);
    background: var(--ug-gold);
    color: var(--ug-blue-deep);
}
.fac-acc-chevron svg { width: 16px; height: 16px; }

/* panel */
.fac-acc-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .32s ease;
}
.fac-acc-item.is-open .fac-acc-panel {
    grid-template-rows: 1fr;
}
.fac-acc-panel-inner {
    overflow: hidden;
}

/* levels grid inside panel */
.fac-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 0 28px 28px;
}

.fac-level-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 12px;
    background: var(--ug-pale);
    border: 1px solid var(--ug-border);
    border-radius: 10px;
    text-align: center;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.fac-level-card:hover {
    border-color: var(--ug-gold);
    box-shadow: 0 6px 20px rgba(6,56,82,.08);
    transform: translateY(-3px);
}

.fac-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: var(--ug-blue);
    color: var(--ug-white);
    border-radius: 10px;
    font-family: var(--ug-font-serif);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}
.fac-level-card:hover .fac-level-badge {
    background: var(--ug-gold);
    color: var(--ug-blue-deep);
}

.fac-level-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--ug-blue);
    line-height: 1.3;
}

/* special: Master complémentaire — wider card */
.fac-level-card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 16px 20px;
}
.fac-level-card--wide .fac-level-badge {
    width: 40px; height: 40px;
    font-size: 13px;
    flex-shrink: 0;
}
.fac-level-card--wide .fac-level-name { font-size: 13px; }

/* ================================================================
   CTA BAND  (register + fees)
================================================================ */
.fac-cta-band {
    background: var(--ug-blue);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}
.fac-cta-band::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--ug-gold);
}
.fac-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.fac-cta-copy h2 {
    margin: 0 0 10px;
    font-family: var(--ug-font-serif);
    font-size: clamp(20px, 2.6vw, 28px);
    color: var(--ug-white);
    line-height: 1.2;
}
.fac-cta-copy p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: var(--ug-body);
    line-height: 1.7;
    max-width: 560px;
}
.fac-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 860px) {
    .fac-hero { min-height: 380px; }
    .fac-intro-img { height: 360px; }
    .fac-acc-trigger { padding: 18px 20px; gap: 12px; }
    .fac-levels-grid { padding: 0 20px 20px; }
    .fac-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .fac-hero { min-height: 300px; }
    .fac-intro-img { height: 260px; }
    .fac-acc-label strong { font-size: 15px; }
    .fac-levels-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        padding: 0 16px 16px;
    }
    .fac-acc-trigger { padding: 16px; }
    .fac-cta-actions { width: 100%; }
    .fac-cta-actions .ug-btn { flex: 1 1 auto; }
}
