/* ==========================================================================
   Home page — index.php (data from includes/campuses.php).
   Same palette and type as the Programmes, Faculty and Our Graduates pages.
   Everything is scoped under .hp so it cannot leak into the shared header,
   footer or the Bootstrap 3 / style-v1.css rules used on the rest of the site.
   ========================================================================== */

.hp {
    --hp-navy: #243a73;
    --hp-navy-deep: #1a2b57;
    --hp-navy-soft: #eef1f8;
    --hp-gold: #faa619;
    --hp-gold-soft: #fbe3b3;
    --hp-gold-wash: #fff6e6;
    --hp-gold-text: #9a5b00;
    --hp-green: #2f6b4f;
    --hp-green-soft: #e8f3ed;
    --hp-ink: #1c2541;
    --hp-text: #3d4458;
    --hp-muted: #586074;
    --hp-line: #e6e3da;
    --hp-cream: #faf8f3;
    --hp-card: #ffffff;
    --hp-radius: 14px;
    --hp-shadow: 0 1px 2px rgba(28, 37, 65, .04), 0 2px 8px rgba(28, 37, 65, .04);
    --hp-shadow-hover: 0 4px 10px rgba(28, 37, 65, .06), 0 14px 32px rgba(28, 37, 65, .08);
    --hp-serif: "Noto Serif", Georgia, "Times New Roman", serif;
    --hp-sans: "Open Sans", "Segoe UI", Arial, sans-serif;
    --hp-arabic: "Amiri", "Traditional Arabic", "Noto Naskh Arabic", serif;
    --hp-urdu: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
    --hp-lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Crect x='16' y='16' width='40' height='40'/%3E%3Crect x='16' y='16' width='40' height='40' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='8'/%3E%3C/g%3E%3C/svg%3E");

    display: block;
    background: var(--hp-cream);
    color: var(--hp-text);
    font-family: var(--hp-sans);
    font-size: 15px;
    font-weight: 400;
    /* style-v1.css sets body line-height in em, which would inherit as a fixed px value */
    line-height: 1.6;
    overflow-x: clip;
}

/* style-v1.css paints #content white, and its id selector outranks .hp */
#content.hp {
    background: var(--hp-cream);
}

.hp *,
.hp *::before,
.hp *::after {
    box-sizing: border-box;
}

.hp [hidden] {
    display: none !important;
}

.hp h1,
.hp h2,
.hp h3,
.hp h4 {
    margin: 0;
    font-family: var(--hp-serif);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    color: var(--hp-ink);
}

.hp p,
.hp figure,
.hp blockquote,
.hp address,
.hp dl,
.hp dd {
    margin: 0;
}

.hp ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp a {
    color: var(--hp-navy);
}

.hp img {
    max-width: 100%;
    height: auto;
}

.hp :focus-visible {
    outline: 3px solid var(--hp-gold);
    outline-offset: 2px;
}

.hp-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Shared: sections, eyebrow, headings, icons, buttons
   -------------------------------------------------------------------------- */

.hp-section {
    padding: 80px 0;
    scroll-margin-top: 90px;
}

.hp-section__head {
    max-width: 680px;
    margin: 0 auto 40px;
    text-align: center;
}

.hp .hp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hp-gold-text);
}

.hp .hp-eyebrow::before,
.hp .hp-eyebrow--center::after {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--hp-gold);
}

.hp .hp-eyebrow--center {
    display: flex;
    justify-content: center;
}

.hp .hp-heading {
    font-size: clamp(26px, 3.2vw, 36px);
    letter-spacing: -.01em;
}

.hp .hp-section__note {
    margin-top: 10px;
    font-size: 16px;
    color: var(--hp-muted);
}

.hp .hp-lead {
    font-family: var(--hp-serif);
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.6;
    color: var(--hp-ink);
}

.hp-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--hp-navy);
    color: var(--hp-gold);
    font-size: 19px;
}

.hp-icon--sm {
    width: 38px;
    height: 38px;
    font-size: 15px;
}

.hp-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--hp-navy-soft);
    color: var(--hp-navy);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.hp .hp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--hp-navy);
    text-decoration: none;
}

