/* ========================= */
/* LAYOUT */
/* ========================= */

.portal-container {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
}


.single-article {
    background: #fff;
    padding: var(--space-xl);
    border-radius: 5px;
}

/* ========================= */
/* TITLE & META */
/* ========================= */

.single-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
}

.single-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 25px;
}

.single-category {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
}

/* ========================= */
/* IMAGE */
/* ========================= */

.single-featured img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
}

.single-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.single-content p {
    margin-bottom: 22px;
}

.single-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ========================= */
/* INLINE RELATED */
/* ========================= */

.related-inline {
    background: #f5f5f5;
    padding: 14px 18px;      /* lebih dekat atas bawah */
    margin: 25px 0;
    border-left: 4px solid #e60023;
    border-radius: 8px;
}

/* Judul kecil di atas */
.related-inline h3 {
    font-size: 20px;         /* agak besar tapi tetap elegan */
    font-weight: 600;
    margin-bottom: 8px;      /* rapat */
    color: #333;
}

/* Judul artikel */
.related-inline p {
    margin: 0;              /* hilangkan jarak default */
}

.related-item a {
    display: block;         /* supaya jadi satu blok */
    font-size: 16px;
    line-height: 1.3;       /* rapat antar baris */
}


.related-item {
    margin-bottom: 6px;      /* jarak antar judul */
}

.related-item a,
.related-item a:visited,
.related-item a:active {
    color: #111;          /* tetap hitam */
    text-decoration: none;
}

.related-item a:hover {
    color: #e60023;       /* merah saat hover */
}


/* ========================= */
/* RELATED BOTTOM */
/* ========================= */

.related-bottom {
    display: inline-block;
    margin-top: 70px;
    padding: 4px 20px 80px 20px;
    border: solid 1px #3086d7;
    border-radius: 5px;
    background: #d5ebff;
    border-bottom: 8px solid #3086d7;
}

.related-bottom h3 {
    max-width: 300px;
    font-size: 20px;
    background: #3086d7;
    color: white;
    padding: 14px 18px;      /* lebih dekat atas bawah */
    margin: 25px 0;
    border-radius: 8px;
    justify-content: center;
    
}

/* GRID 4 */
.related-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

}

/* CARD SIMPLE (VERSI AWAL NORMAL) */



/* IMAGE NORMAL (TIDAK FIX HEIGHT) */

.related-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;   /* crop otomatis */
    display: block;
}


/* TEXT */

.related-info {
    padding: 10px;
}

.related-info p {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.related-info p a {
    text-decoration: none;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
 

}

.related-info p a:hover {
    color: #e60023;
}

.related-date {
    font-size: 12px;
    color: #777;
}



/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 1200px) {
    .related-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portal-container {
        grid-template-columns: 1fr;
    }

    .related-cards {
        grid-template-columns: 1fr;
    }
}

/* ========================= */
/* comment */
/* ========================= */

.comments-section {
    margin-top: 60px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
}

.comment-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.comment-item strong {
    display: block;
}

.comment-date {
    font-size: 12px;
    color: #777;
    margin-bottom: 8px;
}

.comment-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-form input,
.comment-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.comment-form textarea {
    min-height: 100px;
}

.comment-form button {
    background: var(--primary-color);
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

@media (max-width: 768px) {

    .related-bottom {
        margin-top: var(--space-xl);
        padding: var(--space-md);
    }

    .related-cards {
        gap: var(--space-lg);
    }

    .related-thumb {
        height: 160px;
    }

    .related-info p a {
        font-size: 14px;
    }

}
/* =========================
   CARD HOVER SYSTEM
========================= */

.post-card,
.latest-card,
.related-card,
.post-row,
.trending-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover,
.latest-card:hover,
.related-card:hover,
.post-row:hover,
.trending-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* =========================
   SINGLE SIDEBAR STRUCTURE
========================= */

.sidebar-block {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}
/* =========================
   AUTHOR + SHARE
========================= */

.single-author-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 30px 0;
}

.single-author-meta {
    font-size: 14px;
    color: #475569;
}

.single-author-meta strong {
    font-weight: 600;
    color: #0f172a;
}

.reviewed-by {
    margin-top: 6px;
    font-size: 13px;
    color: #64748b;
}

.reviewed-by span {
    color: #16a34a;
    font-weight: 600;
}

