:root {
    --primary: #111111;
    --primary-active: #242424;
    --ink: #111111;
    --body: #374151;
    --muted: #6b7280;
    --muted-soft: #898989;
    --hairline: #e5e7eb;
    --canvas: #ffffff;
    --surface-soft: #f8f9fa;
    --surface-card: #f5f5f5;
    --surface-dark: #101010;
    --surface-dark-elevated: #1a1a1a;
    --on-primary: #ffffff;
    --on-dark: #ffffff;
    --on-dark-soft: #a1a1aa;
    --brand-accent: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --badge-orange: #fb923c;
    --badge-pink: #ec4899;
    --badge-violet: #8b5cf6;
    --badge-emerald: #34d399;

    --font-display: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --spacing-section: 96px;
}

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

body {
    font-family: var(--font-body);
    color: var(--body);
    background: var(--canvas);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.logo-text{
    display:flex;
    flex-direction:column;
    line-height:1;
}

.logo-arab{
    margin:0;
    font-size:15px;
    color:white;
    font-weight:500;
}

.logo-title{
    font-size: 20.5px;
    font-weight: 800;
    color:white;
}

.logo-subtitle{
    font-size:15.5px;
    color:rgba(255,255,255,0.7);
    margin-top:1px;
}

/* Top Navigation */
.top-nav{
    background: rgba(10, 20, 90, 0.92);
    backdrop-filter: blur(6px);

    height: 75px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;
}
.top-nav .container{
    display:flex;
    align-items:center;
    justify-content:space-between;

    height:100%;

    max-width:1200px;

    margin:auto;

    padding:0 24px;
}
.top-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 20px;
}
.top-nav-brand:hover { color: white; }
.top-nav-menu {
    display: flex;
    list-style: none;
    gap: 3px;
    margin: 0;
    padding: 0;
}
.top-nav-menu li a {
    display: flex;
    align-items: center;

    padding: 10px 10px;
    color: white;
    text-decoration: none;

    font-size:14px;
    padding:12px 14px;
    font-weight: 500;

    border-radius: 5px;
    transition: all 0.2s;
}
.top-nav-menu li a:hover,
.top-nav-menu li a.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

.top-nav-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

.btn-text-link,
.btn-primary-nav{
    height:44px;
    display:flex;
    align-items:center;
}
.btn-text-link {
    background: none;
    border: none;
    color: white;
    background: #84cc16;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}
.btn-text-link:hover { background: var(--surface-soft); color: var(--ink); }
.btn-primary-nav {
    display: inline-flex;
    align-items: center;
    background: #84cc16;
    color: var(--on-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-primary-nav:hover {
    background: #65a30d;
}
/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    height: 40px;
    gap: 8px;
}
.btn-primary:hover { background: var(--primary-active); color: var(--on-primary); }
.btn-primary:disabled { background: var(--hairline); color: var(--muted); pointer-events: none; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--canvas);
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--hairline);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    height: 40px;
    gap: 8px;
}
.btn-secondary:hover { background: var(--surface-soft); color: var(--ink); }

