/* ============================================================
   MAN 2 AGAM — Design System Website Resmi
   Hijau Madrasah · Putih · Emas · Abu-abu muda
   Mobile-first · Dark mode support
   ============================================================ */

:root {
    --ma-green-50: #f0fdfa;
    --ma-green-100: #ccfbf1;
    --ma-green-200: #99f6e4;
    --ma-green-500: #14b8a6;
    --ma-green-600: #0d9488;
    --ma-green-700: #0f766e;
    --ma-green-800: #115e59;
    --ma-green-900: #134e4a;
    --ma-gold: #c9a227;
    --ma-gold-light: #e6c75c;
    --ma-gray-50: #f8faf9;
    --ma-gray-100: #f1f5f4;
    --ma-gray-200: #e2e8e7;
    --ma-gray-300: #cbd5d4;
    --ma-gray-500: #64748b;
    --ma-gray-700: #334155;
    --ma-gray-900: #0f172a;

    --ma-bg: #ffffff;
    --ma-bg-alt: #f8faf9;
    --ma-text: #1e293b;
    --ma-text-muted: #64748b;
    --ma-border: #e2e8e7;
    --ma-card-bg: #ffffff;
    --ma-shadow: 0 4px 24px rgba(15, 118, 110, .08);
    --ma-shadow-lg: 0 12px 40px rgba(15, 118, 110, .12);
    --ma-navbar-bg: rgba(255, 255, 255, .92);
    --ma-footer-bg: #0b2f2b;
    --ma-radius: 14px;
    --ma-radius-sm: 10px;
    --ma-font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
    --ma-bg: #0f172a;
    --ma-bg-alt: #0b1222;
    --ma-text: #e2e8f0;
    --ma-text-muted: #94a3b8;
    --ma-border: #1e293b;
    --ma-card-bg: #16233c;
    --ma-shadow: 0 4px 24px rgba(0, 0, 0, .35);
    --ma-shadow-lg: 0 12px 40px rgba(0, 0, 0, .45);
    --ma-navbar-bg: rgba(15, 23, 42, .92);
    --ma-footer-bg: #08110f;
    --ma-gray-100: #1e293b;
    --ma-gray-200: #334155;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--ma-font);
    background: var(--ma-bg);
    color: var(--ma-text);
    font-size: 15.5px;
    line-height: 1.7;
    transition: background .3s ease, color .3s ease;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--ma-text); letter-spacing: -.01em; }

a { text-decoration: none; transition: all .2s ease; color: var(--ma-green-700); }
a:hover { color: var(--ma-gold); }

img { max-width: 100%; }

/* ============ Utilitas ============ */
.text-gold { color: var(--ma-gold) !important; }
.text-green { color: var(--ma-green-700) !important; }
.bg-green-grad { background: linear-gradient(135deg, var(--ma-green-800), var(--ma-green-600)); }
.bg-soft-green { background: var(--ma-green-50); }

.section-pad { padding: 5rem 0; }
.section-alt { background: var(--ma-bg-alt); }

.section-title { margin-bottom: 2.5rem; }
.section-title .eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--ma-gold); font-weight: 700; font-size: .8rem;
    text-transform: uppercase; letter-spacing: .14em; margin-bottom: .5rem;
}
.section-title .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--ma-gold); }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .4rem; }
.section-title p { color: var(--ma-text-muted); max-width: 640px; }

