/* TemseeEdu Premium School Website Style System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
    --primary-color: #f59e0b;
    --secondary-color: #1e293b;
    --accent-color: #0ea5e9;
    --text-color: #334155;
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px -15px rgba(30, 41, 59, 0.08);
    --shadow-hover: 0 20px 40px -15px rgba(30, 41, 59, 0.15);
    --site-max: 1440px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.site-layout-classic {
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow: 0 8px 24px -18px rgba(15, 23, 42, 0.25);
    --shadow-hover: 0 16px 36px -20px rgba(15, 23, 42, 0.32);
}

.site-layout-compact {
    --site-max: 1180px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

.site-layout-compact .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.site-layout-compact .hero {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

.top-strip {
    background: var(--secondary-color);
    color: #dbeafe;
    font-size: 0.9rem;
}

.top-strip-inner {
    width: 100%;
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0.8rem clamp(1rem, 3vw, 3rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
}

.latest-strip,
.top-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    min-width: 0;
}

.top-actions {
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: flex-end;
}

.latest-strip strong {
    color: white;
    background: var(--primary-color);
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-sm);
    flex: 0 0 auto;
}

.latest-strip span {
    color: #93c5fd;
}

.ticker-window {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    flex: 1 1 auto;
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    min-width: max-content;
    animation: ticker-scroll 24s linear infinite;
    padding-left: 100%;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-track a {
    color: white;
    opacity: 0.95;
}

.ticker-track a span {
    margin-right: 0.5rem;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.top-actions a {
    color: white;
    opacity: 0.9;
}

.top-actions a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Glassmorphism Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-container {
    width: 100%;
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 1.1rem clamp(1rem, 3vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--secondary-color);
    min-width: 0;
}

.logo-mark {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    overflow: hidden;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-section > span:last-child {
    line-height: 1.15;
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 1.8vw, 2.5rem);
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: #475569;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active {
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 0.35rem;
}

.mobile-menu-toggle,
.drawer-backdrop,
.mobile-nav-drawer {
    display: none;
}

.mobile-menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 999px;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    z-index: 190;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 360px);
    height: 100dvh;
    background: white;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.24s ease;
    box-shadow: -18px 0 50px rgba(15, 23, 42, 0.2);
    overflow-y: auto;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.drawer-header .logo-section {
    font-size: 1rem;
    min-width: 0;
}

.drawer-header .logo-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
}

.drawer-header .logo-section span {
    white-space: normal;
    line-height: 1.2;
}

.drawer-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--secondary-color);
    flex: 0 0 auto;
}

.drawer-links,
.drawer-portals {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
}

.drawer-links a,
.drawer-portals a {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--secondary-color);
    font-weight: 700;
}

.drawer-links a.active {
    background: color-mix(in srgb, var(--primary-color) 12%, white);
    color: var(--primary-color);
}

.drawer-primary {
    background: var(--primary-color);
    color: white !important;
    text-align: center;
}

.drawer-portals {
    border-top: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.drawer-portals a {
    background: var(--bg-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 2rem;
    background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(30, 41, 59, 0.05) 0%, transparent 50%);
    text-align: center;
    overflow: hidden;
}

.hero-with-image {
    min-height: 640px;
    display: flex;
    align-items: center;
    color: white;
}

.hero-with-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.2));
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-with-image h1,
.hero-with-image p {
    color: white;
}

.eyebrow {
    display: inline-flex;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-secondary {
    background-color: white;
    color: var(--secondary-color) !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #f1f5f9;
}

.stats-strip {
    max-width: min(1280px, calc(100% - 3rem));
    margin: -3rem auto 0;
    position: relative;
    z-index: 5;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
}

.notice-panel {
    max-width: min(1280px, calc(100% - 3rem));
    margin: 2rem auto 0;
    padding: 2rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 6px solid var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.notice-panel h2 {
    color: var(--secondary-color);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.notice-panel p {
    color: #64748b;
}

.notice-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.portal-grid {
    max-width: min(1280px, calc(100% - 3rem));
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 2rem;
}

.portal-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.3rem;
    box-shadow: var(--shadow);
}

.portal-card span {
    display: block;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.portal-card strong {
    display: block;
    color: var(--secondary-color);
    line-height: 1.25;
}

.portal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.stat-item {
    padding: 1.5rem 2rem;
    border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item strong {
    display: block;
    color: var(--secondary-color);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item span {
    color: #64748b;
    font-weight: 600;
}

/* Sections */
.section {
    padding: clamp(5rem, 8vw, 8rem) clamp(1.25rem, 4vw, 4rem);
    width: 100%;
    margin: 0 auto;
}

