﻿/* =========================================================
   ADMINISTRATIVE OFFICE PAGES (Lahore Campus)
   Shared by: administrative-offices, registration, examination,
   accounts, pre-audit, hr, its, day-care-center
========================================================= */

.office-section {
    position: relative;
    padding: 80px 0;
    background: #ffffff;
}

    .office-section.alt {
        background: #f6f9fa;
    }


/* ---------- Section heading ---------- */

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #087f8c;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

    .section-tag::before {
        content: "";
        width: 28px;
        height: 2px;
        border-radius: 5px;
        background: #e3b33d;
    }

.office-head {
    max-width: 760px;
    margin-bottom: 40px;
}

    .office-head.center {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .office-head h2,
    .office-intro h2 {
        margin: 0 0 14px;
        color: #173c4a;
        font-size: clamp(28px, 3.6vw, 40px);
        font-weight: 800;
        line-height: 1.15;
    }

        .office-head h2 span,
        .office-intro h2 span {
            color: #087f8c;
        }

    .office-head p {
        margin: 0;
        color: #617279;
        font-size: 14px;
        line-height: 1.8;
    }


/* ---------- Motto strip under the hero ---------- */

.office-motto {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: -40px;
    padding: 24px 30px;
    border: 1px solid #d3e8eb;
    border-left: 5px solid #087f8c;
    border-radius: 18px;
    background: #f1f8f9;
    box-shadow: 0 14px 34px rgba(20,55,67,.10);
}

    .office-motto-icon {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(20,55,67,.08);
        color: #087f8c;
        font-size: 22px;
    }

    .office-motto h3 {
        margin: 0 0 4px;
        color: #173c4a;
        font-size: 18px;
        font-weight: 800;
    }

    .office-motto p {
        margin: 0;
        color: #617279;
        font-size: 13px;
        font-style: italic;
        line-height: 1.6;
    }


/* ---------- Intro: text + highlight card ---------- */

.office-intro p {
    color: #617279;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 15px;
}

.office-highlight {
    height: 100%;
    padding: 34px 30px;
    border-radius: 20px;
    background: linear-gradient(140deg, #063b4d, #087f8c);
    color: #ffffff;
    box-shadow: 0 22px 50px rgba(6,59,77,.22);
}

    .office-highlight h3 {
        margin: 0 0 10px;
        color: #ffffff;
        font-size: 20px;
        font-weight: 800;
    }

    .office-highlight > p {
        margin: 0 0 22px;
        color: rgba(255,255,255,.78);
        font-size: 13px;
        line-height: 1.8;
    }

.office-badges {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .office-badges li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 14px;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 12px;
        background: rgba(255,255,255,.07);
        color: #ffffff;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.5;
    }

        .office-badges li i {
            margin-top: 3px;
            color: #e3b33d;
        }


/* ---------- Feature image with caption ---------- */

.office-feature-image {
    position: relative;
    height: 100%;
    min-height: 340px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 22px 50px rgba(6,59,77,.18);
}

    .office-feature-image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .office-feature-image figcaption {
        position: absolute;
        left: 18px;
        right: 18px;
        bottom: 18px;
        padding: 16px 18px;
        border-radius: 14px;
        background: rgba(6,59,77,.88);
        color: #ffffff;
    }

        .office-feature-image figcaption strong {
            display: block;
            font-size: 15px;
            font-weight: 800;
        }

        .office-feature-image figcaption span {
            color: rgba(255,255,255,.75);
            font-size: 12px;
        }


/* ---------- Service cards ---------- */

.office-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.office-service-card {
    padding: 26px 24px;
    border: 1px solid #e3ecef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(20,55,67,.05);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

    .office-service-card:hover {
        transform: translateY(-5px);
        border-color: #bfe0e3;
        box-shadow: 0 18px 40px rgba(20,55,67,.12);
    }

    .office-service-card .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin-bottom: 16px;
        border-radius: 12px;
        background: #e8f5f6;
        color: #087f8c;
        font-size: 18px;
    }

    .office-service-card h4 {
        margin: 0 0 8px;
        color: #173c4a;
        font-size: 16px;
        font-weight: 800;
        line-height: 1.35;
    }

    .office-service-card p {
        margin: 0;
        color: #617279;
        font-size: 13px;
        line-height: 1.7;
    }

    .office-service-card ul {
        margin: 10px 0 0;
        padding-left: 18px;
        color: #617279;
        font-size: 13px;
        line-height: 1.7;
    }


/* ---------- Info cards (hours, scope, steps) ---------- */

.office-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.office-info-card {
    padding: 28px;
    border: 1px solid #e3ecef;
    border-radius: 16px;
    background: #ffffff;
}

    .office-info-card h3 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 14px;
        color: #173c4a;
        font-size: 18px;
        font-weight: 800;
    }

        .office-info-card h3 i {
            color: #087f8c;
        }

    .office-info-card p,
    .office-info-card li {
        color: #617279;
        font-size: 13px;
        line-height: 1.8;
    }

    .office-info-card ul {
        margin: 0;
        padding-left: 18px;
    }

.office-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .office-table th,
    .office-table td {
        padding: 10px 12px;
        border-bottom: 1px solid #e3ecef;
        color: #617279;
        text-align: left;
    }

    .office-table th {
        color: #173c4a;
        font-weight: 800;
    }


/* ---------- Leadership / focal person cards ---------- */

.office-leaders {
    display: grid;
    gap: 24px;
}

.office-leader {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    padding: 28px;
    border: 1px solid #e3ecef;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(20,55,67,.06);
}

.office-leader-photo {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 16px;
    background: #e8f5f6;
}

    .office-leader-photo img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

.office-leader-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(140deg, #063b4d, #087f8c);
    color: #ffffff;
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 2px;
}

.office-leader-role {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fdf5e1;
    color: #a97b0c;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.office-leader h3 {
    margin: 0 0 10px;
    color: #173c4a;
    font-size: 22px;
    font-weight: 800;
}

.office-leader p {
    margin: 0 0 14px;
    color: #617279;
    font-size: 13px;
    line-height: 1.8;
}

.office-duties-title {
    margin-bottom: 6px;
    color: #173c4a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.office-leader ul {
    margin: 0 0 18px;
    padding-left: 18px;
    color: #617279;
    font-size: 13px;
    line-height: 1.8;
}

.office-contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    padding-top: 16px;
    border-top: 1px solid #e3ecef;
}

    .office-contact div {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        color: #617279;
        font-size: 13px;
        line-height: 1.5;
    }

        .office-contact div i {
            margin-top: 3px;
            color: #087f8c;
        }

    .office-contact a {
        color: #087f8c;
        font-weight: 700;
        text-decoration: none;
        word-break: break-all;
    }

        .office-contact a:hover {
            color: #e3b33d;
        }

    .office-contact strong {
        color: #173c4a;
        font-weight: 700;
    }


