/* ========================================
   THEMA ISLAMI - MDTA SHIROTUL JANNAH
   DARK / LIGHT MODE SUPPORT
   ======================================== */

/* ===== RESET & VARIABEL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Default: Light Mode */
:root {
    --primary: #1a6b3c;
    --primary-dark: #0f4a2a;
    --primary-light: #e8f5ee;
    --primary-gradient: linear-gradient(135deg, #1a6b3c 0%, #2d8f56 100%);
    --gold: #c9a84c;
    --gold-light: #f5f0e1;
    --gold-gradient: linear-gradient(135deg, #c9a84c 0%, #e8d48b 100%);
    --text: #1e2a3a;
    --text-light: #5a6a7a;
    --text-muted: #6a7a8a;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 50px rgba(26, 107, 60, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --bg-primary: #f9fafb;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hero: linear-gradient(135deg, #e8f5ee 0%, #ffffff 100%);
    --border-color: #e8ecf0;
    --wave-color: #ffffff;
    --input-bg: #ffffff;
    --card-border: #f0f0f0;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2333;
    --bg-hero: linear-gradient(135deg, #0a1f12 0%, #161b22 100%);
    --text: #e6edf3;
    --text-light: #b0b8c4;
    --text-muted: #8b949e;
    --shadow: 0 10px 40px rgba(0,0,0,0.4);
    --shadow-hover: 0 20px 50px rgba(26, 107, 60, 0.3);
    --border-color: #30363d;
    --wave-color: #0d1117;
    --input-bg: #0d1117;
    --card-border: #30363d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg-primary);
    line-height: 1.7;
    transition: background 0.3s ease, color 0.3s ease;
}

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

a {
    text-decoration: none;
    color: var(--primary);
}

img {
    max-width: 100%;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--gold);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

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

.top-bar a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--gold);
}

.top-bar .separator {
    color: rgba(255,255,255,0.2);
}

.hijri-date {
    font-family: 'Amiri', serif;
    font-size: 0.95rem;
    color: var(--gold);
}

/* ===== HEADER ===== */
header {
    background: var(--bg-secondary);
    box-shadow: 0 2px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(26, 107, 60, 0.3);
}

.logo-text {
    line-height: 1.2;
    color: var(--text);
}

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

.logo-text small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text);
    cursor: pointer;
    padding: 4px 8px;
}

nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

nav a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(26, 107, 60, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 107, 60, 0.4);
}

.btn-primary::after {
    display: none !important;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.theme-toggle:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
}

.theme-toggle i {
    font-size: 1rem;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 60px 0 80px;
    background: var(--bg-hero);
    overflow: hidden;
    min-height: 520px;
    transition: background 0.3s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-pattern {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    color: var(--text);
}

.hero-badge {
    display: inline-block;
    background: rgba(26, 107, 60, 0.15);
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 16px;
    border: 1px solid rgba(26, 107, 60, 0.1);
}

.hero-badge i {
    color: var(--gold);
    margin-right: 6px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 8px;
    color: var(--text);
}

.hero-text h1 span {
    color: var(--gold);
}

.arabic-text {
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    margin-bottom: 4px;
}

.hero-text .tagline {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 24px;
    font-weight: 400;
}

.hero-text .tagline i {
    color: var(--gold);
    font-size: 0.9rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin: 24px 0 32px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    background: var(--gold-gradient);
    color: var(--primary-dark) !important;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

.hero-buttons .btn-primary:hover {
    box-shadow: 0 8px 35px rgba(201, 168, 76, 0.5);
}

.hero-buttons .btn-secondary {
    border-color: var(--border-color);
    color: var(--text);
}

.hero-buttons .btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Hero Card */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 380px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.hero-card-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-card-content {
    position: relative;
    z-index: 2;
}

.hero-card-content i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.hero-card-content h3 {
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 700;
}

.hero-card-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.hero-card-status {
    margin-top: 16px;
    padding: 8px 16px;
    background: var(--primary-light);
    border-radius: 40px;
    display: inline-block;
    font-size: 0.85rem;
    color: var(--primary);
}

.hero-card-status i {
    font-size: 0.9rem;
    color: var(--gold);
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 60px;
}

.hero-wave svg path {
    fill: var(--wave-color);
    transition: fill 0.3s ease;
}

/* ===== SECTION ===== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-decoration span {
    width: 40px;
    height: 2px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.section-decoration i {
    color: var(--gold);
    font-size: 1rem;
}

.section-title h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
    position: relative;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 10px auto 0;
    border-radius: 4px;
}

.section-title p {
    color: var(--text-light);
    margin-top: 12px;
    font-size: 1.05rem;
}

/* ===== PROFIL / VISI MISI ===== */
#profil {
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

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

.card {
    background: var(--bg-card);
    padding: 36px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.card-divider {
    width: 40px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 4px;
    margin: 8px 0 16px;
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
}

.card p strong {
    color: var(--text);
}

.card ul {
    list-style: none;
    padding: 0;
}

.card ul li {
    padding: 8px 0;
    padding-left: 32px;
    position: relative;
    color: var(--text-light);
}

.card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--gold);
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 0.9rem;
}

/* ===== PROGRAM ===== */
.program-section {
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.program-item {
    background: var(--bg-card);
    padding: 32px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--card-border);
}

.program-item:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
}