.section > .section-header,
.section > .grid-3,
.section > .news-grid,
.section > .gallery-grid,
.section > .course-grid,
.section > .media-social-grid {
    max-width: var(--site-max);
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.section-header p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

/* Sleek Cards */
.card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(245, 158, 11, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background-color: color-mix(in srgb, var(--primary-color) 12%, white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.admissions-band {
    background: linear-gradient(135deg, var(--secondary-color), #0f172a);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.admissions-band h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.admissions-band p {
    color: #cbd5e1;
    max-width: 680px;
}

.admissions-band .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    border-color: rgba(255, 255, 255, 0.24);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.course-card span {
    color: var(--accent-color);
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.course-card h3 {
    color: var(--secondary-color);
    margin: 0.7rem 0;
}

.course-card p {
    color: #64748b;
    margin-bottom: 1.25rem;
}

.course-card a {
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.course-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.course-card-actions a + a {
    color: var(--secondary-color);
}

.programme-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    padding: clamp(5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 4rem);
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color), #0f172a);
    color: white;
}

.programme-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.programme-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.18)),
        radial-gradient(circle at 22% 25%, color-mix(in srgb, var(--primary-color) 38%, transparent), transparent 34%);
}

.programme-hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--site-max), 100%);
    margin: 0 auto;
}

.programme-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.05;
    max-width: 900px;
    margin-bottom: 1rem;
}

.programme-hero p {
    color: #e2e8f0;
    max-width: 760px;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: white;
    font-weight: 700;
}

.programme-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 2rem;
    align-items: start;
    max-width: var(--site-max);
}

.programme-main {
    display: grid;
    gap: 1.5rem;
}

.programme-section,
.programme-facts-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.programme-section h2,
.programme-facts-card h2 {
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.programme-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.programme-content-item {
    padding: 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-color);
}

.programme-content-item strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 0.45rem;
}

.programme-content-item p {
    color: #64748b;
}

.programme-check-list {
    display: grid;
    gap: 0.75rem;
}

.programme-check-list li {
    position: relative;
    padding-left: 1.75rem;
    color: #475569;
}

.programme-check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: var(--primary-color);
}

.programme-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.programme-sidebar {
    position: sticky;
    top: 7rem;
    display: grid;
    gap: 1.5rem;
}

.programme-facts-card dl {
    display: grid;
    gap: 0;
    margin-bottom: 1.5rem;
}

.programme-facts-card dl div {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
}

.programme-facts-card dt {
    color: #64748b;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.programme-facts-card dd {
    color: var(--secondary-color);
    font-weight: 700;
}

.programme-related-list {
    display: grid;
}

