/* ============================================================
   TARTILA - LANDING PAGE TENANT STYLESHEET
   Extracted from app/Views/home/landing-tenant.php
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body, #f8fafc);
    color: var(--text-main, #1e293b);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Container */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Top Announcement / Islamic Info Bar */
.topbar {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    color: #d1fae5;
    font-size: 0.84rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}
.topbar-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}
.topbar-marquee {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}
.topbar-marquee-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.topbar-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fef3c7;
    font-weight: 600;
    white-space: nowrap;
}
.topbar-marquee-clone,
.topbar-cta-mobile {
    display: none !important;
}
.topbar-cta-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-deep) !important;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}
.topbar-cta-btn:hover {
    background: #ffffff;
    color: var(--primary-dark) !important;
    transform: translateY(-1px);
}
.topbar-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}
.topbar-info a {
    color: #d1fae5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s;
}
.topbar-info a:hover {
    color: #ffffff;
}

/* Sticky Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}
.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}
.logo {
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--primary-deep);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}
.logo:hover {
    opacity: 0.92;
}
.logo:hover .logo-title {
    color: var(--primary);
}
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    text-align: left;
    line-height: 1.15;
}
.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-deep);
    letter-spacing: -0.02em;
    line-height: 1.15;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.logo-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    line-height: 1.15;
    margin-top: 2px;
    white-space: nowrap;
}
.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
}
.logo-badge {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #d1fae5 100%);
    border: 1px solid var(--primary-border);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    list-style: none;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-shrink: 1;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 600;
    transition: color 0.2s;
    position: relative;
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-btns {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Buttons */
.btn {
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.2;
}
.btn-outline {
    border-color: var(--border-color);
    color: var(--text-main);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-emerald);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -4px rgba(5, 150, 105, 0.4);
    color: #ffffff;
}
.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.25);
}
.btn-gold:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    color: #ffffff;
}
.btn-lg {
    padding: 0.85rem 1.85rem;
    font-size: 1.02rem;
    border-radius: var(--radius-md);
}

/* Hero Section (Islamic Elegance) */
.hero-section {
    position: relative;
    background: radial-gradient(circle at 50% 0%, var(--primary-light) 0%, #ffffff 70%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    overflow: hidden;
}

/* ── HERO MOTIF PATTERNS ── */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.65;
    pointer-events: none;
    z-index: 1;
}

/* 1. Islamic Geometric Star & Lattice Pattern */
.hero-section.pattern-islamic-geometric::before {
    background-image: 
        radial-gradient(var(--primary-border) 1.5px, transparent 1.5px),
        radial-gradient(var(--accent-gold-border) 1.5px, transparent 1.5px),
        linear-gradient(45deg, transparent 48%, var(--primary-light) 49%, var(--primary-light) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, var(--primary-light) 49%, var(--primary-light) 51%, transparent 52%);
    background-size: 32px 32px, 32px 32px, 48px 48px, 48px 48px;
    background-position: 0 0, 16px 16px, 0 0, 0 0;
}

/* 2. Modern Matrix Dots */
.hero-section.pattern-subtle-dots::before {
    background-image: radial-gradient(var(--primary-border) 2px, transparent 2px);
    background-size: 24px 24px;
}

/* 3. Soft Wave Flow */
.hero-section.pattern-waves::before {
    background-image: repeating-linear-gradient(
        45deg,
        var(--primary-light),
        var(--primary-light) 12px,
        transparent 12px,
        transparent 24px
    );
    opacity: 0.35;
}

/* 4. Minimalist / Clean */
.hero-section.pattern-minimal::before {
    display: none;
}

.hero-badge-wrap {
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
}
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(236, 253, 245, 0.9);
    border: 1px solid var(--primary-border);
    color: var(--primary-deep);
    padding: 0.42rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.08);
    backdrop-filter: blur(4px);
}
.pill-badge i {
    color: var(--accent-gold);
}

