/* =========================
   RESET
========================= */

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

/* =========================
   BODY
========================= */

body {
    font-family: Arial, sans-serif;
}

/* =========================
   AUTH
========================= */

.auth-page {
    min-height: 100vh;
    background: #f3f6fb;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(7, 28, 59, .12);
}

.auth-logo {
    width: 68px;
    display: block;
    margin: 0 auto 18px;
}

.auth-card h2 {
    color: #071c3b;
    font-size: 24px;
    text-align: center;
    margin-bottom: 10px;
}

.auth-card p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 7px;
}

.form-group input {
    width: 100%;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #071c3b;
    box-shadow: 0 0 0 3px rgba(7, 28, 59, .12);
}

.auth-card button {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: #071c3b;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.auth-card button:hover {
    background: #0b2b59;
}

.auth-card a {
    color: #071c3b;
    font-weight: 700;
    text-decoration: none;
}

.alert-error,
.alert-success,
.status-box {
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 16px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success,
.status-1 {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-0 {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-2,
.status-3 {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.dashboard-card {
    max-width: 520px;
}

.account-summary {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 18px;
}

.account-summary div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    padding: 13px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.account-summary div:last-child {
    border-bottom: 0;
}

.account-summary span {
    color: #6b7280;
    font-size: 14px;
}

.account-summary strong {
    color: #111827;
    font-size: 14px;
}

.auth-secondary-link {
    display: block;
    text-align: center;
}

.dashboard-shell {
    min-height: 100vh;
    padding: 32px 16px;
}

.dashboard-panel {
    width: min(1120px, 100%);
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(7, 28, 59, .12);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.dashboard-header h2 {
    color: #071c3b;
    font-size: 26px;
    margin-bottom: 6px;
}

.dashboard-header p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
    text-align: left;
}

.dashboard-panel .auth-logo {
    margin-left: 0;
    margin-right: 0;
}

.dashboard-panel .account-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid #e5e7eb;
}

.dashboard-panel .account-summary div {
    display: block;
    border-bottom: 0;
    border-right: 1px solid #e5e7eb;
}

.dashboard-panel .account-summary div:last-child {
    border-right: 0;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.module-card {
    min-height: 128px;
    display: block;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    background: #fff;
    transition: .2s;
}

.module-card:hover {
    border-color: #071c3b;
    box-shadow: 0 10px 22px rgba(7, 28, 59, .12);
    transform: translateY(-2px);
}

.module-card span {
    display: block;
    color: #071c3b;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 9px;
}

.module-card p {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    margin-bottom: 0;
}

.module-card.is-locked {
    background: #f9fafb;
    opacity: .55;
    cursor: not-allowed;
}

.module-card.is-locked:hover {
    border-color: #dbe2ea;
    box-shadow: none;
    transform: none;
}

/* ── Module Card Featured (Simpanan, dll.) ───────────────────────────── */
.module-card--featured {
    border-color: #22c55e;
    border-width: 2px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%);
    position: relative;
    overflow: hidden;
}

.module-card--featured:hover {
    border-color: #16a34a;
    box-shadow: 0 10px 28px rgba(34, 197, 94, .18);
    transform: translateY(-2px);
}

.module-card--featured span {
    color: #15803d;
}

.module-badge {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 99px;
    letter-spacing: .04em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

@media(max-width: 920px) {
    .dashboard-panel .account-summary,
    .module-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 640px) {
    .dashboard-header {
        display: block;
    }

    .dashboard-header .auth-secondary-link {
        text-align: left;
        margin-top: 12px;
    }

    .dashboard-panel .account-summary,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-panel .account-summary div {
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }
}

/* =========================
   GLOBAL CONTAINER
========================= */

:root {
    --site-width: 1500px;
}

.site-container {
    width:var(--site-width);
    margin: 0 auto;
}

.content-area {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
}

.hero-area {
    flex: 1;
}

.sidebar-area {
    width: 380px;
    flex-shrink: 0;
}


/* =========================
   TOPBAR
========================= */

.topbar {

    background: #071c3b;
    color: white;
    font-size: 13px;
    height: 50px;
}

.topbar .site-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-item {
    display: flex;
    align-items: center;
    margin-top: 5px;
    gap: 10px;
}

.topbar-item i {
    font-size: 15px;
    opacity: 0.7;
    margin-top: -1px;
}

.clock-icon {

    display: flex;
    align-items: center;
    font-size: 18px;
    margin-top: -10px;
}

.separator {

    margin: 0 12px;
    opacity: 0.5;
}


/* =========================
   TABLET RESPONSIVE
========================= */

@media (max-width: 1024px) {

    .topbar-wrapper {

        flex-direction: column;

        align-items: center;

        gap: 10px;
    }

    .topbar-left,
    .topbar-right {

        justify-content: center;

        text-align: center;
    }

}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

    .topbar {

        font-size: 12px;

        padding: 10px 0;
    }

    .topbar-left {

        flex-wrap: wrap;

        justify-content: center;

        text-align: center;
    }

    .separator {

        margin: 0 8px;
    }

}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

    .topbar {

        font-size: 11px;

        padding: 8px 0;
    }

    .container {

        width: 94%;
    }

}

/* =========================
   NAVBAR
========================= */

.navbar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: 0.3s ease;
}

/* SHADOW WHEN SCROLL */

.navbar.scrolled {

    box-shadow:
    0 4px 12px rgba(0,0,0,0.08);
}

.navbar .site-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.navbar-logo img {
    width: 60px;
    height: auto;
}


/* =========================
   Navbar LOGO TEXT
========================= */

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 700;
    color: #071c3b;
    line-height: 1.1;
    margin-bottom: 4px;
}

.logo-text span {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.2;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navbar-menu a {
    text-decoration: none;
    color: #071c3b;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
}

.navbar-menu a:hover {

    color: #15803d;
}


/* =========================
   HAMBURGER
========================= */

.hamburger {

    display: none;

    font-size: 24px;

    cursor: pointer;

    color: #071c3b;
}

/* =========================
   TABLET & MOBILE
========================= */

@media (max-width: 992px) {

    .hamburger {
        display: block;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 18px;
        border-bottom: 1px solid #e5e7eb;
        display: none;
    }

    .navbar-menu.active {
        display: flex;
    }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .navbar-logo img {
        width: 50px;
    }

    .logo-text h1 {
        font-size: 17px;
    }

    .logo-text span {
        font-size: 12px;
    }

}


/* =========================
   LOGIN BUTTON
========================= */

.login-button {

    background: #15803d;
    color: white !important;
    padding: 10px 18px;
    border-radius: 8px;
    transition: 0.3s;
    font-size: 14px !important;
}

.login-button:hover {

    background: #166534;
}


/* =========================
   HERO
========================= */

.hero-image{
    height:450px;
    object-fit:cover;
}

.hero-title{
    font-size:10;
    font-weight:700;
    line-height:1.3;
}

@media(max-width:768px){

    .hero-image{
        height:250px;
    }

    .hero-title{
        font-size:1.5rem;
    }

}


/* ==========================
   SIDEBAR
========================== */

.sidebar{
    height: 100%;
}

.sidebar-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:20px;
    margin-bottom:10px;
    min-height:10px;
}

.sidebar-card h3{
    font-size:15px;
    font-weight:700;
    border-bottom:2px solid #15803d;
    padding-bottom:10px;
    margin-bottom:15px;
    border-left:4px solid #15803d;
    padding-left:12px;
}

.sidebar-card p{

    font-size:15px;
    margin-bottom:5px;

}

.sidebar-list{
    list-style:none;
    padding:0;
    margin:0;
    font-size:15px;
}

.sidebar-list li{
    margin-bottom:10px;
}

.sidebar-list li:last-child{
    margin-bottom:0;
}

.sidebar-list a{
    text-decoration:none;
    color:#374151;
    transition:0.3s;
}

.sidebar-list a:hover{
    color:#15803d;
}


/* ==========================
   ARTICLE CARD
========================== */

