﻿/* =========================================
   1. VARIABEL & RESET GLOBAL
   ========================================= */
:root {
    --primary: #9d1b1b;
    --secondary: #9d1b1b;
    --gold: #c5a059;
    --bg: #f8f9fa;
    --text: #334155;
    --white: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

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

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================
   2. HEADER & BRANDING
   ========================================= */
header {
    background: var(--white);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.brand-text h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.brand-text span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    display: block;
    margin-top: 4px;
    font-weight: 700;
}

/* Hamburger Menu Icon */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

/* =========================================
   3. SIDEBAR & NAVIGASI
   ========================================= */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    /* Hidden default */
    width: 300px;
    height: 100dvh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1003;
    padding-top: 20px;
    padding-bottom: 0;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar.active {
    right: 0;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding-top: 10px;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
    flex-shrink: 0;
    gap: 15px;
}

/* Search Box di Sidebar */
.search-box {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(157, 27, 27, 0.05);
}

.search-icon {
    width: 18px;
    height: 18px;
    fill: #94a3b8;
    margin-right: 10px;
    flex-shrink: 0;
    cursor: pointer;
    transition: fill 0.2s, transform 0.2s;
}

.search-icon:hover {
    fill: var(--primary);
    transform: scale(1.1);
}

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
}

.search-input::placeholder {
    color: #cbd5e1;
    font-style: italic;
}

