/* Base reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --accent: #0a9396;
    --accent-strong: #005f73;
    --accent-soft: #94d2bd;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --text: #102a43;
    --muted: #52606d;
    --border: #d9e2ec;
    --bg: #eff6f8;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text);
    background: radial-gradient(circle at top, rgba(10, 147, 150, 0.12), transparent 28%), var(--bg);
}

img,
picture,
video {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section,
section {
    padding: 44px 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(16, 42, 67, 0.08);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 0.75rem;
}

.logo-brand-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.brand-logo {
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.brand-tagline {
    color: var(--muted);
    font-size: 0.86rem;
    margin: 0;
    white-space: nowrap;
}

.site-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(10, 147, 150, 0.12);
}

.site-nav {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    color: #334e68;
    text-decoration: none;
    font-weight: 600;
    padding: 0.7rem 0.65rem;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: #e6f6f8;
    color: var(--accent-strong);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--text);
    line-height: 1.2;
}

a {
    color: var(--accent-strong);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

button,
input,
textarea,
select {
    font: inherit;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: 3px solid rgba(10, 147, 150, 0.25);
    outline-offset: 2px;
}

.button,
.button.small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    background: var(--accent-strong);
    color: #fff;
    border: none;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button.small:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(10, 147, 150, 0.2);
}

.button.secondary {
    background: #334e68;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 0.4rem;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text);
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: min(680px, calc(100vh - 92px));
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.hero-slides,
.hero-slide,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slides {
    background: #123c4a;
}

.hero-slide {
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    background: rgba(3, 32, 45, 0.58);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-copy {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    font-family: var(--heading-font);
}

.hero h1 {
    font-family: var(--heading-font);
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    margin-bottom: 1rem;
    line-height: 1.05;
    color: #fff8e7;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
}

.hero p {
    max-width: 36rem;
    margin: 0 auto 1.25rem;
    color: rgba(255,255,255,0.92);
    font-size: 0.98rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.75rem;
    justify-content: center;
}

.hero-button {
    background: #f2b134;
    color: #173042;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.hero-button:hover {
    background: #ffc85a;
    color: #173042;
    text-decoration: none;
}

.hero-button.secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #fff;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    bottom: 1.8rem;
    left: 50%;
    display: flex;
    gap: 0.55rem;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.hero-dot.active {
    background: #f2b134;
    transform: scale(1.25);
}

.cards-section,
.stats-section,
.about-preview,
.page-header {
    background: rgba(14, 114, 126, 0.08);
    padding: 40px 0;
}
.page-header .container {
    display: grid;
    gap: 0.75rem;
}

.section h2,
.page-header h1 {
    margin-bottom: 1rem;
    color: #102a43;
}

.section p,
.page-header p {
    color: #52606d;
    max-width: 720px;
}

.cards-grid,
.stats-grid {
    display: grid;
    gap: 1.5rem;
}

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.gallery-header h2,
.gallery-header p {
    margin: 0;
}

.gallery-count {
    color: #64748b;
    font-size: 0.95rem;
}

.album-section {
    margin-top: 1rem;
}

.infrastructure-gallery .album-section:first-child {
    margin-top: 0;
}

.infrastructure-gallery + .infrastructure-grid {
    padding-top: 0;
}

.album-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.album-meta h2 {
    margin: 0;
    font-size: 1.4rem;
}

.gallery-description {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.95rem;
}

.gallery-grid,
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.gallery-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scroll-snap-type: x mandatory;
    margin-top: 1.5rem;
}

.gallery-scroll::-webkit-scrollbar {
    height: 10px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.35);
    border-radius: 999px;
}

.gallery-scroll .gallery-card {
    flex: 0 0 240px;
    width: 240px;
    max-width: 240px;
    scroll-snap-align: center;
}

@media (max-width: 1024px) {
    .gallery-scroll .gallery-card {
        flex: 0 0 220px;
        width: 220px;
        max-width: 220px;
    }
}

@media (max-width: 860px) {
    .gallery-scroll .gallery-card {
        flex: 0 0 200px;
        width: 200px;
        max-width: 200px;
    }
}

@media (max-width: 640px) {
    .gallery-scroll {
        gap: 0.65rem;
    }

    .gallery-scroll .gallery-card {
        flex: 0 0 180px;
        width: 180px;
        max-width: 180px;
    }
}

.gallery-card,
.download-card {
    background: var(--surface);
    border-radius: 26px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.gallery-card:hover,
.download-card:hover {
    transform: translateY(-3px);
}

.gallery-card img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-card .card-content,
.download-card .card-content {
    padding: 1.6rem;
}

.leadership-section {
    background: linear-gradient(135deg, rgba(10, 147, 150, 0.09), rgba(255, 247, 237, 0.72));
}

.leadership-section .section-eyebrow {
    display: inline-flex;
    margin-bottom: 0.45rem;
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.leadership-scroll {
    margin-top: 1rem;
    gap: 1.25rem;
}

.leadership-scroll .leadership-card {
    flex-basis: 280px;
    width: 280px;
    max-width: 280px;
    border-radius: 20px;
}

.leadership-card .card-content {
    padding: 1rem 1.1rem 1.15rem;
}

.leadership-card .card-content strong {
    display: block;
    color: var(--text);
    font-size: 1rem;
    white-space: nowrap;
}

.leadership-card .card-content p {
    margin: 0.35rem 0 0;
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 700;
}

.gallery-page-header .section-eyebrow {
    display: inline-flex;
    margin-bottom: 0.8rem;
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gallery-page-section {
    background: rgba(14, 114, 126, 0.04);
}

.public-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 0;
}

.gallery-album {
    margin-bottom: 1.75rem;
}

.gallery-album:last-child {
    margin-bottom: 0;
}

.gallery-album-heading {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.gallery-album-heading h2 {
    margin: 0;
    font-size: 1.35rem;
}

.gallery-album-heading span {
    color: var(--muted);
    font-size: 0.85rem;
}

.public-gallery-scroll {
    margin-top: 0;
    gap: 0.85rem;
    padding-bottom: 0.65rem;
}

.public-gallery-scroll .public-gallery-card {
    flex: 0 0 220px;
    width: 220px;
    max-width: 220px;
    border-radius: 18px;
}

.public-gallery-scroll .public-gallery-card .card-content {
    padding: 0.75rem 0.9rem 0.9rem;
}

.public-gallery-card {
    border-radius: 18px;
}

.public-gallery-card .card-content {
    padding: 0.95rem 1.1rem 1.1rem;
}

.gallery-empty {
    max-width: 620px;
    margin: 0;
}

@media (max-width: 900px) {
    .public-gallery-scroll .public-gallery-card {
        flex-basis: 200px;
        width: 200px;
        max-width: 200px;
    }
}

@media (max-width: 620px) {
    .public-gallery-scroll {
        gap: 0.65rem;
    }

    .public-gallery-scroll .public-gallery-card {
        flex-basis: 180px;
        width: 180px;
        max-width: 180px;
    }
}

/* Downloads page improvements */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.download-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.6rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
    border: 1px solid rgba(16,42,67,0.04);
}