.article-card{
    display:flex;
    gap:20px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:10px;
    overflow:hidden;
    margin-bottom:25px;
    transition:0.3s;
}

.article-card:hover{
    box-shadow:0 4px 15px rgba(0,0,0,0.08);
}

.article-image{
    width:280px;
    flex-shrink:0;
}

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

.article-content{
    padding:20px;
}

.article-category{

    display:inline-block;

    background:#15803d;

    color:#fff;

    padding:4px 10px;

    border-radius:5px;

    font-size:12px;

    margin-bottom:10px;
}

.article-title{

    margin-bottom:10px;
}

.article-title a{

    text-decoration:none;

    color:#071c3b;
}

.article-title a:hover{

    color:#15803d;
}

.article-date{

    color:#6b7280;

    font-size:13px;

    margin-bottom:10px;
}

.article-excerpt{

    margin-bottom:15px;

    color:#4b5563;
}

.read-more{

    text-decoration:none;

    color:#15803d;

    font-weight:600;
}

.read-more:hover{

    text-decoration:underline;
}

@media(max-width:768px){

    .article-card{

        flex-direction:column;
    }

    .article-image{

        width:100%;

        height:220px;
    }

}

/* ==========================
   NEWS LIST
========================== */

.news-list{

    display:flex;

    flex-direction:column;

    gap:20px;
}

.news-item{

    display:flex;

    gap:20px;

    background:#fff;

    border-radius:12px;

    overflow:hidden;

    border:1px solid #e5e7eb;

    padding:15px;
    transition: .3s ease;
}

.news-item:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.news-thumb{

    width:220px;

    flex-shrink:0;
}

.news-thumb img{

    width:100%;

    height:140px;

    object-fit:cover;

    border-radius:8px;
}

.news-info{
    flex:1;
}

.news-info h3{
    color:#071c3b;
    margin:10px 0;
    margin-bottom:10px;
    font-size:20px;
}

.news-info h3 a{
    text-decoration:none;
    color:#071c3b;
}

.news-info h3 a:hover{
    color:#15803d;
}

.news-info p{
    color:#4b5563;
    line-height:1.8;
    margin-bottom:15px;
}

.news-date{
    color:#6b7280;
    font-size:13px;
    margin-bottom:12px;
}

.read-more{
    color:#15803d;
    font-weight:600;
    text-decoration:none;
}

.news-category{
    display:inline-block;
    background:#15803d;
    color:white;
    padding:4px 10px;
    border-radius:6px;
    font-size:12px;
    margin-bottom:12px;
}


/* =========================
   LAYOUT
========================= */

@media(max-width:768px){
    .news-item{
        flex-direction:column;
    }
    .news-thumb{
        width:100%;
    }
    .news-thumb img{
        height:220px;
    }
}

/* HERO CARD */

.hero-card{
    position:relative;
    overflow:hidden;
    border-radius:15px;
    height:380px;
    margin-bottom: 10px;
}

.hero-image{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:
    linear-gradient(
        90deg,
        rgba(7,28,59,.85) 0%,
        rgba(7,28,59,.55) 40%,
        rgba(7,28,59,.15) 100%
    );
}

.hero-content{
    position:absolute;
    left:50px;
    bottom:50px;
    max-width:350px;
    z-index:2;
    color:white;
}

.hero-category{
    display:inline-block;
    background:#4f46e5;
    color:white;
    padding:6px 14px;
    border-radius:6px;
    font-size:12px;
    margin-bottom:25px;
}

.hero-title{
    font-size:25px;
    font-weight:700;
    line-height:1.15;
    margin-bottom:15px;
    color:white;
}

.hero-excerpt{
    line-height:1.4;
    font-size: 14px;
    margin-bottom:20px;
}

.hero-button{
    display:inline-block;
    background:orange;
    color:#071c3b;
    padding:8px 18px;
    border-radius:8px;
    text-decoration:none;
    font-size:12px;
    font-weight:600;
}

.hero-button:hover{
    background:#d97706;
}

/* ==========================
   HERO MOBILE
========================== */

@media (max-width:768px){

    .hero-card{
        height:280px;
        border-radius:12px;
    }

    .hero-content{
        left:20px;
        right:20px;
        bottom:20px;
        max-width:none;
    }

    .hero-category{
        font-size:11px;
        padding:4px 10px;
        margin-bottom:10px;
    }

    .hero-title{
        font-size:22px;
        line-height:1.25;
        margin-bottom:10px;
    }

    .hero-excerpt{
        display:none;
    }

    .hero-button{
        font-size:13px;
        padding:7px 14px;
    }
}


/* NEWS SECTION */

.news-section{
    margin-top:50px;
}

.section-title{
    font-size:32px;
    font-weight:700;
    color:#071c3b;
    margin-bottom:25px;
}


/* ==========================
   DAKWAH BANNER
========================== */

.dakwah-section{
    margin-top:15px;
    margin-bottom:30px;
}

.dakwah-card{
    background-image:
        url('../images/dakwah-masjid20.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 240px;
    border-radius: 16px;
    padding: 20px 30px;
    position: relative;
    display: grid;
    grid-template-columns: 
        55%
        45%;
    align-items: center;
    gap: 50px;
}

.dakwah-left{
    flex:1;
    padding-left: 250px;
    text-align:left;
    position: relative;
    right: -15px;
    max-width: 2000px;
}

.dakwah-left h3{
    color:#071c3b;
    margin-bottom:12px;
    font-size:22px;
}

.dakwah-left p{
    color:#4b5563;
    line-height:1.4;
    margin-bottom:10px;
    margin-right: 0 !important;
}

.dakwah-right{
    flex:1;
    text-align:center;
    font-size:36px;
    line-height:1.7;
    color:#15803d;
    font-family:'Traditional Arabic', serif;
    border-left: 1px solid #ddd;
    padding-left: 25px;
    padding-right: 75px;
    position: relative;
    top: -15px;
}

.dakwah-badge{
    display:inline-block;
    background:#15803d;
    color:white;
    padding:5px 12px;
    border-radius:6px;
    font-size:12px;
    margin-top:0px;
    margin-bottom:15px;
    position: relative;
    top: 5px;
}

.dakwah-image img{
    width:90%;
    height:auto;
    object-fit:cover;
    border-radius:12px;
}

.dakwah-button{
    font-size:12px;
    display:inline-block;
    margin-top:10px;
    background:#15803d;
    color:white;
    padding:6px 14px;
    border-radius:8px;
    text-decoration:none;
    position: relative;
    top: 10px;
    bottom: 8px;
}

.dakwah-hero {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
}

.dakwah-hero img {
    width: 90%;
    height: auto;
    object-fit: cover;
    display: block;
}

.arabic-text{
    direction: rtl;
    max-width: 100%;
    overflow-wrap: break-word;
    font-size:22px;
    line-height:1.2;
    color:#15803d;
    text-align:center;
    margin-bottom:15px;
}

.translation{
    font-size:14px;
    line-height:1.3;
    color:#4b5563;
    text-align:center;
}

.reference{
    margin-top:3px;
    font-size:14px;
    font-style:italic;
    color:#6b7280;
}

@media(max-width:768px){

    .dakwah-card{

        flex-direction:column;

        text-align:center;
    }

    .dakwah-right{

        text-align:center;

        font-size:26px;
    }

}

/* ==========================
   FOOTER
========================== */

.footer{

    background:#071c3b;

    /*color:white;*/

    margin-top:30px;
}

.footer-grid{

    display:grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr;

    gap:40px;

    padding:30px 0;
}

.footer-logo{

    width:70px;

    margin-bottom:15px;
}

.footer-column h3{
    font-size: 15px;
    margin-bottom:10px;
    color:#fbbf24;
    
}

.footer-column h4{

    font-size: 16px;
    margin-bottom:15px;
    color:#fbbf24;
}

.footer-column p{

    line-height:1.8;
    font-size: 12px;
    opacity:.9;
    color: white;
}

.footer-column ul{
    font-size: 12px;
    list-style:none;
    padding:0;
}

.footer-column li{
    margin-bottom:10px;
}

.footer-column a{
    color:white;
    text-decoration:none;
    opacity:.9;
    transition:.3s;
}

.footer-column a:hover{
    color:#fbbf24;
}

.footer-bottom{

    color: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(255,255,255,.2);
    text-align:center;
    padding:20px 0;
    font-size:16px;
    opacity:.8;
    /*background:#0f5f2c; */
    /*background:#111827;*/
    /*background:#1f2937;*/
    /*background:#041225;*/
    /*color:#fff;*/
    /*background:#111827;*/
    /*background:#5a1e1e; /*Merah Gelap*/
    background:#4a1010; /*Burgundy 1*/
    /*background:#521515; /*Burgundy 2*/
    /*background:#651818; /*Red Wine*/
    /*background:#071c3b; /*Biru gelap 1*/
    /*background:#5b1b1b; /*Biru gelap 2*/
    text-decoration-color: #a7f3d0;    
}

/* MOBILE */

@media(max-width:768px){

    .footer-grid{
        grid-template-columns:1fr;
        gap:30px;
        padding:40px 0;
    }
}

.footer-about{
    max-width:320px;
}

.footer-brand{
    display:flex;
    align-items:flex-start;
    gap:15px;
    margin-bottom:15px;
    color:#fbbf24;
}

.footer-brand img{
    width:55px;
    height:auto;
}

.footer-brand h3{
    font-size:15px;
    color:#fbbf24 !important;
    font-weight:700;
    margin-bottom:4px;
    /*color:#fbbf24;*/
    /*color:#071c3b;*/
}

.footer-brand p{
    font-size:12px;
    line-height:1.4;
    color:#4b5563;
}

.footer-description{
    font-size:12px;
    line-height:1.7;
    color:#374151;
    margin-bottom:20px;
}

.footer-social{
    display:flex;
    gap:22px;
}

.footer-social a{
    color:#071c3b;
    font-size:16px;
    transition:.3s;
}

.footer-social a:hover{
    /*color:#4f46e5;*/
    color:#fbbf24;
    transform: translateY(-2px);
}

/* KOLOM 1 */

.footer-about h3{
    color:#fff;
}

.footer-about p{
    color:#fff;
}

.footer-about a{
    color:#fff;
}

.footer-about i{
    color:#fff;
}


/*---------------
 Detail Ceramah
----------------*/

.ceramah-detail
.ceramah-title
.ceramah-meta
.ceramah-banner
.ceramah-content
.ceramah-reference
.reference-source
/* =========================
   HOMEPAGE V2
========================= */

body.home-page{
    background:#f3f6fb;
}

.home-page .site-container{
    width:min(var(--site-width), calc(100% - 24px));
}

.topbar-home{
    background:#071c3b;
    color:#fff;
    height:34px;
}

.topbar-home .topbar-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    height:100%;
    font-size:14px;
}