/* HERO MODERN */
.hero-modern{
    position: relative;
    width: 100%;
    height: 100vh;

    background:
    linear-gradient(rgba(0,0,0,0.55),
    rgba(0,0,0,0.55)),
    url('../img/banner.jpeg');

    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

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

.hero-content{
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    margin-top: 80px;
}

.hero-welcome{
    font-size: 13px;
    margin-bottom: 5px;
    color: white;
}

.hero-arab{
    font-size: 35px;
    color: #facc15;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-modern .hero-content h1{
    font-size: 40px;
    font-weight: 700;
    line-height: 45px;
    color: white;
    margin: 0;
}

.hero-modern .hero-content h2{
    font-size: 65px;
    font-weight: 800;
    line-height: 65px;
    color: #facc15;
    margin-top: 8px;
}

.hero-location{
    font-size: 18px;
    font-weight: 600;
    margin-top: 30px;
    color: white;
}

.hero-menu{
    margin-top: 50px;

    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.menu-card{
    width: 100px;
    height: 100px;

    background: #f8f1dc;

    border-radius: 20px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    text-decoration: none;

    color: #1565c0;

    border: 4px solid #8bc34a;

    transition: 0.3s ease;

    padding: 5px;
}

.menu-card span{
    font-size: 38px;

    width: 50px;
    height: 50px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 5px;
}

.menu-card p{
    font-size: 9px;
    font-weight: 600;

    line-height: 1;

    margin: 0;
}

.menu-card:hover{
    transform: translateY(-10px);
    background: white;
}

/* Button Selengkapnya Galeri */

.gallery-button{
    text-align: center;
    margin-top:10px;
}
.gallery-button .btn-primary{
    background: none;
    border: none;

    color: #111827;

    font-weight: 600;

    text-decoration: none;
}
.gallery-button .btn-primary:hover{
    text-decoration: underline;
}
/* Section Styles */
.section {
    padding: var(--spacing-section) 0;
}
.section-header{
    text-align:center;
    margin-top:80px;
    margin-bottom:48px;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--ink);
    margin-bottom: 12px;
}
.section-header p {
    font-size: 16px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}
.section-light { background: var(--surface-soft); }
.section-card { background: var(--surface-card); }

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
    background: var(--surface-card);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-2px); }
.feature-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--canvas);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.4;
}
.feature-card p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
}

/* News Cards */
.news-card {
    background: var(--canvas);
    border-radius: 12px;
    border: 1px solid var(--hairline);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.news-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--surface-card);
}
.news-card-body { padding: 20px; }
.news-card-date {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.news-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.4;
}
.news-card h3 a {
    color: var(--ink);
    text-decoration: none;
}
.news-card h3 a:hover { color: var(--primary-active); }
.news-card p {
    font-size: 14px;
    color: var(--muted);
    margin: 10;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* PROFIL MODERN */
.profil-box{
    background:#ffffff;
    padding:35px;
    border-radius:20px;
    margin-bottom:30px;

    box-shadow:0 4px 20px rgba(0,0,0,0.05);
}

.visi-misi-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;

    margin-bottom:30px;
}

.visi-box,
.misi-box{
    background:#ffffff;
    padding:35px;
    border-radius:20px;

    box-shadow:0 4px 20px rgba(0,0,0,0.05);
}

.visi-box h3,
.misi-box h3{
    font-size:24px;
    margin-bottom:20px;

    display:flex;
    align-items:center;
    gap:10px;

    color:#111827;
}

.visi-box p{
    line-height:1.9;
    color:#4b5563;
}

.misi-box ol{
    padding-left:20px;
}

.misi-box li{
    margin-bottom:14px;
    line-height:1.8;
}

.profil-box h2{
    margin-bottom:20px;
    color:#111827;
}

.profil-box p,
.profil-box li{
    color:#4b5563;
    line-height:1.9;
}

.profil-box ol{
    padding-left:20px;
}

/* TABLE */
.table-responsive{
    overflow-x:auto;
}

.jadwal-table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
}

.jadwal-table tr:hover{
    background:#f9fafb;
}

.jadwal-table th{
    background:#1d4ed8;
    color:white;

    padding:16px;

    text-align:center;
}

.jadwal-table td{
    padding:14px 16px;
    border-bottom:1px solid #e5e7eb;

    color:#374151;

    text-align:center;
}
.jadwal-table td:first-child{
    font-weight:600;
    width:220px;
}

/* RESPONSIVE */
@media(max-width:768px){

    .visi-misi-grid{
        grid-template-columns:1fr;
    }

}

/* MOTTO SECTION */
.motto-section{
    position:relative;

    padding:100px 0;

    overflow:hidden;
}

/* BACKGROUND BELAKANG */
.motto-bg{
    position:absolute;
    inset:0;

    background:
    linear-gradient(rgba(0,0,0,0.65),
    rgba(0,0,0,0.65)),
    url('../img/TASBIH.avif');

    background-size:cover;
    background-position:center;

    z-index:1;
}

.motto-section .container{
    position:relative;
    z-index:2;
}

.motto-section .section-header h2{
    color:white;
}

.motto-section .section-header p{
    color:rgba(255,255,255,0.8);
}

/* GRID */
.motto-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);

    gap:25px;
}

