/* ==========================================================================
           PONDOK PESANTREN AL-KHOIRIYAH - ALL-IN-ONE ISLAMIC DESIGN SYSTEM
           Color Scheme: Emerald Green (#0A4D2E), Mint White (#F7F9F8), Gold Accent (#D4AF37)
           ========================================================================== */

:root {
    /* Color Tokens */
    --primary-dark: #073822;
    --primary-green: #0A4D2E;
    --primary-mid: #137547;
    --primary-light: #25A265;
    --primary-subtle: #E6F4ED;

    --accent-gold: #D4AF37;
    --accent-gold-light: #F4E7B6;
    --accent-gold-dark: #A48118;

    --bg-main: #F7F9F8;
    --bg-surface: #FFFFFF;
    --bg-surface-alt: #EFF5F2;

    --text-dark: #0D261B;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-light: #FFFFFF;

    --border-light: #E2E8F0;
    --border-green: #C2E4D4;

    /* Elevation & Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 77, 46, 0.06);
    --shadow-md: 0 8px 24px rgba(10, 77, 46, 0.08);
    --shadow-lg: 0 16px 36px rgba(10, 77, 46, 0.12);
    --shadow-gold: 0 8px 20px rgba(212, 175, 55, 0.25);

    /* Typography */
    --font-arabic: 'Amiri', serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions & Radii */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* Reset & Global */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.top-bar,
.navbar,
section,
footer,
.modal,
.toast-notification {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
           AESTHETIC ANIMATED ISLAMIC CALLIGRAPHY BACKGROUND SYSTEM
           ========================================================================== */
.calligraphy-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.calligraphy-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: contrast(1.25) saturate(1.35) brightness(1.02);
    pointer-events: none;
    mix-blend-mode: multiply;
    animation: slowZoom 45s ease-in-out infinite alternate;
}

/* School Card Interactive Badges & Buttons */
.program-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.meta-box-clickable {
    cursor: pointer;
    transition: var(--transition-fast);
}

.meta-box-clickable:hover {
    transform: translateY(-2px);
    background: rgba(212, 175, 55, 0.25) !important;
    border-color: var(--accent-gold);
}

.school-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--primary-subtle);
    color: var(--primary-green);
    cursor: pointer;
    transition: var(--transition-fast);
    margin-right: 6px;
    margin-bottom: 6px;
}

.school-profile-badge:hover {
    background: var(--primary-green);
    color: #fff;
}

/* School Detail Modal Styling */
.school-detail-header-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.school-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.school-detail-box {
    background: var(--primary-subtle);
    padding: 16px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-green);
}

.school-detail-box h5 {
    color: var(--primary-dark);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

/* Interactive Clickable Cursor & Hover Effects */
.top-bar-info a:hover {
    color: var(--accent-gold);
    text-decoration: underline !important;
}

.stat-item,
.hero-floating-badge,
.kyai-img-wrapper,
.timeline-content,
.facility-card,
.summary-item,
.testi-card {
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-item:hover,
.hero-floating-badge:hover,
.kyai-img-wrapper:hover,
.timeline-content:hover,
.summary-item:hover,
.testi-card:hover {
    transform: translateY(-3px);
    filter: brightness(1.04);
}

.program-features li {
    cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.program-features li:hover {
    color: var(--primary-green);
    transform: translateX(4px);
}

.cal-item {
    position: absolute;
    font-family: var(--font-arabic);
    color: rgba(10, 77, 46, 0.05);
    user-select: none;
    white-space: nowrap;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.15));
    animation: floatCalligraphy 22s ease-in-out infinite alternate;
}

.cal-item.gold-glow {
    color: rgba(212, 175, 55, 0.08);
    animation: floatCalligraphy 28s ease-in-out infinite alternate-reverse, pulseGlow 8s ease-in-out infinite alternate;
}

.cal-1 {
    top: 10%;
    left: 2%;
    font-size: 5.5rem;
    animation-delay: 0s;
}

.cal-2 {
    top: 35%;
    right: 3%;
    font-size: 6rem;
    animation-delay: -5s;
}

.cal-3 {
    top: 65%;
    left: 5%;
    font-size: 4.8rem;
    animation-delay: -10s;
}

.cal-4 {
    top: 82%;
    right: 8%;
    font-size: 5.2rem;
    animation-delay: -15s;
}

.cal-5 {
    top: 22%;
    left: 45%;
    font-size: 6.5rem;
    animation-delay: -8s;
    opacity: 0.04;
}

.cal-6 {
    top: 58%;
    right: 38%;
    font-size: 6rem;
    animation-delay: -12s;
    opacity: 0.035;
}

@keyframes floatCalligraphy {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-25px) rotate(1.5deg) scale(1.03);
    }

    100% {
        transform: translateY(20px) rotate(-1.5deg) scale(0.98);
    }
}

