@import url('https://fonts.googleapis.com/css2?family=Allison&family=Bebas+Neue&family=Dancing+Script:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Passion+One:wght@400;700;900&family=Petit+Formal+Script&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Tiny5&display=swap');

/* Hero Section */
.admin-hero {
    position: relative;
    background-color: #f9f6f1;
    background-image: url('/assets/images/Section Header.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    border-bottom: 1px solid #e6e1d8;
}

.admin-hero-inner {
    padding: 40px 15px 44px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d3a63a;
    margin-bottom: 14px;
}

.admin-breadcrumb a {
    color: #d3a63a;
    text-decoration: none;
}

.admin-breadcrumb a:hover {
    text-decoration: underline;
}

.admin-breadcrumb i {
    font-size: 10px;
    color: #d3a63a;
    opacity: 0.8;
}

.admin-breadcrumb .admin-current {
    color: #d3a63a;
}

.admin-hero h1 {
    font-family: 'Noto Serif', serif;
    font-weight: 700;
    color: #1F5E2C;
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 8px;
}

.admin-hero p {
    font-family: 'Inter', sans-serif;
    color: #6b6b66;
    font-size: 14px;
    max-width: 520px;
    margin: 0;
}

/* Sub-navigation Tabs */
.admin-tabs-wrap {
    position: relative;
    background-color: #f9f6f1;
    padding: 0 20px 24px;
    margin-top: 26px;
    z-index: 5;
}

.admin-tabs-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-tab {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    background-color: transparent;
    color: #0b4228;
    text-decoration: none;
    box-shadow: none;
    border: 1px solid #0b4228;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-tab:hover {
    background-color: rgba(11, 66, 40, 0.07);
    color: #0b4228;
}

.admin-tab.active,
.admin-tab.active:hover {
    background-color: #0b4228;
    color: #ffffff;
    border-color: #0b4228;
    box-shadow: 0 6px 14px rgba(11, 66, 40, 0.3);
}

@media (max-width: 576px) {
    .admin-tabs {
        gap: 8px;
    }
    .admin-tab {
        font-size: 0.78rem;
        padding: 9px 14px;
    }
}

/* Administration Content Sections */
.admin-section {
    background-color: #f9f6f1;
    padding: 60px 20px;
}

.admin-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-section-intro {
    margin-bottom: 35px;
    text-align: left;
}

.admin-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d3a63a;
    display: block;
    margin-bottom: 8px;
}

.admin-section-intro h2 {
    font-family: 'Noto Serif', serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--gnc-green-light);
    margin-bottom: 8px;
}

.admin-section-intro p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6b6b66;
    margin: 0;
}

/* Grid layout for Trustees - Centered */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 300px));
    gap: 30px;
    justify-content: center;
}

@media (max-width: 992px) {
    .admin-grid {
        grid-template-columns: repeat(2, minmax(0, 300px));
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: minmax(0, 320px);
        justify-content: center;
    }
}

/* Background Gold Square */
.admin-card-wrap {
    position: relative;
    padding: 24px 20px;
    width: 100%;
}

.admin-square-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background-color: #d3a63a;
    border-radius: 16px;
    z-index: 1;
}

.admin-square-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-color: #d3a63a;
    border-radius: 16px;
    z-index: 1;
}

/* Main Photo Card */
.admin-photo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #08331e;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 2;
    aspect-ratio: 4 / 5;
}

.admin-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Wave Overlay */
.admin-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 3;
    pointer-events: none;
}

.admin-wave svg {
    width: 100%;
    height: 100%;
}

.wave-gold {
    fill: #d3a63a;
}

.wave-maroon {
    fill: #8f1230;
}

.wave-green {
    fill: #1F5E2C;
}

/* Glass nameplate: a small blur keeps the effect lightweight. */
.admin-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 4;
    background: rgba(11, 66, 40, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    text-align: left;
}

.admin-badge-title {
    font-family: 'Noto Serif', serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #e9b93c;
    display: block;
    line-height: 1.2;
    margin-bottom: 2px;
}

.admin-badge-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #ffffff;
    display: block;
}

/* Heads of Student Services — Flip Cards */

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

