/* FILE: assets/css/detail_berita.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --color-primary: #0056B3;
    --color-primary-dark: #003D82;
    --color-secondary: #00A86B;
    --color-accent-red: #D32F2F;
    --color-bg-light: #F8FAFC;
    --color-white: #FFFFFF;
    --color-text-dark: #1E293B;
    --color-text-muted: #64748B;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'DM Sans', sans-serif; }
html { scroll-behavior: smooth; }
body { background: var(--color-bg-light); color: var(--color-text-dark); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 700; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* NAVBAR HEADER (PRESISI ALIGN CENTER LEFT LOGO FIX) */
.navbar { position: fixed; top: 0; left: 0; width: 100%; height: 75px; z-index: 1000; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-sm); display: flex; justify-content: center; align-items: center; }
.nav-container { width: 100%; max-width: 1280px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.nav-brand { display: flex; align-items: center; }
.nav-brand a { display: flex; align-items: center; justify-content: flex-start; gap: 12px; font-size: 22px; font-weight: 800; color: var(--color-text-dark); letter-spacing: -0.5px; line-height: 1; text-decoration: none; }
.nav-brand img { height: 40px; width: auto; max-width: 50px; object-fit: contain; display: block; margin: 0; }
.nav-brand span { color: var(--color-primary); line-height: 1; }
.nav-back-btn { font-size: 14px; font-weight: 600; color: var(--color-primary); display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: #EFF6FF; border-radius: 8px; }
.nav-back-btn:hover { background: var(--color-primary); color: var(--color-white); }

/* NORMAL WEB SCROLL + STICKY SIDEBAR SYSTEM */
@media (min-width: 1025px) {
    body { overflow-x: hidden; min-height: 100vh; }
    .main-container { max-width: 1280px; margin: 75px auto 0; padding: 30px 20px 0; display: grid; grid-template-columns: 1fr 360px; gap: 35px; align-items: start; }
    .left-scroll-pane { width: 100%; }
    .right-scroll-pane { width: 100%; position: sticky; top: 95px; }
}

/* LEFT COLUMN: ARTICLE CONTENT */
.article-box { background: var(--color-white); border-radius: 16px; padding: 35px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.breadcrumb { font-size: 13px; color: var(--color-text-muted); margin-bottom: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.breadcrumb a { color: var(--color-primary); font-weight: 600; }
.breadcrumb i { font-size: 10px; opacity: 0.5; }

/* PILL BADGES & TITLE */
.category-badges { display: flex; gap: 8px; margin-bottom: 16px; }
.cat-badge { background: var(--color-accent-red); color: var(--color-white); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.cat-badge.blue { background: var(--color-primary); }
.article-title { font-size: 32px; color: #0F172A; line-height: 1.35; margin-bottom: 24px; font-weight: 800; }

/* AUTHOR & META ROW */
.author-meta-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding-bottom: 20px; margin-bottom: 25px; border-bottom: 1px solid var(--border-color); }
.author-info { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid #E2E8F0; }
.author-details h5 { font-size: 15px; color: #0F172A; font-weight: 700; margin-bottom: 2px; }
.author-details .read-time { font-size: 13px; color: var(--color-text-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.date-badge-pill { background: #E0F2FE; color: #0369A1; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 20px; display: inline-flex; align-items: center; gap: 8px; }
.date-badge-pill i { color: #0284C7; }

/* SOCIAL SHARE BUTTONS */
.social-share-group { display: flex; align-items: center; gap: 8px; }
.share-btn-circle { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-white); font-size: 15px; transition: var(--transition); }
.share-btn-circle:hover { transform: translateY(-3px); opacity: 0.9; }
.bg-wa { background: #25D366; }
.bg-fb { background: #1877F2; }
.bg-tw { background: #000000; }
.bg-tg { background: #0088CC; }

/* MAIN THUMBNAIL */
.article-thumb { width: 100%; max-height: 480px; object-fit: cover; border-radius: 12px; margin-bottom: 30px; box-shadow: var(--shadow-sm); }

/* QUILL CONTENT RENDERING */
.article-content { font-size: 16.5px; line-height: 1.85; color: #334155; }
.article-content h2, .article-content h3 { color: #0F172A; margin-top: 30px; margin-bottom: 15px; font-family: 'Outfit', sans-serif; }
.article-content p { margin-bottom: 20px; text-align: justify; }
.article-content strong, .article-content b { font-weight: 700; color: #0F172A; }
.article-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 20px 0; display: block; }
.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 24px; text-align: justify; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote { border-left: 4px solid var(--color-primary); background: #F1F5F9; padding: 16px 20px; margin: 20px 0; border-radius: 0 8px 8px 0; font-style: italic; color: #475569; }

/* TAGS SECTION */
.article-tags-box { margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--border-color); display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tag-label { font-size: 14px; font-weight: 700; color: var(--color-white); background: var(--color-primary); padding: 5px 12px; border-radius: 4px; }
.tag-item { font-size: 13.5px; font-weight: 600; color: #D32F2F; background: #FEE2E2; padding: 5px 14px; border-radius: 6px; border: 1px solid #FECACA; }
.tag-item:hover { background: #D32F2F; color: var(--color-white); }

/* BOTTOM SHARE BAR */
.bottom-share-bar { margin-top: 30px; padding: 20px; background: #F8FAFC; border-radius: 12px; border: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.bottom-share-bar span { font-weight: 700; font-size: 15px; color: #0F172A; display: flex; align-items: center; gap: 8px; }

/* RELATED POSTS ("POS TERKAIT") */
.related-section { margin-top: 40px; }
.section-heading { font-size: 20px; font-weight: 800; color: #0F172A; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.accent-block { width: 6px; height: 24px; background: var(--color-primary); border-radius: 4px; display: inline-block; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: var(--color-white); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CBD5E1; }
.related-thumb { width: 100%; height: 140px; object-fit: cover; }
.related-body { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.related-date { font-size: 11.5px; color: var(--color-text-muted); margin-bottom: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 600; }
.related-title { font-size: 14.5px; font-weight: 700; color: #0F172A; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.related-link { font-size: 12.5px; font-weight: 700; color: var(--color-primary); margin-top: auto; display: flex; align-items: center; gap: 5px; }

/* RIGHT COLUMN: SIDEBAR WIDGETS */
.sidebar-right { display: flex; flex-direction: column; gap: 25px; }
.widget-card { background: var(--color-white); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.widget-title { font-size: 18px; font-weight: 800; color: #0F172A; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #F1F5F9; display: flex; align-items: center; gap: 10px; }
.widget-title i { color: var(--color-primary); }
.popular-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.popular-item { display: flex; gap: 14px; align-items: center; }
.popular-thumb { width: 75px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.popular-info h6 { font-size: 13.5px; font-weight: 700; color: #0F172A; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.popular-info h6:hover { color: var(--color-primary); }
.popular-info .pop-meta { font-size: 11px; color: var(--color-text-muted); display: flex; align-items: center; gap: 8px; }

/* BANNER WIDGET */
.banner-widget { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); color: var(--color-white); text-align: center; border-radius: 16px; padding: 30px 20px; border: none; }
.banner-widget i { font-size: 40px; color: #60A5FA; margin-bottom: 15px; }
.banner-widget h4 { font-size: 18px; margin-bottom: 10px; }
.banner-widget p { font-size: 13px; color: #94A3B8; margin-bottom: 20px; line-height: 1.5; }
.banner-btn { display: inline-block; background: #3B82F6; color: var(--color-white); font-weight: 700; font-size: 13px; padding: 10px 20px; border-radius: 8px; transition: var(--transition); }
.banner-btn:hover { background: #2563EB; transform: scale(1.03); }

/* FOOTER (TIRU PERSIS INDEX.PHP) */
footer { background: linear-gradient(135deg, #1F2937 0%, #2C3E50 100%); color: #9CA3AF; padding: 80px 5% 40px; border-top: 1px solid rgba(107, 155, 209, 0.1); margin-top: 60px; width: 100%; }
.footer-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1000px; margin: 0 auto 60px; text-align: left; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; color: var(--color-white); margin-bottom: 20px; }
.footer-brand img { height: 40px !important; max-height: 40px !important; width: auto !important; max-width: 40px !important; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand span { background: linear-gradient(135deg, #6B9BD1, #5BB3A0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer-col p { font-size: 14px; line-height: 1.8; color: #9CA3AF; font-weight: 400; }
.footer-col h4 { color: var(--color-white); font-size: 16px; font-weight: 700; margin-bottom: 22px; letter-spacing: 0.3px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 14px; display: flex; align-items: flex-start; gap: 12px; font-size: 14px; }
.footer-col ul li i { color: #6B9BD1; margin-top: 3px; font-size: 12px; flex-shrink: 0; }
.footer-col ul li a { color: #9CA3AF; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--color-white); transform: translateX(4px); }
.link-penulis { color: #6B9BD1 !important; font-weight: 600; opacity: 0.8; }
.link-penulis:hover { opacity: 1; color: var(--color-white) !important; }
.footer-bottom { text-align: center; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 13px; color: #6B7280; font-weight: 400; letter-spacing: 0.3px; }

/* RESPONSIVE MEDIA QUERIES (MOBILE/TABLET MODE) */
@media (max-width: 1024px) {
    body { overflow: auto; height: auto; }
    .main-container { display: flex; flex-direction: column; height: auto; margin-top: 75px; gap: 30px; padding: 20px 20px; }
    .left-scroll-pane, .right-scroll-pane { height: auto; overflow-y: visible; padding-right: 0; padding-bottom: 0; width: 100%; position: static; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-wrapper { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand { justify-content: center; }
    .footer-col ul { display: inline-block; text-align: left; }
}

@media (max-width: 768px) {
    .nav-brand { font-size: 18px; }
    .nav-brand img { height: 32px; max-width: 38px; }
    .article-box { padding: 20px; border-radius: 12px; }
    .article-title { font-size: 24px; margin-bottom: 18px; }
    .author-meta-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .author-meta-row > div { width: 100%; display: flex; justify-content: space-between; align-items: center; }
    .article-thumb { max-height: 260px; margin-bottom: 20px; }
    .article-content { font-size: 15px; }
    .related-grid { grid-template-columns: 1fr; }
    .bottom-share-bar { flex-direction: column; text-align: center; }
    footer { padding: 60px 5% 30px; }
    
    /* MODIFIKASI TIM AHLI: Sembunyikan teks ke Beranda pada HP agar logo tidak ketindih */
    .hide-on-mobile { display: none; }
}