/**
 * pages.css - Modern Inner Pages Design System
 * SMK Gajah Mungkur 2 Giritontro
 * Consistent styling for Pengumuman, Profil, and Prestasi pages
 */

/* ==========================================================================
   1. PAGE HERO / HEADER
   ========================================================================== */
.page-hero-section {
    position: relative;
    padding: 130px 0 50px;
    background: var(--gradient-hero, linear-gradient(145deg, #0b1528 0%, #0f172a 45%, #1e293b 100%));
    color: var(--white, #ffffff);
    overflow: hidden;
}

.page-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(rgba(37, 99, 235, 0.15) 1.5px, transparent 1.5px),
        radial-gradient(rgba(14, 165, 233, 0.1) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
    opacity: 0.6;
    pointer-events: none;
}

.page-hero-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0) 70%);
    pointer-events: none;
    border-radius: 50%;
}

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

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #93c5fd;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.page-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    color: #ffffff;
}

.page-hero-title span {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero-subtitle {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    line-height: 1.6;
}

.page-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.page-breadcrumb a {
    color: #93c5fd;
    text-decoration: none;
    transition: var(--transition, all 0.25s ease);
}

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

.page-breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ==========================================================================
   2. TOOLBAR / SEARCH & FILTERS
   ========================================================================== */
.page-toolbar-section {
    position: relative;
    margin-top: -24px;
    z-index: 10;
    margin-bottom: 28px;
}

.page-toolbar-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.toolbar-search-box {
    position: relative;
    flex: 1 1 240px;
    max-width: 360px;
}

.toolbar-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.toolbar-search-input {
    width: 100%;
    height: 40px;
    padding: 8px 16px 8px 38px;
    font-size: 0.88rem;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    transition: var(--transition, all 0.25s ease);
}

.toolbar-search-input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.toolbar-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.filter-pill-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition, all 0.25s ease);
    white-space: nowrap;
}

.filter-pill-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.filter-pill-btn.active {
    background: #2563eb;
    color: #ffffff !important;
    border-color: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.toolbar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-toggle-group {
    display: inline-flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 9px;
    border: 1px solid #e2e8f0;
}

.view-btn {
    padding: 5px 11px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition, all 0.25s ease);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.view-btn.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    font-weight: 700;
}