@media (max-width: 900px) {
    .hss-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hss-flip-card {
    all: unset;
    display: grid;
    box-sizing: border-box;
    cursor: pointer;
    width: 100%;
    min-width: 0;
    perspective: 1600px;
    border-radius: 14px;
    -webkit-tap-highlight-color: transparent;
}

.hss-flip-card:focus-visible {
    outline: 3px solid #d3a63a;
    outline-offset: 4px;
}

.hss-flip-card-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    height: 100%;
    text-align: left;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.hss-flip-card.is-flipped .hss-flip-card-inner {
    transform: rotateY(180deg);
}

.hss-face {
    position: relative;
    grid-area: 1 / 1;
    box-sizing: border-box;
    min-width: 0;
    min-height: 380px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 14px;
    background-color: #ffffff;
    border: 1px solid #e6e1d8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 24px 24px 130px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hss-face-back {
    transform: rotateY(180deg);
    background-color: #ffffff;
    border-color: #e6e1d8;
}

/* Safari can paint composited portrait/badge layers through a rotated face.
   administration.js switches visibility at the actual rotated edge, not on a timer.
   Both faces stay in the grid so the card keeps its height. */
.hss-face-front { visibility: visible; }
.hss-face-back { visibility: hidden; }
.hss-flip-card.is-flipped .hss-face-front { visibility: hidden; }
.hss-flip-card.is-flipped .hss-face-back { visibility: visible; }

/* Background Watermark */
.hss-watermark {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    height: 140%;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

/* Front face content */
.hss-office-title {
    font-family: 'Noto Serif', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--gnc-green-light);
    margin: 0 0 16px;
    position: relative;
    z-index: 1;
}

.hss-front-body {
    display: flex;
    gap: 20px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.hss-photo {
    flex: 0 0 140px;
    border-radius: 10px;
    border: 1px solid #e6e1d8;
    background-color: #ffffff;
    aspect-ratio: 4 / 5;
    height: fit-content;
    overflow: hidden;
}

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

.hss-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.hss-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'Inter', sans-serif;
}

.hss-contact-list i {
    color: var(--gnc-green-light);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.hss-contact-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gnc-green-light);
    margin-bottom: 2px;
}