/* ---------- Administrative offices directory ---------- */

.office-directory {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.office-dir-card {
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    border: 1px solid #e3ecef;
    border-radius: 16px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(20,55,67,.05);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

    .office-dir-card:hover {
        transform: translateY(-5px);
        border-color: #bfe0e3;
        box-shadow: 0 18px 40px rgba(20,55,67,.12);
        color: inherit;
    }

    .office-dir-card .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin-bottom: 16px;
        border-radius: 12px;
        background: #e8f5f6;
        color: #087f8c;
        font-size: 18px;
    }

    .office-dir-card .office-leader-role {
        align-self: flex-start;
    }

    .office-dir-card h3 {
        margin: 0 0 8px;
        color: #173c4a;
        font-size: 17px;
        font-weight: 800;
    }

    .office-dir-card p {
        flex: 1;
        margin: 0 0 16px;
        color: #617279;
        font-size: 13px;
        line-height: 1.7;
    }

    .office-dir-card .go {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #087f8c;
        font-size: 12px;
        font-weight: 800;
        transition: gap .3s ease;
    }

    .office-dir-card:hover .go {
        gap: 12px;
        color: #e3b33d;
    }


/* ---------- Photo gallery ---------- */

.office-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.office-gallery-item {
    position: relative;
    grid-column: span 2;
    height: 300px;
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #e8f5f6;
    box-shadow: 0 10px 30px rgba(20,55,67,.10);
}

    .office-gallery-item.wide {
        grid-column: span 3;
    }

    .office-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .office-gallery-item figcaption {
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 14px;
        padding: 10px 14px;
        border-radius: 12px;
        background: rgba(6,59,77,.85);
        color: #ffffff;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.4;
    }


/* ---------- Programme cards: faculty label in the top-right corner ---------- */

.office-dir-card {
    position: relative;
}

    .office-dir-card .prog-faculty {
        position: absolute;
        top: 26px;
        right: 22px;
        max-width: calc(100% - 100px);
        color: #087f8c;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.35;
        text-align: right;
    }


/* ---------- Programme cards: department + faculty stacked top-right ---------- */

.office-dir-card .prog-meta {
    position: absolute;
    top: 24px;
    right: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    max-width: calc(100% - 96px);
    text-align: right;
}

    .office-dir-card .prog-meta strong {
        color: #173c4a;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.3;
    }

    .office-dir-card .prog-meta span {
        color: #087f8c;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.3;
    }

.office-dir-card:has(.prog-meta) h3 {
    margin-top: 4px;
    font-size: 19px;
    line-height: 1.3;
}


/* ---------- Programme cards v2: icon + title row, department badge, faculty ---------- */

.office-dir-card.prog-card .prog-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

    .office-dir-card.prog-card .prog-head .icon {
        flex: 0 0 46px;
        margin: 0;
    }

.office-dir-card.prog-card .prog-title {
    min-width: 0;
}

    .office-dir-card.prog-card .prog-title h3 {
        margin: 2px 0 4px;
        font-size: 18px;
        line-height: 1.3;
    }

    .office-dir-card.prog-card .prog-title p {
        flex: none;
        margin: 0;
        font-size: 13px;
    }

.office-dir-card.prog-card .office-leader-role {
    margin-bottom: 6px;
}

.office-dir-card.prog-card .prog-faculty-line {
    margin-bottom: 18px;
    color: #087f8c;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.office-dir-card.prog-card .go {
    margin-top: auto;
}


/* ---------- Programme cards v3: department + faculty as one consistent meta block ---------- */

.office-dir-card.prog-card .office-leader-role,
.office-dir-card.prog-card .prog-faculty-line {
    display: flex;
    align-items: flex-start;
    align-self: stretch;
    gap: 8px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    font-size: 12.5px;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

    .office-dir-card.prog-card .office-leader-role::before,
    .office-dir-card.prog-card .prog-faculty-line::before {
        flex: 0 0 14px;
        margin-top: 1px;
        color: #0b858d;
        font-family: "Font Awesome 7 Pro", "Font Awesome 6 Free", "Font Awesome 5 Pro";
        font-size: 11px;
        font-weight: 900;
        text-align: center;
    }

/* Department: first line of the meta block, pinned to the bottom of the card */
.office-dir-card.prog-card .office-leader-role {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e3ecef;
    color: #173c4a;
    font-weight: 700;
}

    .office-dir-card.prog-card .office-leader-role::before {
        content: "\f1ad"; /* building */
    }

/* Faculty: same size and icon treatment, lighter weight */
.office-dir-card.prog-card .prog-faculty-line {
    margin-top: 6px;
    margin-bottom: 16px;
    color: #5d7078;
    font-weight: 500;
}

    .office-dir-card.prog-card .prog-faculty-line::before {
        content: "\f19c"; /* building-columns */
    }

.office-dir-card.prog-card .go {
    margin-top: 0;
}


/* ---------- Programme pages: grouped by department (pilot: Undergraduate) ---------- */

.prog-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.prog-group {
    overflow: hidden;
    border: 1px solid #e3ecef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(20,55,67,.06);
}

.prog-group-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #e3ecef;
    background: #f1f8f9;
}

.prog-group-icon {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #073b4c;
    color: #ffffff;
    font-size: 17px;
}

.prog-group-text {
    flex: 1;
    min-width: 0;
}

    .prog-group-text h3 {
        margin: 0 0 2px;
        color: #173c4a;
        font-size: 17px;
        font-weight: 800;
        line-height: 1.3;
    }

    .prog-group-text span {
        color: #5d7078;
        font-size: 12.5px;
        font-weight: 500;
    }

.prog-group-count {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffffff;
    color: #087f8c;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* Programmes inside a group: compact rows, not a card grid */
.office-directory.prog-group-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.office-dir-card.prog-card-slim {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border: 0;
    border-top: 1px solid #eef3f4;
    border-radius: 0;
    box-shadow: none;
}

    .office-dir-card.prog-card-slim:first-child {
        border-top: 0;
    }

    .office-dir-card.prog-card-slim:hover {
        transform: none;
        background: #f7fbfb;
        box-shadow: none;
    }

    .office-dir-card.prog-card-slim .prog-head {
        flex: 1;
        align-items: center;
        margin: 0;
    }

        .office-dir-card.prog-card-slim .prog-head .icon {
            display: none;
        }

    .office-dir-card.prog-card-slim .prog-title h3 {
        margin: 0 0 2px;
        font-size: 15.5px;
    }

    .office-dir-card.prog-card-slim .prog-title p {
        font-size: 12.5px;
    }

    /* "View Program" collapses to an arrow on the right of the row */
    .office-dir-card.prog-card-slim .go {
        flex-shrink: 0;
        margin: 0;
        font-size: 0;
    }

        .office-dir-card.prog-card-slim .go i {
            font-size: 14px;
        }

@media (max-width: 991px) {
    .prog-groups {
        grid-template-columns: 1fr;
    }
}


/* ---------- Programme pages in the home "Faculties & Departments" card style ---------- */

.prog-dept-card .department-item > span {
    align-items: flex-start;
}

    .prog-dept-card .department-item > span > i {
        margin-top: 3px;
    }

.prog-dept-card .prog-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 2px;
    line-height: 1.35;
}

    .prog-dept-card .prog-name small {
        color: rgba(255,255,255,.55);
        font-size: 11px;
        font-weight: 500;
    }

.prog-dept-card .faculty-title span {
    text-transform: none;
    letter-spacing: .3px;
}


/* ---------- Responsive ---------- */

@media (max-width: 991px) {
    .office-services,
    .office-directory {
        grid-template-columns: repeat(2, 1fr);
    }

    .office-leader {
        grid-template-columns: 180px 1fr;
        gap: 22px;
    }
}

@media (max-width: 767px) {
    .office-section {
        padding: 56px 0;
    }

    .office-motto {
        flex-direction: column;
        align-items: flex-start;
        margin-top: -30px;
        padding: 20px;
    }

    .office-services,
    .office-directory,
    .office-info,
    .office-contact,
    .office-gallery {
        grid-template-columns: 1fr;
    }

    .office-gallery-item,
    .office-gallery-item.wide {
        grid-column: auto;
        height: 240px;
    }

    .office-leader {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .office-leader-photo {
        height: 280px;
    }
}