.topbar-link,
.topbar-social{
    color:#fff;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:14px;
}

.topbar-right{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
}

.topbar-social{
    width:30px;
    height:30px;
    justify-content:center;
    border-radius:999px;
    background:rgba(255,255,255,.12);
}

.navbar-home .navbar-inner{
    display:flex;
    align-items:center;
    gap:20px;
}

.navbar-home .navbar-logo{
    flex:0 0 auto;
    order:1;
}

.navbar-actions{
    display:flex;
    align-items:center;
    gap:12px;
    margin-left:auto;
    flex:0 0 auto;
    order:3;
}

.navbar-search{
    width:44px;
    height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    border:1px solid #dbe2ea;
    background:#fff;
    color:#071c3b;
    text-decoration:none;
    box-shadow:0 6px 16px rgba(7,28,59,.06);
    transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}

.navbar-search:hover{
    transform:translateY(-1px);
    border-color:#c7d2fe;
    color:#4f46e5;
    box-shadow:0 10px 20px rgba(7,28,59,.10);
}

.login-button-home{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:#4f46e5;
    color:#fff !important;
    padding:0 18px;
    min-height:44px;
    border-radius:12px;
    box-shadow:0 10px 22px rgba(79,70,229,.22);
    transition:transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.login-button-home:hover{
    transform:translateY(-1px);
    background:#4338ca;
    box-shadow:0 14px 28px rgba(79,70,229,.28);
}

.navbar-menu-home{
    flex:1 1 auto;
    justify-content:center;
    min-width:0;
    order:2;
    gap:34px;
}

.navbar-menu-home a{
    white-space:nowrap;
    position:relative;
    padding:4px 0 12px;
    transition:color .22s ease, transform .22s ease;
}

.navbar-menu-home a::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:2px;
    background:#4f46e5;
    transform:scaleX(0);
    transform-origin:left center;
    transition:transform .22s ease;
}

.navbar-menu-home a:hover,
.navbar-menu-home a.is-active{
    color:#4f46e5;
    transform:translateY(-1px);
}

.navbar-menu-home a:hover::after,
.navbar-menu-home a.is-active::after{
    transform:scaleX(1);
}

.navbar-home .hamburger{
    flex:0 0 auto;
    order:4;
}

.navbar-menu-home a[href^="#"]{
    scroll-behavior:smooth;
}

.home-shell{
    padding:22px 0 56px;
}

.home-layout{
    display:grid;
    --homepage-hero-height:430px;
    grid-template-columns:minmax(0,1fr) 392px;
    gap:14px;
    align-items:start;
}

.home-main,
.home-sidebar{
    min-width:0;
}

.home-main{
    display:grid;
    gap:14px;
}

.hero-surface,
.home-panel,
.sidebar-panel{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:20px;
    box-shadow:0 10px 24px rgba(7,28,59,.06);
}

.detail-hero-panel{
    padding:24px;
}

.detail-breadcrumbs{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin-bottom:14px;
    color:#64748b;
    font-size:13px;
}

.detail-breadcrumbs a{
    color:#4f46e5;
    text-decoration:none;
    font-weight:700;
}

.detail-grid{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 320px;
    gap:14px;
}

.detail-main{
    display:grid;
    gap:14px;
}

.detail-hero{
    display:grid;
    grid-template-columns:minmax(0, 1.08fr) minmax(280px, .92fr);
    gap:22px;
    align-items:center;
}

.detail-hero-media{
    min-height:320px;
    border-radius:18px;
    overflow:hidden;
    background:#f8fafc;
}

.detail-hero-media img{
    display:block;
    width:100%;
    height:100%;
    min-height:320px;
    object-fit:cover;
}

.detail-hero-copy h1{
    margin:12px 0 12px;
    font-size:40px;
    line-height:1.08;
    color:#071c3b;
}

.detail-title{
    margin:12px 0 10px;
    font-size:36px;
    line-height:1.12;
    color:#071c3b;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.detail-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:14px;
    color:#64748b;
    font-size:13px;
}