.hp .hp-link .fa {
    color: var(--hp-gold-text);
    transition: transform .2s;
}

.hp .hp-link:hover,
.hp .hp-link:focus {
    color: var(--hp-navy-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hp .hp-link:hover .fa {
    transform: translateX(3px);
}

.hp .hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid var(--hp-navy);
    border-radius: 999px;
    background: var(--hp-navy);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, color .2s;
}

.hp .hp-btn:hover,
.hp .hp-btn:focus {
    background: var(--hp-navy-deep);
    border-color: var(--hp-navy-deep);
    color: #fff;
    text-decoration: none;
}

.hp .hp-btn .fa {
    color: var(--hp-gold);
}

.hp .hp-btn--outline {
    background: transparent;
    color: var(--hp-navy);
}

.hp .hp-btn--outline .fa {
    color: var(--hp-navy);
}

.hp .hp-btn--outline:hover,
.hp .hp-btn--outline:focus {
    background: var(--hp-navy-soft);
    border-color: var(--hp-navy);
    color: var(--hp-navy);
}

.hp .hp-btn--gold {
    background: var(--hp-gold);
    border-color: var(--hp-gold);
    color: var(--hp-ink);
}

.hp .hp-btn--gold .fa {
    color: var(--hp-ink);
}

.hp .hp-btn--gold:hover,
.hp .hp-btn--gold:focus {
    background: #ffb938;
    border-color: #ffb938;
    color: var(--hp-ink);
}

.hp .hp-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.hp .hp-btn--ghost:hover,
.hp .hp-btn--ghost:focus {
    background: rgba(255, 255, 255, .1);
    border-color: #fff;
    color: #fff;
}

.hp .hp-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--hp-green-soft);
    color: var(--hp-green);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.hp .hp-wa .fa {
    font-size: 17px;
}

.hp .hp-wa--sm {
    padding: 3px 11px;
    font-size: 13px;
}

.hp .hp-wa:hover,
.hp .hp-wa:focus {
    background: var(--hp-green);
    color: #fff;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   The Hidayah family, under the banner
   -------------------------------------------------------------------------- */

.hp-family {
    padding: 22px 0;
    background: var(--hp-card);
    border-bottom: 1px solid var(--hp-line);
}

.hp-family__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hp .hp-family__card {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 14px 16px;
    background: var(--hp-cream);
    border: 1px solid var(--hp-line);
    border-radius: 12px;
    color: var(--hp-text);
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s, background-color .2s;
}

.hp .hp-family__card:hover,
.hp .hp-family__card:focus {
    background: var(--hp-card);
    border-color: var(--hp-gold-soft);
    box-shadow: var(--hp-shadow-hover);
    transform: translateY(-2px);
    text-decoration: none;
}

.hp-family__logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--hp-shadow);
}

.hp .hp-family__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.hp-family__body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.hp-family__name {
    font-family: var(--hp-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hp-ink);
}

.hp-family__desc {
    font-size: 13px;
    line-height: 1.45;
    color: var(--hp-muted);
}

.hp-family__go {
    margin-left: auto;
    align-self: flex-start;
    color: var(--hp-muted);
    font-size: 13px;
}

.hp .hp-family__card:hover .hp-family__go {
    color: var(--hp-gold-text);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hp-hero {
    padding: 64px 0 104px;
    color: #fff;
    background-color: var(--hp-navy);
    background-image:
        radial-gradient(ellipse 60% 70% at 85% 45%, rgba(250, 166, 25, .12), transparent 70%),
        var(--hp-lattice),
        linear-gradient(180deg, var(--hp-navy) 0%, var(--hp-navy-deep) 100%);
    background-size: auto, 72px 72px, auto;
}

.hp-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.hp .hp-hero__bismillah {
    display: block;
    width: 230px;
    margin-bottom: 26px;
    /* The artwork is black; show it white on the navy hero */
    filter: brightness(0) invert(1);
    opacity: .9;
}

.hp .hp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 5px 14px;
    border: 1px solid rgba(250, 166, 25, .45);
    border-radius: 999px;
    background: rgba(250, 166, 25, .08);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--hp-gold-soft);
}