.btn-ma {
    background: linear-gradient(135deg, var(--ma-green-700), var(--ma-green-600));
    color: #fff; border: none; border-radius: 999px; padding: .68rem 1.6rem;
    font-weight: 600; transition: all .25s ease; box-shadow: 0 6px 18px rgba(15, 118, 110, .3);
}
.btn-ma:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15, 118, 110, .4); color: #fff; }
.btn-gold {
    background: linear-gradient(135deg, var(--ma-gold), var(--ma-gold-light));
    color: #1a1a1a; border: none; border-radius: 999px; padding: .68rem 1.6rem;
    font-weight: 700; transition: all .25s ease; box-shadow: 0 6px 18px rgba(201, 162, 39, .3);
}
.btn-gold:hover { transform: translateY(-2px); color: #1a1a1a; }
.btn-outline-ma {
    border: 2px solid var(--ma-green-600); color: var(--ma-green-700); border-radius: 999px;
    padding: .6rem 1.5rem; font-weight: 600; background: transparent; transition: all .25s ease;
}
.btn-outline-ma:hover { background: var(--ma-green-700); color: #fff; }

/* ============ Navbar ============ */
.ma-navbar {
    position: sticky; top: 0; z-index: 1050;
    background: var(--ma-navbar-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ma-border);
    transition: box-shadow .3s ease;
}
.ma-navbar.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.ma-navbar .navbar-brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--ma-text); }
.ma-navbar .brand-logo {
    width: 54px; height: 54px; border-radius: 14px;
    background: linear-gradient(135deg, var(--ma-green-700), var(--ma-green-500));
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(15, 118, 110, .35); flex-shrink: 0; overflow: hidden;
}
.ma-navbar .brand-logo img {
    height: 44px; width: auto; max-width: 140px; object-fit: contain;
}
.brand-kemenag {
    height: 52px; width: auto; margin-right: .5rem; flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .15));
}
.ma-navbar .brand-text small { display: block; font-size: .66rem; color: var(--ma-gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ma-navbar .navbar-nav .nav-link {
    color: var(--ma-text); font-weight: 600; font-size: .92rem;
    padding: .55rem .8rem !important; border-radius: 8px; position: relative;
}
.ma-navbar .navbar-nav .nav-link:hover, .ma-navbar .navbar-nav .nav-link.active { color: var(--ma-green-700); }
.ma-navbar .navbar-nav .nav-link.active::after {
    content: ""; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 3px; border-radius: 3px; background: var(--ma-gold);
}
.ma-navbar .dropdown-menu {
    background: var(--ma-card-bg); border: 1px solid var(--ma-border);
    border-radius: var(--ma-radius-sm); box-shadow: var(--ma-shadow-lg); padding: .5rem;
}
.ma-navbar .dropdown-item { border-radius: 8px; font-weight: 500; color: var(--ma-text); padding: .5rem .9rem; }
.ma-navbar .dropdown-item:hover { background: var(--ma-green-50); color: var(--ma-green-700); }
.navbar-toggler { border: none; color: var(--ma-text); }

.icon-btn {
    width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center;
    justify-content: center; border: 1px solid var(--ma-border); background: var(--ma-card-bg);
    color: var(--ma-text); transition: all .25s ease; cursor: pointer;
}
.icon-btn:hover { background: var(--ma-green-700); color: #fff; border-color: var(--ma-green-700); }

/* ============ Hero ============ */
.ma-hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.ma-hero .hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease; transform: scale(1.04);
}
.ma-hero .hero-slide.active { opacity: 1; animation: heroZoom 7s ease forwards; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.ma-hero .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(8, 38, 34, .92) 0%, rgba(15, 118, 110, .72) 45%, rgba(8, 38, 34, .35) 100%);
}
.ma-hero .hero-content { position: relative; z-index: 2; color: #fff; padding: 7rem 0 6rem; max-width: 720px; }
.ma-hero .hero-badge {
    display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px);
    padding: .4rem 1.1rem; border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .05em;
    margin-bottom: 1.4rem; animation: fadeUp .8s ease both;
}
.ma-hero h1 {
    color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.15;
    margin-bottom: .6rem; animation: fadeUp .9s .1s ease both;
}
.ma-hero .tagline {
    display: inline-flex; gap: .35rem; font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 700;
    color: var(--ma-gold-light); letter-spacing: .04em; margin-bottom: 1.2rem; animation: fadeUp .9s .2s ease both;
}
.ma-hero .tagline span { color: #fff; font-weight: 300; }
.ma-hero p { color: rgba(255, 255, 255, .85); font-size: 1.05rem; max-width: 560px; margin-bottom: 1.8rem; animation: fadeUp .9s .3s ease both; }
.ma-hero .hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; animation: fadeUp .9s .4s ease both; }
.ma-hero .hero-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; z-index: 3; }
.ma-hero .hero-dots button {
    width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .45);
    cursor: pointer; transition: all .3s ease;
}
.ma-hero .hero-dots button.active { background: var(--ma-gold); width: 28px; border-radius: 6px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ============ Info bar / marquee pengumuman ============ */
.ma-ticker { background: linear-gradient(90deg, var(--ma-green-900), var(--ma-green-700)); color: #fff; overflow: hidden; position: relative; z-index: 4; }
.ma-ticker .ticker-inner { display: flex; align-items: center; padding: .55rem 0; }
.ma-ticker .ticker-label {
    background: var(--ma-gold); color: #1a1a1a; font-weight: 800; font-size: .75rem;
    padding: .3rem .9rem; border-radius: 6px; margin-right: 1rem; white-space: nowrap; text-transform: uppercase; letter-spacing: .06em;
}
.ma-ticker .ticker-items { display: flex; gap: 2.5rem; animation: tickerScroll 40s linear infinite; white-space: nowrap; }
.ma-ticker .ticker-items a { color: rgba(255, 255, 255, .92); font-size: .88rem; font-weight: 500; }
.ma-ticker .ticker-items a:hover { color: var(--ma-gold-light); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Kartu ============ */
.ma-card {
    background: var(--ma-card-bg); border: 1px solid var(--ma-border); border-radius: var(--ma-radius);
    box-shadow: var(--ma-shadow); overflow: hidden; transition: all .3s ease;
}
.ma-card:hover { transform: translateY(-6px); box-shadow: var(--ma-shadow-lg); }

.ma-card-img { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--ma-gray-100); }
.ma-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ma-card:hover .ma-card-img img { transform: scale(1.07); }
.ma-card-cat {
    position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255, 255, 255, .94);
    color: var(--ma-green-700); font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px;
    backdrop-filter: blur(6px);
}
.ma-card-date { position: absolute; bottom: 12px; right: 12px; background: rgba(8, 38, 34, .8); color: #fff; font-size: .72rem; padding: .25rem .7rem; border-radius: 999px; backdrop-filter: blur(6px); }
.ma-card-body { padding: 1.25rem; }
.ma-card-body h3 { font-size: 1.02rem; margin-bottom: .5rem; line-height: 1.45; }
.ma-card-body h3 a { color: var(--ma-text); }
.ma-card-body h3 a:hover { color: var(--ma-green-700); }
.ma-card-body p { color: var(--ma-text-muted); font-size: .88rem; margin-bottom: .8rem; }
.ma-card-meta { display: flex; gap: 1rem; color: var(--ma-text-muted); font-size: .78rem; }
.ma-card-meta i { color: var(--ma-gold); }

/* ============ Statistik ============ */
.ma-stats { background: linear-gradient(135deg, var(--ma-green-900), var(--ma-green-700)); position: relative; overflow: hidden; }
.ma-stats::before {
    content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
    background: rgba(255, 255, 255, .05); top: -200px; right: -140px;
}
.ma-stats::after {
    content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
    background: rgba(201, 162, 39, .12); bottom: -160px; left: -80px;
}
.ma-stat { text-align: center; padding: 1.5rem 1rem; position: relative; z-index: 2; }
.ma-stat .stat-icon {
    width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 18px; display: flex; align-items: center;
    justify-content: center; font-size: 1.6rem; color: var(--ma-gold-light);
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
}
.ma-stat .stat-number { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.2; }
.ma-stat .stat-label { color: rgba(255, 255, 255, .75); font-size: .88rem; font-weight: 500; }

/* ============ Sambutan Kepala ============ */
.ma-welcome { position: relative; }
.ma-welcome .welcome-photo {
    border-radius: var(--ma-radius); overflow: hidden; box-shadow: var(--ma-shadow-lg);
    position: relative; aspect-ratio: 3/4; max-width: 380px;
}
.ma-welcome .welcome-photo img { width: 100%; height: 100%; object-fit: cover; }
.ma-welcome .welcome-photo::after {
    content: ""; position: absolute; inset: 0; border: 3px solid rgba(255, 255, 255, .6);
    border-radius: var(--ma-radius); transform: translate(14px, 14px); z-index: -1;
}
.ma-welcome blockquote { border-left: 4px solid var(--ma-gold); padding-left: 1.2rem; color: var(--ma-text-muted); font-size: .98rem; font-style: italic; }

/* ============ Prestasi ============ */
.ma-achievement-card .ach-badge {
    position: absolute; top: 14px; right: 14px; z-index: 2; background: linear-gradient(135deg, var(--ma-gold), var(--ma-gold-light));
    color: #1a1a1a; font-weight: 800; font-size: .78rem; padding: .35rem .8rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(201, 162, 39, .4);
}
.ma-achievement-card .ach-level { display: inline-block; font-size: .72rem; font-weight: 700; padding: .22rem .65rem; border-radius: 999px; background: var(--ma-green-50); color: var(--ma-green-700); text-transform: uppercase; letter-spacing: .05em; }

/* ============ Agenda / countdown ============ */
.ma-countdown { display: flex; gap: .7rem; }
.ma-countdown .cd-box {
    background: var(--ma-card-bg); border: 1px solid var(--ma-border); border-radius: var(--ma-radius-sm);
    min-width: 72px; text-align: center; padding: .8rem .5rem; box-shadow: var(--ma-shadow);
}
.ma-countdown .cd-box .num { font-size: 1.7rem; font-weight: 800; color: var(--ma-green-700); line-height: 1.2; }
.ma-countdown .cd-box .lbl { font-size: .68rem; color: var(--ma-text-muted); text-transform: uppercase; letter-spacing: .08em; }

/* ============ Galeri ============ */
.ma-gallery-item { position: relative; border-radius: var(--ma-radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.ma-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.ma-gallery-item:hover img { transform: scale(1.08); }
.ma-gallery-item .g-overlay {
    position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 38, 34, .75), transparent 60%);
    opacity: 0; transition: opacity .3s ease; display: flex; align-items: flex-end; padding: 1rem; color: #fff;
}
.ma-gallery-item:hover .g-overlay { opacity: 1; }

/* ============ Halaman dalam (page header) ============ */
.ma-page-header {
    background: linear-gradient(135deg, var(--ma-green-900), var(--ma-green-700));
    padding: 3.6rem 0; color: #fff; position: relative; overflow: hidden;
}
.ma-page-header::after {
    content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255, 255, 255, .06); top: -120px; right: -60px;
}
.ma-page-header h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
.ma-page-header .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); margin-bottom: 0; }
.ma-page-header .breadcrumb a, .ma-page-header .breadcrumb-item.active { color: rgba(255, 255, 255, .8); font-size: .88rem; }