/* Bismillah Calligraphy */
.bismillah-wrap {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}
.bismillah-text {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-deep);
    letter-spacing: 0.08em;
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
}
.bismillah-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
    border-radius: 2px;
}

.hero-title {
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 1.25rem;
    color: var(--dark);
    letter-spacing: -0.035em;
    position: relative;
    z-index: 2;
}
.hero-title .text-gradient {
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
}

/* Quran Quote Card */
.hadits-quote {
    max-width: 680px;
    margin: 0 auto 2.25rem;
    background: #ffffff;
    border: 1px solid var(--accent-gold-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.75rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 2;
}
.hadits-quote::before {
    content: '“';
    position: absolute;
    top: 6px;
    left: 14px;
    font-size: 2.75rem;
    color: var(--accent-gold);
    opacity: 0.25;
    font-family: Georgia, serif;
    line-height: 1;
}
.hadits-arabic {
    font-size: 1.2rem;
    color: var(--primary-deep);
    font-weight: 600;
    margin-bottom: 0.35rem;
    direction: rtl;
}
.hadits-arti {
    font-size: 0.92rem;
    color: var(--text-main);
    font-style: italic;
}
.hadits-source {
    font-size: 0.78rem;
    color: var(--accent-gold-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.4rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}

/* ============================================================
   DATA AKTUAL / STATISTIK SHOWCASE (KEY METRICS)
   ============================================================ */
.stats-section {
    position: relative;
    margin-top: -2.5rem;
    z-index: 10;
    padding-bottom: 3.5rem;
}
.stats-wrapper {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem 2.25rem;
    position: relative;
    overflow: hidden;
}
.stats-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-gold) 50%, var(--primary) 100%);
}
.stats-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 0.75rem;
}
.stats-header-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.stats-header-title i {
    color: var(--primary);
    font-size: 1.2rem;
}
.live-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}
.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 6px var(--primary);
    animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.stat-card {
    background: #fafaf9;
    border: 1px solid #f0f0ee;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
    position: relative;
    transition: all 0.25s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    background: #ffffff;
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin: 0 auto 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
}
.stat-card.gold .stat-icon {
    background: var(--accent-gold-light);
    color: var(--accent-gold);
    border-color: var(--accent-gold-border);
}
.stat-card.blue .stat-icon {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}
.stat-card.purple .stat-icon {
    background: #faf5ff;
    color: #9333ea;
    border-color: #e9d5ff;
}
.stat-number {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 0.35rem;
    letter-spacing: -0.03em;
}
.stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}
.stat-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Section Global Styles */
.section-wrap {
    padding: 4.5rem 0;
    position: relative;
}
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.25rem;
}
.section-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.section-title {
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}
.section-desc {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

/* ============================================================
   PORTAL ACCESS CARDS (3-in-1 ECOSYSTEM)
   ============================================================ */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.portal-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.25rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}
.portal-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-border);
    box-shadow: var(--shadow-lg);
}
.portal-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}
.badge-wali {
    background: #ecfdf5;
    color: var(--primary-dark);
    border: 1px solid var(--primary-border);
}
.badge-ustadz {
    background: #fffbeb;
    color: var(--accent-gold-dark);
    border: 1px solid var(--accent-gold-border);
}
.badge-admin {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.portal-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}
.portal-icon.wali {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: var(--primary);
}
.portal-icon.ustadz {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: var(--accent-gold);
}
.portal-icon.admin {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
}

.portal-card h3 {
    font-size: 1.32rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}
.portal-card p {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}
.portal-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}
.portal-features li {
    font-size: 0.88rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    line-height: 1.45;
}
.portal-features li i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 1px;
    flex-shrink: 0;
}
.portal-btn {
    width: 100%;
    justify-content: center;
}

/* ============================================================
   PROGRAM & KURIKULUM PENDIDIKAN
   ============================================================ */
