/* =====================================================================
   PE Group of Institutions: ABOUT PAGE ONLY styles
   Loaded only by about.blade.php (through @push('styles')).
   Reuses the colour tokens from pe-header.css, with fallbacks.
   ===================================================================== */

.pa-hero, .pa-story, .pa-pillars, .pa-time, .pa-leader, .pa-visit {
    --pa-forest: var(--pe-forest, #17392c);
    --pa-green: var(--pe-green, #2f6b4f);
    --pa-sage: var(--pe-sage, #7c8c6b);
    --pa-sage-50: var(--pe-sage-50, #f3f6f0);
    --pa-sage-100: var(--pe-sage-100, #e5ebe0);
    --pa-mustard: var(--pe-mustard, #d9a036);
    --pa-blush: var(--pe-blush, #eda792);
    --pa-ink: var(--pe-ink, #1c2521);
    --pa-muted: var(--pe-muted, #5b675f);
    --pa-line: #dfe4dd;
    --pa-space: clamp(36px, 5vw, 64px);

    color: var(--pa-ink);
    font-family: var(--pe-font-ui, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
}
.pa-hero *, .pa-story *, .pa-pillars *, .pa-time *, .pa-leader *, .pa-visit *,
.pa-hero *::before, .pa-story *::before, .pa-pillars *::before, .pa-time *::before, .pa-leader *::before, .pa-visit *::before {
    box-sizing: border-box;
}
.pa-hero ul, .pa-pillars ul, .pa-time ol, .pa-leader ul, .pa-crumbs ol {
    margin: 0;
    padding: 0;
    list-style: none;
}
:where(.pa-story, .pa-pillars, .pa-time, .pa-leader) :focus-visible {
    outline: 2px solid var(--pa-forest);
    outline-offset: 3px;
}
:where(.pa-hero, .pa-visit) :focus-visible {
    outline: 2px solid var(--pa-mustard);
    outline-offset: 3px;
}

/* shared headings */
.pa-title {
    margin: 0 0 14px;
    color: var(--pa-forest);
    font-family: var(--pe-font-display, Georgia, "Times New Roman", serif);
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
    font-weight: 400;
    line-height: 1.14;
}
.pa-lead {
    max-width: 44rem;
    margin: 0 0 clamp(24px, 3vw, 36px);
    color: var(--pa-muted);
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* =====================================================================
   Page header
   ===================================================================== */
.pa-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--pa-forest);
    color: #cfdac9;
}
.pa-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(48% 70% at 84% 20%, rgba(124, 140, 107, .42), transparent 70%),
        radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.5px) 0 0 / 22px 22px;
}
.pa-hero::after {
    /* faint arch, like the banner */
    content: "";
    position: absolute;
    right: -4%;
    bottom: -46%;
    z-index: -1;
    width: min(36%, 380px);
    aspect-ratio: 4 / 5;
    border: 30px solid rgba(255, 255, 255, .07);
    border-radius: 50% 50% 0 0 / 40% 40% 0 0;
    pointer-events: none;
}
.pa-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
    padding-block: clamp(32px, 4vw, 56px) clamp(40px, 5vw, 72px);
}
.pa-hero__copy { min-width: 0; }
.pa-crumbs {
    margin-bottom: clamp(18px, 2.5vw, 28px);
    font-size: .875rem;
}
.pa-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pa-crumbs li + li::before {
    content: "/";
    margin-right: 8px;
    color: rgba(255, 255, 255, .4);
}
.pa-crumbs a {
    color: #cfdac9;
    text-decoration: none;
}
.pa-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pa-crumbs li[aria-current] { color: var(--pa-mustard); font-weight: 600; }

.pa-hero__title {
    max-width: 20ch;
    margin: 0 0 16px;
    color: #fff;
    font-family: var(--pe-font-display, Georgia, "Times New Roman", serif);
    font-size: clamp(2rem, 1.2rem + 2.8vw, 3.375rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.01em;
}
.pa-hero__lead {
    max-width: 46rem;
    margin: 0;
    font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
    line-height: 1.65;
}
.pa-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 48px;
    margin-top: clamp(28px, 4vw, 44px);
    padding-top: clamp(20px, 3vw, 28px);
    border-top: 1px solid rgba(255, 255, 255, .15);
}
.pa-hero__facts strong {
    display: block;
    color: #fff;
    font-family: var(--pe-font-display, Georgia, "Times New Roman", serif);
    font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem);
    font-weight: 400;
    line-height: 1.1;
}
.pa-hero__facts span {
    display: block;
    margin-top: 6px;
    font-size: .9375rem;
}

/* right-hand side of the page header: facts card, or a photo */
.pa-panel {
    padding: clamp(22px, 2.6vw, 30px);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
}
.pa-panel__title {
    margin: 0 0 18px;
    color: #fff;
    font-family: var(--pe-font-display, Georgia, "Times New Roman", serif);
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.2;
}
.pa-panel__list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pa-panel__list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.pa-panel__list li:last-child { padding-bottom: 0; border-bottom: 0; }
.pa-panel__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    color: var(--pa-mustard);
    font-size: 1.05rem;
}
.pa-panel__label {
    display: block;
    color: #b9c9b4;
    font-size: .8125rem;
}
.pa-panel__value {
    display: block;
    margin-top: 2px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}
.pa-panel__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--pa-mustard);
    font-size: .9375rem;
    font-weight: 700;
    text-decoration: none;
}
.pa-panel__link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* campus photos: big arch, with up to two smaller photos beside it */
.pa-shots {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    aspect-ratio: 1.08 / 1;
    margin: 0;
}
.pa-shot {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .2), transparent 60%),
        linear-gradient(160deg, var(--pa-sage), var(--pa-forest));
    box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .85);
}
.pa-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* the main photo: arched top, like the banner */
.pa-shot:first-child {
    grid-column: 2;
    grid-row: 1 / span 2;
    border-radius: 50% 50% 18px 18px / 120px 120px 18px 18px;
}
.pa-shots--1 .pa-shot:first-child {
    grid-column: 1 / -1;
    border-radius: 50% 50% 18px 18px / 150px 150px 18px 18px;
}
/* with two photos the small one fills the whole left column */
.pa-shots--2 .pa-shot:nth-child(2) { grid-row: 1 / span 2; }