@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.1));
        opacity: 0.05;
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
        opacity: 0.12;
    }
}

.geometric-ornament {
    position: absolute;
    width: 340px;
    height: 340px;
    border: 1.5px dashed rgba(10, 77, 46, 0.07);
    border-radius: 50%;
    pointer-events: none;
    animation: spinOrnament 75s linear infinite;
}

.ornament-1 {
    top: 12%;
    right: -80px;
}

.ornament-2 {
    bottom: 15%;
    left: -100px;
    width: 440px;
    height: 440px;
    animation-duration: 100s;
    animation-direction: reverse;
}

@keyframes spinOrnament {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Scroll Offset for Anchors */
section {
    scroll-margin-top: 90px;
}

/* Geometric Background Pattern Overlay */
.pattern-bg {
    background-image: radial-gradient(rgba(10, 77, 46, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Typography Utilities */
.font-arabic {
    font-family: var(--font-arabic);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
}

.text-gold {
    color: var(--accent-gold);
}

.text-green {
    color: var(--primary-green);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--primary-subtle);
    color: var(--primary-green);
    border: 1px solid var(--border-green);
}

.badge-gold {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold-dark);
    border: 1px solid var(--accent-gold);
}

/* ==========================================================================
           AESTHETIC & LUXURIOUS TOP ANNOUNCEMENT BAR
           ========================================================================== */
.top-bar {
    background: linear-gradient(135deg, #031c11 0%, #073822 40%, #0a4d2e 50%, #073822 60%, #031c11 100%);
    color: rgba(255, 255, 255, 0.94);
    padding: 7px 0;
    font-size: 0.81rem;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1001;
}

.top-bar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.top-bar-left,
.top-bar-right,
.top-bar-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-bar-link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 500;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
}

.top-bar-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
}

.top-bar-icon-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 0.72rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.top-bar-link:hover .top-bar-icon-badge {
    background: var(--accent-gold);
    color: var(--primary-dark);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    transform: scale(1.1);
}

.top-bar-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.16);
    display: inline-block;
}

/* PPDB Live Pulse Pill */
.ppdb-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 77, 46, 0.6);
    border: 1px solid rgba(34, 197, 94, 0.4);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition-fast);
}

.ppdb-live-pill:hover {
    border-color: var(--accent-gold);
    background: rgba(10, 77, 46, 0.9);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.ppdb-live-text strong {
    color: var(--accent-gold);
    font-weight: 700;
}

/* Bismillah Arabic Pill */
.bismillah-wrapper {
    display: inline-flex;
    align-items: center;
    padding: 2px 14px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bismillah-wrapper:hover {
    background: rgba(212, 175, 55, 0.22);
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.bismillah-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
    line-height: 1.3;
}

/* Social Icons */
.top-bar-socials {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
}

.social-top-link {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-top-link:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.4);
}

/* Responsive Breakpoints for Top Bar */
@media (max-width: 992px) {
    .top-bar-hide-tablet {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .top-bar-hide-mobile {
        display: none !important;
    }

    .top-bar {
        padding: 6px 0;
    }

    .top-bar-wrapper {
        justify-content: space-between;
        gap: 8px;
    }

    .top-bar-left {
        gap: 6px;
    }

    .top-bar-text {
        font-size: 0.76rem;
    }

    .bismillah-text {
        font-size: 0.92rem;
    }

    .bismillah-wrapper {
        padding: 2px 10px;
    }
}

@media (max-width: 480px) {
    .top-bar-wrapper {
        justify-content: center;
        gap: 10px;
    }

    .bismillah-wrapper {
        display: none;
    }
}

.audio-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.audio-toggle-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* Layout Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Glassmorphism Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 77, 46, 0.08);
    transition: var(--transition-normal);
    padding: 14px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #F0F7F3 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px;
    box-shadow: 0 6px 18px rgba(10, 77, 46, 0.12), 0 0 16px rgba(212, 175, 55, 0.35);
    transition: all var(--transition-normal);
    transform: translateZ(0);
}

.logo-brand:hover .logo-icon {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 24px rgba(10, 77, 46, 0.22), 0 0 22px rgba(212, 175, 55, 0.6);
    border-color: #F4E7B6;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.14)) contrast(1.06);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
}