.detail-meta span{
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.detail-hero-copy p{
    margin:0;
    color:#475569;
    line-height:1.75;
}

.detail-featured-image{
    margin-top:16px;
    border-radius:18px;
    overflow:hidden;
    background:#f8fafc;
}

/* Featured image in detail */
.detail-featured-image img {
    display: block;
    width: 100% !important;
    height: 300px !important;
    max-height: 300px !important;
    object-fit: cover !important;
}

.detail-lead{
    margin-top:16px;
    color:#334155;
    line-height:1.8;
    font-size:16px;
}

.detail-layout{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 320px;
    gap:14px;
    margin-top:14px;
    align-items:start;
}

.detail-content-panel{
    padding:24px;
}

.detail-content{
    color:#334155;
    line-height:1.9;
    font-size:16px;
    text-align: justify !important;
}

.detail-content p{
    margin:0 0 16px;
    text-align: justify !important;
}

.detail-share{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:14px;
    align-items:center;
    margin-top:20px;
    padding-top:18px;
    border-top:1px solid #e5e7eb;
}

.detail-share span{
    font-weight:700;
    color:#071c3b;
}

.detail-share-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.detail-share-actions a{
    width:38px;
    height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    border:1px solid #dbe2ea;
    color:#4f46e5;
    background:#fff;
    text-decoration:none;
}

.detail-navcards{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:12px;
    margin-top:18px;
}

.detail-navcard{
    display:block;
    padding:14px;
    border-radius:16px;
    border:1px solid #e5e7eb;
    background:#fff;
    color:#071c3b;
    text-decoration:none;
    box-shadow:0 10px 22px rgba(7,28,59,.05);
}

.detail-navcard span{
    display:block;
    font-size:12px;
    color:#64748b;
    margin-bottom:6px;
}

.detail-navcard strong{
    display:block;
    line-height:1.5;
}

.related-panel{
    padding:24px;
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:12px;
}

.related-card{
    display:block;
    border-radius:16px;
    overflow:hidden;
    border:1px solid #e5e7eb;
    background:#fff;
    text-decoration:none;
    color:#071c3b;
    box-shadow:0 10px 22px rgba(7,28,59,.05);
}

.related-card img{
    width:100%;
    height:130px;
    object-fit:cover;
    display:block;
}

.related-card div{
    padding:12px;
}

.related-card span{
    display:inline-block;
    font-size:11px;
    color:#4f46e5;
    font-weight:700;
    margin-bottom:8px;
}

.related-card strong{
    display:block;
    line-height:1.45;
    margin-bottom:6px;
}

.related-card p{
    margin:0;
    color:#64748b;
    font-size:13px;
    line-height:1.5;
}

.detail-stat-panel{
    padding:20px;
}

.detail-stat-grid{
    display:grid;
    gap:10px;
}

.detail-stat-grid div{
    padding:14px;
    border-radius:14px;
    border:1px solid #e5e7eb;
    background:#f8fbff;
}

.detail-stat-grid span{
    display:block;
    font-size:11px;
    text-transform:uppercase;
    color:#64748b;
    margin-bottom:4px;
}

.detail-stat-grid strong{
    color:#071c3b;
    font-size:15px;
    line-height:1.4;
}

.detail-sidebar .sidebar-panel {
    padding: 20px;
    margin-bottom: 24px;
}

.detail-sidebar .mini-list{
    gap:10px;
}

.detail-sidebar .mini-list a{
    display:grid;
    gap:4px;
    text-decoration:none;
    padding:12px;
    border-radius:14px;
    border:1px solid #e5e7eb;
    background:#fff;
    color:#071c3b;
}

.detail-sidebar .mini-list a span{
    font-size:12px;
    color:#64748b;
}

.home-hero{
    position:relative;
    /* min-height:var(--homepage-hero-height); */
    /* height:var(--homepage-hero-height);
    /* height:100%; */
    height:430px;
    overflow:hidden; 
}

.home-hero-media,
.home-hero-overlay,
.home-hero-content{
    position:absolute;
    inset:0;
}

.home-hero-media{
    background-size:cover;
    background-position:center;
    transform:scale(1.02);
    animation:hero-media-rise 900ms ease-out both;
}

.home-hero-overlay{
    background:linear-gradient(90deg, rgba(7,28,59,.92) 0%, rgba(7,28,59,.66) 42%, rgba(7,28,59,.18) 100%);
}

.home-hero-content{
    z-index:2;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:36px 38px;
    max-width:640px;
    color:#fff;
    animation:hero-copy-rise 700ms ease-out 80ms both;
}

.hero-kicker,
.section-kicker,
.notice-tag{
    display:inline-flex;
    align-items:center;
    width:fit-content;
    padding:6px 12px;
    border-radius:999px;
    background:#4f46e5;
    color:#fff;
    font-size:12px;
    font-weight:700;
    letter-spacing:0;
}

.home-hero h1{
    margin:12px 0 12px;
    font-size:42px;
    line-height:1.08;
    letter-spacing:0;
    animation:hero-text-rise 700ms ease-out 120ms both;
}

.home-hero p{
    margin:0;
    max-width:500px;
    font-size:15px;
    line-height:1.65;
    color:rgba(255,255,255,.92);
    animation:hero-text-rise 700ms ease-out 160ms both;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:24px;
}

.hero-button,
.section-link,
.inline-link,
.sidebar-cta{
    text-decoration:none;
}

.hero-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:46px;
    padding:0 26px;
    border-radius:999px;
    font-size:14px;
    font-weight:700;
    letter-spacing:0.3px;
    transition:transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
    white-space:nowrap;
}

.hero-button:hover{
    transform:translateY(-3px);
    box-shadow:0 16px 32px rgba(7,28,59,.22);
}

.hero-button.primary{
    background:#ea580c; /* Orange premium */
    color:#fff;
    box-shadow:0 4px 16px rgba(234, 88, 12, 0.3);
}

.hero-button.primary:hover{
    background:#d97706; /* Darker orange on hover */
    color:#fff;
    box-shadow:0 16px 40px rgba(234, 88, 12, 0.45);
}

.hero-button.secondary{
    background:rgba(255,255,255,.12);
    color:#fff;
    border:1px solid rgba(255,255,255,.30);
}

.hero-button.secondary:hover{
    background:rgba(255,255,255,.22);
    border-color:rgba(255,255,255,.5);
}

@keyframes hero-media-rise{
    from{
        opacity:0;
        transform:scale(1.06);
    }
    to{
        opacity:1;
        transform:scale(1.02);
    }
}