.pa-shot__caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--pa-forest);
    font-size: .85rem;
    font-weight: 600;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6);
}
.pa-shot__caption i { color: var(--pa-mustard); }

/* =====================================================================
   Our story
   ===================================================================== */
.pa-story { padding-block: var(--pa-space); }
.pa-story__grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
}
.pa-story__media {
    position: relative;
    margin: 0;
    padding-bottom: 28px;          /* room for the badge */
}
.pa-arch {
    position: relative;
    aspect-ratio: 5 / 6;
    overflow: hidden;
    /* one wide curve across the top, like the banner photo */
    border-radius: 50% 50% 20px 20px / 180px 180px 20px 20px;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .22), transparent 60%),
        linear-gradient(165deg, var(--pa-sage), var(--pa-forest));
    box-shadow: 0 30px 56px -34px rgba(23, 57, 44, .75);
}
.pa-arch img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pa-story__badge {
    position: absolute;
    bottom: 0;
    left: -12px;
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    padding: 10px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: var(--pa-mustard);
    color: var(--pa-forest);
    text-align: center;
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .55);
}
.pa-story__badge strong {
    display: block;
    font-family: var(--pe-font-display, Georgia, "Times New Roman", serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
}
.pa-story__badge span {
    display: block;
    margin-top: 4px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.2;
}
.pa-story__text p {
    max-width: 58ch;
    margin: 0 0 16px;
    color: var(--pa-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
}
.pa-story__text p:last-child { margin-bottom: 0; }

/* =====================================================================
   Vision, mission, values
   ===================================================================== */
.pa-pillars {
    padding-block: var(--pa-space);
    background: var(--pa-sage-50);
}
.pa-pillars__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: clamp(20px, 3vw, 32px);
}
.pa-pillar {
    padding: 26px 26px 28px;
    border: 1.5px solid var(--pa-line);
    border-radius: 18px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pa-pillar:hover {
    border-color: var(--pa-sage);
    box-shadow: 0 22px 38px -28px rgba(23, 57, 44, .6);
    transform: translateY(-3px);
}
.pa-pillar__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 15px;
    background: var(--pa-sage-100);
    color: var(--pa-forest);
    font-size: 1.4rem;
}
.pa-pillar__title {
    margin: 0 0 10px;
    color: var(--pa-forest);
    font-family: var(--pe-font-display, Georgia, "Times New Roman", serif);
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.2;
}
.pa-pillar p {
    margin: 0;
    color: var(--pa-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* =====================================================================
   Milestones
   ===================================================================== */
.pa-time { padding-block: var(--pa-space); }
.pa-time__list {
    position: relative;
    display: grid;
    gap: 4px;
    padding-left: 8px;
}
.pa-time__list::before {
    /* the line running down the years */
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 8px;
    width: 2px;
    background: linear-gradient(var(--pa-sage-100), var(--pa-sage), var(--pa-sage-100));
}
.pa-time__item {
    position: relative;
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    padding: 18px 0 18px 30px;
}
.pa-time__item::before {
    /* dot on the line */
    content: "";
    position: absolute;
    top: 26px;
    left: -4px;
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--pa-mustard);
    box-shadow: 0 0 0 2px var(--pa-sage-100);
}
.pa-time__year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--pa-forest);
    color: #fff;
    font-family: var(--pe-font-display, Georgia, "Times New Roman", serif);
    font-size: 1.125rem;
    line-height: 1.2;
}
.pa-time__heading {
    margin: 0 0 6px;
    color: var(--pa-forest);
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.3;
}
.pa-time__body p {
    max-width: 62ch;
    margin: 0;
    color: var(--pa-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* =====================================================================
   Chairman's message + approvals
   ===================================================================== */
.pa-leader { padding-block: var(--pa-space); }
.pa-leader__card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(24px, 3.4vw, 44px);
    border-radius: 22px;
    background: var(--pa-sage-50);
}
.pa-leader__photo {
    display: grid;
    place-items: center;
    width: clamp(140px, 18vw, 210px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--pa-sage), var(--pa-forest));
    box-shadow: 0 20px 36px -20px rgba(23, 57, 44, .7);
}
.pa-leader__photo img {
    width: 100%;
    height: 100%;
    border: 5px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 22%;
}
.pa-leader__body { margin: 0; }
.pa-leader__title {
    margin: 0 0 12px;
    color: var(--pa-forest);
    font-family: var(--pe-font-display, Georgia, "Times New Roman", serif);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 400;
    line-height: 1.15;
}
.pa-leader__body p {
    max-width: 60ch;
    margin: 0 0 20px;
    color: var(--pa-muted);
    font-size: clamp(1rem, .96rem + .25vw, 1.125rem);
    line-height: 1.7;
}
.pa-leader__by {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}
.pa-leader__by strong {
    color: var(--pa-forest);
    font-size: 1.0625rem;
}
.pa-leader__by span {
    color: var(--pa-muted);
    font-size: .9375rem;
}