/* CARD TRANSPARAN */
.motto-card{
    position:relative;

    padding:35px;

    border-radius:28px;

    background:rgba(255,255,255,0.08);

    backdrop-filter:blur(10px);

    border:1px solid rgba(255,255,255,0.15);

    overflow:hidden;

    color:white;

    transition:0.3s ease;
}

/* HOVER */
.motto-card:hover{
    transform:translateY(-8px);

    background:rgba(255,255,255,0.12);
}

/* ORNAMEN */
.ornament{
    position:absolute;

    width:160px;
    height:160px;

    background:rgba(255,255,255,0.05);

    border-radius:50%;

    top:-50px;
    right:-50px;
}

/* JUDUL */
.motto-card h3{
    position:relative;

    font-size:25px;
    font-weight:800;

    margin-bottom:25px;

    z-index:2;
}

/* LIST */
.motto-card ol{
    position:relative;

    padding-left:20px;

    z-index:2;
}

.motto-card li{
    margin-bottom:15px;

    line-height:1.8;

    font-size:16px;
}

/* RESPONSIVE */
@media(max-width:992px){

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

}

/* =========================
   VARIASI CARD
========================= */

.feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 32px 28px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    transition: 0.35s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ORNAMEN */
.feature-card::before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    top: -50px;
    right: -50px;
    opacity: 0.15;
}

/* HOVER */
.feature-card:hover {
    transform: translateY(-8px);
}

/* ICON */
.feature-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: white;
}

/* =========================
   WARNA VARIASI
========================= */