@keyframes hero-copy-rise{
    from{
        opacity:0;
        transform:translateY(16px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes hero-text-rise{
    from{
        opacity:0;
        transform:translateY(10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.section-heading{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-end;
    margin-bottom:18px;
}

.section-heading.compact h2{
    font-size:24px;
    line-height:1.2;
    margin-top:6px;
    color:#071c3b;
}

.section-link,
.inline-link{
    color:#4f46e5;
    font-weight:700;
    white-space:nowrap;
}

.ceramah-panel,
.promo-panel,
.notice-panel,
.news-panel{
    padding:24px;
}

/* =========================================================
   PANEL CERAMAH KEISLAMAN
   Ubah nilai pada .strip-panel untuk mengatur seluruh layout.
========================================================= */
.strip-panel{
    /* Ukuran panel dan gambar */
    --ceramah-height:220px;
    --ceramah-radius:20px;
    --ceramah-image-position:left center;

    /* Posisi dan pembagian area teks */
    --ceramah-content-width:min(760px, calc(100% - 260px));
    --ceramah-content-right:18px;
    --ceramah-content-padding:20px 22px 20px 16px;
    --ceramah-columns:minmax(0, 1.04fr) minmax(180px, .96fr);
    --ceramah-column-gap:18px;

    /* Badge dan teks sebelah kiri */
    --ceramah-badge-top:-10px;
    --ceramah-badge-gap:5px;
    --ceramah-label-size:14px;
    --ceramah-title-size:19px;
    --ceramah-description-size:12px;
    --ceramah-description-width:350px;

    /* Ayat dan terjemahan sebelah kanan */
    --ceramah-arabic-size:20px;
    --ceramah-translation-size:12px;
    --ceramah-reference-size:12px;
    --ceramah-arabic-padding-left:18px;
    --ceramah-arabic-padding-top:0;
    --ceramah-arabic-border-left:1px solid rgba(7,28,59,.08);
    --ceramah-arabic-border-top:none;

    position:relative;
    height:var(--ceramah-height);
    min-height:var(--ceramah-height);
    max-height:var(--ceramah-height);
    padding:0;
    overflow:hidden;
    border-radius:var(--ceramah-radius);
}

.strip-panel .strip-media{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    background-size:cover;
    background-position:var(--ceramah-image-position);
    background-repeat:no-repeat;
}

.strip-panel .strip-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, rgba(255,248,232,.02) 0%, rgba(255,248,232,.06) 60%, rgba(255,248,232,.12) 100%);
}

.strip-panel .strip-content{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:var(--ceramah-columns);
    gap:var(--ceramah-column-gap);
    align-items:center;
    justify-content:end;
    width:var(--ceramah-content-width);
    height:100%;
    margin-left:auto;
    margin-right:var(--ceramah-content-right);
    padding:var(--ceramah-content-padding);
    background:transparent;
    text-align:left;
}

.strip-panel .strip-copy{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    min-width:0;
    width:100%;
}

.strip-panel .strip-copy > .section-kicker{
    position:relative;
    top:var(--ceramah-badge-top);
    margin-bottom:var(--ceramah-badge-gap);
}

.strip-panel .strip-copy h2{
    margin:0 0 10px;
    color:#15803d;
    font-size:var(--ceramah-label-size);
    font-weight:700;
    line-height:1.2;
}

.strip-panel .strip-copy h3{
    margin:0 0 7px;
    color:#071c3b;
    font-size:var(--ceramah-title-size);
    line-height:1.12;
    text-shadow:0 1px 2px rgba(255,255,255,.35);
}

.strip-panel .strip-copy p{
    max-width:var(--ceramah-description-width);
    margin:0 0 40px;
    color:#334155;
    font-size:var(--ceramah-description-size);
    line-height:1.45;
    text-shadow:0 1px 2px rgba(255,255,255,.28);
}

.strip-panel .strip-arabic{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
    margin-top:0;
    padding-top:var(--ceramah-arabic-padding-top);
    padding-left:var(--ceramah-arabic-padding-left);
    border-top:var(--ceramah-arabic-border-top);
    border-left:var(--ceramah-arabic-border-left);
    text-align:center;
}

.strip-panel .strip-arabic .arabic-preview{
    margin-bottom:7px;
    font-size:var(--ceramah-arabic-size);
    line-height:1.35;
    text-align:center;
}

.strip-panel .strip-arabic p{
    margin:0 0 8px;
    color:#334155;
    font-size:var(--ceramah-translation-size);
    line-height:1.38;
    text-align:center;
}

.strip-panel .strip-arabic small{
    color:#6b7280;
    font-size:var(--ceramah-reference-size);
    text-align:center;
}

.strip-panel .strip-content .hero-button{
    position: absolute;
    min-height:34px;
    padding:0 30px;
    border-radius:10px;
    font-size:12px;
    bottom: 15px;

    background:#15803d;
    color:#ffffff;
    border:1px solid #15803d;
}

@media (max-width: 992px){
    .strip-panel{
        --ceramah-content-width:calc(100% - 24px);
        --ceramah-content-padding:22px 18px;
        --ceramah-columns:1fr;
        --ceramah-title-size:22px;
        --ceramah-arabic-padding-left:0;
        --ceramah-arabic-padding-top:14px;
        --ceramah-arabic-border-left:none;
        --ceramah-arabic-border-top:1px solid rgba(7,28,59,.08);
    }
}

.ceramah-grid{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:18px;
}

.ceramah-card{
    display:grid;
    grid-template-columns:240px 1fr;
    gap:18px;
    padding:18px;
    border-radius:18px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
}

.ceramah-visual{
    min-height:180px;
    border-radius:14px;
    background-size:cover;
    background-position:left center;
    position:relative;
    overflow:hidden;
}

.ceramah-visual::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(7,28,59,.10) 100%);
}

.ceramah-card h3{
    margin:2px 0 10px;
    font-size:24px;
    color:#071c3b;
}

.ceramah-card p{
    color:#475569;
    line-height:1.7;
    margin-bottom:12px;
}

.ceramah-quote{
    padding:18px;
    border-radius:18px;
    background:#fff8e8;
    border:1px solid #fde68a;
    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:center;
}

.arabic-preview{
    direction:rtl;
    font-size:26px;
    line-height:1.5;
    color:#15803d;
    margin-bottom:12px;
}

.ceramah-quote p{
    color:#334155;
    line-height:1.7;
    margin-bottom:8px;
}

.ceramah-quote small{
    color:#6b7280;
}

.promo-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:14px;
}

.promo-card{
    display:block;
    padding:18px;
    min-height:170px;
    border-radius:18px;
    color:#fff;
    text-decoration:none;
    box-shadow:0 10px 18px rgba(7,28,59,.12);
}

.promo-card span{
    display:inline-flex;
    padding:5px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.18);
    font-size:11px;
    font-weight:700;
    margin-bottom:16px;
}

.promo-card h3{
    font-size:20px;
    line-height:1.15;
    margin-bottom:10px;
}

.promo-card p{
    font-size:14px;
    line-height:1.65;
    margin-bottom:0;
    color:rgba(255,255,255,.9);
}

