/* ==========================================================================
   CSS Custom Variables — Typography & Color System
   ========================================================================== */
:root {
    /* === Color Palette === */
    --theme-color: #0d944c;
    --theme-color-hover: #0b7a3e;
    --theme-light: #e6f4ea;
    --theme-dark: #07542a;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --font-primary: 'Poppins', sans-serif;
    --font-arabic: 'Amiri', serif;

    /* === Typography Scale ===
       Base: 15px (lebih nyaman di mobile dibanding 16px default)
       Semua ukuran relatif terhadap rem (1rem = 15px)
    */
    --fs-xs: 0.9rem;
    /* ~10.8px — label kecil, badge */
    --fs-sm: 0.9rem;
    /* ~12.3px — teks sekunder, caption */
    --fs-base: 0.92rem;
    /* ~13.8px — teks paragraf umum */
    --fs-md: 1rem;
    /* ~15px   — teks sedikit lebih besar */
    --fs-lg: 1.1rem;
    /* ~16.5px — sub-judul ringan */
    --fs-xl: 1.3rem;
    /* ~19.5px — judul kartu/section kecil */
    --fs-2xl: 1.6rem;
    /* ~24px   — judul section utama */
    --fs-3xl: 2rem;
    /* ~30px   — judul hero/header halaman */
    --fs-arabic: 2.5rem;
    /* judul Arab di hero */
}

/* Base font size untuk semua browser */
html {
    font-size: 15px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    color: var(--text-dark);
    line-height: 1.65;
}

/* ==========================================================================
   Utility Font-Size Classes (Pengganti inline style)
   ========================================================================== */
.fs-xs {
    font-size: var(--fs-xs) !important;
}

.fs-sm {
    font-size: var(--fs-sm) !important;
}

.fs-base {
    font-size: var(--fs-base) !important;
}

.fs-md {
    font-size: var(--fs-md) !important;
}

.fs-lg {
    font-size: var(--fs-lg) !important;
}

.fs-xl {
    font-size: var(--fs-xl) !important;
}

.fs-2xl {
    font-size: var(--fs-2xl) !important;
}

.fs-3xl {
    font-size: var(--fs-3xl) !important;
}

/* Backward-compat Bootstrap helper */
.fs-7 {
    font-size: var(--fs-sm) !important;
}

.fs-8 {
    font-size: var(--fs-xs) !important;
}

/* ==========================================================================
   Heading Normalisation
   Pastikan h1–h6 konsisten di seluruh halaman
   ========================================================================== */
h1,
.h1 {
    font-size: var(--fs-3xl);
    line-height: 1.25;
    font-weight: 700;
}

h2,
.h2 {
    font-size: var(--fs-2xl);
    line-height: 1.3;
    font-weight: 700;
}

h3,
.h3 {
    font-size: var(--fs-xl);
    line-height: 1.35;
    font-weight: 600;
}

h4,
.h4 {
    font-size: var(--fs-lg);
    line-height: 1.4;
    font-weight: 600;
}

h5,
.h5 {
    font-size: var(--fs-md);
    line-height: 1.45;
    font-weight: 600;
}

h6,
.h6 {
    font-size: var(--fs-base);
    line-height: 1.5;
    font-weight: 600;
}

/* Bootstrap display overrides */
.display-4 {
    font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
}

/* ==========================================================================
   Theme Color Utilities
   ========================================================================== */
.text-theme {
    color: var(--theme-color) !important;
}

.bg-theme {
    background-color: var(--theme-color) !important;
}

.btn-theme {
    background-color: var(--theme-color);
    color: #fff;
    border: none;
    transition: all 0.3s;
}

.btn-theme:hover {
    background-color: var(--theme-color-hover);
    color: #fff;
}

.btn-soft-success {
    background-color: rgba(56, 161, 105, 0.14);
    color: #14522c;
    border: 1px solid rgba(56, 161, 105, 0.24);
    box-shadow: 0 10px 25px rgba(56, 161, 105, 0.08);
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-soft-success:hover,
.btn-soft-success:focus {
    background-color: rgba(56, 161, 105, 0.22);
    color: #0f3f23;
    transform: translateY(-1px);
}

.service-category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
    margin: 0 auto 2rem;
    max-width: 900px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 2rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 1;
}

