/* ==========================================
   EDITORIAL LONG DESCRIPTION STYLE
========================================== */

:root {
    --navy-deep: #001a41;      /* */
    --orange-solid: #ff6b00;   /* */
    --text-body: #334155;
    --bg-card: #ffffff;
    --border-soft: #f1f5f9;

    /* tambahan untuk tombol kuning */
    --yellow-solid: #fbbf24;
    --yellow-hover: #f59e0b;
}

.editorial-description-section {
    padding: 80px 0;
    position: relative;
}

.editorial-container {
    max-width: 900px; /* Lebih ramping agar nyaman dibaca */
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Dekorasi Estetik */
.editorial-bg-accent {
    position: absolute;
    top: -20px;
    left: -40px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--orange-solid) 0%, transparent 70%);
    opacity: 0.05;
    z-index: 0;
}

.editorial-card {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 60px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 30px 60px rgba(0, 26, 65, 0.05);
    position: relative;
    z-index: 1;
}

/* TYPOGRAPHY DIFFERENTIATION */
.editorial-body {
    color: var(--text-body);
    font-size: 1.1rem;
    line-height: 1.9;
}

/* Styling H2 - Bold & Navy with Underline */
.editorial-body h2 {
    font-size: 2rem;
    color: var(--navy-deep);
    font-weight: 900;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.editorial-body h2::before {
    content: "";
    width: 40px;
    height: 4px;
    background: var(--orange-solid); /* */
    display: inline-block;
}

/* Styling H3 - Modern & Sharp */
.editorial-body h3 {
    font-size: 1.5rem;
    color: var(--navy-deep);
    font-weight: 700;
    margin-top: 2.5rem;
    padding-left: 15px;
    border-left: 3px solid var(--navy-deep);
}

/* Styling Paragraph */
.editorial-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* COLLAPSED & TOGGLE */
.editorial-card.is-collapsed {
    max-height: 500px;
    overflow: hidden;
}

.editorial-expand-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-card) 40%, transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    z-index: 10;
}

.btn-editorial-toggle {
    background: var(--navy-deep);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 26, 65, 0.2);
    transition: 0.3s;
}

.btn-editorial-toggle:hover {
    background: var(--orange-solid); /* */
    transform: translateY(-3px);
}

/* ==========================================
   PERBAIKAN 3 POIN (tanpa ubah desain lain)
========================================== */

/* (1) Preview collapsed: tampilkan minimal 2 paragraf / 5 baris */
.editorial-card.is-collapsed #long-body { display: none; }
.editorial-card.is-collapsed #long-preview { display: block; }

.editorial-card:not(.is-collapsed) #long-body { display: block; }
.editorial-card:not(.is-collapsed) #long-preview { display: none; }

/* (2) Akhir paragraf/text terlihat jelas */
.editorial-preview {
    padding-bottom: 28px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-soft);
}

.preview-ellipsis {
    margin-top: 8px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(0, 26, 65, 0.55);
}

/* (3) Tombol jadi orange + hover tidak bergerak */
.btn-editorial-toggle {
    background: var(--orange-solid);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 26, 65, 0.18);
    transition: background-color 0.2s ease, box-shadow 0.2s ease; /* tanpa transform */
}

.btn-editorial-toggle:hover {
    background: #e65f00;
    transform: none; /* hilangkan gerak */
}

/* TOC FLOATING STYLE */
#toc-drawer {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 99;
}

#toc-toggle {
    background: var(--bg-card);
    border: 2px solid var(--navy-deep);
    color: var(--navy-deep);
    padding: 15px 10px;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#toc-toggle span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.toc-panel {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

#toc-drawer.toc-open .toc-panel {
    opacity: 1;
    visibility: visible;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .editorial-card { padding: 30px 20px; }
    .editorial-body h2 { font-size: 1.6rem; }
    #toc-drawer { display: none; }
}
