/* Premium Typography & Variables */
body {
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: #334155;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

.py-6 {
    padding-top: clamp(3.75rem, 6vw, 5.5rem);
    padding-bottom: clamp(3.75rem, 6vw, 5.5rem);
}

.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }
.fs-7 { font-size: 0.85rem; }

/* Premium Navbar (Glassmorphism) */
.premium-navbar {
    background: rgba(var(--nav-bg-rgb, 30, 41, 59), 0.85); /* fallback rgb based on primary */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    padding: 1.25rem 0;
}

.premium-navbar::after {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.4), rgba(250, 204, 21, 0.25), transparent);
    pointer-events: none;
}

.premium-navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(var(--nav-bg-rgb, 15, 23, 42), 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-logo { height: 45px; transition: transform 0.3s; }
.premium-navbar:hover .nav-logo { transform: scale(1.05); }

.nav-links .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links .nav-link:hover { color: #fff !important; }
.nav-links .nav-link:hover::after { width: 100%; }

/* Dropdown */
.glass-dropdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
}
.glass-dropdown .dropdown-item {
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.2s;
}
.glass-dropdown .dropdown-item:hover {
    background: var(--accent);
    color: white;
    padding-left: 25px;
}

/* Premium Buttons */
.btn-premium-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #0284c7 100%);
    color: white;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-premium-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
    color: white;
}

.btn-premium-primary {
    background: var(--primary);
    color: white;
    border: none;
    transition: all 0.3s;
}
.btn-premium-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-premium-outline-light {
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    background: transparent;
    transition: all 0.3s;
}
.btn-premium-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.hover-lift { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.hover-lift:hover { transform: translateY(-8px); }

.hover-lift-scale { transition: all 0.3s; }
.hover-lift-scale:hover { transform: scale(1.05) translateY(-5px); }

/* Hero Animations */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
}

.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.animate-bounce { animation: bounce 2s infinite; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* Glass Cards (Stats) */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Utilities */
.transition-scale { transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.news-card:hover .transition-scale { transform: scale(1.08); }
.hover-shadow-xl:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important; }

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Premium Footer */
.premium-footer {
    background: var(--footer-bg);
    position: relative;
    color: var(--footer-text);
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 40px;
}
.footer-wave .shape-fill { fill: var(--body-bg); }

.contact-info .icon-box {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px;
    color: var(--accent);
    transition: all 0.3s;
}
.contact-info li:hover .icon-box {
    background: var(--accent);
    color: white;
}

.social-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: white;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}
.social-icon:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Home Redesign */
.home-hero-shell {
    min-height: 100vh;
    padding: 7.5rem 0 4rem;
    background:
        radial-gradient(circle at 14% 18%, rgba(56, 189, 248, 0.24), transparent 32%),
        radial-gradient(circle at 85% 12%, rgba(250, 204, 21, 0.16), transparent 25%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.8));
}

.hero-grid {
    min-height: calc(100vh - 9rem);
}

.hero-mesh,
.hero-overlay-strong {
    position: absolute;
    inset: 0;
}

.hero-mesh {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.12;
    z-index: 1;
}

.hero-overlay-strong {
    background: linear-gradient(115deg, rgba(2, 6, 23, 0.9) 20%, rgba(15, 23, 42, 0.56) 56%, rgba(30, 41, 59, 0.7) 100%);
    z-index: 1;
}

.home-chip,
.home-kicker,
.impact-label,
.news-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.73rem;
}

.home-chip {
    padding: 0.7rem 1rem;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.22);
    color: #38bdf8;
}

.home-chip-soft {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
}

.home-kicker {
    margin-bottom: 1rem;
    color: var(--primary);
}

.home-kicker-warm {
    color: #b45309;
}