.service-category-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 160px;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    color: #5b677d;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.service-category-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.service-category-pill .category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.04);
    color: #4b5563;
    font-size: 1rem;
}

.service-category-pill.active {
    background: linear-gradient(135deg, #0f8f4d 0%, #3cb67a 100%);
    color: #ffffff;
    border-color: rgba(12, 83, 44, 0.2);
    box-shadow: 0 22px 55px rgba(13, 148, 76, 0.25);
}

.service-category-pill.active .category-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.service-category-pill.active::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    box-shadow: 0 0 45px rgba(15, 206, 123, 0.28);
    opacity: 0.35;
    z-index: -1;
}

/* Badge overlay on service cards (capsule orange) */
.card .ratio {
    position: relative;
    overflow: hidden;
    border-radius: 24px;

}

.service-card-badge {
    position: absolute;
    top: 200px;
    left: 15px;

    background: #ff7a00;
    color: white;

    padding: 10px 18px;
    border-radius: 999px;

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

    display: inline-flex;
    align-items: center;
    gap: 6px;

    width: fit-content;
    white-space: nowrap;
    height: 25px;
    z-index: 10;
}

.service-card-badge .fa {
    font-size: 0.72rem !important;
    line-height: 1;
}

/* Minimal premium detail button (slim) */
.btn-detail {
    padding: 0.28rem 0.6rem;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #529a5e 0%, #044823 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    box-shadow: 0 8px 20px rgba(13, 148, 76, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;

}

.btn-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(13, 148, 76, 0.22);
}

/* Responsive tweaks for smaller screens */
@media (max-width: 767.98px) {
    .service-category-tabs {
        gap: 0.45rem;
        padding: 0.5rem 0.6rem;
        max-width: 100%;
    }

    .service-category-pill {
        min-width: 120px;
        padding: 0.55rem 0.9rem;
        font-size: 0.92rem;
    }

    .service-card-badge {
        top: 8px;
        right: 8px;
        padding: 0.06rem 0.22rem;
        font-size: 0.72rem;
        gap: 0.18rem;
    }

    .btn-detail {
        padding: 0.2rem 0.48rem;
        font-size: 0.86rem;
    }

    .card-body p {
        min-height: 56px;
    }
}

@media (min-width: 1200px) {
    .service-category-tabs {
        max-width: 1100px;
    }
}


/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
    background-color: #1a1a1a;
    color: #aaaaaa;
    font-size: var(--fs-xs);
}

.topbar .social-links a {
    color: #aaaaaa;
    transition: 0.3s;
}

.topbar .social-links a:hover {
    color: var(--theme-color);
}

/* ==========================================================================
   Mid Header (Logo & Info)
   ========================================================================== */
.mid-header .icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color);
    font-size: var(--fs-md);
}

/* Judul & subtitle di header logo */
.mid-header h2,
.mid-header-title {
    font-size: var(--fs-xl) !important;
    line-height: 1.2;
}

.mid-header small {
    font-size: var(--fs-xs);
}

/* ==========================================================================
   Navbar Menu
   ========================================================================== */
.navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    z-index: 1020;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.45rem 0.9rem !important;
    text-transform: uppercase;
    font-size: var(--fs-xs);
    letter-spacing: 0.5px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff;
    font-weight: 700;
}