.bg-light-islamic {
    background: linear-gradient(180deg, #f8fafc 0%, #f0fdf4 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.curriculum-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.curriculum-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
}
.curriculum-step {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--primary-border);
    line-height: 1;
    user-select: none;
}
.curriculum-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--primary-border);
}
.curriculum-card h4 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.6rem;
}
.curriculum-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ============================================================
   ROMBEL & KELAS AKTIF (DATA AKTUAL)
   ============================================================ */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.class-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.65rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.class-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
}
.class-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.class-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-border);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.class-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
}
.class-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}
.class-meta {
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.class-ustadz {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-main);
    font-weight: 600;
}
.class-santri-count {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary-dark);
    font-weight: 700;
    background: #ecfdf5;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

/* Empty state styling */
.empty-box {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #ffffff;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}
.empty-box i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

/* ============================================================
   ASATIDZ & DEWAN GURU (DATA AKTUAL)
   ============================================================ */
.asatidz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.ustadz-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}
.ustadz-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold-border);
    box-shadow: var(--shadow-md);
}
.ustadz-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-gold-dark);
    overflow: hidden;
}
.ustadz-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ustadz-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}
.ustadz-role {
    font-size: 0.84rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.ustadz-kelas-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================================================
   ALUR PPDB ONLINE (3 LANGKAH MUDAH)
   ============================================================ */
.ppdb-banner {
    background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #064e3b 100%);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2.5rem;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.ppdb-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
}
.ppdb-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.75rem;
    position: relative;
    z-index: 2;
}
.ppdb-header h2 {
    font-size: 2.15rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}
.ppdb-header p {
    color: #d1fae5;
    font-size: 1.02rem;
}
.ppdb-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
    margin-bottom: 2.75rem;
}
.ppdb-step-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    padding: 1.85rem 1.5rem;
    backdrop-filter: blur(8px);
    text-align: center;
    transition: all 0.25s ease;
}
.ppdb-step-item:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}
.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.15rem;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}
.ppdb-step-item h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}
.ppdb-step-item p {
    color: #d1fae5;
    font-size: 0.88rem;
    line-height: 1.5;
}
.ppdb-cta-action {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ============================================================
   KONTAK & INFORMASI LOKASI
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}
.contact-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: all 0.25s ease;
}
.contact-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
}
.contact-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    border: 1px solid var(--primary-border);
}
.contact-icon-box.gold {
    background: var(--accent-gold-light);
    color: var(--accent-gold);
    border-color: var(--accent-gold-border);
}
.contact-info-wrap h4 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.35rem;
}
.contact-info-wrap p {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.contact-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: gap 0.2s;
}
.contact-action-link:hover {
    gap: 0.65rem;
    color: var(--primary-dark);
}

/* Footer */
footer {
    background: #090f1d;
    color: #94a3b8;
    padding: 3.5rem 0 2rem;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}
.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.footer-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.footer-brand h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.2;
}
.footer-subtitle {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 3px;
    letter-spacing: 0.01em;
}
.footer-brand p {
    line-height: 1.6;
    max-width: 440px;
    font-size: 0.9rem;
}
.footer-col h5 {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.6rem;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #34d399;
}
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.84rem;
}

/* Fixed Running Text Ticker (Demo / Contoh Aplikasi di Tenant Utama) */
body.has-demo-ticker {
    padding-bottom: 54px;
}

.demo-fixed-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(90deg, #090d16 0%, #0f172a 50%, #090d16 100%);
    border-top: 2px solid #059669;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
    z-index: 99999;
    display: flex;
    align-items: center;
    overflow: hidden;
    user-select: none;
}

.demo-ticker-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.demo-ticker-track {
    display: flex;
    flex-shrink: 0;
    width: max-content;
    animation: demoTickerScroll 36s linear infinite;
    will-change: transform;
}

.demo-ticker-track:hover,
.demo-ticker-track:focus-within,
.demo-ticker-track:active {
    animation-play-state: paused;
}