.home-hero-title {
    font-size: clamp(3.1rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-weight: 800;
    color: #f8fafc;
    text-wrap: balance;
}

.home-hero-text {
    max-width: 650px;
    color: rgba(226, 232, 240, 0.82);
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    line-height: 1.78;
}

.home-btn-primary,
.home-btn-secondary,
.home-btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

.home-btn-primary {
    background: linear-gradient(135deg, #f8fafc, #dbeafe);
    color: #0f172a;
    box-shadow: 0 22px 50px rgba(2, 6, 23, 0.28);
}

.home-btn-primary:hover {
    transform: translateY(-3px);
    color: #0f172a;
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.34);
}

.home-btn-secondary {
    background: rgba(15, 23, 42, 0.22);
    color: #fff;
    border: 1px solid rgba(226, 232, 240, 0.24);
    backdrop-filter: blur(12px);
}

.home-btn-secondary:hover {
    transform: translateY(-3px);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.home-btn-accent {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #111827;
    box-shadow: 0 22px 40px rgba(245, 158, 11, 0.24);
}

.home-btn-accent:hover {
    transform: translateY(-3px);
    color: #111827;
    box-shadow: 0 28px 54px rgba(245, 158, 11, 0.32);
}

.hero-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hero-stat-pill,
.hero-side-card {
    border-radius: 1.6rem;
    border: 1px solid rgba(226, 232, 240, 0.12);
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
    overflow: hidden;
}

.hero-stat-pill {
    padding: 1.1rem 1.2rem;
}

.hero-stat-pill span {
    display: block;
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.hero-stat-pill strong {
    display: block;
    margin-top: 0.45rem;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    color: #fff;
    line-height: 1;
}

.hero-side-stack {
    display: grid;
    gap: 1.2rem;
}

.hero-side-card-image {
    min-height: 390px;
    display: flex;
    align-items: end;
    position: relative;
}

.hero-side-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-side-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.94));
}

.hero-side-content {
    position: relative;
    z-index: 1;
    padding: 1.6rem;
    color: #fff;
}

.hero-side-content h3 {
    margin: 1rem 0 0.8rem;
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.12;
}

.hero-side-content p {
    color: rgba(226, 232, 240, 0.78);
    margin: 0;
    line-height: 1.75;
}

.hero-side-card-stats {
    padding: 1.4rem;
    display: grid;
    gap: 1rem;
}

.mini-stat {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

.mini-stat:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.mini-stat span,
.home-section-text,
.impact-card p,
.feature-news-body p,
.announcement-modern-content p,
.showcase-body p,
.home-cta-text {
    color: var(--text-muted);
    line-height: 1.75;
}

.mini-stat strong {
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
}

.home-block {
    padding: clamp(2rem, 4vw, 3.4rem) 0;
}

.home-panel,
.home-cta-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border-radius: 2rem;
    border: 1px solid var(--border-soft, rgba(148, 163, 184, 0.18));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84));
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.08);
}

.home-panel::before,
.home-cta-panel::before,
.feature-news-card::before,
.announcement-modern-card::before,
.showcase-card::before,
.teacher-modern-card::before,
.feed-card::before,
.detail-main-card::before,
.sidebar-float-card::before,
.contact-info-card::before,
.form-surface::before,
.floating-filter-bar::before,
.page-header-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.5), rgba(250, 204, 21, 0.28), transparent);
    opacity: 0.9;
    pointer-events: none;
}

html[data-theme='dark'] .home-panel {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.82));
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.34);
}

.impact-note {
    padding: 1rem 1.2rem;
    border-radius: 1.3rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(37, 99, 235, 0.12));
    border: 1px solid rgba(96, 165, 250, 0.16);
    font-weight: 700;
    line-height: 1.6;
    color: var(--text-main);
}

.home-section-title,
.home-cta-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 800;
    color: var(--text-main);
    text-wrap: balance;
}

.impact-grid,
.showcase-grid,
.story-grid,
.teacher-modern-grid {
    display: grid;
    gap: 1.15rem;
}

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

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

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

.teacher-modern-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-card {
    padding: 1.45rem;
    border-radius: 1.5rem;
    background: rgba(248, 250, 252, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.16);
    min-height: 220px;
}

html[data-theme='dark'] .impact-card {
    background: rgba(15, 23, 42, 0.68);
}

.impact-card-primary {
    background: linear-gradient(160deg, rgba(14, 165, 233, 0.14), rgba(255, 255, 255, 0.84));
}

.impact-card-accent {
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.14), rgba(255, 255, 255, 0.84));
}

html[data-theme='dark'] .impact-card-primary,
html[data-theme='dark'] .impact-card-accent {
    background: linear-gradient(160deg, rgba(14, 165, 233, 0.14), rgba(15, 23, 42, 0.84));
}