.promo-blue{ background:linear-gradient(135deg, #143b8f, #1d4ed8); }
.promo-violet{ background:linear-gradient(135deg, #4338ca, #7c3aed); }
.promo-green{ background:linear-gradient(135deg, #0f766e, #059669); }
.promo-amber{ background:linear-gradient(135deg, #c2410c, #f59e0b); }

.notice-banner{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:20px;
    align-items:center;
    padding:20px;
    border-radius:18px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
}

.notice-copy h3{
    font-size:28px;
    line-height:1.15;
    color:#071c3b;
    margin:12px 0 10px;
}

.notice-copy p{
    color:#475569;
    line-height:1.75;
    margin-bottom:14px;
}

.notice-visual img{
    width:100%;
    border-radius:16px;
    aspect-ratio: 16 / 10;
    object-fit:cover;
}

.feature-news-row{
    display:grid;
    grid-template-columns:minmax(0, 1.08fr) minmax(320px, .92fr);
    gap:14px;
    align-items:start;
}

.notice-panel-v2{
    height:100%;
}

.notice-banner-compact{
    gap:14px;
    align-items:center;
    padding:14px;
}

.notice-banner-compact .notice-copy h3{
    font-size:18px;
    line-height:1.2;
    margin:10px 0 8px;
}

.notice-banner-compact .notice-copy p{
    font-size:13px;
    line-height:1.55;
    margin-bottom:10px;
}

.notice-banner-compact .notice-visual img{
    aspect-ratio:4 / 3;
    border-radius:12px;
}

.news-grid-v2{
    display:grid;
    gap:10px;
}

.news-card-v2{
    display:grid;
    grid-template-columns:136px minmax(0, 1fr);
    gap:10px;
    padding:10px;
    border-radius:12px;
    border:1px solid #e5e7eb;
    background:#fff;
    align-items:stretch;
}

.news-card-media{
    width:100%;
    aspect-ratio:16 / 9;
    overflow:hidden;
    border-radius:12px;
    background:#eef2f7;
}

.news-card-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.news-card-body{
    min-width:0;
}

.news-card-topline{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    white-space:nowrap;
}

.news-card-body span,
.news-card-body .news-card-date{
    font-size:10px;
    color:#64748b;
}

.news-card-topline > span:first-child{
    overflow:hidden;
    text-overflow:ellipsis;
}

.news-card-topline .news-card-date{
    flex:0 0 auto;
}

.news-card-topline .inline-link{
    flex:0 0 auto;
    margin-left:auto;
}

.news-card-body h3{
    margin:4px 0 4px;
    font-size:14px;
    line-height:1.15;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.news-card-body h3 a{
    color:#071c3b;
    text-decoration:none;
}

.news-card-body p{
    color:#475569;
    line-height:1.45;
    margin:6px 0 8px;
    font-size:12px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.news-card-body .inline-link{
    font-size:12px;
}

.home-sidebar{
    display:grid;
    gap:16px;
}

.sidebar-promo-stack{
    display:grid;
    grid-template-rows:minmax(0, 1fr);
    gap:14px;
    height:var(--homepage-hero-height);
    align-self:stretch;
}

.sidebar-promo-stack.is-single{
    grid-template-rows:none;
    height:var(--homepage-hero-height);
}

.promo-engine-card{
    min-width:0;
    min-height:0;
    height:100%;
    border:none;
    border-radius:18px;
    background:#fff;
    box-shadow:0 10px 24px rgba(7,28,59,.06);
    overflow:hidden;
    transition:transform .22s ease, box-shadow .22s ease;
}

.promo-engine-card:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 28px rgba(7,28,59,.10);
}

/* .papan-poster-card{
    min-height:360px;
} */

.papan-poster-card{
    height:var(--homepage-hero-height);
    min-height:var(--homepage-hero-height);
    width:100%;
    align-self:start;
}

.papan-poster-card .promo-slide img{
    object-fit:contain;
    object-position:center;
    transform:none;
    animation:none;
}


.promo-slide,
.promo-slide a{
    display:block;
    width:100%;
    height:100%;
}

.promo-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.papan-poster-empty{
    min-height:360px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:10px;
}

.papan-poster-empty h2,
.papan-poster-empty p{
    margin:0;
}

.papan-poster-empty p{
    color:#64748b;
    line-height:1.6;
}

.sidebar-panel{
    padding:20px;
}

.sidebar-preview{
    display:block;
    width:100%;
    padding:0;
    overflow:hidden;
    border:1px solid #e5e7eb;
    border-radius:18px;
    background:#fff;
    box-shadow:0 10px 24px rgba(7,28,59,.06);
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
}

.sidebar-panel h3,
.sidebar-panel h2{
    margin:8px 0 10px;
    color:#071c3b;
}

.sidebar-panel p{
    color:#475569;
    line-height:1.65;
    margin-bottom:16px;
}

.sidebar-cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 14px;
    border-radius:10px;
    font-weight:700;
    background:#4f46e5;
    color:#fff;
}

.promo-banner-top,
.promo-banner-bottom{
    min-height:0;
}

.sidebar-preview:focus-visible{
    outline:3px solid rgba(79,70,229,.35);
    outline-offset:3px;
}

.sidebar-preview .preview-shell{
    position:relative;
    display:block;
    width:100%;
    height:100%;
    overflow:hidden;
    background:#f1f5f9;
}

.sidebar-preview .preview-media{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

.media-modal{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    padding:24px;
    z-index:2000;
}

.media-modal.active{
    display:flex;
}

.media-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(7,28,59,.68);
    backdrop-filter:blur(6px);
}

.media-modal-dialog{
    position:relative;
    z-index:1;
    width:min(960px, 100%);
    background:#fff;
    border-radius:24px;
    box-shadow:0 24px 80px rgba(0,0,0,.28);
    overflow:hidden;
}

.media-modal-close{
    position:absolute;
    top:14px;
    right:14px;
    width:42px;
    height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:none;
    border-radius:999px;
    background:rgba(255,255,255,.9);
    color:#071c3b;
    z-index:2;
}

.media-modal-preview{
    min-height:420px;
    background:#0f172a;
}

.media-modal-placeholder{
    width:100%;
    min-height:420px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.media-modal-placeholder.has-image{
    background:#0f172a;
}

.media-modal-image{
    display:block;
    width:100%;
    max-height:80vh;
    object-fit:contain;
}

/* ═══════════════════════════════════════════════════════
   VISITOR STATISTICS DASHBOARD — Sprint P2.3 MVP
   ═══════════════════════════════════════════════════════ */

/* Panel header (icon + title + period selector) */
.vsd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.vsd-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vsd-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #4f46e5; /* Ungu pekat */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vsd-icon-box i {
    font-size: 22px;
    color: #ffffff; /* Ikon putih di header */
}

.vsd-title {
    font-size: 19px;
    font-weight: 500;
    color: #071c3b;
    line-height: 1.2;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.vsd-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 3px 0 0;
}

.vsd-period-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.vsd-period-wrapper i.fa-calendar-alt {
    position: absolute;
    left: 12px;
    color: #64748b;
    font-size: 14px;
    pointer-events: none;
}

.vsd-period-select {
    padding: 9px 36px 9px 34px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.vsd-period-wrapper::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 14px;
    color: #64748b;
    font-size: 10px;
    pointer-events: none;
}

.vsd-period-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

/* ── Summary Cards Grid ── */
.vsd-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.vsd-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 18px 20px 16px;
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.vsd-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(99,102,241,.06);
}

.vsd-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.vsd-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f3e8ff; /* Soft violet */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vsd-card-icon i {
    font-size: 18px;
    color: #6366f1; /* Purple icon */
}

/* Penyesuaian layout text label */
.vsd-card-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

/* Ikon dekorasi tipis di kanan kartu */
.vsd-card-deco {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    color: #e2e8f0;
    opacity: 0.75;
    pointer-events: none;
}

.vsd-card-number {
    font-size: 32px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.1;
    font-family: 'Outfit', sans-serif;
    margin: 4px 0 10px 0;
}

.vsd-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.vsd-growth {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
}

.vsd-growth.up {
    background: #dcfce7;
    color: #15803d;
}

.vsd-growth.down {
    background: #fee2e2;
    color: #dc2626;
}

.vsd-growth.flat {
    background: #f1f5f9;
    color: #64748b;
}

.vsd-card-compare {
    font-size: 11.5px;
    color: #94a3b8;
}

.vsd-since {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #94a3b8;
}

.vsd-since i {
    font-size: 12px;
    color: #94a3b8;
}

/* ── SVG Line Chart ── */
.vsd-chart-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 20px 22px 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.vsd-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.vsd-chart-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.vsd-chart-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #64748b;
}

.vsd-chart-legend-line-wrapper {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 24px;
    height: 12px;
}

.vsd-chart-legend-line {
    width: 100%;
    height: 2px;
    background: #6366f1;
}

.vsd-chart-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    border: 1.5px solid #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.vsd-chart-today-badge {
    background: #ede9fe;
    color: #6366f1;
    font-size: 11px;
    font-weight: 700;
    padding: 2.5px 9px;
    border-radius: 6px;
}

.vsd-chart-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.vsd-svg-chart {
    width: 100%;
    height: 175px;
    display: block;
    overflow: visible;
}

/* Tooltip SVG chart */
.vsd-svg-tooltip {
    position: absolute;
    background: #1e293b;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease;
    white-space: nowrap;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

.vsd-svg-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e293b;
}

.vsd-svg-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Label hari di bawah chart disembunyikan karena sudah dirender native di dalam SVG */
.vsd-chart-labels {
    display: none;
}

.vsd-chart-day-label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

.vsd-chart-day-label.is-today {
    color: #6366f1;
    font-weight: 800;
}

/* ── Footer Metadata ── */
.vsd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 6px;
}

.vsd-footer-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #94a3b8;
}

.vsd-footer-item i {
    font-size: 10px;
    color: #cbd5e1;
}

/* ── Responsive ── */
@media (max-width: 420px) {
    .vsd-cards {
        grid-template-columns: 1fr;
    }

    .vsd-card-number {
        font-size: 22px;
    }

    .vsd-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Stats boxes old — kept for sidebar.php fallback compatibility */
.stats-boxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
}



.mini-list{
    list-style:none;
    padding:0;
    margin:0;
    display:grid;
    gap:12px;
}

.mini-list li a{
    display:grid;
    gap:4px;
    text-decoration:none;
    padding:12px;
    border-radius:14px;
    border:1px solid #e5e7eb;
    background:#fff;
    color:#071c3b;
}

.mini-list li a span{
    font-size:12px;
    color:#64748b;
}

.quick-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:12px;
}

.quick-card{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px;
    border-radius:14px;
    border:1px solid #e5e7eb;
    background:#fff;
    text-decoration:none;
    color:#071c3b;
}

.quick-card i{
    width:42px;
    height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:#eef2ff;
    color:#4f46e5;
    font-size:18px;
    flex-shrink:0;
}

.quick-card strong,
.quick-card span{
    display:block;
}

.quick-card span{
    color:#64748b;
    font-size:12px;
    margin-top:2px;
}

.message-stream{
    display:grid;
    gap:12px;
    margin-bottom:14px;
}

.message-item{
    display:flex;
    gap:12px;
    padding:12px;
    border-radius:14px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
}

.message-avatar{
    width:42px;
    height:42px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#4f46e5;
    color:#fff;
    font-weight:700;
    flex-shrink:0;
}

.message-meta{
    display:flex;
    justify-content:space-between;
    gap:10px;
    font-size:12px;
    color:#64748b;
    margin-bottom:6px;
}

.message-body p{
    margin:0;
    color:#334155;
    line-height:1.6;
}

.message-form textarea{
    width:100%;
    border:1px solid #dbe2ea;
    border-radius:14px;
    padding:12px 14px;
    resize:vertical;
    min-height:96px;
    font:inherit;
    margin-bottom:12px;
}

.message-form button{
    width:100%;
    min-height:44px;
    border:0;
    border-radius:12px;
    background:#4f46e5;
    color:#fff;
    font-weight:700;
}

.message-locked,
.empty-state{
    padding:14px;
    border-radius:14px;
    background:#f8fafc;
    border:1px dashed #dbe2ea;
    color:#64748b;
    text-align:center;
}

@media (max-width: 1180px){
    .home-layout,
    .detail-grid {
        grid-template-columns:1fr;
    }

    .home-sidebar{
        grid-template-columns:repeat(2, minmax(0,1fr));
    }

    .sidebar-promo-stack{
        grid-column:1 / -1;
        grid-template-columns:1fr;
        grid-template-rows:none;
        height:var(--homepage-hero-height);
    }

    .sidebar-panel.message-panel{
        grid-column:1 / -1;
    }
}

@media (max-width: 992px){
    .feature-news-row{
        grid-template-columns:1fr;
    }

    .topbar-home .topbar-inner,
    .navbar-home .navbar-inner{
        flex-wrap:wrap;
    }

    .navbar-menu-home{
        flex:0 0 100%;
        justify-content:flex-start;
    }

    .navbar-actions{
        order:3;
        width:100%;
        justify-content:flex-end;
        margin-left:0;
    }

    .navbar-menu-home{
        order:4;
        width:100%;
    }

    .home-hero{
        min-height:390px;
    }

    .home-hero-content{
        padding:32px;
    }

    .home-hero h1{
        font-size:34px;
    }

    .sidebar-promo-stack{
        height:auto;
    }

    .promo-engine-card{
        height:auto;
    }

    .papan-poster-card{
        height:320px;
    }

    .ceramah-grid,
    .notice-banner,
    .news-card-v2{
        grid-template-columns:1fr;
    }

    .detail-hero,
    .detail-layout{
        grid-template-columns:1fr;
    }

    .home-sidebar{
        grid-template-columns:1fr;
    }

    .ceramah-banner-inner{
        grid-template-columns:1fr;
        min-height:auto;
        padding:22px;
    }
}

@media (max-width: 768px){
    .feature-news-row{
        grid-template-columns:1fr;
    }

    .home-page .site-container{
        width:calc(100% - 16px);
    }

    .topbar-home{
        height:auto;
        padding:10px 0;
    }

    .topbar-home .topbar-inner{
        align-items:flex-start;
    }

    .topbar-right{
        gap:10px;
    }

    .navbar-home .navbar-inner{
        padding:12px 0;
    }

    .navbar-logo img{
        width:48px;
    }

    .logo-text h1{
        font-size:16px;
    }

    .logo-text span{
        font-size:12px;
    }

    .home-shell{
        padding:16px 0 48px;
    }

    .sidebar-promo-stack{
        grid-template-columns:1fr;
    }

    .home-hero{
        min-height:420px;
    }

    .home-hero-content{
        padding:22px;
    }

    .home-hero h1{
        font-size:30px;
    }

    .hero-actions{
        margin-top:18px;
    }

    .home-panel,
    .sidebar-panel{
        border-radius:18px;
    }

    .papan-poster-card,
    .papan-poster-empty{
        min-height:260px;
    }

    .detail-hero-copy h1{
        font-size:32px;
    }

    .ceramah-panel,
    .promo-panel,
    .notice-panel,
    .news-panel,
    .sidebar-panel{
        padding:18px;
    }

    .promo-grid,
    .quick-grid,
    .stats-boxes{
        grid-template-columns:1fr;
    }

    .strip-image,
    .ceramah-visual,
    .news-card-media{
        aspect-ratio:16 / 9;
    }

    .news-card-v2{
        grid-template-columns:1fr;
    }

    .news-card-body h3{
        font-size:17px;
    }

    .notice-copy h3{
        font-size:22px;
    }

    .section-heading{
        align-items:flex-start;
        flex-direction:column;
    }

    .section-heading.compact h2{
        font-size:22px;
    }
}

@media (max-width: 576px){
    .home-hero{
        min-height:360px;
    }

    .home-hero h1{
        font-size:26px;
    }

    .home-hero p{
        font-size:14px;
    }

    .hero-button{
        width:100%;
    }

    .detail-hero-media,
    .detail-hero-media img{
        min-height:240px;
    }

    .sidebar-cta,
    .login-button-home{
        width:100%;
        justify-content:center;
    }

    .message-meta{
        flex-direction:column;
        align-items:flex-start;
    }
}

/* =============================================================================
   NEWS DETAIL PAGE V2 STYLES
   ============================================================================= */

/* 1. Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(229, 231, 235, 0.5);
    z-index: 9999;
    display: none;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #15803d, #22c55e);
    transition: width 0.1s ease-out;
}

/* 2. Page and Typography Enhancements */
.detail-breadcrumbs {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

.detail-breadcrumbs a {
    color: #15803d;
    text-decoration: none;
    font-weight: 500;
}

.detail-breadcrumbs span {
    margin: 0 8px;
}

.detail-breadcrumbs strong {
    color: #374151;
    font-weight: 600;
}

.detail-hero-panel {
    border-radius: 20px;
    padding: 35px 35px 25px 35px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.hero-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    margin-bottom: 18px;
}

.hero-kicker h1{
    font-size: 113px;
}

.detail-title {
    font-size: 38px;
    font-weight: 800;
    color: #071c3b;
    line-height: 1.25;
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.detail-subtitle {
    font-size: 20px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 22px;
    font-weight: 500;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    color: #6b7280;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.detail-meta-row span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-meta-row i {
    color: #15803d;
}

/* ── Author Inline Badge (bawah judul) ──────────────────────────────── */
.detail-author-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 14px 0 18px;
}

.detail-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99,102,241,.28);
}

.detail-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.detail-author-role {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* ── Author Card Sidebar ─────────────────────────────────────────────── */
.detail-author-card {
    padding: 20px;
}

.dac-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.dac-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(99,102,241,.3);
}

.dac-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dac-name {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.dac-label {
    font-size: 11px;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.dac-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
}

.dac-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.dac-stat-number {
    font-size: 20px;
    font-weight: 0;
    color: #1e293b;
    line-height: 1;
}

.dac-stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.dac-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
    flex-shrink: 0;
}

.dac-star {
    color: #f59e0b;
    font-size: 14px;
}

.dac-star.empty {
    color: #d1d5db;
}

.detail-featured-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Pengaturan tinggi gambar pada page detail berita */

.detail-featured-image img {
    width: 100% !important;
    aspect-ratio: 21 / 9;
    height: 500px !important; /* edit yang ini */
    max-height: 500px !important; /* edit yang ini */
    object-fit: cover !important;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.detail-featured-image img:hover {
    transform: scale(1.02);
}

.image-caption {
    display: none !important;
}

.detail-lead {
    font-size: 18px;
    line-height: 1.7;
    color: #4b5563;
    font-weight: 500;
    border-left: 4px solid #15803d;
    padding-left: 20px;
}

/* 3. Article Content Rendering */
.detail-content-panel {
    border-radius: 20px;
    padding: 35px;
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-top: 20px;
}

.detail-content {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
    text-align: justify !important;
}

.detail-content p {
    margin-bottom: 22px;
    text-align: justify !important;
}

.detail-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #071c3b;
    margin-top: 35px;
    margin-bottom: 18px;
    scroll-margin-top: 100px;
}

.detail-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #071c3b;
    margin-top: 30px;
    margin-bottom: 14px;
    scroll-margin-top: 100px;
}