.search-form input {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: var(--fs-sm);
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-form input:focus {
    background-color: #fff;
    color: var(--text-dark);
    box-shadow: none;
}

.search-form button:hover {
    color: #333 !important;
}

/* Wavy bottom effect */
.navbar-wave {
    height: 15px;
    background: radial-gradient(circle at 10px 0, transparent 10px, var(--theme-color) 11px);
    background-size: 20px 20px;
    background-position: 0 15px;
    background-repeat: repeat-x;
    transform: rotate(180deg);
    margin-top: -1px;
    z-index: 1019;
    position: relative;
}

/* ==========================================================================
   Hero Banner
   ========================================================================== */
.hero-banner {
    position: relative;
    background: #07542a;
    /* Fallback color while carousel image loads */
    min-height: 75vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    z-index: 2;
}

.arabic-title {
    font-family: var(--font-arabic);
    font-size: var(--fs-arabic);
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Page Header / Breadcrumb (donation, feedback, dll)
   ========================================================================== */
.page-header h1,
.donation-page-header h1 {
    font-size: var(--fs-3xl) !important;
}

.page-header p,
.donation-page-header p {
    font-size: var(--fs-base);
}

/* ==========================================================================
   Audio Player
   ========================================================================== */
.audio-player-wrapper {
    z-index: 10;
    margin-bottom: -35px;
}

.audio-player {
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.audio-controls i {
    cursor: pointer;
    transition: 0.3s;
    font-size: var(--fs-lg);
}

.audio-controls i:hover {
    color: var(--theme-color);
}

.spacer-audio {
    height: 50px;
}

/* ==========================================================================
   Prayer Timings (Jadwal Sholat)
   ========================================================================== */

/* Sembunyikan scrollbar untuk horizontal row di mobile */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.prayer-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.prayer-card:hover:not(.bg-theme) {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15) !important;
}

.prayer-card.bg-theme:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 36px rgba(13, 148, 76, 0.5) !important;
}

/* Teks nama & waktu sholat di card */
.prayer-card h4 {
    font-size: var(--fs-sm) !important;
}

.prayer-card h5 {
    font-size: var(--fs-md) !important;
}

/* ==========================================================================
   General Section Styling
   ========================================================================== */
.pattern-bg {
    background-image: 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="%230d944c" 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');
    /* content-visibility lets browser skip off-screen rendering */
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Greeting Section Redesign */
.greeting-section {
    background: #097037 !important;
    /* Deep Green from the image */
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
    padding: 40px 0 !important;
}

/* Background elements */
.greeting-bg-pattern {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.greeting-bg-pattern.pattern-top-left {
    top: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    color: rgba(255, 255, 255, 0.35);
}

.greeting-bg-pattern.pattern-bottom-left {
    bottom: -30px;
    left: -60px;
    width: 180px;
    height: 100px;
    color: rgba(255, 255, 255, 0.42);
}

.greeting-bg-pattern.pattern-top-right {
    top: -60px;
    right: -60px;
    width: 280px;
    height: 180px;
    color: rgba(255, 255, 255, 0.45);
}

.greeting-bg-pattern.pattern-middle-right {
    top: 40%;
    right: -40px;
    width: 150px;
    height: 150px;
    color: rgba(247, 240, 240, 0.1);
}

.greeting-bg-pattern.mosque-silhouette {
    bottom: -10px;
    left: -20px;
    width: 45%;
    height: 90%;
    color: rgba(255, 255, 255, 0.04);
}

/* Greeting content and title styling */
.greeting-content-col {
    position: relative;
    z-index: 2;
}

.greeting-label {
    font-size: var(--fs-sm);
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    font-family: var(--font-primary);
    font-weight: 400;
}

.greeting-title-main {
    font-size: clamp(1rem, 2.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    display: inline-block;
    position: relative;

}

.greeting-title-main::after {
    content: '';
    display: block;
    width: 90px;
    height: 4px;
    background-color: #ffffff;
    margin: 12px auto 0;
    border-radius: 2px;
}

.greeting-quote-text {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

/* Photo and Frame Styling */
.greeting-photo-col {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.greeting-photo-container {
    position: relative;
    padding: 15px;
    margin-bottom: 15px;
}

/* Offset outline box behind the photo */
.greeting-photo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: calc(90% - 20px);
    height: 80%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    z-index: 1;
}

.greeting-photo-wrapper {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    aspect-ratio: 3 / 4;
    width: 280px;
    max-width: 100%;
}

.greeting-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.greeting-photo-wrapper:hover .greeting-photo-img {
    transform: scale(1.05);
}

.greeting-author-name {
    font-size: var(--fs-lg);
    font-weight: 400;
    color: #ffffff;
    margin-top: -30px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Judul sub-label section (teks hijau kecil di atas judul) */
.section-label {
    font-size: var(--fs-xs);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--theme-color);
    margin: 12px auto 0;
}

.section-title-left::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--theme-color);
    margin: 12px 0 0;
}

/* Profil singkat body text */
.about-section p {
    font-size: var(--fs-base);
    line-height: 1.8;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-img-wrapper {
    position: relative;
    padding: 20px 20px 0 0;
}

.img-frame {
    position: absolute;
    top: 0;
    right: 0;
    width: 90%;
    height: 90%;
    border: 3px solid var(--theme-color);
    z-index: 0;
}

/* ==========================================================================
   Service / Blog Cards
   ========================================================================== */
.service-card {
    transition: 0.3s;
    border-radius: 8px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-card .card-title {
    font-size: var(--fs-md);
}

.service-card .card-text {
    font-size: var(--fs-sm);
}

.blog-card {
    transition: 0.3s;
}

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

.blog-card .card-title {
    font-size: var(--fs-md);
}

.blog-card .card-text {
    font-size: var(--fs-sm);
}

.date-badge {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.date-badge span {
    font-size: var(--fs-lg);
}

.date-badge small {
    font-size: var(--fs-xs);
}

/* ==========================================================================
   Donation Page
   ========================================================================== */
.donation-card-link:hover .donation-card {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--theme-color) !important;
}

.donation-card-active {
    border-color: var(--theme-color) !important;
    border-left: 4px solid var(--theme-color) !important;
    box-shadow: 0 4px 15px rgba(13, 148, 76, 0.15) !important;
}

.donation-card-active .donation-card-body h6 {
    color: var(--theme-color) !important;
}

/* Teks di dalam kartu donasi list */
.donation-card-body h6 {
    font-size: var(--fs-sm);
}

.donation-card-body p.text-muted {
    font-size: var(--fs-xs);
    line-height: 1.45;
}

.donation-card-body .fw-bold {
    font-size: var(--fs-sm);
}

.donation-card-body .btn {
    font-size: var(--fs-xs);
}

/* Detail panel donasi */
.donation-detail-panel h3 {
    font-size: var(--fs-xl);
}

.donation-detail-panel p.text-muted {
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.donation-detail-panel .fw-bold.text-dark {
    font-size: var(--fs-sm);
}

.donation-detail-panel small {
    font-size: var(--fs-xs);
}

/* Label "Transfer Bank" / "Donasi Instan" */
.donation-section-label {
    font-size: var(--fs-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Rekening number besar */
.account-number {
    font-size: var(--fs-lg);
    letter-spacing: 1px;
}

/* Progress bar text */
.progress-text {
    font-size: var(--fs-sm);
}

.progress {
    background-color: #e9ecef;
}

@media (max-width: 991.98px) {
    .donation-detail-panel {
        margin-top: 1rem;
    }
}

/* ==========================================================================
   Feedback Form
   ========================================================================== */
.feedback-card h4 {
    font-size: var(--fs-xl) !important;
}

.feedback-card label {
    font-size: var(--fs-sm);
    font-weight: 600;
}

.feedback-card .form-select,
.feedback-card .form-control {
    font-size: var(--fs-sm);
}

.feedback-card .btn {
    font-size: var(--fs-md);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-links a,
.footer-bottom-links a {
    transition: 0.3s;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: var(--fs-sm);
}

.footer-links a:hover,
.footer-bottom-links a:hover {
    color: #ffc107 !important;
    padding-left: 5px;
}

.footer .social-links a {
    transition: 0.3s;
}

.footer .social-links a:hover {
    background-color: #ffc107 !important;
    color: var(--theme-color) !important;
}

/* Footer heading */
footer h5 {
    font-size: var(--fs-md);
}

footer .small,
footer small {
    font-size: var(--fs-xs);
}

footer p.text-white-50 {
    font-size: var(--fs-sm);
}

.footer-bottom {
    font-size: var(--fs-xs);
}

/* ==========================================================================
   Floating Donation Button (Mobile)
   ========================================================================== */
.floating-donation-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--theme-color), #064e2b);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1050;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.floating-donation-btn i {
    font-size: 1.5rem;
}

.floating-donation-btn span {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-donation-btn:hover,
.floating-donation-btn:active {
    transform: scale(1.05);
    color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 767.98px) {
    :root {
        --fs-3xl: 1.6rem;
        --fs-2xl: 1.3rem;
        --fs-xl: 1.1rem;
        --fs-arabic: 1.8rem;
    }

    .arabic-title {
        font-size: var(--fs-arabic);
    }

    .display-4 {
        font-size: 1.6rem !important;
    }

    /* Prayer cards tampil vertikal di mobile */
    .prayer-card h4 {
        font-size: var(--fs-xs) !important;
    }

    .prayer-card h5 {
        font-size: var(--fs-sm) !important;
    }

    .donation-detail-panel h3 {
        font-size: var(--fs-xl) !important;
    }
}

/* ==========================================================================
   Kas Masjid Section
   ========================================================================== */
.kas-section {
    background-color: #097037 !important;
    position: relative;
    overflow: hidden;
    padding: 30px 0 !important;
}

.kas-title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
    color: #ffffff;
}

.kas-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ffffff;
    margin: 10px auto 0;
    border-radius: 2px;
}

.kas-closing-paragraph {
    font-size: var(--fs-base);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.kas-card-custom {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Image Gallery Styles */
.kas-image-gallery {
    perspective: 1000px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.kas-img {
    position: absolute;
    top: 50%;
    border-radius: 10px;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid #ffffff;

}

.kas-img.img-1 {
    width: 150px;
    height: 150px;
    object-fit: cover;
    left: 70%;
    top: -350%;
    z-index: 1;
    transform: translate(-110%, -50%) scale(0.9) rotate(-8deg);
    opacity: 0.9;
}

.kas-img.img-2 {
    width: 180px;
    height: 180px;
    object-fit: cover;
    left: 70%;
    top: -350%;
    z-index: 3;
    transform: translate(-50%, -50%) translateZ(20px);
}

.kas-img.img-3 {
    width: 150px;
    height: 150px;
    object-fit: cover;
    left: 70%;
    top: -350%;
    z-index: 2;
    transform: translate(10%, -50%) scale(0.9) rotate(8deg);
    opacity: 0.9;
}

.kas-img:hover {
    z-index: 4;
    transform: translate(-50%, -50%) scale(1.1) translateZ(40px) rotate(0deg) !important;
    opacity: 1 !important;
}


/* ==========================================================================
   Greeting Section — Mobile Responsive
   ========================================================================== */

/* Tablet (≤991px): stack columns vertically, center content */
@media (max-width: 991.98px) {
    .greeting-section {
        padding: 50px 0 !important;
    }

    .greeting-content-col {
        order: 1;
        text-align: center !important;
    }

    .greeting-photo-col {
        order: 2;
        margin-top: 30px;
    }

    .greeting-photo-wrapper {
        width: 220px;
    }

    .greeting-author-name {
        margin-top: -20px;
    }

    /* Shrink decorative SVG patterns on tablet */
    .greeting-bg-pattern.pattern-top-left {
        width: 160px;
        height: 160px;
    }

    .greeting-bg-pattern.pattern-top-right {
        width: 180px;
        height: 120px;
    }

    .greeting-bg-pattern.mosque-silhouette {
        width: 55%;
        opacity: 0.6;
    }
}

/* Mobile (≤767px): tighter spacing & smaller photo */
@media (max-width: 767.98px) {
    .greeting-section {
        padding: 40px 0 !important;
    }

    .greeting-label {
        font-size: var(--fs-xs);
    }

    .greeting-title-main {
        font-size: 1.5rem !important;
    }

    .greeting-quote-text {
        font-size: var(--fs-sm);
        line-height: 1.7;
    }

    .greeting-photo-wrapper {
        width: 180px;
        aspect-ratio: 3 / 4;
    }

    .greeting-author-name {
        font-size: var(--fs-base);
        margin-top: -15px;
    }

    /* Hide smaller decorative patterns on phones */
    .greeting-bg-pattern.pattern-bottom-left,
    .greeting-bg-pattern.pattern-middle-right {
        display: none;
    }

    .greeting-bg-pattern.pattern-top-left {
        width: 120px;
        height: 120px;
        top: -30px;
        left: -30px;
    }

    .greeting-bg-pattern.pattern-top-right {
        width: 130px;
        height: 90px;
        top: -30px;
        right: -30px;
    }

    .greeting-bg-pattern.mosque-silhouette {
        width: 70%;
        opacity: 0.5;
    }

    /* Remove offset outline on small screens */
    .greeting-photo-container::before {
        display: none;
    }

    .greeting-photo-container {
        padding: 0;
    }
}

/* Extra small mobile (≤575px) */
@media (max-width: 575.98px) {
    .greeting-section {
        padding: 30px 0 !important;
    }

    .greeting-photo-wrapper {
        width: 150px;
    }

    .greeting-section .row {
        gap: 1.5rem !important;
    }
}

/* ==========================================================================
   KAS Section — Mobile Responsive (Enhanced)
   ========================================================================== */

@media (max-width: 991.98px) {
    .kas-section {
        padding: 45px 0 !important;
    }

    .kas-card-custom {
        margin-bottom: 20px;
        height: auto !important;
    }

    .kas-image-gallery {
        margin-top: 30px;
    }
}

@media (max-width: 767.98px) {
    .kas-section {
        padding: 35px 0 !important;
    }

    .kas-title {
        font-size: var(--fs-xl);
        margin-bottom: 20px;
    }

    .kas-closing-paragraph {
        font-size: var(--fs-sm);
        margin-top: 15px;
        padding: 0 10px;
    }

    .kas-image-gallery {
        height: 150px;
    }

    .kas-img.img-1 {
        width: 140px;
        height: 140px;
        left: 50%;
        top: 50%;
    }

    .kas-img.img-2 {
        width: 150px;
        height: 150px;
        left: 50%;
        top: 50%;
    }

    .kas-img.img-3 {
        width: 120px;
        height: 120px;
        left: 50%;
        top: 50%;
    }
}

@media (max-width: 575.98px) {
    .kas-card-custom {
        padding: 20px !important;
        border-radius: 14px !important;
    }
}

/* ==========================================================================
   Admin Panel — Mobile Responsive Sidebar
   ========================================================================== */

/* Hamburger toggle button (only visible on mobile) */
.admin-hamburger {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1200;
    background: #343a40;
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.2s;
}

.admin-hamburger:hover {
    background: #23272b;
}

/* Overlay behind sidebar on mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.show {
    display: block;
}

@media (max-width: 991.98px) {

    /* Show hamburger button */
    .admin-hamburger {
        display: block;
    }

    /* Sidebar slides off-screen by default */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    /* Sidebar slides in when toggled */
    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    /* Full-width main content on mobile */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 15px !important;
        padding-top: 65px !important;
        /* Room for hamburger button */
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding: 10px !important;
        padding-top: 60px !important;
    }
}

/* ==========================================================================
   Services Slider — Program & Layanan
   ========================================================================== */

.services-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
}

.services-slider-outer {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
}

.services-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.services-slide {
    flex: 0 0 calc((100% - 72px) / 4);
    /* 4 visible on desktop */
    min-width: 0;
}

/* Nav buttons */
.services-nav-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--theme-color);
    background: #fff;
    color: var(--theme-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.services-nav-btn:hover:not(:disabled) {
    background: var(--theme-color);
    color: #fff;
    transform: scale(1.08);
}

.services-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Dot indicators */
.services-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.services-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.services-dot.active {
    background: var(--theme-color);
    transform: scale(1.35);
}

/* Responsive: 3 cards on tablet */
@media (max-width: 991.98px) {
    .services-slide {
        flex: 0 0 calc((100% - 48px) / 3);
    }
}

/* Responsive: 2 cards on small tablet */
@media (max-width: 767.98px) {
    .services-slide {
        flex: 0 0 calc((100% - 24px) / 2);
    }

    .services-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
}

/* Responsive: 1 card on mobile */
@media (max-width: 575.98px) {
    .services-slide {
        flex: 0 0 100%;
    }
}


/* ============================================================
   Quill Rich Text Content — Public Display (.ql-content)
   Covers all Quill 2.x output: standard tags + ql-* classes
   Bootstrap resets are overridden with !important where needed
   ============================================================ */
.ql-content {
    line-height: 1.8;
    color: #4b5563;
    word-break: break-word;
}

.ql-content p {
    margin-bottom: 0.85rem;
}

.ql-content p:last-child {
    margin-bottom: 0;
}

.ql-content h1,
.ql-content h2,
.ql-content h3,
.ql-content h4,
.ql-content h5,
.ql-content h6 {
    font-weight: 700;
    color: #1f2937;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.ql-content h1 {
    font-size: 1.75rem;
}

.ql-content h2 {
    font-size: 1.5rem;
}

.ql-content h3 {
    font-size: 1.25rem;
}

.ql-content h4 {
    font-size: 1.1rem;
}

.ql-content strong,
.ql-content b {
    font-weight: 700;
    color: #111827;
}

.ql-content em,
.ql-content i {
    font-style: italic;
}

.ql-content u {
    text-decoration: underline;
}

.ql-content s {
    text-decoration: line-through;
}

.ql-content ul,
.ql-content ol {
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
}

.ql-content ul {
    list-style-type: disc;
}

.ql-content ol {
    list-style-type: decimal;
}

.ql-content li {
    margin-bottom: 0.35rem;
}

/* ---- Blockquote: plain tag AND Quill 2.x class ---- */
.ql-content blockquote,
.ql-content .ql-blockquote {
    border-left: 4px solid #0d944c !important;
    padding: 0.75rem 1rem !important;
    margin: 1rem 0 !important;
    background: #f0fdf4 !important;
    border-radius: 0 8px 8px 0 !important;
    color: #374151 !important;
    font-style: italic !important;
    font-size: inherit !important;
}

.ql-content a {
    color: #0d944c;
    text-decoration: underline;
}

.ql-content a:hover {
    color: #059669;
}

/* ---- Table: Quill 2.x wraps in .ql-table-wrapper ---- */
.ql-content .ql-table-wrapper,
.ql-content .ql-table-wrapper-extra {
    overflow-x: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.ql-content table,
.ql-content .ql-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 0 !important;
    font-size: 0.9rem !important;
    table-layout: auto !important;
}

.ql-content table th,
.ql-content table td,
.ql-content .ql-table th,
.ql-content .ql-table td {
    border: 1px solid #d1d5db !important;
    padding: 0.5rem 0.75rem !important;
    text-align: left !important;
    vertical-align: top !important;
    min-width: 80px;
}

.ql-content table th,
.ql-content .ql-table th {
    background: #f3f4f6 !important;
    font-weight: 700 !important;
    color: #111827 !important;
}

.ql-content table tr:nth-child(even) td,
.ql-content .ql-table tr:nth-child(even) td {
    background: #f9fafb !important;
}

/* ---- Quill 2.x table uses tbody > tr > td with col widths ---- */
.ql-content colgroup {
    display: table-column-group;
}

.ql-content col {
    display: table-column;
}

/* ---- Alignment classes ---- */
.ql-content .ql-align-center,
.ql-content [data-align="center"] {
    text-align: center !important;
}

.ql-content .ql-align-right,
.ql-content [data-align="right"] {
    text-align: right !important;
}

.ql-content .ql-align-justify,
.ql-content [data-align="justify"] {
    text-align: justify !important;
}

/* ---- Indent classes ---- */
.ql-content .ql-indent-1 {
    padding-left: 2rem !important;
}

.ql-content .ql-indent-2 {
    padding-left: 4rem !important;
}

.ql-content .ql-indent-3 {
    padding-left: 6rem !important;
}

.ql-content .ql-indent-4 {
    padding-left: 8rem !important;
}

/* ---- Font classes ---- */
.ql-content .ql-font-serif {
    font-family: Georgia, 'Times New Roman', serif !important;
}

.ql-content .ql-font-monospace {
    font-family: 'Courier New', Courier, monospace !important;
}

/* ---- Size classes ---- */
.ql-content .ql-size-small {
    font-size: 0.8rem !important;
}

.ql-content .ql-size-large {
    font-size: 1.2rem !important;
}

.ql-content .ql-size-huge {
    font-size: 1.6rem !important;
}

/* ---- Code block ---- */
.ql-content pre,
.ql-content .ql-code-block-container {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

/* ---- Responsive table on mobile ---- */
@media (max-width: 576px) {

    .ql-content table,
    .ql-content .ql-table {
        display: block;
        overflow-x: auto;
    }
}