.impact-label,
.news-badge {
    padding: 0.55rem 0.82rem;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.impact-card strong {
    display: block;
    margin: 0.95rem 0 1rem;
    font-size: clamp(2.15rem, 4vw, 3rem);
    color: var(--text-main);
    line-height: 1;
}

.home-inline-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.home-inline-link:hover {
    color: var(--accent);
}

.home-inline-link-warm {
    color: #b45309;
}

.feature-news-card,
.announcement-modern-card,
.showcase-card,
.story-card,
.teacher-modern-card {
    position: relative;
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.88);
    overflow: hidden;
    transition: transform 0.32s ease, box-shadow 0.32s ease;
}

html[data-theme='dark'] .feature-news-card,
html[data-theme='dark'] .announcement-modern-card,
html[data-theme='dark'] .showcase-card,
html[data-theme='dark'] .story-card,
html[data-theme='dark'] .teacher-modern-card {
    background: rgba(15, 23, 42, 0.86);
}

.feature-news-card:hover,
.announcement-modern-card:hover,
.showcase-card:hover,
.story-card:hover,
.teacher-modern-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

html[data-theme='dark'] .feature-news-card:hover,
html[data-theme='dark'] .announcement-modern-card:hover,
html[data-theme='dark'] .showcase-card:hover,
html[data-theme='dark'] .story-card:hover,
html[data-theme='dark'] .teacher-modern-card:hover {
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.42);
}

.feature-news-media,
.showcase-media,
.teacher-modern-media {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.82));
}

.feature-news-media::after,
.showcase-media::after,
.teacher-modern-media::after,
.feed-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.28));
    pointer-events: none;
}

.feature-news-media {
    height: 300px;
}

.showcase-media,
.teacher-modern-media {
    height: 230px;
}

.feature-news-media img {
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0.75rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.82));
}

.teacher-modern-media {
    height: 340px;
    padding: 0.75rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.82));
}

.teacher-modern-media::after {
    display: none;
}

.teacher-modern-media img {
    object-fit: contain !important;
    object-position: center top !important;
    border-radius: 1rem;
    background: #ffffff;
}

.feature-news-fallback,
.showcase-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.story-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.story-card-media {
    position: relative;
    height: 240px;
    padding: 0.75rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.82));
}

.story-card-media::after {
    display: none;
}

.story-card-media.story-card-media-warm {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.82));
}

.story-card-media img,
.story-card-media video {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 1rem;
    background: #ffffff;
}

.story-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: rgba(255, 255, 255, 0.88);
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.story-card-fallback.story-card-fallback-warm {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

.feature-news-body,
.showcase-body,
.teacher-modern-body {
    padding: 1.45rem;
}

.feature-news-body h3,
.showcase-body h3,
.teacher-modern-body h3 {
    margin: 0.95rem 0 0.85rem;
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.feature-news-body h3 a,
.showcase-body a,
.teacher-modern-body a {
    color: inherit;
    text-decoration: none;
}

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

.announcement-modern-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
}

.announcement-modern-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(250, 204, 21, 0.18), rgba(251, 191, 36, 0.06));
    border-right: 1px solid rgba(250, 204, 21, 0.18);
}

.announcement-modern-date strong {
    font-size: 2rem;
    color: #92400e;
    line-height: 1;
}

.announcement-modern-date span {
    margin-top: 0.35rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #b45309;
    font-weight: 700;
}

html[data-theme='dark'] .announcement-modern-date strong,
html[data-theme='dark'] .announcement-modern-date span {
    color: #fbbf24;
}

.announcement-modern-content {
    padding: 1.2rem 1.35rem;
}

.announcement-modern-content h4 {
    margin: 0.8rem 0 0.65rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.24;
}

.news-badge-warm {
    background: rgba(250, 204, 21, 0.12);
    color: #b45309;
}

.news-badge-info {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

html[data-theme='dark'] .news-badge {
    background: rgba(37, 99, 235, 0.16);
    color: #93c5fd;
}

html[data-theme='dark'] .news-badge-warm {
    background: rgba(250, 204, 21, 0.14);
    color: #fbbf24;
}

html[data-theme='dark'] .news-badge-info {
    background: rgba(14, 165, 233, 0.18);
    color: #67e8f9;
}

.teacher-modern-subject {
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-weight: 700;
}

.story-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.45rem;
}

.story-card-body h3 {
    margin: 0 0 0.85rem;
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--text-main);
}

.story-card-body p {
    margin: 0 0 1rem;
    color: var(--text-muted);
    line-height: 1.78;
}