.card-grid .feature-card:nth-child(1)::before {
    background: #3b82f6;
}
.card-grid .feature-card:nth-child(1) .icon {
    background: linear-gradient(135deg,#3b82f6,#2563eb);
}

.card-grid .feature-card:nth-child(2)::before {
    background: #10b981;
}
.card-grid .feature-card:nth-child(2) .icon {
    background: linear-gradient(135deg,#10b981,#059669);
}

.card-grid .feature-card:nth-child(3)::before {
    background: #f59e0b;
}
.card-grid .feature-card:nth-child(3) .icon {
    background: linear-gradient(135deg,#f59e0b,#d97706);
}

.card-grid .feature-card:nth-child(4)::before {
    background: #ef4444;
}
.card-grid .feature-card:nth-child(4) .icon {
    background: linear-gradient(135deg,#ef4444,#dc2626);
}

.card-grid .feature-card:nth-child(5)::before {
    background: #8b5cf6;
}
.card-grid .feature-card:nth-child(5) .icon {
    background: linear-gradient(135deg,#8b5cf6,#7c3aed);
}

.card-grid .feature-card:nth-child(6)::before {
    background: #06b6d4;
}
.card-grid .feature-card:nth-child(6) .icon {
    background: linear-gradient(135deg,#06b6d4,#0891b2);
}

/* TEKS */
.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #111827;
}

.feature-card p {
    color: #4b5563;
    line-height: 1.7;
}

/* KHUSUS JENJANG */
.jenjang-card {
    text-align: center;
    border: none;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.9),
            rgba(255,255,255,0.75)
        );
}

.jenjang-card .btn-secondary {
    margin-top: 18px;
}

/* FASILITAS */
.fasilitas-card {
    border-radius: 22px;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.fasilitas-card::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    top: -40px;
    right: -40px;
    background: rgba(255,255,255,0.15);
}

.fasilitas-card:hover {
    transform: translateY(-8px);
}

/* WARNA */
.fasilitas-1 {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
}

.fasilitas-2 {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: white;
}

.fasilitas-3 {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
}

.fasilitas-4 {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: white;
}

.fasilitas-5 {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: white;
}

.fasilitas-6 {
    background: linear-gradient(135deg, #be123c, #e11d48);
    color: white;
}

.fasilitas-card .icon {
    font-size: 38px;
    margin-bottom: 18px;
}

.fasilitas-card h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.fasilitas-card p {
    line-height: 1.7;
    opacity: 0.95;
}

/* =========================
   SMP/SMA PAGE
========================= */

.info-table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

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

.info-table th{
    width: 35%;
    background: #f1f5f9;
    color: #222;
    padding: 15px 18px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
}

.info-table td{
    padding: 15px 18px;
    border: 1px solid #e5e7eb;
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}

/* BOX */
.profil-box{
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 5px 16px rgba(0,0,0,0.06);
}

.profil-box h2{
    color: #111;
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.profil-box h2::after{
    display: none;
}

.profil-box p{
    margin-bottom: 18px;
    color: #555;
    line-height: 1.9;
    text-align: justify;
}

/* PAGE */
.page-content{
    padding: 70px 0;
    background: #f5f7fb;
}

/* HEADER */
.page-header{
    background: linear-gradient(135deg, #0d6efd, #0b57d0);
    padding: 90px 0;
    text-align: center;
    color: #fff;
}

.page-header h1{
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p{
    font-size: 17px;
    opacity: 0.95;
}

/* RESPONSIVE */
@media(max-width:768px){

    .profil-box{
        padding: 25px;
    }

    .page-header h1{
        font-size: 30px;
    }

    .info-table th,
    .info-table td{
        font-size: 14px;
        padding: 12px;
    }

}


/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .overlay { opacity: 1; }

/* Stats */
.stats-band {
    padding: 64px 0;
    background: var(--primary);
    color: var(--on-primary);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-number {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 14px;
    color: var(--on-dark-soft);
    font-weight: 500;
}

/* CTA Band */
.cta-band {
    padding: 64px 0;
    text-align: center;
    background: var(--surface-card);
    border-radius: 12px;
    margin: 48px 0;
}
.cta-band h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin-bottom: 12px;
}
.cta-band p {
    color: var(--muted);
    margin-bottom: 24px;
    font-size: 16px;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    background: var(--canvas);
    transition: border-color 0.2s;
    height: 40px;
}
.form-control:focus {
    outline: none;
    border-color: var(--ink);
}
textarea.form-control { height: auto; resize: vertical; }

.contact-info h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 16px;
}
.contact-info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.contact-info-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.contact-info-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
}
.contact-info-item p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* PPDB Page */
.ppdb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.ppdb-steps {
    display: grid;
    gap: 20px;
}
.step-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}
.step-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}
.step-card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
    padding: 24px;
}
.login-card {
    background: var(--canvas);
    border-radius: 12px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.login-card .logo {
    text-align: center;
    margin-bottom: 32px;
}
.login-card .logo img { width: 64px; height: 64px; }
.login-card .logo h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 12px;
}
.login-card .alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}
.login-card .alert-danger {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}


/* PAGE HEADER MODERN */
.page-header{
    position: relative;

    padding: 120px 0 70px;

    text-align: center;

    overflow: hidden;

    background:
    linear-gradient(rgba(0,0,0,0.45),
    rgba(0,0,0,0.45)),
    url('../img/banner.jpeg');

    background-size: cover;
    background-position: center;
}

/* isi teks */
.page-header .container{
    position: relative;
    z-index: 2;
}

.page-header h1{
    font-family: var(--font-display);

    font-size: 42px;

    font-weight: 700;

    color: white;

    margin-bottom: 12px;
}

.page-header p{
    color: rgba(255,255,255,0.85);

    font-size: 18px;

    max-width: 700px;

    margin: 0 auto;
}

.page-content{
    padding: 50px 0;
}

/* Content Page */
.content-page h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 16px;
    margin-top: 32px;
}
.content-page h2:first-child { margin-top: 0; }
.content-page p {
    font-size: 16px;
    color: var(--body);
    margin-bottom: 16px;
    line-height: 1.7;
}
.content-page ul, .content-page ol {
    margin-bottom: 16px;
    padding-left: 24px;
}
.content-page li {
    font-size: 16px;
    color: var(--body);
    margin-bottom: 8px;
    line-height: 1.7;
}

/* SAMBUTAN */
.sambutan-section{
    margin-top: 60px;
    padding: 90px 0;
    background: #ffffff;
}

.sambutan-grid{
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: center;
}