.logo-text h1 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn i {
    font-size: 0.88rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-mid));
    color: white;
    box-shadow: 0 4px 14px rgba(10, 77, 46, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 77, 46, 0.35);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-green));
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), #C5A059);
    color: var(--primary-dark);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #E2C04D, var(--accent-gold));
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: white;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 80px 0 100px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(239, 245, 242, 0.72) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(19, 117, 71, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 16px 0 20px;
    line-height: 1.15;
}

.hero-content h2 span {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-body);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-green);
}

.stat-item h3 {
    font-size: 1.75rem;
    color: var(--primary-green);
    font-weight: 800;
}

.stat-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Hero Media Card */
.hero-media {
    position: relative;
}

.hero-card-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid #FFFFFF;
    transition: var(--transition-normal);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}

.hero-floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #FFFFFF;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid var(--accent-gold);
}

.badge-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.4rem;
}

.badge-text strong {
    display: block;
    font-size: 1rem;
    color: var(--primary-dark);
}

.badge-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* SECTION COMMONS */
.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin: 12px 0 16px;
    color: var(--primary-dark);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* SAMBUTAN KYAI SECTION */
.sam-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: center;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(194, 228, 212, 0.6);
}

.kyai-img-wrapper {
    position: relative;
    text-align: center;
}

.kyai-img {
    width: 100%;
    max-width: 340px;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 4px solid var(--primary-subtle);
    box-shadow: var(--shadow-md);
}

.kyai-title-badge {
    margin-top: 16px;
}

.kyai-title-badge h4 {
    font-size: 1.15rem;
    color: var(--primary-dark);
}

.kyai-title-badge p {
    font-size: 0.85rem;
    color: var(--accent-gold-dark);
    font-weight: 600;
}

.sam-content blockquote {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-body);
    line-height: 1.7;
    position: relative;
    padding-left: 24px;
    border-left: 4px solid var(--accent-gold);
    margin-bottom: 24px;
}

.arabic-quote {
    font-family: var(--font-arabic);
    font-size: 1.8rem;
    color: var(--primary-green);
    text-align: right;
    direction: rtl;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* PROGRAM PENDIDIKAN TABS */
.program-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    font-weight: 700;
    color: var(--text-body);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.program-card {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border: 1px solid rgba(194, 228, 212, 0.6);
}

.program-info h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.program-info p {
    color: var(--text-body);
    margin-bottom: 24px;
}

.program-features {
    list-style: none;
    margin-bottom: 32px;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
}

.program-features i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

.program-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: var(--primary-subtle);
    padding: 20px;
    border-radius: var(--radius-md);
}

.meta-box span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.meta-box strong {
    color: var(--primary-dark);
    font-size: 1rem;
}

/* JADWAL HARIAN TIMELINE */
.schedule-container {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(194, 228, 212, 0.6);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-green);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 42%;
    background: rgba(239, 245, 242, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(194, 228, 212, 0.6);
}

.timeline-time {
    font-weight: 800;
    color: var(--accent-gold-dark);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border: 4px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* FASILITAS GRID & LIGHTBOX */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.facility-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(194, 228, 212, 0.8);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(10, 77, 46, 0.14), 0 0 20px rgba(212, 175, 55, 0.25);
    border-color: var(--accent-gold);
}

.facility-img-wrapper {
    height: 230px;
    overflow: hidden;
    position: relative;
}

.facility-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}

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

.facility-badge-overlay {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(7, 56, 34, 0.88);
    backdrop-filter: blur(6px);
    color: var(--accent-gold);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.facility-zoom-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition-fast);
    z-index: 2;
}

.facility-card:hover .facility-zoom-icon {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: scale(1.1);
}

.facility-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.facility-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.facility-body h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
    transition: color var(--transition-fast);
}

.facility-card:hover h4 {
    color: var(--primary-green);
}

.facility-body p {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.55;
    margin-bottom: 16px;
}

.facility-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed rgba(10, 77, 46, 0.12);
}

.facility-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 600;
    background: var(--primary-subtle);
    color: var(--primary-dark);
}