.detail-content blockquote {
    font-size: 20px;
    font-style: italic;
    color: #15803d;
    border-left: 4px solid #15803d;
    padding: 10px 20px;
    margin: 30px 0;
    background: #f4fbf7;
    border-radius: 0 10px 10px 0;
}

.detail-content ul, 
.detail-content ol {
    margin-bottom: 22px;
    padding-left: 25px;
}

.detail-content li {
    margin-bottom: 8px;
}

.detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 16px;
}

.detail-content th, 
.detail-content td {
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
    text-align: left;
}

.detail-content th {
    background: #f9fafb;
    font-weight: 700;
    color: #071c3b;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

/* Responsive video wrapper */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 25px 0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 4. Dynamic Table of Contents (ToC) */
.toc-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.toc-title {
    font-weight: 700;
    color: #071c3b;
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-item a {
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    transition: color 0.2s ease;
}

.toc-item a:hover {
    color: #15803d;
}

.toc-item.toc-h3 {
    padding-left: 15px;
}

/* Sticky sidebar ToC widget */
.sidebar-toc {
    position: sticky;
    top: 90px;
}

/* 5. Floating & Page Share */
.detail-share-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    margin: 30px 0;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.copy { background: #6b7280; cursor: pointer; }

/* Floating share bar on larger screens */
.floating-share-wrapper {
    position: absolute;
    left: -70px;
    top: 150px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

@media (max-width: 1200px) {
    .floating-share-wrapper {
        display: none;
    }
}

/* 6. Real Previous & Next Navigation */
.detail-navcards-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 35px;
}

.navcard-v2 {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.navcard-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-color: #15803d;
}

.navcard-v2.prev {
    text-align: left;
}

.navcard-v2.next {
    text-align: right;
    flex-direction: row-reverse;
}

.navcard-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.navcard-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.navcard-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #9ca3af;
}

.navcard-title {
    font-size: 14px;
    font-weight: 700;
    color: #071c3b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .detail-navcards-v2 {
        grid-template-columns: 1fr;
    }
}

/* 7. Helpful Voting Widget & Completion Banner */
.completion-banner {
    background: #f4fbf7;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 35px 0 20px 0;
}

.completion-text {
    font-weight: 600;
    color: #065f46;
    margin-bottom: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.voting-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.voting-btn {
    border: 1px solid #15803d;
    background: transparent;
    color: #15803d;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.voting-btn:hover {
    background: #15803d;
    color: #fff;
}

.voting-btn.voted {
    background: #15803d;
    color: white;
    cursor: default;
}

.voting-btn.voted:hover {
    background: #15803d;
    color: white;
}

/* 8. Lightbox Preview */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 9. Copy Link Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    font-weight: 600;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* 10. News Article Keyword Tags */
.badge-tag {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.badge-tag:hover {
    background: #e2e8f0;
    color: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* 10. Print Friendly Optimization */
.print-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #4b5563;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

/* 11. Smartphone Friendly Optimization ─────────────────────────────
   Breakpoint: ≤768px (tablet potrait & smartphone)
───────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* ── Breadcrumb ───────────────────────────────────────────────── */
    .detail-breadcrumbs {
        font-size: 12px;
        margin-bottom: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ── Hero Panel ───────────────────────────────────────────────── */
    .detail-hero-panel {
        padding: 18px 16px 16px 16px !important;
        border-radius: 14px !important;
        margin-bottom: 10px !important;
    }

    .hero-kicker {
        font-size: 11px;
        padding: 4px 10px;
        margin-bottom: 12px;
    }

    .detail-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
        letter-spacing: -0.2px !important;
        margin-bottom: 10px !important;
    }

    .detail-subtitle {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 14px !important;
    }

    /* ── Meta-info row (penulis, tayangan, menit baca) ───────────── */
    .detail-meta-row {
        gap: 10px !important;
        font-size: 12px !important;
        padding-bottom: 14px !important;
        margin-bottom: 16px !important;
    }

    .detail-meta-row span {
        font-size: 12px !important;
        gap: 4px !important;
    }

    /* ── Featured Image ───────────────────────────────────────────── */
    .detail-featured-image {
        border-radius: 10px !important;
        margin-bottom: 20px !important;
        box-shadow: none !important;
    }

    .detail-featured-image img {
        height: 200px !important;
        max-height: 200px !important;
        aspect-ratio: unset !important;
    }

    /* ── Content Panel ────────────────────────────────────────────── */
    .detail-content-panel {
        padding: 16px !important;
        border-radius: 14px !important;
        margin-top: 10px !important;
    }

    /* ── Article Body Typography ──────────────────────────────────── */
    .detail-content {
        font-size: 15px !important;
        line-height: 1.75 !important;
    }

    .detail-content p {
        margin-bottom: 16px !important;
    }

    .detail-content h2 {
        font-size: 19px !important;
        margin-top: 24px !important;
        margin-bottom: 12px !important;
    }

    .detail-content h3 {
        font-size: 16px !important;
        margin-top: 20px !important;
        margin-bottom: 10px !important;
    }

    .detail-content blockquote {
        font-size: 15px !important;
        padding: 10px 14px !important;
        margin: 20px 0 !important;
    }

    .detail-lead {
        font-size: 15px !important;
        padding-left: 14px !important;
    }

    /* ── Table: horizontal scroll supaya tidak overflow ──────────── */
    .detail-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 13px !important;
    }

    .detail-content th,
    .detail-content td {
        padding: 8px 10px !important;
        white-space: nowrap;
    }

    /* ── Table of Contents (Inline Mobile) ────────────────────────── */
    .toc-card {
        padding: 14px !important;
        margin: 16px 0 !important;
    }

    /* ── Inline Share Bar ─────────────────────────────────────────── */
    .detail-share-inline {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 14px 0 !important;
        margin: 20px 0 !important;
    }

    .detail-share-inline .share-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .share-btn {
        width: 44px !important;
        height: 44px !important; /* Lebih besar agar mudah ditekan dengan jari */
        border-radius: 12px !important;
    }

    /* ── Completion Banner & Voting Widget ────────────────────────── */
    .completion-banner {
        padding: 14px !important;
        margin: 20px 0 12px 0 !important;
    }

    .completion-text {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    .voting-widget {
        width: 100%;
        gap: 10px !important;
    }

    .voting-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 12px !important;
        font-size: 13px !important;
    }

    /* ── Prev/Next Navigation Cards ────────────────────────────────── */
    .detail-navcards-v2 {
        grid-template-columns: 1fr !important; /* Stack vertikal di HP */
        gap: 12px !important;
        margin-top: 20px !important;
    }

    .navcard-v2 {
        padding: 12px !important;
        gap: 10px !important;
    }

    .navcard-thumb {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        border-radius: 8px !important;
    }

    .navcard-title {
        font-size: 13px !important;
        -webkit-line-clamp: 2;
    }

    .navcard-label {
        font-size: 10px !important;
    }

    /* ── Sidebar: diposisikan di bawah konten utama pada mobile ── */
    .detail-sidebar {
        margin-top: 35px !important;
        width: 100% !important;
    }

    .detail-sidebar .sidebar-panel {
        padding: 16px !important;
        margin-bottom: 20px !important;
    }
}

/* ── Extra kecil: ≤480px (smartphone portrait kecil) ─────────────── */
@media (max-width: 480px) {

    .detail-title {
        font-size: 19px !important;
    }

    .detail-featured-image img {
        height: 170px !important;
        max-height: 170px !important;
    }

    .detail-content {
        font-size: 14.5px !important;
    }

    .share-btn {
        width: 40px !important;
        height: 40px !important;
    }
}

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    
    .topbar, 
    .navbar, 
    .detail-breadcrumbs, 
    .detail-share-inline, 
    .floating-share-wrapper, 
    .detail-navcards-v2, 
    .completion-banner, 
    .detail-sidebar, 
    .related-panel, 
    .footer,
    .print-btn {
        display: none !important;
    }
    
    .detail-main {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .detail-hero-panel, 
    .detail-content-panel {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}