.item-count-badge {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

/* ==========================================================================
   3. MODERN CARDS - PENGUMUMAN
   ========================================================================== */
.pengumuman-card-modern {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.pengumuman-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px -4px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.pengumuman-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.pengumuman-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pengumuman-card-modern:hover .pengumuman-thumb-wrap img {
    transform: scale(1.05);
}

.pengumuman-badge-floating {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.pengumuman-date-chip {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pengumuman-body-modern {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pengumuman-title-modern {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.pengumuman-card-modern:hover .pengumuman-title-modern {
    color: #2563eb;
}

.pengumuman-desc-modern {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pengumuman-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: #64748b;
}

.pengumuman-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.85rem;
    transition: gap 0.2s ease;
}

.pengumuman-card-modern:hover .pengumuman-read-btn {
    gap: 10px;
}

/* LIST VIEW - PENGUMUMAN */
.pengumuman-list-item {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    margin-bottom: 16px;
    display: flex;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pengumuman-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.pengumuman-list-thumb {
    width: 240px;
    min-width: 240px;
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.pengumuman-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pengumuman-list-item:hover .pengumuman-list-thumb img {
    transform: scale(1.05);
}

.pengumuman-list-content {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.pengumuman-list-top {
    margin-bottom: 8px;
}

.pengumuman-list-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
}

.pengumuman-list-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.pengumuman-list-item:hover .pengumuman-list-title {
    color: #2563eb;
}

.pengumuman-list-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .pengumuman-list-item {
        flex-direction: column;
    }
    .pengumuman-list-thumb {
        width: 100%;
        min-width: 100%;
        max-height: 200px;
    }
    .pengumuman-list-content {
        padding: 16px;
    }
}

/* ==========================================================================
   4. MODERN CARDS - PRESTASI
   ========================================================================== */
.prestasi-card-modern {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.prestasi-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px -4px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.prestasi-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}

.prestasi-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prestasi-card-modern:hover .prestasi-thumb-wrap img {
    transform: scale(1.05);
}

.prestasi-rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
    z-index: 10;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.prestasi-rank-badge i {
    color: #ffffff !important;
}

.prestasi-rank-badge.rank-1,
.prestasi-rank-badge.gold {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
    border-color: #fde68a !important;
}

.prestasi-rank-badge.rank-2,
.prestasi-rank-badge.silver {
    background: linear-gradient(135deg, #475569 0%, #1e293b 100%) !important;
    color: #ffffff !important;
    border-color: #cbd5e1 !important;
}

.prestasi-rank-badge.rank-3,
.prestasi-rank-badge.bronze {
    background: linear-gradient(135deg, #9a3412 0%, #7c2d12 100%) !important;
    color: #ffffff !important;
    border-color: #fdba74 !important;
}

.prestasi-rank-badge.default {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    color: #ffffff !important;
    border-color: #93c5fd !important;
}

/* Bulletproof Solid Badges with High Contrast */
.badge-custom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700 !important;
    line-height: 1.3;
}

.badge-primary-solid {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}

.badge-warning-solid {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fcd34d !important;
}

.badge-success-solid {
    background-color: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #86efac !important;
}

.badge-slate-solid {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}

.prestasi-year-chip {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.prestasi-body-modern {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.prestasi-student-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.prestasi-title-modern {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 12px;
}

.prestasi-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #64748b;
}

.prestasi-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
}

.prestasi-desc-modern {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.55;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.prestasi-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

/* ==========================================================================
   5. PROFIL SEKOLAH SPECIFIC STYLES
   ========================================================================== */
/* Timeline Sejarah */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 24px;
}

.history-card-modern {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.history-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px -4px rgba(15, 23, 42, 0.1);
    border-color: #93c5fd;
}

.history-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.history-card-modern:hover .history-icon-box {
    background: #2563eb;
    color: #ffffff;
    transform: scale(1.05);
}

.history-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.history-card-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 0;
}

/* Visi, Misi & Tujuan Cards */
.vision-card-modern {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    padding: 36px 32px;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.vision-card-modern::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.vision-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.vision-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.vision-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0;
}

.vision-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #e2e8f0;
    font-style: italic;
    margin-bottom: 0;
}

.mission-card-modern {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.mission-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 16px;
}

.mission-list-modern li {
    position: relative;
    padding: 14px 18px 14px 48px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.55;
    transition: all 0.2s ease;
}

.mission-list-modern li:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.mission-list-modern li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 18px;
    top: 16px;
    color: #2563eb;
    font-size: 0.9rem;
}

/* Goals Grid */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 16px;
}

.goal-item-card {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.2s ease;
}

.goal-item-card:hover {
    background: #ffffff;
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.goal-number-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.goal-item-text {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Struktur Organisasi Frame */
.struktur-frame-modern {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.struktur-image-wrap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.struktur-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.struktur-image-wrap:hover img {
    transform: scale(1.02);
}

.struktur-zoom-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Guru & Tenaga Pendidik */
.teacher-card-modern {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.teacher-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px -4px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.teacher-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f5f9;
}

.teacher-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.teacher-card-modern:hover .teacher-photo-wrap img {
    transform: scale(1.05);
}

.teacher-body-modern {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.teacher-name-modern {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.teacher-role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    align-self: center;
}

.teacher-nip {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0;
}

.teacher-item.hidden {
    display: none !important;
}

/* ==========================================================================
   6. MODERN DETAIL MODAL
   ========================================================================== */
.modal-modern .modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.modal-modern .modal-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
}

.modal-modern .modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.modal-modern .modal-body {
    padding: 24px 28px;
}

.modal-media-wrap {
    width: 100%;
    max-height: 360px;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-media-wrap img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 12px;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-meta-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.modal-meta-content h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 2px;
    font-weight: 600;
}

.modal-meta-content p {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0;
}

.modal-desc-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-desc-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #334155;
    white-space: pre-line;
}

.modal-modern .modal-footer {
    padding: 16px 28px 24px;
    border-top: 1px solid #f1f5f9;
}

.btn-modal-close {
    padding: 10px 24px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: var(--transition, all 0.25s ease);
}

.btn-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 991.98px) {
    .page-hero-section {
        padding: 105px 0 35px;
    }
    .page-hero-title {
        font-size: 1.85rem;
    }
    .page-toolbar-section {
        margin-top: -18px;
        margin-bottom: 20px;
    }
    .page-toolbar-card {
        padding: 12px 14px;
        border-radius: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        /* overflow tetap default agar tidak meng-clip shadow,
           dan filter-group mengatur scrollnya sendiri via width:100% */
    }
    .toolbar-search-box {
        max-width: 100%;
        width: 100%;
    }
    .toolbar-search-input {
        height: 38px;
        padding: 6px 12px 6px 36px;
        font-size: 0.85rem;
    }
    /* Horizontal swipeable filter pills — satu baris, geser ke samping */
    .toolbar-filter-group {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        /* width + min-width krusial: membatasi lebar ke parent,
           sehingga overflow-x auto bekerja di dalam kartu */
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        gap: 6px !important;
        padding: 2px 0 6px !important;
        margin: 0 !important;
        scrollbar-width: none;
    }
    .toolbar-filter-group::-webkit-scrollbar {
        display: none;
    }
    .filter-pill-btn {
        padding: 5px 12px;
        font-size: 0.78rem;
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .toolbar-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-top: 6px;
        border-top: 1px solid #f1f5f9;
    }
    .item-count-badge {
        font-size: 0.75rem;
    }
    .view-btn {
        padding: 4px 9px;
        font-size: 0.78rem;
    }
}

@media (max-width: 575.98px) {
    .page-hero-section {
        padding: 90px 0 28px;
    }
    .page-hero-badge {
        font-size: 0.72rem;
        padding: 4px 10px;
    }
    .page-hero-title {
        font-size: 1.55rem;
    }
    .page-hero-subtitle {
        font-size: 0.88rem;
        margin-bottom: 12px;
    }
    .page-breadcrumb {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    .page-toolbar-section {
        margin-top: -16px;
        margin-bottom: 16px;
    }
    .page-toolbar-card {
        padding: 10px 12px;
        border-radius: 12px;
        gap: 8px;
    }
    .toolbar-search-input {
        height: 36px;
        font-size: 0.82rem;
    }
    /* Pastikan pills tetap 1 baris scroll di HP kecil */
    .toolbar-filter-group {
        padding: 2px 0 5px !important;
        gap: 5px !important;
    }
    .filter-pill-btn {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    .toolbar-controls {
        padding-top: 5px;
    }
    .item-count-badge {
        font-size: 0.72rem;
    }
    .view-btn {
        padding: 3px 8px;
        font-size: 0.75rem;
    }
    .pengumuman-body-modern,
    .prestasi-body-modern {
        padding: 14px;
    }
    .pengumuman-title-modern,
    .prestasi-title-modern {
        font-size: 1rem;
    }
    .modal-modern .modal-header,
    .modal-modern .modal-body,
    .modal-modern .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ==========================================================================
   Berita detail (article) — reading width and type built on landing.css tokens
   ========================================================================== */
.article-hero {
    padding-bottom: 56px;
}

.article-hero-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.article-hero-content .page-breadcrumb {
    justify-content: flex-start;
}

.article-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 14px 0 16px;
    color: var(--white);
    text-wrap: balance;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 0.9rem;
    color: var(--slate-300);
}

.article-meta i {
    margin-right: 6px;
    color: var(--accent-cyan);
}

.article-section {
    padding: 48px 0 24px;
}

.article-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.article-cover {
    margin: 0 0 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.article-cover img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.article-lead {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-heading);
    margin-bottom: 24px;
}

.article-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-body);
    margin-bottom: 1.25em;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 8px;
    font-weight: 600;
    color: var(--primary-accent);
    text-decoration: none;
}

.article-back:hover {
    color: var(--primary);
}

.article-related {
    padding: 24px 0 72px;
}

.article-related-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    padding-top: 32px;
    margin-bottom: 16px;
    border-top: 1px solid var(--border-color);
}

/* Lightbox prev/next (partials/lightbox) */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 35, 71, 0.75);
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-nav:focus-visible { outline: 3px solid var(--accent-cyan); outline-offset: 2px; }

/* Shared page blocks (jurusan detail, kontak, profil) */
.jurusan-card-modern { position: relative; }

.page-block-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 32px 0 14px;
}

.mini-person-card {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.mini-person-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.mini-person-card strong { display: block; color: var(--text-heading); font-size: 0.92rem; }
.mini-person-card span { font-size: 0.8rem; color: var(--text-muted); }

.achievement-list { list-style: none; padding: 0; margin: 0 0 24px; }

.achievement-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.achievement-list i { color: var(--accent-gold); margin-top: 3px; }

/* Agenda page */
.agenda-page { max-width: 860px; }

.agenda-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 8px;
    background: var(--slate-100);
    border-radius: var(--radius-full);
}

.agenda-tabs a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--slate-600);
    text-decoration: none;
}