.empty-modern-panel {
    min-height: 220px;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    background: rgba(148, 163, 184, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-align: center;
}

.empty-modern-panel i {
    font-size: 2.6rem;
    color: var(--text-muted);
}

.empty-modern-panel h3 {
    margin: 0;
    font-size: 1.12rem;
    color: var(--text-main);
}

.empty-modern-panel-sm {
    min-height: 170px;
}

.home-cta-panel {
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.92), rgba(37, 99, 235, 0.74));
    color: #f8fafc;
    box-shadow: 0 35px 80px rgba(2, 6, 23, 0.28);
}

.home-cta-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.22), transparent 30%),
        radial-gradient(circle at 85% 24%, rgba(250, 204, 21, 0.18), transparent 24%);
}

.home-cta-title {
    color: #fff;
}

.home-cta-text {
    color: rgba(226, 232, 240, 0.82);
    max-width: 720px;
}

@media (max-width: 1199.98px) {
    .impact-grid,
    .story-grid,
    .teacher-modern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .hero-grid {
        min-height: auto;
    }

    .hero-stat-row,
    .impact-grid,
    .showcase-grid,
    .story-grid,
    .teacher-modern-grid {
        grid-template-columns: 1fr;
    }

    .announcement-modern-card {
        grid-template-columns: 1fr;
    }

    .announcement-modern-date {
        border-right: 0;
        border-bottom: 1px solid rgba(250, 204, 21, 0.18);
    }
}

@media (max-width: 767.98px) {
    .home-hero-shell {
        padding-top: 6.5rem;
    }

    .home-hero-title {
        font-size: clamp(2.7rem, 15vw, 4.2rem);
    }

    .home-panel,
    .home-cta-panel {
        border-radius: 1.5rem;
    }

    .feature-news-media,
    .showcase-media,
    .teacher-modern-media {
        height: 210px;
    }

    .story-card-media {
        height: 210px;
    }
}

/* Premium Interior Pages */
.immersive-page-header {
    position: relative;
    min-height: 72vh;
    padding: 8rem 0 3rem;
    display: flex;
    align-items: end;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.18), transparent 26%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.92));
}

.immersive-page-header.is-compact {
    min-height: 60vh;
}

.page-header-media,
.page-header-overlay {
    position: absolute;
    inset: 0;
}

.page-header-media video,
.page-header-media img,
.page-header-media .media-fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-media .media-fill {
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.page-header-overlay {
    background:
        linear-gradient(120deg, rgba(2, 6, 23, 0.9), rgba(15, 23, 42, 0.76), rgba(30, 41, 59, 0.84)),
        radial-gradient(circle at 82% 22%, rgba(250, 204, 21, 0.14), transparent 24%);
    z-index: 1;
}

.page-header-panel {
    position: relative;
    z-index: 2;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.12);
    background: rgba(15, 23, 42, 0.42);
    box-shadow: 0 32px 80px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.page-header-panel::after {
    content: '';
    position: absolute;
    inset: auto -15% -35% auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.18), transparent 68%);
    pointer-events: none;
}

.page-header-grid.page-header-grid-portrait {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
}

.page-header-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    gap: 1.2rem;
    align-items: end;
}

.page-header-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(125, 211, 252, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.18);
    color: #7dd3fc;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-header-title {
    margin: 1rem 0 1rem;
    font-size: clamp(2.75rem, 6vw, 5.1rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 800;
    color: #f8fafc;
    text-wrap: balance;
}

.page-header-subtitle {
    max-width: 62ch;
    color: rgba(226, 232, 240, 0.82);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: 0;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.page-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.92rem;
}

.page-breadcrumb li + li::before {
    content: '/';
    color: rgba(226, 232, 240, 0.32);
}

.page-breadcrumb a {
    color: rgba(226, 232, 240, 0.7);
    text-decoration: none;
}

.page-breadcrumb a:hover {
    color: #fff;
}

.header-glance-grid {
    display: grid;
    gap: 1rem;
}

.header-glance-card {
    padding: 1.1rem 1.15rem;
    border-radius: 1.45rem;
    border: 1px solid rgba(226, 232, 240, 0.1);
    background: rgba(2, 6, 23, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-glance-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
}

.header-glance-value {
    margin-top: 0.7rem;
    color: #f8fafc;
    font-size: 1.04rem;
    line-height: 1.6;
    font-weight: 600;
}

.header-glance-stat {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.floating-filter-wrap {
    position: relative;
    z-index: 4;
    margin-top: -2rem;
}

.floating-filter-bar {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 1.7rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.premium-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.78rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 250, 252, 0.7);
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease, color 0.24s ease;
}

.premium-filter-chip:hover {
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.premium-filter-chip.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
}

.page-section-shell {
    padding: clamp(3rem, 5vw, 5rem) 0;
}

.split-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
    gap: 1.4rem;
}