@keyframes demoTickerScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.demo-ticker-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.demo-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 36px;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.88rem;
    color: #f1f5f9;
}

.demo-ticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.demo-ticker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #f59e0b;
    display: inline-block;
    box-shadow: 0 0 8px #f59e0b;
    animation: demoDotPulse 1.5s infinite;
}

@keyframes demoDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}

.demo-ticker-text {
    color: #e2e8f0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.demo-ticker-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25d366;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 13px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}

.demo-ticker-btn-wa:hover {
    background: #20ba59;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
    color: #ffffff !important;
}

.demo-ticker-btn-promo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(167, 139, 250, 0.35);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.demo-ticker-btn-promo:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5);
    color: #ffffff !important;
}

.demo-ticker-sep {
    color: #64748b;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 6px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portal-grid {
        grid-template-columns: 1fr;
    }
    .curriculum-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ppdb-steps-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 680px) {
    .navbar {
        padding: 0.65rem 0;
    }
    .nav-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }
    .logo {
        font-size: 1.05rem;
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
    }
    .logo-text {
        min-width: 0;
        overflow: hidden;
    }
    .logo-title {
        font-size: 1.02rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
    }
    .logo-subtitle {
        font-size: 0.68rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
    }
    .logo span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }
    .logo-img, .logo-badge {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
        font-size: 1.15rem;
    }
    .nav-btns {
        display: flex;
        width: 100%;
        gap: 0.45rem;
    }
    .nav-btns .btn {
        flex: 1;
        padding: 0.5rem 0.6rem;
        font-size: 0.84rem;
        justify-content: center;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 0.38rem 0;
    }
    .topbar-wrap {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        justify-content: flex-start;
    }
    .topbar-info {
        display: none !important;
    }
    .topbar-marquee {
        width: 100%;
        overflow: hidden;
        position: relative;
        mask-image: linear-gradient(to right, transparent, black 14px, black calc(100% - 14px), transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 14px, black calc(100% - 14px), transparent);
    }
    .topbar-marquee-track {
        width: max-content;
        animation: topbarMarqueeScroll 24s linear infinite;
        will-change: transform;
    }
    .topbar-marquee-track:hover,
    .topbar-marquee-track:active {
        animation-play-state: paused;
    }
    .topbar-marquee-item {
        padding-right: 2.75rem;
    }
    .topbar-marquee-clone {
        display: inline-flex !important;
    }
    .topbar-cta-mobile {
        display: inline-flex !important;
        font-size: 0.72rem;
        padding: 0.15rem 0.55rem;
        margin-left: 0.35rem;
    }
}

@keyframes topbarMarqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .curriculum-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 1.85rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .demo-fixed-ticker {
        height: 46px;
    }
    .demo-ticker-item {
        gap: 10px;
        padding: 0 20px;
        font-size: 0.8rem;
    }
    body.has-demo-ticker {
        padding-bottom: 50px;
    }
}

/* FAQ Section Details Accordion */
.faq-grid {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.25s ease;
}
.faq-item[open] {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
}
.faq-summary {
    padding: 1.15rem 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.faq-summary::-webkit-details-marker {
    display: none;
}
.faq-summary::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    font-size: 0.95rem;
    color: var(--primary);
    transition: transform 0.2s ease;
}
.faq-item[open] .faq-summary::after {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 1.4rem 1.25rem 1.4rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

/* Testimonials Section */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.testi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}
.testi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-border);
}
.testi-quote-icon {
    font-size: 2.2rem;
    color: var(--primary);
    opacity: 0.45;
    line-height: 1;
    margin-bottom: 0.75rem;
}
.testi-text {
    color: var(--text-main);
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    font-style: italic;
}
.testi-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
}
.testi-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}
.testi-role {
    font-size: 0.82rem;
    color: var(--text-muted);
}