.download-card .card-media { flex: 0 0 72px; display: flex; align-items:center; justify-content:center; padding: 0.5rem; }
.file-icon { width:72px; height:72px; border-radius:12px; display:inline-grid; place-items:center; font-weight:800; color:#fff; font-size:0.95rem; }
.file-icon.pdf { background: linear-gradient(135deg,#ff6b6b,#ff4757); }
.file-icon.docx, .file-icon.doc { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.file-icon.zip { background: linear-gradient(135deg,#f59e0b,#d97706); }
.file-icon.xls, .file-icon.xlsx { background: linear-gradient(135deg,#10b981,#059669); }
.file-icon.jpg, .file-icon.png, .file-icon.webp, .file-icon.gif { background: linear-gradient(135deg,#7c3aed,#6d28d9); }
.file-icon.file { background: linear-gradient(135deg,#64748b,#475569); }

.download-card .card-content { padding: 0.8rem 0.9rem; }
.download-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.download-meta { color: #64748b; font-size: 0.92rem; display:flex; gap:0.75rem; align-items:center; }
.card-actions { margin-top: 0.75rem; display:flex; gap:0.6rem; }

@media (max-width: 640px) {
    .download-card { flex-direction: row; }
    .file-icon { width:56px; height:56px; }
}

/* Compact vertical PDF list styles */
.download-grid.pdf-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.download-grid.pdf-list .download-card {
    flex-direction: row;
    align-items: center;
    padding: 0.5rem;
}

.download-grid.pdf-list .card-media { flex: 0 0 56px; }
.download-grid.pdf-list .file-icon { width:56px; height:56px; border-radius:10px; font-size:0.85rem; }
.download-grid.pdf-list .card-content { padding: 0.6rem 0.75rem; }
.download-grid.pdf-list h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.download-grid.pdf-list .download-meta { font-size: 0.88rem; color: #718096; }
.download-grid.pdf-list .card-actions { margin-left: auto; }

@media (max-width: 640px) {
    .download-grid.pdf-list .card-actions { margin-left: 0; display:flex; gap:0.5rem; }
}

/* Pill-style download rows */
.download-pill { background: linear-gradient(180deg,#ffffff,#fbfdff); border-radius: 14px; padding: 0.6rem 0.8rem; border: 1px solid rgba(16,42,67,0.04); box-shadow: 0 6px 18px rgba(15,23,42,0.04); }
.pill-content { display:flex; align-items:center; gap:1rem; }
.pill-left { flex:1; }
.pill-title { font-weight:700; color:#0f172a; }
.pill-meta { color:#64748b; font-size:0.9rem; margin-top:4px; display:flex; gap:0.85rem; }
.pill-meta .meta-type { color: var(--accent-strong); font-weight: 700; }
.pill-action { flex:0 0 56px; display:flex; align-items:center; justify-content:flex-end; }
.download-icon { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:10px; background: linear-gradient(180deg,#f0fdfa,#ecfeff); border:1px solid rgba(14,116,144,0.12); box-shadow: 0 6px 16px rgba(14,116,144,0.06); text-decoration:none; }
.download-icon svg { display:block; }

@media (max-width: 640px) {
    .pill-action { flex:0 0 44px; }
    .download-icon { width:40px; height:40px; }
}

/* PDF modal styles */
.pdf-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1200; }
.pdf-modal.open { display: flex; }
.pdf-modal-overlay { position: absolute; inset: 0; background: rgba(2,6,23,0.6); }
.pdf-modal-content { position: relative; width: min(1100px, 96%); height: min(80vh, 900px); background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 120px rgba(2,6,23,0.6); }
.pdf-modal-content iframe { width: 100%; height: 100%; border: 0; display: block; }
.pdf-modal-close { position: absolute; top: 10px; right: 10px; z-index: 10; background: rgba(255,255,255,0.9); border: none; width:36px; height:36px; border-radius:8px; font-size:20px; cursor:pointer; }

.preview-btn { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:10px; background: linear-gradient(180deg,#eff6ff,#eef2ff); border:1px solid rgba(37,99,235,0.12); margin-right:8px; text-decoration:none; }
.preview-btn svg { display:block; }

/* Stretch pills to container width and increase horizontal padding for a longer rectangle */
.download-grid.pdf-list { width: 100%; }
.download-grid.pdf-list .download-pill { width: 100%; padding: 0.9rem 1.25rem; border-radius: 16px; }
.pill-content { justify-content: space-between; }

@media (min-width: 1100px) {
    /* limit maximum width for very wide screens while keeping pills long */
    .download-grid.pdf-list { max-width: 1100px; margin-left: auto; margin-right: auto; }
}

.download-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.inline-form {
    display: inline;
}

.button.outline {
    background: transparent;
    color: var(--accent-strong);
    border: 1px solid rgba(10, 147, 150, 0.4);
}

.button.outline:hover {
    background: rgba(10, 147, 150, 0.12);
}

.card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(16, 42, 67, 0.06);
}

.card h3 {
    margin-bottom: 0.85rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.split-layout img {
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.about-preview ul {
    list-style: disc inside;
    margin: 1rem 0 1.6rem;
}

.staff-page-header .section-eyebrow {
    display: inline-flex;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-strong);
    font-family: var(--heading-font);
}

.staff-page-header {
    padding: 34px 0 26px;
    text-align: center;
}

.staff-profile-title {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    justify-content: center;
}

.staff-profile-title h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    letter-spacing: 0.01em;
}

.staff-profile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: var(--accent-strong);
}

.staff-profile-subtitle {
    max-width: 620px;
    margin: 1rem auto 0;
    color: #52606d;
    font-size: 0.98rem;
}

.staff-overview {
    background: rgba(0, 94, 115, 0.05);
    padding: 10px 0 36px;
}

.staff-tabs {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin: 0 auto 2rem;
    padding: 0.25rem;
    width: fit-content;
    border: 1px solid rgba(16, 42, 67, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
}

.staff-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 220px;
    padding: 0.8rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #52606d;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.staff-tab.active {
    background: var(--accent-strong);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 95, 115, 0.2);
}

.staff-panel[hidden] {
    display: none;
}

/* Toolbar: subject filter chips */
.staff-toolbar {
    margin-bottom: 1rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
}

.staff-module + .staff-module {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(16, 42, 67, 0.1);
}

.staff-module-heading {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.staff-module-heading h2 {
    margin: 0;
    font-size: 1.65rem;
}

.staff-module-heading span {
    color: var(--muted);
    font-size: 0.88rem;
}

.staff-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 42, 67, 0.12);
    background: var(--surface);
    color: #475569;
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.filter-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(10, 147, 150, 0.4);
}

.filter-chip.active {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
}

.filter-chip .filter-count {
    font-size: 0.75rem;
    opacity: 0.75;
}

/* Keep staff cards left-aligned with a predictable desktop rhythm. */
.staff-grid {
    display: grid;
    gap: 8.25rem;
    grid-template-columns: repeat(3, minmax(200px, 270px));
    justify-content: start;
    align-items: stretch;
}

.staff-card {
    background: var(--surface);
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(16, 42, 67, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.5s ease, filter 0.2s ease;
    opacity: 0;
    transform: translateY(18px);
    transition-delay: var(--reveal-delay, 0ms);
}

.staff-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.staff-card.is-filtered-out {
    display: none;
}

.staff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.staff-photo-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f8fafc;
}

.staff-card img.staff-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.staff-card:hover img.staff-photo {
    transform: scale(1.06);
}

.staff-photo-wrap::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.55), transparent);
    pointer-events: none;
}

.staff-photo-wrap .staff-role {
    position: absolute;
    left: 0.85rem;
    bottom: 0.75rem;
    z-index: 1;
    display: inline-flex;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-strong);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.staff-details {
    display: grid;
    gap: 0.55rem;
    padding: 0.9rem 1rem 0.75rem;
}

.staff-details h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    font-family: var(--heading-font);
    color: var(--text);
}

.staff-designation {
    margin: 0;
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 600;
}

.staff-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #52606d;
    font-size: 0.92rem;
}

.staff-meta svg {
    color: var(--accent);
    flex-shrink: 0;
}

.staff-qualifications {
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    padding: 0.7rem 1rem;
}

.qualification-label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.qualification-text {
    margin: 0;
    color: #475569;
    line-height: 1.6;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
    }
}

@media (max-width: 620px) {
    .staff-profile-title {
        gap: 0.7rem;
    }

    .staff-profile-icon {
        width: 48px;
        height: 48px;
    }

    .staff-profile-icon svg {
        width: 34px;
        height: 34px;
    }

    .staff-toolbar {
        padding: 0.7rem;
    }

    .staff-tabs {
        width: 100%;
        flex-direction: column;
        border-radius: 18px;
    }

    .staff-tab {
        width: 100%;
        min-width: 0;
    }

    .staff-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .staff-module + .staff-module {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

.staff-empty-state {
    text-align: center;
    color: #52606d;
    padding: 2.5rem 0 0.5rem;
    font-size: 0.98rem;
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.image-modal[hidden] {
    display: none;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-image-modal .modal-content {
    width: min(92vw, 1100px);
    height: min(88vh, 850px);
    max-width: none;
    max-height: none;
}

.gallery-image-modal .modal-content img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.modal-close:hover,
.modal-close:focus {
    opacity: 0.7;
}

.staff-photo {
    cursor: pointer;
}

.gallery-photo {
    cursor: pointer;
}


.staff-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    min-width: 900px;
}

.staff-table th,
.staff-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.staff-table th {
    background: #f8fafc;
    color: #334155;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.staff-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.staff-table tbody tr:last-child td {
    border-bottom: none;
}

.section-header {
    margin-bottom: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.info-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) minmax(220px, 1fr);
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

.info-copy h2 {
    margin-top: 0;
}

.infrastructure-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr);
    gap: 2rem;
    align-items: start;
}

.infrastructure-grid .card {
    padding: 1.8rem;
}

.infrastructure-list,
.psychology-list {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
    color: #334155;
}

.infrastructure-list li,
.psychology-list li {
    margin: 0.75rem 0;
    line-height: 1.75;
}

.infrastructure-list ol,
.psychology-list ol {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    .infrastructure-grid {
        grid-template-columns: 1fr;
    }
    /* ensure sidebar stacks below main content on small screens */
    .infrastructure-grid .sidebar { order: 2; }
    .infrastructure-grid .main-content { order: 1; }
}

.info-card,
.contact-card {
    background: #fff;
    padding: 1.8rem;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.info-card {
    margin-top: 1.5rem;
}

.info-card h3,
.contact-card h2 {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

.contact-card p,
.contact-card a {
    color: #475569;
    line-height: 1.7;
}

.contact-card a {
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

.about-table-section {
    margin-top: 0;
}

.section-header {
    margin-bottom: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.about-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    min-width: 720px;
    border: 1px solid rgba(16, 42, 67, 0.08);
}

.about-table th,
.about-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.about-table th {
    background: #f8fafc;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    font-size: 0.85rem;
}

.about-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.about-table tbody tr:last-child td {
    border-bottom: none;
}

.management-section {
    position: relative;
    overflow: hidden;
    margin-top: -2rem;
    padding: 2.5rem 2rem 3rem;
    border-radius: 32px;
    background: linear-gradient(135deg, #e8f7f5 0%, #f8fbff 52%, #fff7ed 100%);
}

.management-heading {
    max-width: 650px;
    margin-bottom: 1.5rem;
}

.management-heading h2 {
    margin: 0.35rem 0 0.7rem;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.management-heading p {
    color: var(--muted);
    margin: 0;
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 220px));
    justify-content: center;
    gap: 1.75rem;
}

.management-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 20px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.management-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.15);
}

.management-photo-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #dcefee;
}

.management-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.management-card-content {
    padding: 1rem 1.1rem 1.15rem;
}

.management-card-content h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.management-card-content p {
    margin: 0.3rem 0 0;
    color: var(--accent-strong);
    font-weight: 700;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

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

.stat-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(16, 42, 67, 0.07);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-strong);
}

.page-header {
    background: rgba(14, 114, 126, 0.08);
    padding: 40px 0;
}

.page-header .container {
    display: grid;
    gap: 0.75rem;
}

.content-section {
    padding-top: 0;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-form {
    display: grid;
    gap: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font: inherit;
    font-size: 0.95rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.captcha-field {
    display: grid;
    gap: 0.4rem;
    max-width: 18rem;
}

.captcha-prompt {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.captcha-prompt label {
    margin: 0;
}

.captcha-refresh {
    border: 0;
    padding: 0.35rem 0.55rem;
    background: transparent;
    color: var(--accent-strong);
    font-weight: 700;
    cursor: pointer;
}

.captcha-refresh:hover,
.captcha-refresh:focus-visible {
    text-decoration: underline;
}

.captcha-refresh:disabled {
    cursor: wait;
    opacity: 0.6;
}

.captcha-code {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 11rem;
    min-height: 3.4rem;
    padding: 0.35rem 0.65rem;
    overflow: hidden;
    border: 1px dashed var(--accent-strong);
    border-radius: 8px;
    background: #eef8f8;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.12em;
    isolation: isolate;
}

.captcha-code::before,
.captcha-code::after {
    content: '';
    position: absolute;
    left: -10%;
    width: 120%;
    height: 1px;
    background: rgba(155, 34, 38, 0.5);
    transform: rotate(-9deg);
    pointer-events: none;
    z-index: 1;
}

.captcha-code::before {
    top: 38%;
    box-shadow: 0 0.75rem 0 rgba(155, 34, 38, 0.38);
}

.captcha-code::after {
    top: 66%;
    background: rgba(0, 95, 115, 0.45);
    transform: rotate(7deg);
    box-shadow: 0 -0.75rem 0 rgba(0, 95, 115, 0.34);
}

.captcha-code span {
    position: relative;
    z-index: 2;
    display: inline-block;
    font-weight: 800;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.7);
}

.captcha-noise {
    position: absolute;
    z-index: 1;
    display: block;
    border-radius: 50%;
    transform: rotate(25deg);
    pointer-events: none;
}

.captcha-field input {
    max-width: 9rem;
}

@media (max-width: 560px) {
    .captcha-prompt {
        align-items: flex-start;
        flex-wrap: wrap;
        white-space: normal;
    }
}

.alert {
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    font-weight: 600;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.site-footer {
    background: linear-gradient(135deg, #063b4b 0%, #0b2538 100%);
    color: #dceff0;
    padding: 36px 0 14px;
    border-top: 4px solid var(--accent);
}

.site-footer h3,
.site-footer h4 {
    color: #ffffff;
}

.site-footer h3 {
    margin-bottom: 0.55rem;
}

.site-footer p {
    color: #b9d5d8;
    margin: 0.25rem 0;
}

.site-footer .footer-tagline {
    color: #94d2bd;
    font-weight: 700;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-inner > div {
    min-width: 160px;
    flex: 1 1 220px;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.footer-links li,
.footer-contact li {
    color: #b9d5d8;
    line-height: 1.45;
    font-size: 0.95rem;
}

.footer-links a,
.footer-contact a {
    color: #dceff0;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}
.footer-links a:hover,
.footer-contact a:hover {
    color: #94d2bd;
    transform: translateX(4px);
}

.footer-bottom {
    margin-top: 0.9rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.02);
}

@media (max-width: 900px) {
    .split-layout,
    .footer-inner,
    .stats-grid,
    .contact-grid,
    .info-grid,
    .infrastructure-grid,
    .gallery-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 760px) {
    .header-inner {
        padding: 12px 0;
    }

    .brand-logo,
    .brand-tagline {
        white-space: normal;
    }

    .brand-logo {
        font-size: 0.9rem;
    }

    .brand-tagline {
        font-size: 0.78rem;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        right: 16px;
        flex-direction: column;
        background: #fff;
        padding: 1rem;
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
        display: none;
        width: min(240px, calc(100% - 32px));
    }

    .site-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }
}