.hp .hp-hero__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hp-gold);
}

.hp .hp-hero__title {
    margin-bottom: 18px;
    font-size: clamp(36px, 5.4vw, 60px);
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #fff;
}

.hp .hp-hero__title span {
    display: block;
    margin-top: 6px;
    font-size: .52em;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0;
    color: var(--hp-gold-soft);
}

.hp .hp-hero__lede {
    max-width: 560px;
    font-size: clamp(16px, 1.8vw, 18px);
    line-height: 1.7;
    color: rgba(255, 255, 255, .86);
}

.hp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hp-hero__mark {
    display: flex;
    justify-content: center;
}

.hp-hero__medallion {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 360px);
    aspect-ratio: 1;
    padding: 30px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 0 10px rgba(255, 255, 255, .06),
        0 0 0 22px rgba(250, 166, 25, .1),
        0 30px 60px rgba(0, 0, 0, .3);
}

/* --------------------------------------------------------------------------
   Stats card, overlapping the bottom of the hero
   -------------------------------------------------------------------------- */

.hp-stats-wrap {
    position: relative;
    z-index: 1;
    margin-top: -52px;
}

.hp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    max-width: 940px;
    margin: 0 auto;
    background: var(--hp-card);
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    box-shadow: 0 10px 30px rgba(28, 37, 65, .1);
}

.hp-stat {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
    padding: 22px 16px;
    text-align: center;
}

.hp-stat + .hp-stat {
    border-left: 1px solid var(--hp-line);
}

.hp .hp-stat__value {
    font-family: var(--hp-serif);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--hp-navy);
}

.hp .hp-stat__label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--hp-muted);
}

/* --------------------------------------------------------------------------
   Announcement banner
   -------------------------------------------------------------------------- */

.hp-announce {
    background: #fff;
}

.hp-announce__img {
    display: block;
}

.hp-announce__img img {
    display: block;
    width: 100%;
    max-width: none;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.hp-about {
    padding-top: 64px;
}

.hp-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
}

.hp .hp-about__text .hp-heading {
    margin-bottom: 20px;
}

.hp .hp-about__text p + p {
    margin-top: 16px;
}

.hp .hp-about__text p:not(.hp-lead):not(.hp-eyebrow) {
    font-size: 16px;
    line-height: 1.75;
}

.hp-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hp-feature {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: var(--hp-card);
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
}

.hp-feature:nth-child(2),
.hp-feature:nth-child(3) {
    background: linear-gradient(180deg, var(--hp-gold-wash) 0, var(--hp-card) 120px);
    border-color: var(--hp-gold-soft);
}

.hp .hp-feature__title {
    margin-bottom: 4px;
    font-size: 18px;
}

.hp .hp-feature__text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--hp-muted);
}

/* --------------------------------------------------------------------------
   President's message + video
   -------------------------------------------------------------------------- */

.hp-message {
    background: var(--hp-card);
}

.hp-message__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

/* The message is long; keep the video in view beside it (below the sticky header) */
.hp-video {
    position: sticky;
    top: 110px;
    margin-top: 40px;
}

.hp .hp-message__card .hp-heading {
    margin-bottom: 24px;
    font-size: clamp(24px, 2.8vw, 32px);
}

.hp .hp-message__card > p {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.75;
}

.hp-hadith {
    padding: 22px 24px;
    background: var(--hp-cream);
    border: 1px solid var(--hp-line);
    border-left: 4px solid var(--hp-gold);
    border-radius: 12px;
}

.hp .hp-hadith blockquote {
    padding: 0;
    border: 0;
    font-size: inherit;
    font-style: normal;
    color: inherit;
}

.hp .hp-hadith__arabic {
    font-family: var(--hp-arabic);
    font-size: clamp(21px, 2.4vw, 25px);
    line-height: 1.9;
    color: var(--hp-ink);
    text-align: right;
}

.hp .hp-hadith__english {
    margin-top: 10px;
    font-family: var(--hp-serif);
    font-size: 17px;
    font-style: italic;
    line-height: 1.6;
    color: var(--hp-ink);
}