.showcase-media-panel,
.detail-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    border: 1px solid var(--border-soft);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.84));
    box-shadow: var(--shadow-soft);
}

.showcase-media-panel {
    min-height: 520px;
}

.showcase-media-fill {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.showcase-media-panel::after,
.detail-hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.86));
}

.showcase-floating-card {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1;
    padding: 1.2rem 1.3rem;
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.1);
    color: #f8fafc;
    backdrop-filter: blur(14px);
}

.showcase-floating-card p {
    margin: 0.6rem 0 0;
    color: rgba(226, 232, 240, 0.78);
}

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

.pill-stat {
    padding: 1.15rem 1.2rem;
    border-radius: 1.45rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(248, 250, 252, 0.72);
}

.pill-stat h3 {
    margin: 0 0 0.55rem;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-main);
}

.pill-stat p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.72;
}

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

.feed-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.7rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feed-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 64px rgba(15, 23, 42, 0.12);
}

.feed-card-feature {
    grid-column: span 3;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.feed-card-media {
    position: relative;
    min-height: 260px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.84));
}

.feed-card-feature .feed-card-media {
    min-height: 100%;
}

.feed-card-media img,
.feed-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-asset-frame {
    padding: 0.75rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.82));
}

.news-asset-frame::after {
    display: none;
}

.news-asset-frame img {
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 1rem;
    background: #ffffff;
}

.feed-card-body {
    padding: 1.35rem 1.4rem;
}

.feed-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.date-pill,
.soft-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.date-pill {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.soft-chip {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
}

.soft-chip.soft-chip-warm {
    background: rgba(250, 204, 21, 0.16);
    color: #a16207;
}

.soft-chip.soft-chip-sky {
    background: rgba(14, 165, 233, 0.14);
    color: #0284c7;
}

.feed-card h3,
.detail-section-title {
    color: var(--text-main);
    letter-spacing: -0.04em;
    line-height: 1.08;
    font-weight: 800;
}

.feed-card h3 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.feed-card p {
    margin: 0 0 1rem;
    color: var(--text-muted);
    line-height: 1.78;
}

.feed-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
}

.feed-card-link:hover {
    color: var(--accent);
}

.detail-shell {
    padding: clamp(3rem, 5vw, 5rem) 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 1.4rem;
}

.detail-main-card,
.sidebar-float-card,
.contact-info-card,
.form-surface {
    position: relative;
    border-radius: 2rem;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.detail-main-card,
.sidebar-float-card,
.contact-info-card {
    padding: clamp(1.3rem, 3vw, 2rem);
}

.detail-richtext {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.88;
}

.detail-richtext img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 1.2rem;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.detail-story-asset {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: center center;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.82));
    padding: 0.85rem;
    border-radius: 1.25rem;
}

.teacher-detail-backdrop {
    filter: blur(14px) saturate(1.05);
    transform: scale(1.16) !important;
    background-size: cover !important;
    background-position: center top !important;
}

.header-portrait-card {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    padding: 0.85rem;
    border-radius: 1.7rem;
    border: 1px solid rgba(226, 232, 240, 0.12);
    background: rgba(2, 6, 23, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.header-portrait-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.08), rgba(2, 6, 23, 0));
    pointer-events: none;
}

.header-portrait-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    border-radius: 1.2rem;
    background: #ffffff;
}

.detail-richtext ul,
.detail-richtext ol {
    padding-left: 1.25rem;
}

.detail-richtext p:last-child {
    margin-bottom: 0;
}

.sidebar-float-card {
    display: grid;
    gap: 1rem;
}

