/* =========================================================
   CAMPUS LIFE — campus-life.css
   UNIGOM colours and design system
========================================================= */

:root {
    --cl-blue:      #063852;
    --cl-blue-mid:  #0b5578;
    --cl-blue-deep: #042a3e;
    --cl-gold:      #d89a2b;
    --cl-gold-dark: #b87918;
    --cl-gold-light:#f1e4b5;
    --cl-ink:       #173b4b;
    --cl-muted:     #60727a;
    --cl-pale:      #f1f6f8;
    --cl-white:     #ffffff;
    --cl-border:    #dce7eb;

    --cl-h1: clamp(26px, 3.8vw, 44px);
    --cl-h2: clamp(20px, 2.8vw, 32px);
    --cl-h3: 17px;
    --cl-body: 15px;
    --cl-sm: 13px;

    --cl-section-py: 80px;
    --cl-gap: 24px;

    --cl-font-sans:  "DM Sans", Arial, Helvetica, sans-serif;
    --cl-font-serif: "Playfair Display", Georgia, serif;
}

.cl-page {
    font-family: var(--cl-font-sans);
    color: var(--cl-ink);
    background: var(--cl-white);
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
}
.cl-page *, .cl-page *::before, .cl-page *::after { box-sizing: inherit; }
.cl-page h1,.cl-page h2,.cl-page h3,.cl-page h4,.cl-page p { margin-top: 0; }
.cl-page a { text-decoration: none; }
.cl-page img { display: block; max-width: 100%; }

.cl-container {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* ---- EYEBROW / LABEL ---- */
.cl-eyebrow,
.cl-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cl-gold);
}
.cl-label { color: var(--cl-blue-mid); }
.cl-label--light { color: var(--cl-gold-light); }

.cl-eyebrow-line {
    display: block;
    width: 36px;
    height: 2px;
    background: var(--cl-gold);
    flex-shrink: 0;
}

/* ---- SECTION HEAD ---- */
.cl-section-head {
    max-width: 680px;
    margin: 0 auto 52px;
    text-align: center;
}
.cl-section-head h2 {
    margin: 0 0 14px;
    font-family: var(--cl-font-serif);
    font-size: var(--cl-h2);
    color: var(--cl-blue);
    line-height: 1.2;
}
.cl-section-head p {
    margin: 0;
    color: var(--cl-muted);
    font-size: var(--cl-body);
    line-height: 1.8;
}

/* ---- BUTTONS ---- */
.cl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.cl-btn--primary { background: var(--cl-blue); color: var(--cl-white); border-color: var(--cl-blue); }
.cl-btn--primary:hover { background: var(--cl-blue-mid); border-color: var(--cl-blue-mid); }
.cl-btn--ghost { background: transparent; color: var(--cl-blue); border-color: var(--cl-border); }
.cl-btn--ghost:hover { border-color: var(--cl-blue); }
.cl-btn--gold { background: var(--cl-gold); color: var(--cl-blue); border-color: var(--cl-gold); }
.cl-btn--gold:hover { background: var(--cl-gold-dark); border-color: var(--cl-gold-dark); color: var(--cl-white); }
.cl-btn--outline-light { background: transparent; color: var(--cl-white); border-color: rgba(255,255,255,.45); }
.cl-btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: var(--cl-white); }

/* ================================================================
   HERO
================================================================ */
.cl-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background: url('../../images/campus.jpeg') center 48% / cover no-repeat;
    overflow: hidden;
}
.cl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(4,42,62,.94) 0%,
        rgba(4,42,62,.82) 40%,
        rgba(6,56,82,.50) 75%,
        rgba(6,56,82,.22) 100%);
    z-index: 1;
}
.cl-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--cl-gold);
    z-index: 3;
}
.cl-hero .cl-container { position: relative; z-index: 2; }
.cl-hero-content {
    padding: 56px 0 72px;
    max-width: 720px;
    color: var(--cl-white);
}
.cl-hero-content h1 {
    margin: 0 0 16px;
    font-family: var(--cl-font-serif);
    font-size: var(--cl-h1);
    line-height: 1.12;
    color: var(--cl-white);
    letter-spacing: -.5px;
}
.cl-hero-content > p {
    margin: 0 0 28px;
    font-size: var(--cl-body);
    color: rgba(255,255,255,.8);
    max-width: 560px;
    line-height: 1.8;
}
.cl-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,.6);
}
.cl-breadcrumb a { color: var(--cl-white); font-weight: 700; transition: color .2s; }
.cl-breadcrumb a:hover { color: var(--cl-gold-light); }
.cl-breadcrumb span:last-child { color: rgba(255,255,255,.55); }