.close-sidebar-btn {
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.close-sidebar-btn:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Link Menu Sidebar */
.sidebar a {
    padding: 15px 30px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: #333;
    font-weight: 700;
    border-bottom: 1px solid #f9f9f9;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar a:hover {
    background: rgba(157, 27, 27, 0.05);
    color: var(--primary);
    padding-left: 40px;
}

.sidebar a::after {
    content: '\203A';
    font-size: 1.2rem;
    color: var(--gold);
}

/* SIDEBAR DROPDOWN */
.sidebar-dropdown-wrapper {
    display: flex;
    flex-direction: column;
}

.sidebar-dropdown-header {
    padding: 15px 30px;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: #333;
    font-weight: 700;
    border-bottom: 1px solid #f9f9f9;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.sidebar-dropdown-header:hover {
    background: rgba(157, 27, 27, 0.05);
    color: var(--primary);
    padding-left: 40px;
}

.sidebar-arrow {
    font-size: 1.2rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.sidebar-dropdown-wrapper.active .sidebar-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fcfcfc;
}

.sidebar-dropdown-wrapper.active .sidebar-submenu {
    max-height: 300px;
    /* Adjust based on content height */
    transition: max-height 0.5s ease-in;
}

.sidebar-submenu a {
    padding: 12px 30px 12px 50px;
    /* Indented */
    font-size: 0.85rem;
    color: #555;
    border-bottom: none;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
}

.sidebar-submenu a:hover {
    background: rgba(157, 27, 27, 0.02);
    color: var(--primary);
    padding-left: 55px;
    /* Slight movement */
}

.sidebar-submenu a::after {
    display: none;
    /* No arrow for subitems */
}

/* Wrapper Auth Bawah Sidebar */
.auth-bottom-wrapper {
    margin-top: 0;
    margin-bottom: 0;
    padding: 20px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    background: var(--white);
    border-top: 1px solid #f0f0f0;
    z-index: 5;
}

/* Tombol Profil Khusus */
.profile-btn {
    margin-top: auto;
    /* Dorong ke bawah */
    margin-bottom: 30px;
    margin-left: 20px;
    margin-right: 20px;

    background-color: var(--primary);
    color: #ffffff !important;
    border-radius: 50px;

    text-align: center;
    justify-content: center !important;
    padding: 12px 0 !important;
    font-weight: bold !important;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(157, 27, 27, 0.3);
    border-bottom: none !important;
}

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

.profile-btn:hover {
    padding-left: 0 !important;
    background-color: #7c1515 !important;
    transform: scale(1.02);
}

/* Overlay Gelap Background */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* =========================================
   4. NAVIGASI KATEGORI (Horizontal Scroll)
   ========================================= */
.category-nav {
    background: var(--secondary);
    padding: 15px 0;
    white-space: nowrap;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.2);
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.nav-inner {
    padding: 0 20px;
}

.cat-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 18px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    transition: all 0.3s;
    margin-right: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.cat-link.active {
    color: var(--primary);
    background: var(--white);
    border-color: var(--white);
    font-weight: 800;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* =========================================
   5. LAYOUT UTAMA & BERITA (NEWS CARD)
   ========================================= */
.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    scroll-margin-top: 100px;
}

.section-label {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.section-label span {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 4px;
}

.section-line {
    height: 2px;
    background: var(--primary);
    flex-grow: 1;
    opacity: 0.2;
    margin-left: 10px;
}

/* Grid System */
.news-grid {
    display: grid;
    /* Reduce min-width to prevent overflow on small screens */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Card Style */
.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card:hover .card-img {
    transform: scale(1.1);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(157, 27, 27, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.news-card:hover .card-title {
    color: var(--primary);
}

.card-excerpt {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #64748b !important;
    /* Paksa warna seragam */
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    margin-top: auto;
}

.card-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-date::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border: 1px solid #94a3b8;
    border-radius: 50%;
}

.read-btn {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.read-btn:hover {
    opacity: 0.8;
}

/* =========================================
   6. HALAMAN ARTIKEL (DETAIL VIEW)
   ========================================= */
#article-view {
    background: white;
    min-height: 80vh;
    padding-bottom: 50px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px 0;
    display: flex;
    flex-direction: column;
}

.back-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.2s;
    margin-bottom: 10px;
    font-weight: 300;
    line-height: 1;
}

.back-icon-btn:hover {
    transform: scale(1.1);
}

.art-hero-img {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 500px;
    margin: 20px auto;
    padding: 0 20px;
    box-sizing: border-box;
    border-radius: 12px;
    object-fit: cover;
}

.video-container {
    display: none;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    border: none;
    display: block;
}

.art-content-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

.art-meta {
    color: var(--gold);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.art-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.art-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1e293b;
    white-space: pre-wrap;
    font-family: 'Georgia', serif;
}

.art-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Social Share di Artikel */
.social-share-area {
    max-width: 800px;
    margin: 40px auto 20px;
    padding: 0 20px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.social-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

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

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* =========================================
   7. KOMENTAR SECTION
   ========================================= */
.comment-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.comment-title {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-left: 4px solid var(--gold);
    padding-left: 10px;
}

/* Form */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.comment-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    resize: vertical;
    min-height: 80px;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-comment {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-comment:hover {
    background: #7c1515;
}

/* List Komentar */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-card {
    background: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid #ddd;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comment-card:hover {
    border-left-color: var(--primary);
    background: #fafafa;
}

.com-header {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.com-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.com-date {
    color: #999;
    font-size: 0.7rem;
}

.com-body {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
    text-align: left;
    margin-top: 0;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background: linear-gradient(180deg, #9d1b1b 0%, #7c1515 100%);
    color: #e2e8f0;
    padding: 50px 20px 20px;
    margin-top: auto;
    border-top: 5px solid var(--gold);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    font-family: 'Cinzel', serif;
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

.footer-links a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-wa-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.footer-wa-link:hover {
    color: var(--gold);
}

/* Social Icons Footer */
.footer-social-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.small-social-btn {
    color: #cbd5e1;
    transition: color 0.3s, transform 0.3s;
}

.small-social-btn:hover {
    color: var(--gold);
    transform: scale(1.1);
}

.small-social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.copyright {
    text-align: center;
    padding-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* =========================================
   9. MODAL & UTILITIES
   ========================================= */
/* Modal Style */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.2s ease;
}

.custom-modal-overlay.active {
    display: flex;
}

.custom-modal-box {
    background: white;
    padding: 25px;
    width: 90%;
    max-width: 320px;
    border-radius: 15px;
    text-align: center;
    border-top: 5px solid var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-title {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    flex: 1;
}

.btn-cancel {
    background: #f1f5f9;
    color: #64748b;
}

.btn-cancel:hover {
    background: #e2e8f0;
}

.btn-yes {
    background: var(--primary);
    color: white;
}

.btn-yes:hover {
    background: #7c1515;
    box-shadow: 0 4px 10px rgba(157, 27, 27, 0.3);
}

@keyframes popUp {
    to {
        transform: scale(1);
    }
}

/* Toast Notification */
.custom-notif {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    font-family: 'Lato', sans-serif;
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    min-width: 300px;
    justify-content: center;
}

.custom-notif.active {
    top: 30px;
}

.custom-notif.success {
    border-left: 5px solid #2e7d32;
    color: #2e7d32;
}

.custom-notif.error {
    border-left: 5px solid #d32f2f;
    color: #d32f2f;
}

/* Utils */
.loader {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-style: italic;
}

.no-data {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    border: 1px dashed #ccc;
    color: #666;
}

/* --- STYLE SOSMED ICON (Universal) --- */
.social-icons-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

/* Style Dasar Tombol */
.soc-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.soc-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    /* Ini kuncinya: Warna ngikutin text-color */
}

/* --- VARIAN 1: Untuk di Halaman ARTIKEL (Background Abu, Ikon Merah) --- */
.article-mode .soc-link {
    background-color: #f1f5f9;
    color: var(--primary);
    /* Ikon jadi Merah */
}

.article-mode .soc-link:hover {
    background-color: var(--primary);
    color: #ffffff;
    /* Pas hover jadi Putih */
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(157, 27, 27, 0.3);
}

/* --- VARIAN 2: Untuk di FOOTER (Background Transparan, Ikon Abu Terang) --- */
.footer-mode .soc-link {
    background-color: rgba(255, 255, 255, 0.05);
    /* Sedikit transparan */
    color: #cbd5e1;
    /* Ikon Abu Terang */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-mode .soc-link:hover {
    background-color: var(--gold);
    /* Pas hover jadi Emas */
    color: #fff;
    border-color: var(--gold);
    transform: scale(1.1);
}

/* --- STYLE TOMBOL SHARE --- */
.share-article-wrapper {
    max-width: 800px;
    margin: 30px auto;
    /* Jarak atas bawah */
    padding: 0 20px;
    /* FIX: Tambah padding kiri-kanan biar sejajar sama teks utama */
    text-align: left;
    /* Rata Kiri sesuai request */
    border-top: 1px dashed #ddd;
    /* Garis pemisah halus */
    padding-top: 20px;
}

.share-title {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-buttons-row {
    display: flex;
    gap: 12px;
    /* Lebih rapat */
    flex-wrap: wrap;
    justify-content: center;
    /* FIX: Tombol rata tengah */
    margin-top: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* Jarak ikon-teks lebih rapat */
    padding: 8px 14px;
    /* Padding dikecilin biar compact */
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    /* Radius kotak dikit, bukan bulat lonjong */
    font-size: 0.8rem;
    /* Font lebih kecil dikit */
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Lato', sans-serif;
    /* HAPUS FLEX: 1 BIAR GAK MELAR */
    min-width: unset;
    /* Hapus min-width */
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Shadow tipis biar elegan */
}

.share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    /* Warna ikon ngikut teks */
}

/* Khusus ikon Salin Link yg pakai stroke */
.btn-copy svg {
    fill: none;
}

/* Efek Hover (Warna Berubah saat disentuh) */
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-wa:hover {
    border-color: #25D366;
    color: #25D366;
    background: #f0fdf4;
}

.btn-fb:hover {
    border-color: #1877F2;
    color: #1877F2;
    background: #eff6ff;
}

.btn-x:hover {
    border-color: #000000;
    color: #000000;
    background: #f8fafc;
}

.btn-copy:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff5f5;
}

/* --- STYLE REKOMENDASI BERITA (LIST VIEW) --- */
.related-section-wrapper {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

/* Khusus di halaman artikel, kita kasih jarak biar ga nempel share button */
.related-section-wrapper.article-mode {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    border-top: 1px dashed #ddd;
}

/* --- UPDATE WARNA LABEL PILIHAN EDITOR --- */
.small-label span {
    background: var(--primary);
    /* SEKARANG MERAH KONSISTEN */
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(157, 27, 27, 0.3);
    /* Tambah bayangan merah halus */
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

/* Kartu Kecil (Layout Horizontal) */
.related-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.related-card:hover {
    transform: translateX(5px);
    /* Efek geser dikit pas hover */
    background: #f8fafc;
    border-color: #e2e8f0;
}

.rel-img-wrap {
    width: 100px;
    /* Lebar fix gambar */
    height: 75px;
    /* Tinggi fix gambar */
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}


/* =========================================
   9. NOTIFIKASI CUSTOM
   ========================================= */
/* =========================================
   9. NOTIFIKASI CUSTOM (POP UP MELAYANG)
   ========================================= */
.custom-notif {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    min-width: 300px;
    border-bottom: 4px solid transparent;
}

.custom-notif.active {
    top: 30px;
}

.custom-notif.success {
    border-bottom-color: #2e7d32;
}

.custom-notif.error {
    border-bottom-color: #d32f2f;
}

.notif-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-text {
    font-weight: bold;
    color: #333;
    font-size: 0.95rem;
}


/* =========================================
   NEW SECTION: MUBASYIRAT (Horizontal Scroll)
   ========================================= */
.mubasyirat-section {
    padding: 30px 20px 50px 20px;
    background: linear-gradient(to bottom, var(--bg-body) 0%, rgba(157, 27, 27, 0.05) 100%);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.mubasyirat-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.mubasyirat-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 5px auto 0 auto;
    border-radius: 2px;
}

/* HORIZONTAL SCROLL CONTAINER */
.dream-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px 20px 5px;
    /* Bottom padding for shadow */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.dream-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.dream-scroll-container::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

/* CARD ITEM (9:16 Portrait Ratio for Reels/TikTokVibe) */
.dream-card {
    min-width: 220px;
    /* Lebih ramping */
    width: 220px;
    height: 391px;
    /* Ratio ~9:16 */
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.dream-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(157, 27, 27, 0.2);
    border-color: var(--primary);
}

.dream-thumb {
    width: 100%;
    height: 100%;
    /* Full Height Image for 9:16 vibe */
    position: relative;
    overflow: hidden;
}

.dream-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Info overlay di atas gambar (TikTok style) */
.dream-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, transparent);
    z-index: 2;
    height: auto;
    display: block;
}

.dream-title {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
    /* Teks putih karena overlay */
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 5px;
}

.dream-date {
    font-size: 0.75rem;
    color: #ddd;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Remove separate background for info since it is overlay now */
/* Also remove old dream-overlay as we use gradient on info */
.dream-overlay {
    display: none;
}

/* ANIMATION ICON PLAY OVERLAY */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    background: rgba(157, 27, 27, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: 0.3s;
    z-index: 3;
    box-shadow: 0 0 20px rgba(157, 27, 27, 0.5);
}

.dream-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* DARK MODE ADJUSTMENT for Dream Card */
body.dark-mode .mubasyirat-section {
    background: linear-gradient(to bottom, var(--bg-body) 0%, rgba(0, 0, 0, 0.5) 100%);
    border-top: 1px solid #333;
}

body.dark-mode .dream-card {
    background: #000;
    /* Hitam pekat for cinematic look */
    border-color: #222;
}


/* =========================================
PRAMIMPI.HTML STYLE (GALLERY GRID)
========================================= */
.pramimpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding-bottom: 50px;
}

.pramimpi-card {
    background: var(--bg-card);
    border-radius: 12px;
}

/* SAVE BUTTON ON NEWS CARD */
.btn-save-news {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 5;
    transition: all 0.2s;
}

.btn-save-news svg {
    width: 20px;
    height: 20px;
    stroke: #555;
    fill: none;
    transition: all 0.2s;
}

/* STATE: SAVED (Light Mode -> Red Fill) */
.btn-save-news.saved svg {
    fill: var(--primary);
    stroke: var(--primary);
}

/* STATE: DARK MODE */
body.dark-mode .btn-save-news {
    background: rgba(30, 30, 30, 0.8);
}

body.dark-mode .btn-save-news svg {
    stroke: #eee;
}

/* STATE: SAVED (Dark Mode -> White Fill) */
body.dark-mode .btn-save-news.saved svg {
    fill: white;
    stroke: white;
}

/* REST OF PRAMIMPI CARD */
.pramimpi-card {
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-main);
    position: relative;
    height: 100%;
}

.pramimpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.pramimpi-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #eee;
    overflow: hidden;
    position: relative;
}

.pramimpi-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.pramimpi-card:hover .pramimpi-thumb img {
    transform: scale(1.1);
}

.pramimpi-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 40px;
    height: 40px;
    background: rgba(157, 27, 27, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: 0.3s;
}

.pramimpi-card:hover .pramimpi-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.pramimpi-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pramimpi-title {
    font-size: 0.9rem;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
    line-height: 1.4;
}

.pramimpi-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: auto;
}

body.dark-mode .pramimpi-card {
    background: #1e1e1e;
    border-color: #333;
}

body.dark-mode .pramimpi-title {
    color: #eee;
}


/* =========================================
   VIEW ALL LINK (MATCHING ORIGINAL DREAM CARD)
   ========================================= */
.view-all-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--primary);
    text-align: center;
    border: 2px dashed var(--primary);

    /* Matches original dream card size */
    min-width: 220px;
    width: 220px;
    height: 391px;
    border-radius: 12px;

    scroll-snap-align: center;
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

.view-all-card:hover {
    background: var(--primary);
    color: white !important;
}

.view-all-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    fill: currentColor;
    transition: transform 0.3s;
}

.view-all-card:hover .view-all-icon {
    transform: scale(1.2);
}

/* =========================================
   PILIHAN EDITOR SECTION (Re-implemented)
   ========================================= */
.editor-section {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 0 5px;
}

.editor-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.editor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.editor-thumb {
    width: 100px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #eee;
}

.editor-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.editor-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.editor-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Dark Mode Support */
body.dark-mode .editor-card {
    background: #1a1a1a;
    border-color: #333;
}

body.dark-mode .editor-title {
    color: #eee;
}

/* RE-ADD BACA JUGA STYLES IF NEEDED OR KEEP IF USED */
.rel-img-wrap {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #ccc;
}

.rel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rel-title {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rel-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =========================================
   PAGINATION STYLES
   ========================================= */
.pagination-wrapper {
    grid-column: 1 / -1;
    /* Span full width in grid */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 5px;
    border-radius: 50%;
    /* Circle looks modern */
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Lato', sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(157, 27, 27, 0.3);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* =========================================
   ADVERTISING SLOTS (SKYSCRAPER)
   ========================================= */
.ad-skyscraper {
    position: fixed;
    top: 100px;
    width: 160px;
    height: 600px;
    z-index: 900;
    display: none;
    /* Hidden on mobile */
    /* Background transparent by default as requested */
    background: transparent;
}

/* Specific positions */
.ad-left {
    /* 50% - (Half Content Width 550px) - (Ad Width 160px) - (Gap 20px) */
    left: calc(50% - 730px);
}

.ad-right {
    right: calc(50% - 730px);
}

/* Only show on large screens where there is space */
/* Content max-width 1100px -> half 550px. Ad relative to 1100px container */
@media screen and (min-width: 1450px) {
    .ad-skyscraper {
        display: block;
    }
}

/* =========================================
   ADVERTISING SLOTS (SKYSCRAPER)
   ========================================= */
.ad-skyscraper {
    position: fixed;
    top: 100px;
    width: 160px;
    height: 600px;
    z-index: 900;
    display: none;
    /* Hidden on mobile */
    /* Background transparent by default as requested */
    background: transparent;
}

/* Specific positions */
.ad-left {
    /* 50% - (Half Content Width 550px) - (Ad Width 160px) - (Gap 20px) */
    left: calc(50% - 730px);
}

.ad-right {
    right: calc(50% - 730px);
}

/* Only show on large screens where there is space */
/* Content max-width 1100px -> half 550px. Ad relative to 1100px container */
@media screen and (min-width: 1450px) {
    .ad-skyscraper {
        display: block;
    }
}


/* =========================================
   IN-ARTICLE ADS (MOBILE/RESPONSIVE)
   ========================================= */
.ad-in-article-wrapper {
    width: 100%;
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.ad-in-article-slot {
    width: 100%;
    max-width: 600px;
    /* Limit width on tablets */
    aspect-ratio: 16/9;
    background: #f1f5f9;
    /* Placeholder grey */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

/* OPTIONAL: Hide in-article ad on large desktop if sidebar ads are sufficient 
   Uncomment below if you want to strictly hide it on Desktop 
*/
/*
@media screen and (min-width: 1024px) {
    .ad-in-article-wrapper {
        display: none;
    }
}
*/