.agenda-tabs a.active { background: var(--primary-navy); color: var(--white); }

.agenda-month-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 28px 0 12px;
}

.agenda-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.agenda-row .agenda-title { font-size: 1.02rem; margin-bottom: 6px; }
.agenda-row .agenda-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Kontak page */
.contact-panel {
    padding: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.contact-list { margin: 0 0 24px; }
.contact-list dt { font-weight: 600; color: var(--text-heading); margin-top: 16px; }
.contact-list dt:first-child { margin-top: 0; }
.contact-list dt i { width: 20px; color: var(--accent); }
.contact-list dd { margin: 4px 0 0 28px; color: var(--text-body); }

.contact-map {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
    border-radius: var(--radius-lg);
}

/* Profil (option A): sticky sub-menu, sambutan letter, visi band */
.profil-subnav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.profil-subnav .container {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-block: 10px;
    scrollbar-width: none;
}

.profil-subnav a {
    flex-shrink: 0;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-600);
    text-decoration: none;
    background: var(--slate-100);
}

.profil-subnav a.active,
.profil-subnav a:hover { background: var(--primary-light); color: var(--primary); }

.profil-section { padding: 64px 0; scroll-margin-top: 72px; }
.profil-section-alt { background: var(--bg-surface); border-block: 1px solid var(--border-color); }