.sambutan-image img{
    width: 100%;
    border-radius: 25px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sambutan-label{
    display: inline-block;

    background: #e0f2fe;
    color: #1e40af;

    padding: 8px 16px;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;

    margin-bottom: 20px;
}

.sambutan-content h2{
    font-size: 23px;
    font-weight: 800;

    color: #111827;

    line-height: 1.2;

    margin-bottom: 20px;
}

.sambutan-content p{
    font-size: 15px;
    color: #4b5563;

    line-height: 1.8;

    margin-bottom: 18px;
}

@media(max-width:768px){

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

    .sambutan-content{
        text-align:center;
    }

}
.pimpinan-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
    margin-top:50px;
}

.pimpinan-card{
    background:#fff;
    padding:30px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.pimpinan-card img{
    width:180px;
    height:180px;
    object-fit:cover;
    border-radius:50%;
    margin-bottom:20px;
}

.pimpinan-card h3{
    margin-bottom:8px;
}

.pimpinan-card span{
    color:#2563eb;
    font-weight:600;
    display:block;
    margin-bottom:15px;
}

.pimpinan-card p{
    color:#666;
    line-height:1.8;
}

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

/* =========================================
   EKSTRAKURIKULER MODERN
========================================= */

.ekskul-section{
    padding: 90px 0;
    background: #f5f7fb;
}

/* GRID */
.card-grid-3{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 30px;
}

/* CARD */
.ekskul-card{
    background: white;

    border-radius: 24px;

    padding: 35px 25px;

    text-align: center;

    border: 1px solid #e5e7eb;

    transition: 0.35s ease;

    position: relative;

    overflow: hidden;

    box-shadow:
    0 10px 25px rgba(0,0,0,0.05);
}

/* ORNAMEN */
.ekskul-card::before{
    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    border-radius: 50%;

    background:
    rgba(37,99,235,0.06);

    top: -45px;
    right: -45px;
}

/* HOVER */
.ekskul-card:hover{
    transform: translateY(-8px);

    box-shadow:
    0 20px 40px rgba(37,99,235,0.12);
}

/* ICON */
.ekskul-card .icon{
    width: 75px;
    height: 75px;

    margin: 0 auto 22px;

    border-radius: 22px;

    background:
    linear-gradient(
        135deg,
        #2563eb,
        #3b82f6
    );

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    font-size: 34px;

    box-shadow:
    0 12px 25px rgba(37,99,235,0.25);
}

/* =========================================
   JUDUL ESKUL
========================================= */

.page-content .ekskul-title{
    text-align: center !important;
    margin-bottom: 60px !important;
}

.page-content .ekskul-title h2{
    font-size: 45px !important;
    font-weight: 800 !important;

    color: #111827 !important;

    margin-bottom: 18px !important;

    letter-spacing: 1px;
}

.page-content .ekskul-title p{
    max-width: 850px;

    margin: auto;

    font-size: 17px;

    line-height: 1.9;

    color: #6b7280 !important;
}

/* JUDUL */
.ekskul-card h4{
    font-size: 22px;
    font-weight: 700;

    color: black;

    margin-bottom: 12px;
}

/* DESKRIPSI */
.ekskul-card p{
    color: #101010;

    font-size: 15px;

    line-height: 1.8;
}

/* WARNA VARIASI */
.card-grid-3 .ekskul-card:nth-child(1) .icon{
    background: linear-gradient(135deg,#2563eb,#3b82f6);
}

.card-grid-3 .ekskul-card:nth-child(2) .icon{
    background: linear-gradient(135deg,#059669,#10b981);
}

.card-grid-3 .ekskul-card:nth-child(3) .icon{
    background: linear-gradient(135deg,#ea580c,#f97316);
}

.card-grid-3 .ekskul-card:nth-child(4) .icon{
    background: linear-gradient(135deg,#7c3aed,#8b5cf6);
}

.card-grid-3 .ekskul-card:nth-child(5) .icon{
    background: linear-gradient(135deg,#dc2626,#ef4444);
}

.card-grid-3 .ekskul-card:nth-child(6) .icon{
    background: linear-gradient(135deg,#0891b2,#06b6d4);
}

/* RESPONSIVE */
@media(max-width:768px){

    .ekskul-card{
        padding: 28px 22px;
    }

    .ekskul-card h4{
        font-size: 20px;
    }

}

/* Visi Misi */
.visi-box, .misi-box {
    background: var(--surface-card);
    border-radius: 12px;
    padding: 32px;
}
.visi-box h3, .misi-box h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.visi-box p {
    font-size: 18px;
    font-style: italic;
    color: var(--body);
    line-height: 1.6;
}

/* Alert Messages */
.alert {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Footer */
/* ==========================
   FOOTER
========================== */

.site-footer{
    background: #1e40af;
    border-top:1px solid #e5e7eb;
    margin-top:60px;
}

.footer-grid{
    display:grid;
    grid-template-columns:1.3fr 1fr 1fr 1fr;
    gap:60px;
    padding:30px 0 30px;
}

.footer-brand{
    display:flex;
    align-items:flex-start;
    gap:15px;
}

.footer-logo{
    width:55px;
    height:auto;
    flex-shrink:0;
}

.footer-item h5{
    font-size:14px;
    font-weight:700;
    color:white;
    letter-spacing:2px;
    margin-bottom:25px;
}

.footer-brand h5{
    font-size:16px;
    color:white;
    letter-spacing:0;
    margin-bottom:10px;
}

.footer-item p{
    color:white;
    font-size:14px;
    line-height:1.8;
}

.footer-item ul{
    list-style:none;
    padding:0;
    margin:0;
}

.footer-item ul li{
    margin-bottom:15px;
}

.footer-item ul li a{
    color:white;
    text-decoration:none;
    font-size:14px;
    transition:.3s;
}

.footer-item ul li a:hover{
    color:#16a34a;
}

.footer-bottom{
    border-top:1px solid #e5e7eb;
    padding:10px 0;
}

.footer-bottom p{
    margin:0;
    color:white;
    font-size:14px;
}

@media(max-width:992px){

    .footer-grid{
        grid-template-columns:1fr 1fr;
        gap:40px;
    }

}

@media(max-width:768px){

    .footer-grid{
        grid-template-columns:1fr;
        gap:30px;
    }

}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 32px; }
    .hero-actions { justify-content: center; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .ppdb-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 40px; }
    .section-header h2 { font-size: 28px; }

    .top-nav-menu {
        flex-direction: column;
        background: var(--canvas);
        padding: 16px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        position: absolute;
        top: 64px;
        left: 24px;
        right: 24px;
    }
    .top-nav-actions { display: none; }
    .navbar-toggler {
        border: none;
        background: none;
        font-size: 24px;
        color: var(--ink);
        padding: 8px;
    }
}

@media (max-width: 768px){
    .card-grid { grid-template-columns: 1fr; }
    .card-grid-2 { grid-template-columns: 1fr; }
    .card-grid-4 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr);}
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 32px; }
    .section { --spacing-section: 48px; }
    .ekskul-card { flex-direction: column; text-align: center; }
    .login-card { padding: 32px 24px; }

    .hero-modern .hero-content h1{
    font-size: 42px;
}

.hero-modern .hero-content h2{
    font-size: 55px;
}

.hero-arab{
    font-size: 28px;
}

.hero-location{
    font-size: 18px;
}

.menu-card{
    width: 120px;
    height: 120px;
}

.menu-card span{
    font-size: 35px;
}

.menu-card p{
    font-size: 14px;
}
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}
.jenjang-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
    margin-top:50px;
}

.jenjang-card{
    background:#fff;
    border-radius:20px;
    padding:35px 25px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s;
    height:100%;
}

.jenjang-card:hover{
    transform:translateY(-8px);
}

.jenjang-icon{
    width:80px;
    height:80px;
    margin:0 auto 20px;
    border-radius:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#2563eb,#3b82f6);
    color:#fff;
    font-size:34px;
}

.jenjang-icon.green{
    background:linear-gradient(135deg,#10b981,#34d399);
}

.jenjang-icon.orange{
    background:linear-gradient(135deg,#f59e0b,#fbbf24);
}

.jenjang-icon.purple{
    background:linear-gradient(135deg,#8b5cf6,#a855f7);
}

.jenjang-card h3{
    font-size:28px;
    font-weight:700;
    margin-bottom:15px;
    color:#1e293b;
    line-height:1.3;
}

.jenjang-card p{
    font-size:15px;
    color:#64748b;
    line-height:1.8;
    margin:0;
}

@media(max-width:992px){
    .jenjang-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:576px){
    .jenjang-grid{
        grid-template-columns:1fr;
    }
}
.feature-card{
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    height: 100%;
}

.feature-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.feature-card .icon{
    margin: 0 auto 20px;
}

.feature-card h3{
    margin-bottom: 12px;
}

/* =========================
   SECTION PSB
========================= */

.psb-section{
    padding: 80px 20px;
    background: #f5f7fa;
}

.psb-container{
    max-width: 1200px;
    margin: auto;

    background: white;

    padding: 50px;

    border-radius: 25px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* LABEL BIRU */
.psb-label{
    display: inline-block;

    background: #1d4ed8;
    color: white;

    padding: 10px 22px;

    border-radius: 999px;

    font-size: 15px;
    font-weight: 700;

    margin-bottom: 20px;
}

/* JUDUL */
.psb-title{
    font-size: 38px;

    font-weight: 800;

    color: #111827;

    text-align: center;

    margin-bottom: 35px;

    line-height: 1.2;
}

/* PARAGRAF */
.psb-text{
    font-size: 20px;

    color: #333;

    line-height: 2;

    margin-bottom: 30px;
}

/* LIST */
.psb-list{
    margin-top: 20px;
    margin-bottom: 40px;

    padding-left: 35px;
}

.psb-list li{
    font-size: 20px;

    color: #333;

    margin-bottom: 20px;

    line-height: 1.8;
}

/* FOTO */
.psb-image{
    text-align: center;

    margin-top: 20px;
}

.psb-image img{
    width: 100%;
    max-width: 850px;

    border-radius: 25px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* RESPONSIVE */
@media(max-width:768px){

    .psb-container{
        padding: 30px 20px;
    }

    .psb-title{
        font-size: 34px;
    }

    .psb-text{
        font-size: 17px;
        line-height: 1.8;
    }

    .psb-list li{
        font-size: 17px;
    }

}
/* BUTTON TENGAH */
.psb-button{
    text-align: center;

    margin-top: 35px;
}

/* =========================================
   PENGAJIAN SANTRI MODERN
========================================= */

.page-content{
    padding: 90px 0;
    background: #f3f6fb;
}

/* TITLE */
.section-title{
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2{
    font-size: 42px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 15px;
}

.section-title p{
    max-width: 700px;
    margin: auto;
    color: #6b7280;
    font-size: 17px;
    line-height: 1.8;
}

/* =========================================
   PENGAJIAN SIMPLE
========================================= */

.pengajian-wrapper{
    max-width: 950px;
    margin: auto;
}

.pengajian-section{
    margin-bottom: 55px;
}

.pengajian-section h3{
    font-size: 30px;
    font-weight: 800;
    color: #111827;

    margin-bottom: 18px;
}

.pengajian-section p{
    font-size: 17px;
    color: #4b5563;

    line-height: 1.9;

    margin-bottom: 18px;
}

.pengajian-section ul{
    padding-left: 28px;
}

.pengajian-section ul li{
    font-size: 17px;
    color: #374151;

    line-height: 1.9;

    margin-bottom: 12px;
}

.pengajian-section blockquote{
    font-size: 22px;
    font-weight: 700;

    color: #111827;

    margin-top: 20px;

    padding-left: 18px;

    border-left: 4px solid #111827;

    line-height: 1.8;
}

/* RESPONSIVE */
@media(max-width:768px){

    .pengajian-section h3{
        font-size: 24px;
    }

    .pengajian-section p,
    .pengajian-section ul li{
        font-size: 16px;
    }

    .pengajian-section blockquote{
        font-size: 18px;
    }

}

#navbarNav{
    display:flex;
    align-items:center;
    gap:20px;
}

.top-nav-menu{
    display:flex;
    align-items:center;
}

.top-nav-brand img{
    object-fit:contain;
    border-radius:50%;
}

/* =========================================
   TATA TERTIB SIMPLE
========================================= */

.tatib-wrapper{
    max-width: 950px;
    margin: auto;
}

.tatib-section{
    margin-bottom: 50px;
}

.tatib-section h3{
    font-size: 30px;
    font-weight: 800;
    color: #111827;

    margin-bottom: 18px;

    position: relative;
}

.tatib-section h3::after{
    display: none;
}

.tatib-section p{
    font-size: 17px;
    color: #4b5563;

    line-height: 1.9;

    margin-bottom: 18px;
}

.tatib-section ul{
    padding-left: 28px;
}

.tatib-section ul li{
    font-size: 17px;
    color: #374151;

    line-height: 1.9;

    margin-bottom: 12px;
}

/* SUB JUDUL */
.sub-title{
    font-size: 22px;
    font-weight: 700;

    color: #2563eb;

    margin-top: 25px;
    margin-bottom: 12px;
}

/* RESPONSIVE */
@media(max-width:768px){

    .tatib-section h3{
        font-size: 24px;
    }

    .tatib-section p,
    .tatib-section ul li{
        font-size: 16px;
    }

}
/* =========================================
   RUTINITAS SANTRI
========================================= */

.rutinitas-wrapper{
    max-width: 1000px;
    margin: auto;
}

/* TABLE */
.rutinitas-table{
    width: 100%;
    border-collapse: collapse;

    background: #ffffff;

    border: 1px solid #d1d5db;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.06);
}

/* HEADER */
.rutinitas-table thead{
    background: #111827;
}

.rutinitas-table thead th{
    color: white;

    font-size: 17px;
    font-weight: 700;

    padding: 22px 20px;

    text-align: center;

    border: 1px solid #374151;
}

/* BODY */
.rutinitas-table tbody tr{
    transition: 0.25s ease;
}

.rutinitas-table tbody tr:hover{
    background: #f9fafb;
}

/* TEXT */
.rutinitas-table td{
    padding: 20px;

    font-size: 16px;

    color: #374151;

    line-height: 1.8;

    text-align: center;

    vertical-align: middle;

    border: 1px solid #f9fafb;
}

/* KOLOM WAKTU */
.rutinitas-table td:first-child{
    width: 260px;

    font-weight: 700;

    color: #374151;
}

/* RESPONSIVE */
@media(max-width:768px){

    .rutinitas-wrapper{
        overflow-x: auto;
    }

    .rutinitas-table{
        min-width: 750px;
    }

    .rutinitas-table thead th{
        font-size: 15px;
        padding: 18px;
    }

    .rutinitas-table td{
        font-size: 15px;
        padding: 18px;
    }

}

/* RESPONSIVE */
@media(max-width:768px){

    .rutinitas-wrapper{
        overflow-x: auto;
    }

    .rutinitas-table{
        min-width: 750px;
    }

    .rutinitas-table thead th{
        font-size: 15px;
        padding: 18px;
    }

    .rutinitas-table td{
        font-size: 15px;
        padding: 18px;
    }

}

/* RESPONSIVE */
@media(max-width:768px){

    .rutinitas-table{
        min-width: 700px;
    }

}

/* DETAIL BERITA */
.detail-hero{
    position: relative;
    height: 350px;

    background:
    linear-gradient(rgba(0,0,0,0.5),
    rgba(0,0,0,0.5)),
    url('../assets/img/banner.jpeg');

    background-size: cover;
    background-position: center;

    overflow: hidden;
}

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

.detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.detail-hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.detail-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-top: 10px;
}

.detail-hero-content .meta {
    font-size: 15px;
    opacity: .9;
}

.detail-content {
    max-width: 900px;
    margin: 60px auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.detail-content img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 25px;
}
.table-profil {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table-profil tr {
    border-bottom: 1px solid #e5e7eb;
}

.table-profil td {
    padding: 14px 16px;
    vertical-align: top;
    line-height: 1.6;
}

.table-profil td:first-child {
    width: 280px;
    font-weight: 700;
    color: #1e293b;
}

.table-profil td:last-child {
    color: #475569;
}

.table-profil tr:nth-child(even) {
    background: #f8fafc;
}

.table-profil tr:hover {
    background: #eef6ff;
}

.stat-card{
    border:none;
    border-radius:18px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-5px);
}

.stat-icon{
    width:65px;
    height:65px;
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
}

.stat-number{
    font-size:30px;
    font-weight:700;
}

.stat-label{
    color:#6c757d;
}