/* ================================================================
   SECTIONS
================================================================ */
.cl-section { padding: var(--cl-section-py) 0; }
.cl-section--light { background: var(--cl-pale); }

/* ================================================================
   INTRO SPLIT
================================================================ */
.cl-split {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: center;
}
.cl-split-text h2 {
    margin: 0 0 20px;
    font-family: var(--cl-font-serif);
    font-size: var(--cl-h2);
    color: var(--cl-blue);
    line-height: 1.2;
}
.cl-split-text p {
    margin: 0 0 16px;
    color: var(--cl-muted);
    font-size: var(--cl-body);
    line-height: 1.85;
}
.cl-split-text p:last-of-type { margin-bottom: 28px; }
.cl-split-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cl-split-image {
    position: relative;
    padding: 0 0 0 16px;
}
.cl-split-image::before {
    content: "";
    position: absolute;
    top: 12px; left: 0;
    width: 76%; height: 80%;
    border: 2px solid rgba(216,154,43,.75);
    border-radius: 16px;
    pointer-events: none;
}
.cl-split-image img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    border: 5px solid rgba(255,255,255,.9);
    box-shadow: 0 24px 52px rgba(4,42,62,.16);
    margin-top: 36px;
}
.cl-split-badge {
    position: absolute;
    z-index: 3;
    bottom: -16px; left: 10px;
    padding: 16px 22px;
    background: linear-gradient(135deg, var(--cl-blue) 0%, var(--cl-blue-mid) 100%);
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(4,42,62,.22);
    color: var(--cl-white);
    min-width: 200px;
}
.cl-split-badge strong { display: block; font-size: 15px; margin-bottom: 4px; }
.cl-split-badge span { display: block; font-size: 12px; color: rgba(255,255,255,.72); }

/* ================================================================
   PILLARS
================================================================ */
.cl-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cl-gap);
}
.cl-pillar {
    padding: 28px 24px 26px;
    background: var(--cl-white);
    border: 1px solid var(--cl-border);
    border-top: 3px solid var(--cl-blue);
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(6,56,82,.05);
    transition: transform .24s, box-shadow .24s, border-top-color .24s;
}
.cl-pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(6,56,82,.1);
    border-top-color: var(--cl-gold);
}
.cl-pillar-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cl-pale);
    border-radius: 10px;
    color: var(--cl-blue);
    margin-bottom: 16px;
}
.cl-pillar-icon svg { width: 22px; height: 22px; }
.cl-pillar h3 {
    margin: 0 0 10px;
    font-family: var(--cl-font-serif);
    font-size: var(--cl-h3);
    color: var(--cl-blue);
    line-height: 1.3;
}
.cl-pillar p {
    margin: 0;
    color: var(--cl-muted);
    font-size: var(--cl-sm);
    line-height: 1.75;
}

/* ================================================================
   PHOTO MOSAIC
================================================================ */
.cl-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 240px 240px;
    gap: 12px;
    margin-bottom: 32px;
}
.cl-mosaic-item {
    overflow: hidden;
    border-radius: 10px;
}
.cl-mosaic-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.cl-mosaic-item:hover img { transform: scale(1.05); }
.cl-mosaic-item--tall { grid-row: span 2; }
.cl-mosaic-item--wide { grid-column: span 2; }

.cl-gallery-cta { text-align: center; margin-top: 8px; }

