:root {
    /* Color Palette - Modern Islamic Green */
    --primary-green: #0F5132;
    /* Emerald Green used by Bootstrap success-dark */
    --light-green: #E8F5E9;
    /* Very Light Green for backgrounds */
    --accent-gold: #FFC107;
    /* Gold for accents */
    --text-dark: #1F2937;
    /* Dark Grey for text */
    --text-muted: #6B7280;
    /* Muted Grey */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', serif;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #FAFAFA;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #111827;
}

/* Header & Navbar */
.hero-content h1,
.hero-content p,
.hero-content .lead {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.bg-light-green {
    background-color: #fff;
    border-bottom: 1px solid #155b00;
}

.logo-wrapper h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: -0.5px;
}

.logo-wrapper p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar {
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-nav .nav-link {
    color: #4B5563;
    padding: 0.75rem 1rem;
    position: relative;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-green);
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

/* Card Styling */
.card {
    border: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-top,
.news-thumbnail {
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #f3f4f6;
}

/* News Specific */
.news-card .card-title a {
    color: #111827;
    transition: color 0.2s;
    line-height: 1.4;
}

.news-card:hover .card-title a {
    color: var(--primary-green);
}

.news-card .badge {
    font-weight: 500;
    padding: 0.5em 1em;
    border-radius: 6px;
}

/* Sidebar Widgets */
.card-header {
    background-color: #fff;
    border-bottom: 1px solid #f3f4f6;
    padding: 1.25rem;
}

.card-header h5 {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #104928 0%, #064E3B 100%) !important;
    color: #ffffff !important;
}

footer h5,
footer p,
footer li,
footer i {
    color: #ffffff !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    padding-left: 8px;
    color: var(--accent-gold) !important;
    opacity: 1;
}

.social-icons a {
    color: #155b00 !important;
    font-size: 1.25rem;
    margin-left: 1rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-gold) !important;
}

/* Visitor Stats Widget */
.stats-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.stats-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.stats-item:last-child {
    border-bottom: none;
}

.stats-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background-color: var(--light-green);
    color: var(--primary-green);
}

.stats-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-grow: 1;
}

.stats-value {
    font-weight: 700;
    color: var(--text-dark);
}

/* Carousel Indicators */
.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: var(--primary-green);
}

/* ═══════════════════════════════════════════════════════
   Quill Content Styles — untuk render konten dari editor
   ═══════════════════════════════════════════════════════ */

.article-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Quill Alignment */
.article-content .ql-align-center {
    text-align: center;
}

.article-content .ql-align-right {
    text-align: right;
}

.article-content .ql-align-justify {
    text-align: justify;
}

/* Quill Indent (1-8 levels) */
.article-content .ql-indent-1 {
    padding-left: 3em;
}

.article-content .ql-indent-2 {
    padding-left: 6em;
}

.article-content .ql-indent-3 {
    padding-left: 9em;
}

.article-content .ql-indent-4 {
    padding-left: 12em;
}

.article-content .ql-indent-5 {
    padding-left: 15em;
}

.article-content .ql-indent-6 {
    padding-left: 18em;
}

.article-content .ql-indent-7 {
    padding-left: 21em;
}

.article-content .ql-indent-8 {
    padding-left: 24em;
}

/* Quill Blockquote */
.article-content blockquote {
    border-left: 4px solid var(--primary-green);
    padding: 0.75rem 1.25rem;
    margin: 1rem 0;
    background: #f8f9fa;
    color: #555;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Quill Code Block */
.article-content pre.ql-syntax {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 1rem 0;
}

/* Quill Lists */
.article-content ol,
.article-content ul {
    padding-left: 2em;
    margin-bottom: 1rem;
}

.article-content li {
    margin-bottom: 0.35rem;
}

/* Quill Size */
.article-content .ql-size-small {
    font-size: 0.75em;
}

.article-content .ql-size-large {
    font-size: 1.5em;
}

.article-content .ql-size-huge {
    font-size: 2.5em;
}

/* Quill Font Colors — inline styles handled by Quill directly */
/* Links inside article */
.article-content a {
    color: var(--primary-green);
    text-decoration: underline;
}

.article-content a:hover {
    color: #0a3d24;
}