.programme-related-list a {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.programme-related-list a:last-child {
    border-bottom: 0;
}

.programme-related-list span {
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.programme-related-list strong {
    color: var(--secondary-color);
}

.programme-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.programme-gallery figure {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
}

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

.programme-gallery figcaption {
    padding: 0.8rem 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.feature-showcase {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 4vw, 5rem);
    align-items: center;
    background: white;
    max-width: none;
}

.feature-copy h2 {
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 3.5vw, 4.8rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.feature-copy p {
    color: #64748b;
}

.feature-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature-highlight-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.feature-highlight-card div {
    padding: 1.25rem;
}

.feature-highlight-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.55rem;
}

.feature-highlight-card p {
    color: #64748b;
}

.media-social-section {
    background: #0f172a;
    color: white;
}

.leadership-section {
    background: white;
}

.leadership-grid {
    max-width: var(--site-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.leadership-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.leadership-card img,
.leadership-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 3rem;
    font-weight: 800;
}

.leadership-card div {
    padding: 1.25rem;
}

.leadership-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.leadership-card span {
    color: var(--primary-color);
    display: block;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.leadership-card p {
    color: #64748b;
}

.media-social-section .section-header h2,
.media-social-section .section-header p {
    color: white;
}

.media-social-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 1.5rem;
}

.video-frame,
.social-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-frame iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

.social-panel {
    padding: 1.5rem;
}

.social-panel iframe {
    width: 100%;
    min-height: 260px;
    border: 0;
    border-radius: var(--radius-sm);
    background: white;
    margin: 1rem 0;
}

.social-panel h3 {
    color: white;
}

.social-link-grid {
    display: grid;
    gap: 0.75rem;
}

.social-link-grid a {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 700;
}

.content-hub {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(380px, 0.75fr);
    gap: 2rem;
    align-items: start;
    max-width: var(--site-max);
}

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

.hub-main,
.hub-panel {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.hub-side {
    display: grid;
    gap: 1.5rem;
}

.hub-list-item,
.mini-event,
.announcement-row {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hub-list-item:first-of-type {
    padding-top: 0;
}

.hub-list-item span,
.mini-event span,
.announcement-row span,
.mini-event small {
    color: #64748b;
    font-size: 0.88rem;
}

.hub-list-item strong,
.mini-event strong,
.announcement-row strong {
    color: var(--secondary-color);
    line-height: 1.35;
}

.hub-panel h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.notice-board-page {
    display: grid;
    gap: 2rem;
}

.notice-board-toolbar {
    max-width: var(--site-max);
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
}

.notice-board-toolbar h2 {
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    line-height: 1.15;
}

.notice-board-toolbar p {
    color: #64748b;
    margin-top: 0.35rem;
}

.notice-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.notice-filter-list a {
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: white;
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 0.85rem;
}

.notice-filter-list a.active,
.notice-filter-list a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.notice-board-list {
    max-width: var(--site-max);
    margin: 0 auto;
    width: 100%;
    display: grid;
    gap: 1rem;
}

.notice-card,
.empty-state {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.notice-card.pinned {
    border-left: 5px solid var(--primary-color);
}

.notice-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.notice-type,
.notice-pin {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    background: var(--bg-color);
    color: var(--secondary-color);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.notice-type.urgent {
    background: #fef2f2;
    color: #b91c1c;
}

.notice-type.event {
    background: #eff6ff;
    color: #1d4ed8;
}

.notice-type.academic {
    background: #ecfdf5;
    color: #047857;
}

.notice-pin {
    background: color-mix(in srgb, var(--primary-color) 14%, white);
    color: var(--primary-color);
}

.notice-card h3 {
    color: var(--secondary-color);
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 0.65rem;
}

.notice-card p,
.empty-state p {
    color: #64748b;
    margin-bottom: 1rem;
}

.empty-state {
    text-align: center;
}

.empty-state h2 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-feature {
    background: white;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
    gap: 2rem;
    align-items: center;
    max-width: none;
}

.contact-feature h2 {
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.contact-feature p {
    color: #64748b;
}

.contact-cards {
    display: grid;
    gap: 0.8rem;
}

.contact-cards a {
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--secondary-color);
    font-weight: 700;
}

.contact-page {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 2rem;
    align-items: start;
}

.contact-details-panel,
.contact-form-panel {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.contact-details-panel h2 {
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-details-panel p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.contact-list {
    display: grid;
    gap: 0.8rem;
}

.contact-list a,
.form-success,
.form-error {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.form-success {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
    margin-bottom: 1rem;
}

.form-error {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* News / Blog Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    height: clamp(240px, 18vw, 320px);
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.news-content h3 {
    font-size: 1.35rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.read-more {
    margin-top: auto;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration-color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-index-section {
    display: grid;
    gap: 2rem;
}

.news-index-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
}

.news-search {
    width: min(100%, 440px);
    display: grid;
    gap: 0.5rem;
}

.news-search label {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.85rem;
}

.news-search div {
    display: flex;
    gap: 0.5rem;
}

.news-search input {
    min-width: 0;
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    font: inherit;
}

.news-search button,
.article-print {
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--secondary-color);
    color: #fff;
    padding: 0.85rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.news-filter-note {
    width: min(calc(100% - clamp(2rem, 6vw, 6rem)), var(--site-max));
    margin: 0 auto;
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(14, 165, 233, 0.06);
    padding: 1rem 1.25rem;
    color: #475569;
}

.news-filter-note a {
    margin-left: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.featured-news-card {
    width: min(calc(100% - clamp(2rem, 6vw, 6rem)), var(--site-max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.featured-news-image {
    min-height: 320px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 800;
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-news-content {
    padding: clamp(2rem, 4vw, 3.5rem);
    display: grid;
    align-content: center;
    gap: 1rem;
}

.featured-news-content span,
.article-kicker,
.admission-cta-panel span {
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.featured-news-content h3 {
    color: var(--secondary-color);
    font-size: clamp(1.75rem, 3vw, 2.7rem);
    line-height: 1.08;
}

.featured-news-content p {
    color: #64748b;
}

.featured-news-content strong {
    color: var(--primary-color);
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.article-shell {
    width: min(calc(100% - clamp(2rem, 6vw, 6rem)), var(--site-max));
    margin: 3rem auto 5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 2rem;
    align-items: start;
}

.article-main {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
}

.article-breadcrumb {
    display: flex;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.92rem;
}

.article-breadcrumb a {
    color: var(--secondary-color);
    font-weight: 700;
}

.article-card,
.recent-news-panel,
.admission-cta-panel,
.related-news-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow);
}

.article-card {
    overflow: hidden;
}

.article-header {
    padding: clamp(2rem, 4vw, 3.25rem);
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    margin-top: 0.65rem;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.16;
    max-width: 820px;
}

.article-header p {
    max-width: 760px;
    margin-top: 1.25rem;
    color: #475569;
    font-size: 1.08rem;
    line-height: 1.7;
}

.article-share-inline {
    margin-top: 1.2rem;
    display: grid;
    gap: 0.55rem;
}

.share-label {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.share-button {
    min-height: 34px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.share-button svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: currentColor;
}

.share-button.facebook {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.08);
}

.share-button.whatsapp {
    color: #128c7e;
    background: rgba(18, 140, 126, 0.08);
}

.share-button.x {
    color: #0f172a;
}

.share-button.linkedin {
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.08);
}

.share-button.email {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.08);
}

.share-button.copy {
    color: var(--primary-color);
    background: rgba(245, 158, 11, 0.1);
}

.share-button:hover {
    transform: translateY(-1px);
    border-color: currentColor;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.92rem;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.article-meta span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

.article-hero-image {
    margin: 0;
    max-height: 520px;
    overflow: hidden;
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
}

.article-body {
    padding: clamp(2rem, 4vw, 3rem);
    color: #334155;
    font-size: 1.04rem;
    line-height: 1.82;
}

.article-body > * + * {
    margin-top: 1.15rem;
}

.article-body h2,
.article-body h3 {
    color: var(--secondary-color);
    line-height: 1.25;
}

.article-body a {
    color: var(--primary-color);
    font-weight: 700;
}

.article-footer {
    padding: 1.35rem clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.article-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 1rem;
}

.recent-news-panel,
.admission-cta-panel {
    padding: 1.35rem;
}

.recent-news-panel h2,
.admission-cta-panel h2 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.15rem;
}

.copy-status {
    min-height: 1.2rem;
    margin-top: 0.8rem;
    color: #15803d;
    font-size: 0.88rem;
}

.recent-news-panel {
    display: grid;
    gap: 0.85rem;
}

.recent-news-panel a {
    display: grid;
    gap: 0.25rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.recent-news-panel a:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.recent-news-panel span {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 700;
}

.admission-cta-panel {
    background: var(--secondary-color);
    color: #fff;
}

.admission-cta-panel h2 {
    color: #fff;
}

.admission-cta-panel p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
}

.admission-cta-panel a {
    display: inline-flex;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1rem;
    font-weight: 800;
}

.related-news {
    display: grid;
    gap: 1rem;
    margin-top: 0.5rem;
}

.news-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.related-news-card {
    padding: 1.25rem;
    color: inherit;
    text-decoration: none;
}

.related-news-card span {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 700;
}

.related-news-card strong {
    display: block;
    margin: 0.45rem 0;
    color: var(--secondary-color);
    line-height: 1.35;
}

.related-news-card p {
    color: #64748b;
    font-size: 0.92rem;
}

/* Events Section */
.events-index,
.event-detail-shell {
    width: min(calc(100% - clamp(2rem, 6vw, 6rem)), var(--site-max));
    margin: 3rem auto 5rem;
}

.events-index-header {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.events-index-header span {
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.events-index-header h1 {
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1;
    margin: 0.35rem 0 0.75rem;
}

.events-index-header p {
    max-width: 680px;
    color: #64748b;
}

.events-index-header a,
.event-card-arrow {
    color: var(--primary-color);
    font-weight: 800;
    text-decoration: none;
}

.events-list {
    display: grid;
    gap: 1rem;
}

.event-row {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
}

.event-list-card {
    color: inherit;
    text-decoration: none;
}

.event-row:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-hover);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: white;
    min-width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
}

.event-date .day {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.event-date .month {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

.event-date.large {
    width: 112px;
    min-width: 112px;
    height: 112px;
}

.event-date.large .day {
    font-size: 2.35rem;
}

.event-date .year {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    opacity: 0.82;
}

.event-details {
    flex-grow: 1;
}

.event-details h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.event-details p {
    margin-bottom: 0.65rem;
    color: #475569;
}

.event-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.events-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.event-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 2rem;
    align-items: start;
}

.event-detail-main {
    display: grid;
    gap: 1.5rem;
    min-width: 0;
}

.event-detail-card,
.event-facts-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.event-detail-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: clamp(2rem, 4vw, 3.25rem);
    border-bottom: 1px solid var(--border-color);
}

.event-detail-header h1 {
    margin-top: 0.65rem;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    line-height: 1.12;
}

.event-detail-header p {
    max-width: 760px;
    margin-top: 1rem;
    color: #475569;
    font-size: 1.04rem;
    line-height: 1.7;
}

.event-detail-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 1rem;
}

.event-facts-card {
    padding: 1.25rem;
}

.event-facts-card h2 {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.event-facts-card dl {
    display: grid;
    gap: 0.9rem;
}

.event-facts-card dl div {
    border-top: 1px solid var(--border-color);
    padding-top: 0.9rem;
}

.event-facts-card dt {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.event-facts-card dd {
    margin-top: 0.25rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.event-facts-card a {
    color: var(--primary-color);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: clamp(260px, 20vw, 360px);
    box-shadow: var(--shadow);
    background: var(--secondary-color);
}

.gallery-lightbox-trigger {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.gallery-card img,
.gallery-lightbox-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(30, 41, 59, 0.9), transparent);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: var(--transition);
    pointer-events: none;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: white;
    font-weight: 600;
}

.gallery-lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
}

.gallery-lightbox.open {
    display: flex;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.gallery-lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    max-height: calc(100dvh - 2rem);
    display: grid;
    align-items: center;
}

.gallery-lightbox-panel figure {
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.gallery-lightbox-panel img {
    max-width: 100%;
    max-height: calc(100dvh - 8rem);
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    background: #020617;
}

.gallery-lightbox-panel figcaption {
    color: white;
    text-align: center;
    font-weight: 700;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(15, 23, 42, 0.68);
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.gallery-lightbox-close {
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 2rem;
    line-height: 1;
}

.gallery-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 64px;
    border-radius: var(--radius-sm);
    font-size: 3rem;
    line-height: 1;
}

.gallery-lightbox-nav.previous {
    left: 0;
}

.gallery-lightbox-nav.next {
    right: 0;
}

/* Admissions Multistep Form */
.apply-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.apply-download-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: var(--bg-color);
}

.apply-download-panel span {
    display: block;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.apply-download-panel strong {
    display: block;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.steps-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
    transform: translateY(-50%);
}

.step-bubble {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #94a3b8;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.step-bubble.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.form-group small {
    display: block;
    margin-top: 0.45rem;
    color: #64748b;
    font-size: 0.85rem;
}

.form-group .form-error {
    color: #b91c1c;
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.custom-admission-fields {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-color);
}

.custom-admission-fields h4 {
    color: var(--secondary-color);
    margin-bottom: 0.35rem;
}

.custom-admission-fields > p {
    color: #64748b;
    margin-bottom: 1.25rem;
}

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

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 1rem;
}
.form-buttons button {
    flex: 1;
}
.form-buttons span {
    display: none;
}
@media (min-width: 768px) {
    .form-buttons button {
        flex: none;
        min-width: 120px;
    }
    .form-buttons span {
        display: block;
    }
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #94a3b8;
    padding: 5rem clamp(1.25rem, 4vw, 4rem) 2rem;
}

.footer-container {
    max-width: var(--site-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

.page-hero {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--secondary-color) 92%, black), var(--secondary-color));
    color: white;
}

.page-hero > div {
    max-width: 1100px;
    margin: 0 auto;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1.15;
}

.custom-hero {
    position: relative;
    min-height: 440px;
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
    background: white;
    overflow: hidden;
}

.custom-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.22));
}

.custom-hero > div {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.custom-hero h2 {
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.custom-hero p {
    color: #64748b;
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.custom-hero-image h2,
.custom-hero-image p {
    color: white;
}

.content-section {
    max-width: 860px;
    color: #475569;
    font-size: 1.05rem;
}

.content-section h2,
.content-section h3 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
}

.content-section p,
.content-section ul,
.content-section ol {
    margin-bottom: 1.25rem;
}

.content-section img,
.content-section figure img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.content-section figure {
    max-width: 100%;
    margin: 2rem 0;
}

.content-section figcaption,
.page-image-section figcaption {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
}

.content-section .attachment,
.content-section .attachment__caption {
    max-width: 100%;
}

.content-section .cms-align-left {
    text-align: left;
}

.content-section .cms-align-center {
    text-align: center;
}

.content-section .cms-align-right {
    text-align: right;
}

.content-section .cms-align-justify {
    text-align: justify;
}

.content-section .cms-align-left figure,
.content-section .cms-align-left img {
    margin-left: 0;
    margin-right: auto;
}

.content-section .cms-align-center figure,
.content-section .cms-align-center img {
    margin-left: auto;
    margin-right: auto;
}

.content-section .cms-align-right figure,
.content-section .cms-align-right img {
    margin-left: auto;
    margin-right: 0;
}

.content-section .cms-align-left figure,
.content-section .cms-align-right figure,
.content-section .cms-align-center figure {
    width: min(100%, 760px);
}

.content-section .cms-image-wide {
    width: min(100vw - 2.5rem, var(--site-max));
    margin-left: 50%;
    transform: translateX(-50%);
}

.content-section .cms-image-wide figure,
.content-section .cms-image-wide img {
    width: 100%;
}

.content-section .cms-image-full {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.content-section .cms-image-full figure,
.content-section .cms-image-full img {
    width: 100%;
    border-radius: 0;
}

.page-image-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.page-image-section figure {
    width: min(100%, 860px);
    margin: 0 auto;
}

.page-image-section img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.page-image-left figure {
    margin-left: max(1.25rem, calc((100vw - var(--site-max)) / 2));
    margin-right: auto;
    width: min(52vw, 620px);
}

.page-image-right figure {
    margin-left: auto;
    margin-right: max(1.25rem, calc((100vw - var(--site-max)) / 2));
    width: min(52vw, 620px);
}

.page-image-wide figure {
    width: min(100%, var(--site-max));
}

.page-image-full {
    padding-left: 0;
    padding-right: 0;
}

.page-image-full figure {
    width: 100%;
}

.page-image-full img {
    border-radius: 0;
}

.image-text-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    max-width: var(--site-max);
}

.image-text-section figure {
    margin: 0;
}

.image-text-section img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.image-text-reverse figure {
    order: 2;
}

.image-text-content {
    max-width: none;
    padding: 0;
}

/* Website layout presets */
.site-layout-classic .top-strip {
    background: #111827;
}

.site-layout-classic header {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
}

.site-layout-classic .nav-container {
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
}

.site-layout-classic .hero {
    text-align: left;
}

.site-layout-classic .hero-content {
    max-width: var(--site-max);
}

.site-layout-classic .hero h1 {
    max-width: 760px;
}

.site-layout-classic .hero p {
    max-width: 680px;
}

.site-layout-classic .hero-buttons {
    justify-content: flex-start;
}

.site-layout-classic .hero-with-image::after {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.16));
}

.site-layout-classic .stats-strip {
    margin-top: 0;
    border-radius: 0;
    max-width: 100%;
}

.site-layout-classic .notice-panel {
    background: white;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.site-layout-classic .card,
.site-layout-classic .course-card,
.site-layout-classic .hub-main,
.site-layout-classic .hub-panel,
.site-layout-classic .news-card,
.site-layout-classic .article-card,
.site-layout-classic .contact-details-panel,
.site-layout-classic .contact-form-panel {
    background: white;
    border-color: var(--border-color);
}

.site-layout-classic .feature-showcase,
.site-layout-classic .leadership-section,
.site-layout-classic .contact-feature {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.site-layout-compact .top-strip {
    font-size: 0.78rem;
}

.site-layout-compact .top-strip-inner {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.site-layout-compact .nav-container {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.site-layout-compact .logo-section {
    font-size: 1.18rem;
}

.site-layout-compact .logo-section img {
    height: 100%;
}

.site-layout-compact .logo-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

.site-layout-compact .nav-links {
    gap: clamp(0.75rem, 1.2vw, 1.35rem);
}

.site-layout-compact .nav-links a {
    font-size: 0.9rem;
}

.site-layout-compact .btn-primary,
.site-layout-compact .btn-secondary {
    padding: 0.58rem 1rem;
}

.site-layout-compact .hero-with-image {
    min-height: 460px;
}

.site-layout-compact .hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.site-layout-compact .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.site-layout-compact .stats-strip,
.site-layout-compact .notice-panel,
.site-layout-compact .portal-grid {
    max-width: min(var(--site-max), calc(100% - 2rem));
}

.site-layout-compact .notice-panel {
    padding: 1.25rem;
    margin-top: 1rem;
}

.site-layout-compact .portal-grid {
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0;
}

.site-layout-compact .portal-card,
.site-layout-compact .card,
.site-layout-compact .course-card,
.site-layout-compact .hub-main,
.site-layout-compact .hub-panel,
.site-layout-compact .contact-details-panel,
.site-layout-compact .contact-form-panel {
    padding: 1.25rem;
}

.site-layout-compact .grid-3,
.site-layout-compact .course-grid,
.site-layout-compact .news-grid,
.site-layout-compact .gallery-grid,
.site-layout-compact .feature-highlight-grid,
.site-layout-compact .leadership-grid {
    gap: 1rem;
}

.site-layout-compact .section-header {
    margin-bottom: 2rem;
}

.site-layout-compact .section-header h2,
.site-layout-compact .contact-feature h2,
.site-layout-compact .admissions-band h2 {
    font-size: 2rem;
}

.site-layout-compact .content-hub,
.site-layout-compact .feature-showcase,
.site-layout-compact .contact-feature {
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .top-strip-inner {
        padding: 0.55rem 1rem;
        display: block;
    }
    .latest-strip {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        min-width: 0;
    }
    .latest-strip strong {
        font-size: 0.76rem;
        padding: 0.24rem 0.5rem;
    }
    .ticker-window {
        max-width: calc(100vw - 8.5rem);
    }
    .ticker-track {
        gap: 1.5rem;
        animation-duration: 18s;
    }
    .top-actions {
        display: none;
    }
    .nav-container {
        padding: 0.85rem 1rem;
        flex-direction: row;
        gap: 1rem;
    }
    .logo-section {
        min-width: 0;
        font-size: 1.05rem;
        line-height: 1.15;
    }
    .logo-section span {
        overflow-wrap: anywhere;
    }
    .logo-section img {
        max-height: 100%;
    }
    .logo-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-toggle,
    .drawer-backdrop,
    .mobile-nav-drawer {
        display: flex;
    }
    .mobile-nav-drawer {
        display: block;
    }
    .mobile-menu-open {
        overflow: hidden;
    }
    .mobile-menu-open .drawer-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    .mobile-menu-open .mobile-nav-drawer {
        transform: translateX(0);
    }
    .hero h1 {
        font-size: 2.15rem;
    }
    .hero-with-image {
        min-height: 560px;
    }
    .hero {
        padding: 5rem 1.25rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .stats-strip {
        margin: 0;
        border-radius: 0;
        grid-template-columns: 1fr;
    }
    .notice-panel,
    .notice-actions,
    .events-index-header,
    .event-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .notice-panel {
        margin: 0;
        border-radius: 0;
    }
    .portal-grid,
    .content-hub,
    .programme-layout,
    .programme-two-column,
    .article-shell,
    .contact-feature,
    .contact-page,
    .feature-showcase,
    .feature-highlight-grid,
    .media-social-grid,
    .event-detail-shell {
        grid-template-columns: 1fr;
    }
    .page-image-left figure,
    .page-image-right figure,
    .page-image-wide figure,
    .page-image-full figure {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .page-image-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .page-image-full {
        padding-left: 0;
        padding-right: 0;
    }
    .image-text-section {
        grid-template-columns: 1fr;
    }
    .image-text-reverse figure {
        order: 0;
    }
    .portal-grid {
        padding: 2rem;
    }
    .grid-3,
    .news-grid,
    .news-grid.compact,
    .gallery-grid,
    .course-grid {
        grid-template-columns: 1fr;
    }
    .news-index-header,
    .notice-board-toolbar,
    .featured-news-card,
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .notice-filter-list {
        justify-content: flex-start;
    }
    .featured-news-card {
        grid-template-columns: 1fr;
    }
    .featured-news-image {
        min-height: 240px;
    }
    .article-sidebar {
        position: static;
    }
    .event-detail-sidebar {
        position: static;
    }
    .programme-sidebar {
        position: static;
    }
    .programme-hero {
        min-height: 460px;
    }
    .programme-facts-card dl div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .gallery-lightbox {
        padding: 0.75rem;
    }
    .gallery-lightbox-panel img {
        max-height: calc(100dvh - 7rem);
    }
    .gallery-lightbox-close {
        top: 0.25rem;
        right: 0.25rem;
    }
    .gallery-lightbox-nav {
        width: 42px;
        height: 52px;
        font-size: 2.4rem;
    }
    .article-header,
    .article-body,
    .article-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .apply-container {
        margin: 1.5rem 1rem;
        padding: 1.5rem 1.25rem;
    }
    .steps-indicator {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    .steps-indicator::before {
        left: 1rem;
        width: calc(100% - 2rem);
    }
    .apply-download-panel {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.25rem;
    }
    .apply-download-panel .btn-secondary {
        width: 100%;
        text-align: center;
        display: block;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .share-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .share-button {
        min-height: 34px;
        border-radius: var(--radius-sm);
        padding: 0.45rem 0.4rem;
        font-size: 0.72rem;
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .admissions-band {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 0;
    }
    .admissions-band h2,
    .page-hero h1,
    .custom-hero h2 {
        font-size: 2rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .event-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .event-card-arrow {
        align-self: flex-start;
    }
    .event-date.large {
        width: 92px;
        min-width: 92px;
        height: 92px;
    }
}

@media print {
    .top-strip,
    header,
    footer,
    .article-sidebar,
    .article-breadcrumb,
    .related-news,
    .article-footer {
        display: none !important;
    }

    .article-shell,
    .article-card {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        box-shadow: none;
        border: 0;
    }

    .article-header,
    .article-body {
        padding: 0;
    }
}