.hp .hp-hadith figcaption {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--hp-gold-text);
}

.hp-message__sign {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--hp-line);
}

.hp-message__name {
    font-family: var(--hp-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--hp-ink);
}

.hp-message__name abbr {
    border: 0;
    text-decoration: none;
    cursor: help;
}

.hp-message__role {
    font-size: 14px;
    color: var(--hp-muted);
}

.hp-message__sign .hp-link {
    margin-top: 10px;
}

.hp .hp-video__frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--hp-radius);
    background: var(--hp-navy-deep);
    box-shadow: 0 24px 50px rgba(28, 37, 65, .18);
}

.hp .hp-video__frame img,
.hp .hp-video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.hp .hp-video__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 43, 87, .05), rgba(26, 43, 87, .45));
    transition: opacity .25s;
}

.hp-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    padding-left: 5px;
    border-radius: 50%;
    background: var(--hp-gold);
    color: var(--hp-ink);
    font-size: 26px;
    box-shadow: 0 0 0 10px rgba(250, 166, 25, .25);
    transform: translate(-50%, -50%);
    transition: transform .25s, box-shadow .25s;
}

.hp .hp-video__frame:hover .hp-video__play,
.hp .hp-video__frame:focus .hp-video__play {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 0 0 14px rgba(250, 166, 25, .3);
}

.hp .hp-video__frame:hover::after {
    opacity: .6;
}

.hp-video.is-playing .hp-video__frame::after {
    display: none;
}

.hp .hp-video__caption {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-muted);
    text-align: center;
}

.hp-video__caption .fa {
    margin-right: 4px;
    color: #d93025;
}

/* --------------------------------------------------------------------------
   Courses
   -------------------------------------------------------------------------- */

.hp-course-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.hp .hp-course {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 26px;
    background: var(--hp-card);
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
    color: var(--hp-text);
    text-decoration: none;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}

.hp .hp-course:hover,
.hp .hp-course:focus {
    border-color: #d8d3c4;
    box-shadow: var(--hp-shadow-hover);
    transform: translateY(-3px);
    text-decoration: none;
}

.hp-course .hp-icon {
    margin-bottom: 10px;
}

.hp-course__name {
    font-family: var(--hp-serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hp-ink);
}

.hp-course__name::after {
    content: " ›";
    color: var(--hp-gold-text);
}

.hp .hp-course__urdu {
    font-family: var(--hp-urdu);
    font-size: 19px;
    line-height: 1.7;
    color: var(--hp-gold-text);
    text-align: left;
}

.hp-course__text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--hp-muted);
}

.hp-course__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--hp-navy);
}

.hp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hp-green);
    box-shadow: 0 0 0 3px var(--hp-green-soft);
}

.hp-courses {
    background: var(--hp-cream);
}

/* --------------------------------------------------------------------------
   Campus programmes finder: tabs + panels
   -------------------------------------------------------------------------- */

.hp-finder {
    background: var(--hp-card);
}

.hp-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.hp .hp-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--hp-line);
    border-radius: 999px !important;
    background: var(--hp-cream);
    color: var(--hp-ink);
    font: 600 14px/1.2 var(--hp-sans);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}

.hp .hp-tab .fa {
    color: var(--hp-gold-text);
}

.hp .hp-tab:hover {
    border-color: var(--hp-navy);
}

.hp .hp-tab[aria-selected="true"] {
    background: var(--hp-navy);
    border-color: var(--hp-navy);
    color: #fff;
}

.hp .hp-tab[aria-selected="true"] .fa {
    color: var(--hp-gold);
}

.hp-tab__new {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--hp-gold);
    color: var(--hp-ink);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hp-panel {
    padding: 28px;
    background: var(--hp-cream);
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    scroll-margin-top: 110px;
}

/* Without JavaScript every campus is listed one after another */
.hp-panel + .hp-panel {
    margin-top: 18px;
}

.hp-tabs--js .hp-panel + .hp-panel {
    margin-top: 0;
}

.hp-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--hp-line);
}