/* ============ Konten artikel ============ */
.article-content { font-size: 1.02rem; line-height: 1.9; color: var(--ma-text); }
.article-content h2, .article-content h3 { margin: 1.8rem 0 1rem; }
.article-content img { border-radius: var(--ma-radius-sm); margin: 1rem 0; }
.article-content blockquote {
    border-left: 4px solid var(--ma-gold); background: var(--ma-bg-alt); padding: 1rem 1.4rem;
    border-radius: 0 var(--ma-radius-sm) var(--ma-radius-sm) 0; font-style: italic; color: var(--ma-text-muted); margin: 1.4rem 0;
}
.article-content ul, .article-content ol { padding-left: 1.4rem; margin: 1rem 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.article-content table td, .article-content table th { border: 1px solid var(--ma-border); padding: .6rem .8rem; }

/* ============ Sidebar widget ============ */
.ma-widget { background: var(--ma-card-bg); border: 1px solid var(--ma-border); border-radius: var(--ma-radius); padding: 1.4rem; box-shadow: var(--ma-shadow); margin-bottom: 1.5rem; }
.ma-widget h5 { font-size: 1rem; font-weight: 700; padding-bottom: .8rem; margin-bottom: 1rem; border-bottom: 2px solid var(--ma-green-50); display: flex; align-items: center; gap: .5rem; }
.ma-widget h5 i { color: var(--ma-gold); }
.ma-widget ul { list-style: none; padding: 0; margin: 0; }
.ma-widget ul li { padding: .5rem 0; border-bottom: 1px dashed var(--ma-border); font-size: .9rem; }
.ma-widget ul li:last-child { border-bottom: none; }
.ma-widget ul li a { color: var(--ma-text); font-weight: 500; }
.ma-widget ul li a:hover { color: var(--ma-green-700); }

/* ============ Footer ============ */
.ma-footer { background: var(--ma-footer-bg); color: rgba(255, 255, 255, .75); padding: 4rem 0 0; position: relative; }
.ma-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1.2rem; position: relative; padding-bottom: .7rem; }
.ma-footer h5::after { content: ""; position: absolute; bottom: 0; left: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--ma-gold); }
.ma-footer a { color: rgba(255, 255, 255, .75); }
.ma-footer a:hover { color: var(--ma-gold-light); }
.ma-footer .footer-kemenag { height: 46px; width: auto; opacity: .95; }
.ma-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.ma-footer .footer-links li { padding: .3rem 0; font-size: .9rem; }
.ma-footer .footer-links li i { color: var(--ma-gold); margin-right: .4rem; font-size: .7rem; }
.ma-footer .footer-contact li { display: flex; gap: .7rem; padding: .45rem 0; font-size: .9rem; }
.ma-footer .footer-contact i { color: var(--ma-gold); margin-top: .2rem; }
.ma-footer .social-btn {
    width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .08); color: #fff !important; margin-right: .5rem; transition: all .25s ease;
}
.ma-footer .social-btn:hover { background: var(--ma-gold); color: #1a1a1a !important; transform: translateY(-3px); }
.ma-footer .copyright { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.2rem 0; margin-top: 3rem; font-size: .85rem; }

/* ============ Berita detail share ============ */
.share-btn {
    width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--ma-gray-100); color: var(--ma-text); transition: all .25s ease;
}
.share-btn:hover { transform: translateY(-3px); }
.share-btn.fb:hover { background: #1877f2; color: #fff; }
.share-btn.tw:hover { background: #000; color: #fff; }
.share-btn.wa:hover { background: #25d366; color: #fff; }
.share-btn.tg:hover { background: #0088cc; color: #fff; }

/* ============ Tabel jadwal ============ */
.ma-schedule-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.ma-schedule-table th { background: var(--ma-green-800); color: #fff; font-size: .82rem; padding: .7rem .6rem; text-align: center; position: sticky; top: 0; }
.ma-schedule-table th:first-child { border-radius: 10px 0 0 0; }
.ma-schedule-table th:last-child { border-radius: 0 10px 0 0; }
.ma-schedule-table td { border: 1px solid var(--ma-border); padding: .65rem .6rem; font-size: .82rem; text-align: center; vertical-align: middle; }
.ma-schedule-table tr:hover td { background: var(--ma-green-50); }
.ma-schedule-table .subject-cell { background: var(--ma-green-50); font-weight: 600; color: var(--ma-green-800); border-radius: 8px; }

/* ============ Form ============ */
.ma-form .form-control, .ma-form .form-select {
    border-radius: var(--ma-radius-sm); padding: .68rem 1rem; border: 1.5px solid var(--ma-border);
    background: var(--ma-card-bg); color: var(--ma-text); font-size: .95rem;
}
.ma-form .form-control:focus, .ma-form .form-select:focus {
    border-color: var(--ma-green-500); box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .12);
}
.ma-form label { font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }

/* ============ Animasi & skeleton ============ */
.skeleton { background: linear-gradient(90deg, var(--ma-gray-100) 25%, var(--ma-gray-200) 50%, var(--ma-gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============ Lightbox ============ */
.ma-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(4, 12, 10, .94); display: none; align-items: center; justify-content: center; }
.ma-lightbox.open { display: flex; }
.ma-lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.ma-lightbox .lb-close, .ma-lightbox .lb-prev, .ma-lightbox .lb-next {
    position: absolute; background: rgba(255, 255, 255, .12); border: none; color: #fff; width: 46px; height: 46px;
    border-radius: 50%; cursor: pointer; font-size: 1.1rem; transition: all .25s ease; z-index: 3;
}
.ma-lightbox .lb-close { top: 22px; right: 22px; }
.ma-lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.ma-lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.ma-lightbox .lb-close:hover, .ma-lightbox .lb-prev:hover, .ma-lightbox .lb-next:hover { background: var(--ma-gold); color: #1a1a1a; }

/* ============ Responsive ============ */
@media (max-width: 991.98px) {
    .ma-navbar .navbar-collapse {
        background: var(--ma-card-bg); border-radius: var(--ma-radius); padding: 1rem;
        margin-top: .6rem; border: 1px solid var(--ma-border); box-shadow: var(--ma-shadow-lg);
    }
    .section-pad { padding: 3.4rem 0; }
    .ma-hero { min-height: 88vh; }
}

@media (max-width: 575.98px) {
    .ma-countdown .cd-box { min-width: 60px; }
    .ma-hero .hero-actions .btn { width: 100%; }
}

/* Print (bukti pendaftaran) */
@media print {
    .ma-navbar, .ma-footer, .no-print { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
}

/* ============================================================
   MAN 2 AGAM — Tombol mengambang (WhatsApp & kembali ke atas)
   ============================================================ */
.float-wa, .float-top {
    position: fixed;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    transition: all .3s ease;
}
.float-wa {
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    font-size: 1.7rem;
    animation: waPulse 2.5s infinite;
}
.float-wa:hover { transform: translateY(-4px) scale(1.06); color: #fff !important; }
@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.float-top {
    right: 22px;
    bottom: 92px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ma-green-700);
    color: #fff;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
}
.float-top.show { opacity: 1; visibility: visible; }
.float-top:hover { background: var(--ma-gold); color: #1a1a1a; }
@media (max-width: 575.98px) {
    .float-wa { right: 14px; bottom: 14px; width: 50px; height: 50px; font-size: 1.5rem; }
    .float-top { right: 14px; bottom: 74px; }
}

/* ============================================================
   MAN 2 AGAM — Pagination
   ============================================================ */
.pagination { gap: .3rem; flex-wrap: wrap; }
.pagination .page-link {
    border-radius: 10px !important;
    border: 1px solid var(--ma-border);
    color: var(--ma-text);
    font-weight: 600;
    font-size: .88rem;
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .75rem;
    background: var(--ma-card-bg);
    box-shadow: var(--ma-shadow);
    transition: all .2s ease;
}
.pagination .page-link svg { width: 1rem; height: 1rem; }
.pagination .page-item:not(.disabled) .page-link:hover {
    background: var(--ma-green-700);
    border-color: var(--ma-green-700);
    color: #fff;
    transform: translateY(-2px);
}
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--ma-green-700), var(--ma-green-600));
    border-color: var(--ma-green-700);
    color: #fff;
    box-shadow: 0 6px 14px rgba(15, 118, 110, .3);
}
.pagination .page-item.disabled .page-link {
    color: var(--ma-gray-300);
    background: var(--ma-card-bg);
    box-shadow: none;
}

/* ============================================================
   MAN 2 AGAM — Link Terkait (marquee di paling bawah)
   ============================================================ */
.ma-links-strip {
    background: #06110f;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 1rem 0;
    overflow: hidden;
}
.ma-links-strip .links-label {
    color: var(--ma-gold);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: .55rem;
}
.ma-links-strip .links-marquee { overflow: hidden; }
.ma-links-strip .links-track {
    display: flex;
    gap: .8rem;
    width: max-content;
    animation: linksScroll 32s linear infinite;
}
.ma-links-strip:hover .links-track { animation-play-state: paused; }
@keyframes linksScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.ma-link-tile {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .85);
    font-size: .82rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all .25s ease;
}
.ma-link-tile img { height: 22px; width: auto; max-width: 60px; object-fit: contain; }
.ma-link-tile i { color: var(--ma-gold); }
.ma-link-tile:hover {
    background: var(--ma-gold);
    border-color: var(--ma-gold);
    color: #1a1a1a;
    transform: translateY(-2px);
}
.ma-link-tile:hover i { color: #1a1a1a; }