/* KALKULATOR BIAYA INTERAKTIF */
.calculator-card {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid var(--border-green);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.calc-inputs h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: var(--transition-fast);
    background: var(--bg-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(10, 77, 46, 0.1);
}

.calc-summary {
    background: var(--primary-dark);
    color: white;
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calc-summary h4 {
    color: var(--accent-gold);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    padding-bottom: 8px;
}

.summary-total {
    border-top: 2px solid var(--accent-gold);
    padding-top: 16px;
    margin-top: 20px;
}

.summary-total h3 {
    color: #FFFFFF;
    font-size: 1.1rem;
}

.summary-total .total-price {
    color: var(--accent-gold);
    font-size: 2rem;
    font-weight: 800;
}

/* TESTIMONIALS & ALUMNI */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.testi-card {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testi-text {
    font-style: italic;
    margin-bottom: 24px;
    color: var(--text-body);
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.user-info h5 {
    font-size: 1rem;
    color: var(--primary-dark);
}

.user-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* CTA PPDB SECTION */
.cta-banner {
    background: linear-gradient(135deg, rgba(7, 56, 34, 0.93), rgba(10, 77, 46, 0.93));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--accent-gold);
}

.cta-banner h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
}

/* FOOTER */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 70px 0 24px;
    border-top: 4px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* MODAL REGISTRASI PPDB */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 56, 34, 0.7);
    backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--accent-gold);
    position: relative;
}

.modal-header {
    background: var(--primary-green);
    color: white;
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: white;
    font-size: 1.3rem;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
}

.modal-body {
    padding: 28px;
}

/* NOTIFICATION TOAST */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--primary-dark);
    color: white;
    border-left: 4px solid var(--accent-gold);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
           RESPONSIVE MOBILE DESIGN SYSTEM FOR SMARTPHONES & TABLETS
           ========================================================================== */

/* Touch & Tap Adjustments */
a,
button,
input,
select,
textarea,
.stat-item,
.facility-card,
.testi-card,
.tab-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Nav Drawer Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 56, 34, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

body.nav-open {
    overflow: hidden !important;
}

/* Sticky Mobile Bottom Bar */
.mobile-bottom-bar {
    display: none;
}

.mobile-drawer-cta {
    display: none;
    width: 100%;
}

/* Media Queries: 1024px and down */
@media (max-width: 1024px) {
    .container {
        width: 94%;
    }

    .hero-grid,
    .sam-grid,
    .program-card,
    .calculator-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-content h2 {
        font-size: clamp(2rem, 4.5vw, 2.75rem);
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 44px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Media Queries: 768px and down (Smartphones & Small Tablets) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    body {
        padding-bottom: 72px;
        /* Leave room for sticky mobile bottom bar */
    }

    section {
        padding: 56px 0;
        scroll-margin-top: 75px;
    }

    .nav-btn-desktop {
        display: none !important;
    }

    /* Navbar Mobile Adjustments */
    .navbar {
        padding: 10px 0;
    }

    .logo-icon {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
        padding: 3px;
        border-radius: 12px;
    }

    .logo-text h1 {
        font-size: 1.05rem;
    }

    .logo-text span {
        font-size: 0.65rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 82vw;
        height: 100vh;
        background: #FFFFFF;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 32px;
        gap: 16px;
        transition: right var(--transition-normal);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.05rem;
        padding: 8px 0;
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--primary-subtle);
        border-radius: var(--radius-sm);
        color: var(--primary-green);
        font-size: 1.3rem;
    }

    .mobile-drawer-cta {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
    }

    /* Sticky Mobile Bottom Bar */
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1500;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-green);
        padding: 8px 12px;
        gap: 8px;
        box-shadow: 0 -4px 20px rgba(7, 56, 34, 0.12);
    }

    .mobile-bottom-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 8px 6px;
        border-radius: var(--radius-sm);
        font-size: 0.75rem;
        font-weight: 700;
        text-decoration: none;
        border: none;
        cursor: pointer;
        transition: var(--transition-fast);
    }

    .mobile-bottom-btn i {
        font-size: 1.15rem;
    }

    .mobile-bottom-btn.btn-wa {
        background: rgba(37, 211, 102, 0.12);
        color: #128C7E;
        border: 1px solid rgba(37, 211, 102, 0.3);
    }

    .mobile-bottom-btn.btn-ppdb {
        background: linear-gradient(135deg, var(--primary-green), var(--primary-mid));
        color: white;
        box-shadow: 0 2px 8px rgba(10, 77, 46, 0.25);
    }

    .mobile-bottom-btn.btn-calc {
        background: var(--primary-subtle);
        color: var(--primary-dark);
        border: 1px solid var(--border-green);
    }

    /* Hero Section Mobile */
    .hero {
        padding: 40px 0 60px;
    }

    .hero-content h2 {
        font-size: clamp(1.75rem, 6.5vw, 2.4rem);
        margin: 12px 0 16px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding-top: 20px;
    }

    .stat-item {
        background: var(--bg-surface);
        padding: 12px 10px;
        border-radius: var(--radius-sm);
        text-align: center;
        border: 1px solid var(--border-light);
    }

    .stat-item h3 {
        font-size: 1.4rem;
    }

    .hero-card-img {
        height: 280px;
    }

    .hero-floating-badge {
        position: relative;
        bottom: 0;
        left: 0;
        margin-top: 16px;
        padding: 12px 16px;
    }

    /* Sambutan & Cards Mobile */
    .sam-grid,
    .program-card,
    .schedule-container,
    .calculator-card {
        padding: 24px 16px;
        border-radius: var(--radius-md);
    }

    .kyai-img {
        max-width: 100%;
        height: 260px;
    }

    .arabic-quote {
        font-size: 1.4rem;
    }

    .sam-content blockquote {
        font-size: 0.98rem;
        padding-left: 16px;
    }

    /* Touch Scrollable Tabs for Programs */
    .program-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .program-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 10px 20px;
        font-size: 0.88rem;
    }

    .program-meta-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Facilities Grid Mobile */
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .facility-img-wrapper {
        height: 180px;
    }

    /* Calculator Mobile */
    .form-control,
    select.form-control,
    input.form-control {
        font-size: 16px !important;
        /* Prevents Safari iOS auto-zoom */
        padding: 11px 14px;
    }

    .calc-summary {
        padding: 20px 16px;
    }

    .summary-total .total-price {
        font-size: 1.6rem;
    }

    /* CTA Banner Mobile */
    .cta-banner {
        padding: 36px 20px;
    }

    .cta-banner h2 {
        font-size: 1.6rem;
    }

    .cta-banner p {
        font-size: 0.95rem;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    footer {
        padding: 48px 0 24px;
    }

    /* Modals Mobile */
    .modal {
        padding: 12px;
    }

    .modal-content {
        max-height: 88vh;
        border-radius: var(--radius-md);
    }

    .modal-header {
        padding: 16px 20px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 20px 16px;
    }

    /* Calligraphy BG Mobile Adjustment */
    .cal-item {
        font-size: 3rem !important;
        opacity: 0.03 !important;
    }

    .calligraphy-bg-overlay {
        max-width: 100vw;
        overflow: hidden;
    }
}