.pa-approvals { margin-top: clamp(24px, 3vw, 36px); }
.pa-approvals__title {
    margin: 0 0 14px;
    color: var(--pa-forest);
    font-size: 1rem;
    font-weight: 700;
}
.pa-approvals ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pa-approvals li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border: 1.5px solid var(--pa-line);
    border-radius: 999px;
    background: #fff;
    color: var(--pa-ink);
    font-size: .9375rem;
    font-weight: 600;
}
.pa-approvals i { color: var(--pa-mustard); font-size: 1rem; }

/* =====================================================================
   Visit the campus
   ===================================================================== */
.pa-visit { padding-block: 0 var(--pa-space); }
.pa-visit__inner {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    overflow: hidden;
    padding: clamp(26px, 3.4vw, 44px);
    border-radius: 22px;
    background: var(--pa-forest);
    color: #cfdac9;
}
.pa-visit__inner::before {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -60%;
    z-index: -1;
    width: min(30%, 260px);
    aspect-ratio: 4 / 5;
    border: 26px solid rgba(255, 255, 255, .07);
    border-radius: 50% 50% 0 0 / 40% 40% 0 0;
    pointer-events: none;
}
.pa-visit__title {
    margin: 0 0 8px;
    color: #fff;
    font-family: var(--pe-font-display, Georgia, "Times New Roman", serif);
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
    font-weight: 400;
    line-height: 1.15;
}
.pa-visit__inner p {
    max-width: 46ch;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}
.pa-visit__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 991.98px) {
    .pa-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    .pa-shots { max-width: 520px; }
    .pa-story__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .pa-story__media {
        width: min(100%, 460px);   /* an explicit width: auto margins alone collapse it */
        margin-inline: auto;
    }
    .pa-arch { border-radius: 50% 50% 20px 20px / 150px 150px 20px 20px; }
    .pa-pillars__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pa-leader__card {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }
    .pa-leader__body p { margin-inline: auto; }
    .pa-leader__by { justify-content: center; }
}
@media (max-width: 767.98px) {
    .pa-pillars__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    .pa-shots { gap: 10px; aspect-ratio: 1 / 1; }
    .pa-shot:first-child { border-radius: 50% 50% 16px 16px / 80px 80px 16px 16px; }
    .pa-shots--1 .pa-shot:first-child { border-radius: 50% 50% 16px 16px / 110px 110px 16px 16px; }
    .pa-shot__caption { font-size: .8125rem; padding: 6px 12px 6px 9px; }
    .pa-panel { padding: 20px 18px 22px; }
    .pa-panel__list li { gap: 12px; }
    .pa-hero__facts { gap: 14px 28px; }
    .pa-hero__facts li { flex: 1 0 40%; }
    .pa-story__badge {
        left: auto;
        right: 0;
        width: 96px;
        height: 96px;
        border-width: 4px;
    }
    .pa-story__badge strong { font-size: 1.6rem; }
    .pa-arch { border-radius: 50% 50% 18px 18px / 110px 110px 18px 18px; }

    /* timeline: year above the text */
    .pa-time__item {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding-left: 26px;
    }
    .pa-time__year { justify-self: start; }
    .pa-time__item::before { top: 24px; }
    .pa-leader__card { padding: 24px 18px 28px; }
    .pa-visit__actions,
    .pa-visit__actions .pe-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .pa-pillar { transition-duration: .01ms !important; }
    .pa-pillar:hover { transform: none; }
}