.sidebar-float-card h3,
.sidebar-float-card h4,
.contact-info-card h3,
.contact-info-card h4 {
    margin: 0;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.sidebar-list {
    display: grid;
    gap: 0.85rem;
}

.sidebar-list-item {
    display: flex;
    align-items: start;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 1.2rem;
    background: rgba(248, 250, 252, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.sidebar-list-item i {
    color: var(--primary);
}

.sidebar-list-item strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.sidebar-list-item span,
.sidebar-list-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.info-pill-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--text-main);
    font-weight: 600;
}

.achievement-list {
    display: grid;
    gap: 0.85rem;
}

.achievement-item {
    display: flex;
    align-items: start;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 1.2rem;
    background: rgba(248, 250, 252, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.achievement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #111827;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.4rem;
}

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

.contact-info-card p,
.contact-info-card a {
    color: var(--text-muted);
    line-height: 1.75;
    text-decoration: none;
}

.contact-icon {
    width: 54px;
    height: 54px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.contact-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.contact-social-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    color: var(--primary);
}

.form-surface {
    padding: clamp(1.4rem, 3vw, 2.2rem);
}

.form-surface .form-floating > .form-control,
.form-surface .form-floating > .form-select,
.form-surface textarea.form-control {
    border-radius: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(248, 250, 252, 0.86);
}

.form-surface .form-control {
    min-height: 58px;
}

.form-surface textarea.form-control {
    min-height: 180px;
}

.form-surface .form-control:focus,
.form-surface .form-select:focus {
    background: rgba(255, 255, 255, 0.98);
}

.form-highlight {
    padding: 1rem 1.1rem;
    border-radius: 1.35rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(37, 99, 235, 0.08));
    border: 1px solid rgba(14, 165, 233, 0.14);
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.7;
}

.empty-premium-state {
    min-height: 260px;
    padding: 2rem;
    border-radius: 2rem;
    border: 1px dashed rgba(148, 163, 184, 0.26);
    background: rgba(248, 250, 252, 0.68);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    text-align: center;
}

.empty-premium-state i {
    font-size: 3rem;
    color: var(--text-muted);
}

html[data-theme='dark'] .floating-filter-bar,
html[data-theme='dark'] .feed-card,
html[data-theme='dark'] .detail-main-card,
html[data-theme='dark'] .sidebar-float-card,
html[data-theme='dark'] .contact-info-card,
html[data-theme='dark'] .form-surface,
html[data-theme='dark'] .contact-social-pill {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.38);
}

html[data-theme='dark'] .pill-stat,
html[data-theme='dark'] .sidebar-list-item,
html[data-theme='dark'] .achievement-item,
html[data-theme='dark'] .info-pill,
html[data-theme='dark'] .premium-filter-chip {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme='dark'] .premium-filter-chip:hover,
html[data-theme='dark'] .contact-social-pill:hover {
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.32);
}

html[data-theme='dark'] .premium-filter-chip.active {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

html[data-theme='dark'] .date-pill {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
}

html[data-theme='dark'] .soft-chip {
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
}

html[data-theme='dark'] .soft-chip.soft-chip-warm {
    background: rgba(250, 204, 21, 0.16);
    color: #facc15;
}

html[data-theme='dark'] .soft-chip.soft-chip-sky {
    background: rgba(14, 165, 233, 0.18);
    color: #67e8f9;
}

html[data-theme='dark'] .empty-premium-state {
    background: rgba(15, 23, 42, 0.62);
    border-color: rgba(148, 163, 184, 0.24);
}

html[data-theme='dark'] .form-surface .form-floating > .form-control,
html[data-theme='dark'] .form-surface .form-floating > .form-select,
html[data-theme='dark'] .form-surface textarea.form-control {
    background: rgba(15, 23, 42, 0.72);
}

html[data-theme='dark'] .form-surface .form-control:focus,
html[data-theme='dark'] .form-surface .form-select:focus {
    background: rgba(15, 23, 42, 0.88);
}

@media (max-width: 1199.98px) {
    .page-header-grid,
    .page-header-grid.page-header-grid-portrait,
    .split-showcase,
    .contact-grid,
    .detail-grid,
    .feed-card-feature {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .immersive-page-header {
        min-height: auto;
        padding-top: 7rem;
    }

    .floating-filter-wrap {
        margin-top: -1.2rem;
    }

    .showcase-media-panel {
        min-height: 380px;
    }

    .feed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .page-header-panel,
    .detail-main-card,
    .sidebar-float-card,
    .contact-info-card,
    .form-surface {
        border-radius: 1.5rem;
    }

    .page-header-title {
        font-size: clamp(2.5rem, 12vw, 3.6rem);
    }

    .floating-filter-bar {
        padding: 0.85rem;
    }

    .premium-filter-chip {
        width: 100%;
        justify-content: center;
    }

    .showcase-media-panel {
        min-height: 300px;
    }

    .teacher-modern-media,
    .header-portrait-card {
        min-height: 320px;
        height: 320px;
    }

    .feature-news-media {
        height: 250px;
    }
}
