:root {
    --primary-green: #16a34a;
    --primary-gold: #f59e0b;
    --primary-blue: #0ea5e9;
    --dark-green: #15803d;
    --light-green: #dcfce7;
}

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

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.arabic-font {
    font-family: 'Amiri', serif;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.8), rgba(14, 165, 233, 0.6));
    z-index: 1;
}

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

.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pulse-animation {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(22, 163, 74, 0.4); }
    50% { box-shadow: 0 0 40px rgba(22, 163, 74, 0.8); }
}

.islamic-pattern {
    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='%2316a34a' fill-opacity='0.1'%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");
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-gold);
    transform: scale(1.2);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

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

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-counter {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-gold);
}

.parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.parallax-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 0;
}

@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.shine-effect:hover::before {
    left: 100%;
}

.news-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Motivation Section Perbaikan untuk quote box */
.relative {
    overflow: visible !important;
}

.absolute {
    z-index: 10;
}

/* Perbaikan font dan spacing */
.content-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Pastikan gambar tidak overflow */
.rounded-2xl.w-full.h-auto.object-cover {
    max-width: 100%;
    height: auto;
    display: block;
}
/*Akhir Motivation*/

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.mosque-silhouette {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

#header nav {
overflow-x: clip;
}

@media (max-width: 400px) {
    header nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    #mobile-menu-btn {
    margin-left: 0.5rem;
    }
}

.kg-width-wide {
    max-width: 100%;
    width: 100%;
}

.kg-width-full {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.share-button {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
}

/* WhatsApp */
.share-whatsapp {
    background-color: #25D366;
    color: white;
}

/* Twitter/X */
.share-twitter {
    background-color: #000000;
    color: white;
}

/* Facebook */
.share-facebook {
    background-color: #1877F2;
    color: white;
}

/* Copy Link */
.share-copy {
    background-color: #4B5563;
    color: white;
}

/* ============================================= */
/* Enhanced Ghost Content Blocks - Unified Styles */
/* ============================================= */

/* Base Content Styles (applies to both post and page) */
.content-wrapper,
.page-content {
    max-width: 800px;
    margin: 0 auto;
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Typography */
.post-content p,
.page-content p {
    margin-bottom: 1.5rem;
}

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

.post-content h1,
.page-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.75rem;
}

.post-content h2,
.page-content h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.post-content h3,
.page-content h3 {
    font-size: 1.5rem;
}

.post-content h4,
.page-content h4 {
    font-size: 1.25rem;
}

.post-content h5,
.page-content h5 {
    font-size: 1.1rem;
}

.post-content h6,
.page-content h6 {
    font-size: 1rem;
    color: #6b7280;
}

/* Lists */
.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2.5rem;
}

.post-content li,
.page-content li {
    margin-bottom: 0.75rem;
    position: relative;
}

.post-content ul li::before,
.page-content ul li::before {
    content: "•";
    color: var(--primary-green);
    position: absolute;
    left: -1.25rem;
}

.post-content ol,
.page-content ol {
    counter-reset: list-counter;
}

.post-content ol li,
.page-content ol li {
    counter-increment: list-counter;
}

.post-content ol li::before,
.page-content ol li::before {
    content: counter(list-counter) ".";
    color: var(--primary-green);
    position: absolute;
    left: -1.25rem;
}

/* Blockquotes */
.post-content blockquote,
.page-content blockquote {
    border-left: 4px solid var(--primary-green);
    background-color: #f3f4f6;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #374151;
    border-radius: 0 0.5rem 0.5rem 0;
}

.post-content blockquote p:last-child,
.page-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Images */
.post-content img,
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem auto;
    display: block;
}

/* Image Cards */
.post-content .kg-image-card,
.post-content .kg-image-card img,
.page-content .kg-image-card,
.page-content .kg-image-card img {
    border-radius: 0;
    margin: 2rem auto;
}

/* Wide and Full-width Images */
.post-content .kg-width-wide,
.page-content .kg-width-wide {
    max-width: 100%;
    width: 100%;
}

.post-content .kg-width-full,
.page-content .kg-width-full {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: none;
}

/* Galleries */
.post-content .kg-gallery-container,
.page-content .kg-gallery-container {
    margin: 2rem 0;
}

.post-content .kg-gallery-row,
.page-content .kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.post-content .kg-gallery-image,
.page-content .kg-gallery-image {
    margin: 0.25rem;
}

.post-content .kg-gallery-image img,
.page-content .kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