.hss-contact-value {
    display: block;
    font-size: 0.82rem;
    color: #202020;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Wave Graphic */
.hss-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 130px;
    z-index: 1;
    pointer-events: none;
}
.hss-wave svg {
    width: 100%;
    height: 100%;
}
.wave-gold { fill: #d3a63a; }
.wave-maroon { fill: #8f1230; }
.wave-green { fill: #0b4228; }


/* Bottom Nameplate Overlay */
.hss-badge {
    position: absolute;
    bottom: 40px;
    left: 20px;
    width: calc(100% - 40px);
    box-sizing: border-box;
    
    /* Match the profile-card glass nameplates. */
    background: rgba(8, 51, 30, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    
    border-radius: 6px;
    padding: 14px 18px;
    text-align: left;
    z-index: 2;
}

.hss-badge-title {
    font-family: 'Noto Serif', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #e9b93c;
    display: block;
    line-height: 1.2;
    margin-bottom: 4px;
}

.hss-badge-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #ffffff;
    display: block;
}

/* Back face content */
.hss-services-title {
    font-family: 'Noto Serif', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--gnc-green-light);
    margin: 0 0 18px;
    position: relative;
    z-index: 1;
}

.hss-services-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.hss-services-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    color: #202020;
    line-height: 1.4;
}

.hss-services-list i {
    color: #6b6b66;
    margin-top: 3px;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Tap to flip hint */
.hss-flip-hint {
    position: absolute;
    bottom: 12px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    opacity: 0.9;
    z-index: 3;
}

.hss-face-back .hss-flip-hint,
.hss-face-front .hss-flip-hint {
    color: rgba(255, 255, 255, 0.85);
}


/* Content stays visible without JavaScript; scroll reveals run only once. */
.reveal-up, .reveal-scale {
    opacity: 1;
    transform: none;
}

.admin-section .admin-scroll-pending { opacity: 0; }
.admin-section .admin-scroll-pending:focus-within { opacity: 1; }
.admin-section .admin-scroll-revealing { animation: adminScrollReveal .35s ease-out; }
@keyframes adminScrollReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.admin-hero h1::after {
    content: "";
    display: block;
    height: 4px;
    width: 72px;
    margin-top: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #d3a63a, #e9b93c);
}

.admin-section-intro h2::after {
    content: "";
    display: block;
    height: 3px;
    width: 56px;
    margin-top: 10px;
    border-radius: 3px;
    background: #d3a63a;
}

.hss-face { transition: border-color .15s ease; }
@media (hover: hover) {
    .admin-photo-card, .hss-flip-card { transition: transform .2s ease; }
    .admin-card-wrap:hover .admin-photo-card,
    .hss-flip-card:hover { transform: translateY(-4px); }
    .hss-flip-card:hover .hss-face { border-color: #d3a63a; }
}

@media (prefers-reduced-motion: reduce) {
    .admin-section .admin-scroll-pending { opacity: 1; }
    .admin-section .admin-scroll-revealing { animation: none; }
    .admin-photo-card, .hss-flip-card,
    .hss-flip-card-inner, .hss-face, .admin-tab { transition: none; }
    .admin-card-wrap:hover .admin-photo-card,
    .hss-flip-card:hover { transform: none; }
}

/* =============================================================
   RESPONSIVE — all devices
   Breakpoints: 1400+ (large desktop), 992, 768, 576, 400
   ============================================================= */

/* Never allow sideways scrolling from this page's content */
.admin-section, .admin-tabs-wrap, .admin-hero { overflow-x: clip; }
.admin-section-inner img { max-width: 100%; }

/* ---------- Large screens ---------- */
@media (min-width: 1400px) {
    .admin-hero-inner,
    .admin-tabs-inner,
    .admin-section-inner { max-width: 1320px; }
    .admin-grid { grid-template-columns: repeat(4, minmax(0, 300px)); }
}

/* ---------- Tablets / small laptops ---------- */
@media (max-width: 992px) {
    .admin-section { padding: 50px 20px; }
}

@media (max-width: 900px) {
    .hss-grid { max-width: 640px; margin-inline: auto; }
}

/* ---------- Large phones ---------- */
@media (max-width: 768px) {
    .admin-hero-inner { padding: 32px 20px 36px; text-align: center; }
    .admin-hero h1,
    .admin-hero p { text-align: center; margin-left: auto; margin-right: auto; }
    .admin-hero h1::after { margin-left: auto; margin-right: auto; }
    .admin-tabs-wrap { padding: 0 20px 20px; margin-top: 20px; }
    .admin-section { padding: 40px 20px 50px; }
    .admin-section-intro { margin-bottom: 28px; }
    .admin-hero { background-position: 70% center; }
}

/* ---------- Phones ---------- */
@media (max-width: 576px) {
    .admin-hero-inner { padding: 28px 16px 30px; }
    .admin-tabs-wrap { padding: 0 16px 18px; }
    .admin-section { padding: 32px 16px 44px; }
    .admin-hero p { font-size: 13.5px; }

    /* tabs: one swipeable row instead of a tall wrapped stack */
    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 14px;   /* room for the active-tab shadow */
        margin-bottom: -14px;
    }
    .admin-tabs::-webkit-scrollbar { display: none; }
    .admin-tab { flex: 0 0 auto; }

    /* people grid: card fills the screen width */
    .admin-grid { grid-template-columns: minmax(0, 340px); gap: 26px; }
    .admin-card-wrap { padding: 20px 16px; }
    .admin-square-top, .admin-square-bottom { width: 120px; height: 120px; }

    /* flip cards */
    .hss-grid { gap: 22px; }
    .hss-face { padding: 20px 18px 124px; min-height: 0; }
    .hss-office-title { font-size: 1.25rem; margin-bottom: 14px; }
    .hss-services-title { font-size: 1.25rem; }
    .hss-front-body { flex-direction: column; gap: 16px; }
    .hss-photo { flex: 0 0 auto; width: 100%; max-width: 180px; }
    .hss-badge { left: 14px; width: calc(100% - 28px); bottom: 38px; padding: 12px 14px; }
    .hss-badge-title { font-size: 0.95rem; }
    .hss-badge-sub { font-size: 0.74rem; line-height: 1.3; }
    .hss-flip-hint { right: 16px; bottom: 11px; }
    .hss-wave { height: 110px; }
    .hss-contact-value { font-size: 0.86rem; }
    .hss-services-list li { font-size: 0.9rem; }
}

/* ---------- Small phones (iPhone SE, Galaxy Fold, etc.) ---------- */
@media (max-width: 400px) {
    .admin-section { padding: 28px 12px 40px; }
    .admin-card-wrap { padding: 18px 12px; }
    .admin-square-top, .admin-square-bottom { width: 96px; height: 96px; }
    .hss-face { padding: 18px 14px 120px; }
    .hss-photo { max-width: 150px; }
    .hss-office-title { font-size: 1.15rem; }
}

/* ---------- Touch devices: bigger tap targets, no sticky hover ---------- */
@media (hover: none) {
    .admin-tab { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---------- Mobile: centered flip-card layout ---------- */
@media (max-width: 576px) {
    .hss-office-title,
    .hss-services-title { text-align: center; }

    .hss-front-body {
        align-items: center;
    }
    .hss-photo {
        margin-inline: auto;
    }
    /* centre the contact block; text inside stays left-aligned so icons line up */
    .hss-contact-list,
    .hss-services-list {
        flex: 0 1 auto;
        width: fit-content;
        max-width: 100%;
        margin-inline: auto;
    }
    .hss-badge { text-align: center; }
    .hss-flip-hint { left: 0; right: 0; justify-content: center; }
}