/* Share buttons */

/* =========================
   SHARE BUTTON PREMIUM
========================= */

/* =========================
   CLEAN SHARE BUTTON (Health Tech)
========================= */

.single-share-buttons {
    display: flex;
    gap: 14px;
}

/* MAIN SHARE BUTTON */

/* =========================
   SVG SHARE BUTTON CLEAN
========================= */

.single-share-buttons {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* MAIN SHARE BUTTON */

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 28px;

    border-radius: 999px;
    border: 1.5px solid #e2e8f0;

    background: #ffffff;
    color: #1e293b;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    transition: all 0.25s ease;
}

.share-btn:hover {
    background: #f0f9ff;
    border-color: #2563eb;
    color: #2563eb;
}

/* COPY BUTTON */

.copy-btn {
    width: 52px;
    height: 52px;

    border-radius: 16px;
    border: 1.5px solid #e2e8f0;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: all 0.25s ease;
}

.copy-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* SVG ICON */

.btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.85;
}

.share-btn:hover .btn-icon,
.copy-btn:hover .btn-icon {
    opacity: 1;
}
/* Overlay */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Modal Box */
.share-modal {
    width: 420px;
    max-width: 92%;
    background: #ffffff;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    animation: fadeInScale 0.2s ease;
}

@keyframes fadeInScale {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.share-modal h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: #0f172a;
}

/* Button Grid */
.share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Share Buttons */
.share-grid a,
.share-grid button {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 52px;
    border-radius: 14px;

    border: 1.5px solid #e2e8f0;
    background: #f8fafc;

    font-weight: 600;
    font-size: 15px;
    color: #1e293b;

    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-grid a:hover,
.share-grid button:hover {
    background: #e0f2fe;
    border-color: #38bdf8;
    color: #0369a1;
}

/* Close Button */
.share-close {
    margin-top: 26px;
    width: 100%;
    height: 46px;

    border-radius: 14px;
    border: none;

    background: #e2e8f0;
    color: #1e293b;

    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.share-close:hover {
    background: #cbd5e1;
}

/* Overlay */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Box */
.share-modal {
    width: 460px;
    max-width: 92%;
    background: #ffffff;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* Title */
.share-modal h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Preview */
.share-preview {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 30px;
}

.share-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
}

.share-title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
}

/* Icons Grid */
.share-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.share-icons a,
.share-icons button {
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
}

.share-icons img {
    width: 52px;
    height: 52px;
    padding: 12px;
    border-radius: 16px;
    background: #f1f5f9;
    transition: 0.2s ease;
}

.share-icons a:hover img,
.share-icons button:hover img {
    background: #e0f2fe;
}

/* Close */
.share-close {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    border: none;
    background: #e2e8f0;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.share-close:hover {
    background: #cbd5e1;
}


/* =========================
   CLEAN TOAST
========================= */

.copy-toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);

    background: #0f172a;
    color: #fff;

    padding: 14px 22px;
    border-radius: 12px;

    font-size: 14px;

    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


.ap-in-article-ad {
    max-width: 728px;
    height: 90px;
    margin: 30px auto;
    padding: 10px;
    overflow: hidden;
}

.ap-in-article-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.related-inline-new-2 {
    margin: 32px 0;
    padding: 18px 22px;
    background: #f9fafb;
    border-radius: 8px;
}

.related-inline-new-2 h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
}

.related-inline-new-2 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-inline-new-2 li {
    margin-bottom: 8px;
}

.related-inline-new-2 a {
    text-decoration: none;
    color: #1d4ed8;
    font-weight: 500;
    transition: all 0.2s ease;
}

.related-inline-new-2 a:hover {
    color: #0f172a;
    text-decoration: underline;
}

.related-inline-card {
    padding: 10px;
    border-radius: 15px;
    border: solid 1px #a1d2ff;
    border-radius: 5px;
    background: #e9f4ff;
    border-bottom: 8px solid #2678c6;
}

/* =========================
   FAQ ACCORDION
========================= */

.faq-item {
    margin-bottom: 14px;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #e5e7eb;
}

.faq-answer {
    display: none;
    padding: 14px 16px;
    background: #ffffff;
    border-left: 3px solid #2563eb;
    margin-top: 6px;
    border-radius: 0 8px 8px 8px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
}

