/* =========================================================
   CAMPUS OVERRIDES
   Loaded last by _LayoutCUIWebMain and _Inner. Same refinements as the Lahore campus site
   (lahore-overrides.css) for the home-page leadership section and the section headings.
========================================================= */

:is(
    .islamabad-section-header,
    .leadership-section-header,
    .services-section-header,
    .useful-links-header,
    .testimonials-header,
    .contact-section-header
) {
    max-width: none;
}

    :is(
        .islamabad-section-header,
        .leadership-section-header,
        .services-section-header,
        .useful-links-header,
        .testimonials-header,
        .contact-section-header
    ) > p {
        max-width: 760px;
        margin-left: inherit;
        margin-right: inherit;
    }

main h2,
section h2 {
    text-wrap: balance;
}


/* HOMEPAGE LEADERSHIP CARDS: the template text was 6-10.5px, too small to read */

.leadership-card .photo-role {
    padding: 7px 11px;
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.leadership-card .photo-name h3 {
    font-size: 24px;
}

.leadership-card .photo-name span {
    font-size: 13px;
}

.leadership-card .leadership-content {
    padding: 22px 24px 24px;
}

.leadership-card .leadership-label {
    font-size: 11px;
    letter-spacing: 1.4px;
}

.leadership-card .leadership-quote {
    width: 38px;
    height: 38px;
    font-size: 14px;
}

.leadership-card .leadership-message p {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255,255,255,.78);
}

.leadership-card .leadership-link {
    padding-top: 16px;
    font-size: 13px;
}

@media (max-width: 767px) {
    .leadership-card .photo-name h3 {
        font-size: 20px;
    }

    .leadership-card .photo-name span {
        font-size: 12px;
    }

    .leadership-card .leadership-content {
        padding: 18px;
    }

    .leadership-card .leadership-message p {
        font-size: 14px;
    }
}

/* The Director card shares the "campus-card" class with the navbar campus picker, which added padding,
   a light background and a different hover. Reset it to match the Rector card. */
.leadership-card.campus-card {
    height: 100%;
    padding: 0;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
    background: rgba(255,255,255,.055);
    box-shadow: 0 15px 35px rgba(0,0,0,.14);
    cursor: default;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

    .leadership-card.campus-card:hover {
        background: rgba(255,255,255,.055);
        border-color: rgba(99,196,199,.28);
        box-shadow: 0 22px 45px rgba(0,0,0,.20);
        transform: translateY(-5px);
    }

    .leadership-card.campus-card:hover .leadership-photo img {
        transform: scale(1.035);
    }

/* Menu and button links jump to page sections; keep them clear of the fixed floating header */
section[id],
.faculty-modern-card[id] {
    scroll-margin-top: 110px;
}

/* Homepage Upcoming Events: the empty state inherited dark grey text on the teal panel */
.events-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 6px 0 18px;
}

    .events-empty i {
        color: #ffffff;
        font-size: 30px;
    }

    .events-empty p {
        margin: 0;
        color: #ffffff;
        font-size: 16px;
        font-weight: 600;
    }

.faculty-title h3 a { color: inherit; text-decoration: none; }
.faculty-title h3 a:hover { color: var(--faculty-accent); }
.department-item-empty { color: rgba(255,255,255,.5); font-size: 11px; padding: 10px 12px; }