.program-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: var(--primary);
    transition: var(--transition);
}

.program-item:hover .program-icon {
    background: var(--primary-gradient);
    color: var(--white);
    transform: scale(1.05);
}

.program-item h4 {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.program-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== GURU ===== */
.guru-section {
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.guru-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
}

.guru-card {
    background: var(--bg-card);
    padding: 24px 16px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--card-border);
}

.guru-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
}

.guru-image {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.guru-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary);
    border: 3px solid var(--gold-light);
    transition: var(--transition);
}

.guru-card:hover .guru-avatar {
    border-color: var(--gold);
    transform: scale(1.05);
}

.guru-badge {
    position: absolute;
    bottom: 0;
    right: -6px;
    width: 26px;
    height: 26px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--white);
    border: 2px solid var(--bg-card);
}

.guru-card h4 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.guru-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== GALERI ===== */
.galeri-section {
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.galeri-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
}

.galeri-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.galeri-content {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

.galeri-content i {
    font-size: 3rem;
    color: var(--gold);
    display: block;
    margin-bottom: 8px;
}

.galeri-content span {
    font-size: 0.9rem;
    font-weight: 500;
}

.galeri-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 107, 60, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
    font-size: 2rem;
}

.galeri-item:hover .galeri-overlay {
    opacity: 1;
}

.galeri-overlay span {
    font-size: 0.9rem;
}

.galeri-more {
    text-align: center;
    margin-top: 28px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.galeri-more i {
    color: var(--gold);
    margin-right: 8px;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: #c9a84c;
}

/* ===== KONTAK ===== */
.kontak-section {
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

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

.kontak-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kontak-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.kontak-item:hover {
    border-color: var(--gold);
    transform: translateX(4px);
}

.kontak-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.kontak-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kontak-item .value {
    font-weight: 600;
    color: var(--text);
}

.kontak-form {
    display: flex;
    flex-direction: column;
}

.map-placeholder {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 0;
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    height: 100%;
    overflow: hidden;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: none;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-logo i {
    color: var(--gold);
    margin-right: 8px;
}

.footer-logo span {
    color: var(--gold);
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    max-width: 320px;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    padding: 4px 0;
    transition: var(--transition);
}

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

.footer-contact p {
    color: rgba(255,255,255,0.7);
    padding: 4px 0;
    font-size: 0.95rem;
}

.footer-contact p i {
    color: var(--gold);
    width: 20px;
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 0;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--gold);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text .tagline {
        border-left: none;
        padding-left: 0;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-card {
        margin: 0 auto;
    }

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

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

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

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 12px;
        padding: 16px 0 8px;
        border-top: 1px solid var(--border-color);
        margin-top: 12px;
    }

    nav.open {
        display: flex;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 8px 0;
    }

    nav a::after {
        display: none;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .theme-toggle {
        width: 100%;
        justify-content: center;
        padding: 10px;
        margin-top: 4px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

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

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-number {
        font-size: 1.4rem;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about p {
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .hero-wave svg {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }

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

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

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

    .kontak-item {
        flex-direction: column;
        text-align: center;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-decoration span {
        width: 20px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 2rem;
    }
}