.hp .hp-panel__title {
    font-size: 23px;
}

.hp .hp-panel__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 6px;
    font-size: 14px;
    color: var(--hp-muted);
}

.hp .hp-panel__summary {
    max-width: 680px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
}

.hp-classes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.hp-class {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: var(--hp-card);
    border: 1px solid var(--hp-line);
    border-left: 3px solid var(--hp-gold);
    border-radius: 12px;
    box-shadow: var(--hp-shadow);
}

.hp-class.is-closed {
    border-left-color: #cfcabd;
    box-shadow: none;
}

.hp-class__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.hp-class__session {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--hp-gold-text);
}

.hp-status {
    margin-left: auto;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.hp-status--open {
    background: var(--hp-green-soft);
    color: var(--hp-green);
}

.hp-status--closed {
    background: #efede7;
    color: var(--hp-muted);
}

.hp .hp-class__title {
    font-size: 17px;
    line-height: 1.35;
}

.is-closed .hp-class__title {
    color: var(--hp-text);
}

.hp .hp-class__when {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-text);
}

.hp-class__when .fa {
    margin-right: 3px;
    color: var(--hp-muted);
}

.hp .hp-class__note {
    font-size: 13px;
    font-style: italic;
    color: var(--hp-muted);
}

.hp-class__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    font-size: 14px;
}

.hp-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hp-panel__actions:empty {
    display: none;
}

.hp-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
    padding: 18px 22px;
    background: var(--hp-gold-wash);
    border: 1px solid var(--hp-gold-soft);
    border-radius: 12px;
    font-size: 15px;
    color: var(--hp-ink);
}

.hp-notice .fa {
    margin-top: 3px;
    font-size: 18px;
    color: var(--hp-gold-text);
}

.hp-notice a {
    font-weight: 700;
}

.hp-notice--panel {
    max-width: none;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Campus directory
   -------------------------------------------------------------------------- */

.hp-campuses {
    background: var(--hp-cream);
}

.hp-campus-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hp-campus {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    background: var(--hp-card);
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
    transition: box-shadow .25s, border-color .25s;
}

.hp-campus:hover {
    border-color: #d8d3c4;
    box-shadow: var(--hp-shadow-hover);
}

.hp-campus__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp .hp-campus__title {
    font-size: 18px;
}

.hp-badge {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--hp-navy-soft);
    color: var(--hp-navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hp-badge--new {
    background: var(--hp-gold);
    color: var(--hp-ink);
}

.hp .hp-campus__summary {
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--hp-gold-wash);
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-gold-text);
}

.hp .hp-campus__addr {
    display: flex;
    gap: 10px;
    font-size: 14px;
    font-style: normal;
    line-height: 1.55;
    color: var(--hp-text);
}

.hp-campus__addr .fa {
    flex: 0 0 auto;
    width: 12px;
    margin-top: 3px;
    color: var(--hp-gold-text);
    text-align: center;
}

.hp-campus__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: auto !important;
    padding-top: 12px !important;
    border-top: 1px dashed var(--hp-line);
    font-size: 14px;
}

.hp .hp-campus__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    font-weight: 600;
    text-decoration: none;
}

.hp .hp-campus__links a:hover,
.hp .hp-campus__links a:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hp-campus__links .fa {
    color: var(--hp-gold-text);
}

.hp .hp-campus__classes {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border-radius: 10px;
    background: var(--hp-navy-soft);
    color: var(--hp-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.hp .hp-campus__classes:hover,
.hp .hp-campus__classes:focus {
    background: var(--hp-navy);
    color: #fff;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Hidayah Publisher books
   -------------------------------------------------------------------------- */

.hp-books {
    background: var(--hp-card);
}

.hp-books__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.hp-books__controls {
    display: flex;
    gap: 8px;
}

.hp .hp-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--hp-line);
    border-radius: 50% !important;
    background: var(--hp-card);
    color: var(--hp-navy);
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}

.hp .hp-round:hover {
    background: var(--hp-navy);
    border-color: var(--hp-navy);
    color: #fff;
}

.hp .hp-round:disabled {
    opacity: .4;
    cursor: default;
    background: var(--hp-card);
    border-color: var(--hp-line);
    color: var(--hp-navy);
}

.hp-book-list {
    display: grid;
    grid-auto-columns: 168px;
    grid-auto-flow: column;
    gap: 20px;
    padding: 6px 4px 20px !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--hp-gold-soft) transparent;
}