.sambutan-letter {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.sambutan-letter-photo { margin: 0; position: sticky; top: 96px; }

.sambutan-letter-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.sambutan-letter-photo figcaption { margin-top: 12px; }
.sambutan-letter-photo strong { display: block; color: var(--text-heading); }
.sambutan-letter-photo span { font-size: 0.85rem; color: var(--text-muted); }

.sambutan-letter-body { max-width: 68ch; }
.sambutan-letter-body p { font-size: 1.05rem; line-height: 1.85; color: var(--text-body); }

.sambutan-letter-lead {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-heading);
    margin: 16px 0 20px;
}

.sambutan-signoff { margin-top: 28px; display: flex; flex-direction: column; }
.sambutan-signature { font-family: 'Dancing Script', cursive; font-size: 2rem; color: var(--primary); line-height: 1.1; }
.sambutan-signoff strong { color: var(--text-heading); }
.sambutan-signoff span:last-child { font-size: 0.9rem; color: var(--text-muted); }

.visi-band {
    padding: 40px;
    border-radius: var(--radius-xl);
    background: var(--gradient-hero);
    color: var(--white);
}

.visi-band-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-cyan); }

.visi-band blockquote {
    margin: 10px 0 0;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.25rem, 0.95rem + 1.3vw, 1.9rem);
    font-weight: 600;
    line-height: 1.4;
}

.misi-card { padding: 28px; background: var(--bg-page); border: 1px solid var(--border-color); border-radius: var(--radius-lg); }
.misi-list, .tujuan-list { margin: 0; padding-left: 1.25rem; }
.misi-list li, .tujuan-list li { margin-bottom: 10px; line-height: 1.6; color: var(--text-body); }
.misi-list li::marker { font-weight: 700; color: var(--primary); }

@media (max-width: 767.98px) {
    .sambutan-letter { grid-template-columns: 1fr; gap: 24px; }
    .sambutan-letter-photo { position: static; max-width: 220px; }
    .visi-band { padding: 28px 22px; }
    .profil-section { padding: 48px 0; }
}