/* Embeds (Twitter, YouTube, etc.) */
.post-content .kg-embed-card,
.page-content .kg-embed-card {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-content .kg-embed-card iframe,
.page-content .kg-embed-card iframe {
    width: 100%;
    min-height: 400px;
    border: none;
}

/* Callout/Notice Boxes */
.post-content .kg-callout-card,
.page-content .kg-callout-card {
    background-color: #f0fdf4;
    border-left: 4px solid var(--primary-green);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.post-content .kg-callout-card.kg-callout-card-accent,
.page-content .kg-callout-card.kg-callout-card-accent {
    background-color: #eff6ff;
    border-left-color: var(--primary-blue);
}

.post-content .kg-callout-card.kg-callout-card-warning,
.page-content .kg-callout-card.kg-callout-card-warning {
    background-color: #fef3c7;
    border-left-color: var(--primary-gold);
}

/* Toggle (Accordion) Cards */
.post-content .kg-toggle-card,
.page-content .kg-toggle-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin: 2rem 0;
    overflow: hidden;
}

.post-content .kg-toggle-heading,
.page-content .kg-toggle-heading {
    background-color: #f9fafb;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1f2937;
}

.post-content .kg-toggle-content,
.page-content .kg-toggle-content {
    padding: 1.5rem;
}

.post-content .kg-toggle-content > *:first-child,
.page-content .kg-toggle-content > *:first-child {
    margin-top: 0;
}

.post-content .kg-toggle-content > *:last-child,
.page-content .kg-toggle-content > *:last-child {
    margin-bottom: 0;
}

/* Button Cards */
.post-content .kg-button-card,
.page-content .kg-button-card {
    margin: 2rem 0;
    text-align: center;
}

.post-content .kg-btn,
.page-content .kg-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background-color: var(--primary-green);
    color: white;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.post-content .kg-btn:hover,
.page-content .kg-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Bookmark Cards */
.post-content .kg-bookmark-card,
.page-content .kg-bookmark-card {
    margin: 2rem 0;
}

.post-content .kg-bookmark-container,
.page-content .kg-bookmark-container {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-content .kg-bookmark-container:hover,
.page-content .kg-bookmark-container:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.post-content .kg-bookmark-content,
.page-content .kg-bookmark-content {
    padding: 1.5rem;
}

.post-content .kg-bookmark-title,
.page-content .kg-bookmark-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.post-content .kg-bookmark-description,
.page-content .kg-bookmark-description {
    color: #4b5563;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.post-content .kg-bookmark-metadata,
.page-content .kg-bookmark-metadata {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.75rem;
}

.post-content .kg-bookmark-icon,
.page-content .kg-bookmark-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

.post-content .kg-bookmark-thumbnail,
.page-content .kg-bookmark-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* File Cards */
.post-content .kg-file-card,
.page-content .kg-file-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.post-content .kg-file-card:hover,
.page-content .kg-file-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.post-content .kg-file-card-container,
.page-content .kg-file-card-container {
    display: flex;
    align-items: center;
}

.post-content .kg-file-card-icon,
.page-content .kg-file-card-icon {
    margin-right: 1.25rem;
    font-size: 1.75rem;
    color: var(--primary-green);
}

.post-content .kg-file-card-title,
.page-content .kg-file-card-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.post-content .kg-file-card-caption,
.page-content .kg-file-card-caption {
    font-size: 0.875rem;
    color: #6b7280;
}

.post-content .kg-file-card-metadata,
.page-content .kg-file-card-metadata {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
}

/* Product Cards */
.post-content .kg-product-card,
.page-content .kg-product-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.post-content .kg-product-card:hover,
.page-content .kg-product-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Header Cards */
.post-content .kg-header-card,
.page-content .kg-header-card {
    text-align: center;
    padding: 3rem 1.5rem;
    margin: 2rem 0;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
}

/* Tables */
.post-content table,
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    overflow-x: auto;
    display: block;
}

.post-content th,
.post-content td,
.page-content th,
.page-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.post-content th,
.page-content th {
    background-color: #f9fafb;
    font-weight: 600;
}

.post-content tr:nth-child(even),
.page-content tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Code Blocks */
.post-content pre,
.page-content pre {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: 'Courier New', Courier, monospace;
}

.post-content code,
.page-content code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    color: #1f2937;
}

.post-content pre code,
.page-content pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .post-content .kg-width-full img,
    .page-content .kg-width-full img {
        border-radius: 0;
    }

    .post-content .kg-gallery-row,
    .page-content .kg-gallery-row {
        flex-direction: column;
    }

    .post-content .kg-bookmark-container,
    .page-content .kg-bookmark-container {
        flex-direction: column;
    }

    .post-content .kg-bookmark-thumbnail,
    .page-content .kg-bookmark-thumbnail {
        width: 100%;
        height: 160px;
    }

    .post-content h1,
    .page-content h1 {
        font-size: 1.75rem;
    }

    .post-content h2,
    .page-content h2 {
        font-size: 1.5rem;
    }
}

/* Custom Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-number,
.pagination .older-posts,
.pagination .newer-posts {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.pagination a {
    color: #4b5563;
    background-color: #f3f4f6;
}

.pagination a:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.pagination .current {
    background-color: var(--primary-green);
    color: white;
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Perbaikan untuk alignment teks di Feature Card */
.feature-card ul {
    text-align: left; /* Memastikan list tidak terpengaruh oleh text-align: center dari parent */
}

.feature-card ul li {
    display: flex;
    align-items: flex-start; /* Sejajarkan ikon & teks dari atas */
}

.feature-card ul li .fa-check {
    /* Sedikit penyesuaian agar ikon terlihat pas di tengah baris pertama teks */
    margin-top: 5px;
    flex-shrink: 0; /* Mencegah ikon 'gepeng' jika ruang sempit */
}

/* Styling untuk Dropdown Menu Navigasi */
.dropdown-menu {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    display: block;
    visibility: hidden;
}

.dropdown-menu.dropdown-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}

/* --- PERBAIKAN SPASI KOSONG MOBILE DENGAN EFEK ACCORDION --- */
.dropdown-menu-mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
    padding-top: 0; /* Mulai tanpa padding */
}

.dropdown-menu-mobile.dropdown-open {
    max-height: 500px; /* Atur ke tinggi maksimal yang mungkin */
    padding-top: 0.5rem; /* Beri padding saat terbuka */
}

/* Styling untuk Fitur "Show More" Tags */
#tag-list-container {
    max-height: 50px; /* Atur tinggi awal, cukup untuk 1 baris tag */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

#tag-list-container.expanded {
    max-height: 2000px; /* Angka yang sangat besar untuk memastikan semua tag muat */
}

#show-more-tags-btn {
    cursor: pointer;
    display: none; /* Disembunyikan oleh CSS, akan ditampilkan oleh JS jika dibutuhkan */
}