/* ================================================================
   HIGHLIGHTS
================================================================ */
.cl-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--cl-gap);
}
.cl-highlight-card {
    background: var(--cl-white);
    border: 1px solid var(--cl-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .24s, box-shadow .24s;
}
.cl-highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(6,56,82,.1);
}
.cl-highlight-img {
    position: relative;
    height: 210px;
    overflow: hidden;
}
.cl-highlight-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.cl-highlight-card:hover .cl-highlight-img img { transform: scale(1.05); }
.cl-highlight-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(4,42,62,.5));
    pointer-events: none;
}
.cl-highlight-tag {
    position: absolute;
    z-index: 2;
    top: 14px; left: 14px;
    padding: 4px 12px;
    background: var(--cl-gold);
    color: var(--cl-blue-deep);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.cl-highlight-body { padding: 22px 22px 24px; }
.cl-highlight-body h3 {
    margin: 0 0 8px;
    font-family: var(--cl-font-serif);
    font-size: var(--cl-h3);
    color: var(--cl-blue);
    line-height: 1.3;
}
.cl-highlight-body p {
    margin: 0;
    color: var(--cl-muted);
    font-size: var(--cl-sm);
    line-height: 1.7;
}

/* ================================================================
   STATS
================================================================ */
.cl-stats {
    position: relative;
    padding: 60px 0;
    background: var(--cl-blue-deep);
    overflow: hidden;
}
.cl-stats::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--cl-gold);
}
.cl-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    z-index: 2;
}
.cl-stat {
    padding: 12px 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.12);
}
.cl-stat:last-child { border-right: 0; }
.cl-stat-num {
    font-family: var(--cl-font-serif);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    color: var(--cl-white);
    line-height: 1;
    margin-bottom: 8px;
}
.cl-stat-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* ================================================================
   CTA
================================================================ */
.cl-cta {
    background: var(--cl-blue);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}
.cl-cta::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--cl-gold);
}
.cl-cta-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
}
.cl-cta-copy h2 {
    margin: 0 0 14px;
    font-family: var(--cl-font-serif);
    font-size: clamp(20px, 2.8vw, 30px);
    color: var(--cl-white);
    line-height: 1.2;
}
.cl-cta-copy p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: var(--cl-body);
    line-height: 1.8;
}
.cl-cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
    .cl-pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .cl-highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .cl-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: 220px 220px 220px; }
    .cl-mosaic-item--tall { grid-row: span 1; }
    .cl-mosaic-item--wide { grid-column: span 2; }
}

@media (max-width: 860px) {
    :root { --cl-section-py: 56px; }
    .cl-hero-content { padding: 48px 0 60px; }
    .cl-split { grid-template-columns: 1fr; gap: 40px; }
    .cl-split-image { padding-left: 0; }
    .cl-split-image img { height: 360px; margin-top: 28px; }
    .cl-split-image::before { width: 82%; }
    .cl-split-badge { bottom: -12px; }
    .cl-cta-inner { grid-template-columns: 1fr; gap: 32px; }
    .cl-cta-actions { flex-direction: row; flex-wrap: wrap; }
    .cl-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cl-stat:nth-child(2) { border-right: 0; }
    .cl-stat:nth-child(1), .cl-stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 20px; }
    .cl-stat:nth-child(3), .cl-stat:nth-child(4) { padding-top: 20px; }
}

@media (max-width: 600px) {
    :root { --cl-section-py: 44px; }
    .cl-hero { min-height: 340px; }
    .cl-hero-content { padding: 40px 0 52px; }
    .cl-pillars-grid { grid-template-columns: 1fr; }
    .cl-highlights-grid { grid-template-columns: 1fr; }
    .cl-mosaic { grid-template-columns: 1fr; grid-template-rows: auto; }
    .cl-mosaic-item { height: 200px; }
    .cl-mosaic-item--tall, .cl-mosaic-item--wide { grid-row: span 1; grid-column: span 1; }
    .cl-split-image img { height: 280px; margin-top: 24px; }
    .cl-split-badge { min-width: 160px; padding: 12px 16px; }
    .cl-section-head { margin-bottom: 36px; }
    .cl-cta-actions .cl-btn { flex: 1 1 auto; }
}

@media (max-width: 380px) {
    .cl-container { padding-inline: 16px; }
    .cl-hero-content { padding: 36px 0 44px; }
    .cl-split-image img { height: 240px; margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .cl-pillar, .cl-highlight-card,
    .cl-mosaic-item img, .cl-highlight-img img { transition: none; }
}