/* Media Queries: 480px and down (Extra Small Devices) */
@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .logo-text h1 {
        font-size: 0.95rem;
    }

    .logo-text span {
        display: none;
    }

    .badge-pill {
        font-size: 0.78rem;
        padding: 5px 12px;
    }

    .hero-content h2 {
        font-size: 1.65rem;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item h3 {
        font-size: 1.25rem;
    }

    .stat-item p {
        font-size: 0.72rem;
    }

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

    .testi-card {
        padding: 20px 16px;
    }
}

/* ==========================================================================
           PREMIUM UI & RESPONSIVE ACCESSIBILITY ENHANCEMENTS (LAPTOP & MOBILE)
           ========================================================================== */

/* Smooth Rendering & Typography Optimization */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Enhanced Interactive Card Elevations & Smooth Image Hover */
.program-card,
.facility-card,
.testi-card,
.timeline-content,
.school-detail-box {
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease;
}

.program-card:hover,
.facility-card:hover,
.testi-card:hover,
.timeline-content:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(10, 77, 46, 0.12), 0 0 20px rgba(212, 175, 55, 0.15);
}

.facility-img-wrapper img,
.program-card img,
.hero-card-img {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
}

.facility-card:hover img,
.program-card:hover img {
    transform: scale(1.04);
}

/* Button Touch Feedback & Premium Shimmer */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
}

.btn:active {
    transform: scale(0.97);
}

.btn-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #E5C358 50%, #A48118 100%) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #073822 0%, #0A4D2E 50%, #137547 100%) !important;
    box-shadow: 0 6px 20px rgba(10, 77, 46, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 10px 28px rgba(10, 77, 46, 0.38);
    transform: translateY(-2px);
}

/* Mobile Touch & Accessibility Polish */
@media (max-width: 768px) {
    .mobile-bottom-bar {
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-top: 1px solid rgba(10, 77, 46, 0.15) !important;
        box-shadow: 0 -8px 28px rgba(7, 56, 34, 0.16) !important;
        padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
    }

    .mobile-bottom-btn {
        border-radius: 12px;
        transition: transform 0.15s ease, background-color 0.15s ease;
    }

    .mobile-bottom-btn:active {
        transform: scale(0.94);
    }

    .tab-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}