.hp-book-list li {
    scroll-snap-align: start;
}

.hp .hp-book {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4.3;
    border-radius: 6px 10px 10px 6px;
    background: var(--hp-cream);
    box-shadow:
        inset 4px 0 6px -3px rgba(0, 0, 0, .25),
        0 2px 4px rgba(28, 37, 65, .08),
        0 10px 24px rgba(28, 37, 65, .12);
    transition: transform .25s, box-shadow .25s;
}

.hp .hp-book img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp .hp-book:hover,
.hp .hp-book:focus {
    transform: translateY(-4px);
    box-shadow:
        0 4px 8px rgba(28, 37, 65, .1),
        0 18px 34px rgba(28, 37, 65, .18);
}

.hp-books__more {
    margin-top: 12px !important;
    text-align: center;
}

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

@media (max-width: 1199px) {
    .hp-course-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .hp-hero {
        padding: 52px 0 96px;
    }

    .hp-hero__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hp-hero__mark {
        display: none;
    }

    .hp-about__grid,
    .hp-message__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .hp-video {
        position: static;
        margin-top: 0;
    }

    .hp-campus-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Many campuses: one scrollable row of tabs instead of several wrapped rows */
    .hp-tabs__nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin-right: -15px;
        margin-left: -15px;
        padding: 2px 15px 10px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .hp-tabs__nav::-webkit-scrollbar {
        display: none;
    }

    .hp .hp-tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}

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

    .hp-section__head {
        margin-bottom: 28px;
    }

    .hp-hero {
        padding: 40px 0 88px;
        text-align: center;
    }

    .hp .hp-hero__bismillah {
        width: 190px;
        margin-right: auto;
        margin-left: auto;
    }

    .hp .hp-hero__lede {
        margin-right: auto;
        margin-left: auto;
    }

    .hp-hero__actions {
        justify-content: center;
    }

    .hp-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hp-stat {
        padding: 16px 10px;
    }

    .hp-stat + .hp-stat {
        border-left: 0;
    }

    .hp-stat:nth-child(even) {
        border-left: 1px solid var(--hp-line);
    }

    .hp-stat:nth-child(n+3) {
        border-top: 1px solid var(--hp-line);
    }

    .hp .hp-stat__value {
        font-size: 28px;
    }

    .hp-features,
    .hp-course-list,
    .hp-campus-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .hp-feature {
        flex-direction: row;
        align-items: flex-start;
        padding: 20px;
    }

    .hp-panel {
        padding: 20px 16px;
    }

    .hp-panel__head .hp-wa {
        width: 100%;
        justify-content: center;
    }

    .hp-classes {
        grid-template-columns: minmax(0, 1fr);
    }

    .hp-panel__actions .hp-btn {
        flex: 1 1 100%;
    }

    .hp-book-list {
        grid-auto-columns: 136px;
        gap: 14px;
    }
}

@media (max-width: 767px) {
    .hp-family {
        padding: 14px 0;
    }

    .hp-family__list {
        gap: 8px;
    }

    .hp .hp-family__card {
        flex-direction: column;
        gap: 6px;
        padding: 10px 6px;
        text-align: center;
    }

    .hp-family__logo {
        width: 48px;
        height: 48px;
        padding: 4px;
    }

    .hp-family__name {
        font-size: 13px;
    }

    .hp-family__desc,
    .hp-family__go {
        display: none;
    }
}

@media (max-width: 380px) {
    .hp-hero__actions .hp-btn {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp *,
    .hp *::before,
    .hp *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .hp .hp-course:hover,
    .hp .hp-course:focus,
    .hp .hp-family__card:hover,
    .hp .hp-family__card:focus,
    .hp .hp-book:hover,
    .hp .hp-book:focus {
        transform: none;
    }
}
