/* ========================================================
   DAILY SAVAR - NEWS DETAILS PAGE STYLING
   Directly matching homepage typography, palette, and layout
======================================================== */

.news-details-section {
    background: var(--color-white);
    margin-top: 168px;
    border-bottom: 1px solid #e6e8ee;
}

/* =========================================
   LEFT: MAIN ARTICLE CONTENT
========================================= */
.details-main-column {
    background: var(--color-white);
    padding: 34px 50px 50px;
    border-right: 1px solid #e6e8ee;
}

/* Breadcrumb */
.details-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--color-gray);
}
.details-breadcrumb a {
    color: var(--color-navy);
    font-weight: 600;
    transition: color 0.2s ease;
}
.details-breadcrumb a:hover {
    color: var(--color-red);
}
.details-breadcrumb .breadcrumb-divider {
    color: #cbd0da;
}
.details-breadcrumb .breadcrumb-current {
    color: var(--color-gray);
}

/* Category & News Type Badges */
.details-badges-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.details-badges-row .news-category {
    font-size: 14px;
}
.details-type-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
}
.details-type-badge.featured {
    background: #fff3e0;
    color: #e65100;
}
.details-type-badge.latest {
    background: #e3f2fd;
    color: #1565c0;
}
.details-type-badge.hot {
    background: #ffebee;
    color: #c62828;
}
.details-type-badge.special {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Main Headline */
.details-title {
    margin: 0 0 16px;
    color: var(--color-navy);
    font-size: 36px;
    line-height: 1.35;
    font-weight: 700;
}

/* Subtitle (Sub Headline) */
.details-subtitle {
    margin: 0 0 20px;
    color: #4f596d;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
    padding-left: 14px;
    border-left: 3px solid var(--color-red);
}

/* Meta Info Row */
.details-meta-row {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e6e8ee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.details-meta-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--color-navy);
    font-size: 14px;
}
.details-meta-left .meta-divider {
    color: #cbd0da;
}
.details-author-name {
    font-weight: 600;
}
.details-agent-badge {
    color: var(--color-red);
    font-weight: 600;
}
.details-source-link,
.details-source-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-navy);
    background: #f1f4f9;
    padding: 3px 10px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #e2e7f0;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.details-source-link {
    cursor: pointer;
}

.details-source-link:hover {
    background: #ffebee;
    color: var(--color-red);
    border-color: #f8c2c6;
    text-decoration: none;
}

.details-source-link svg,
.details-source-text svg {
    flex-shrink: 0;
}

.details-source-visit-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-red);
    background: rgba(227, 30, 36, 0.1);
    padding: 1px 7px;
    border-radius: 3px;
    margin-left: 4px;
    transition: all 0.2s ease;
}

.details-source-link:hover .details-source-visit-badge {
    background: var(--color-red);
    color: #ffffff;
}

/* Simple Share Row */
.details-share-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.share-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    transition: opacity 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.share-icon-btn:hover {
    opacity: 0.85;
    color: #ffffff;
}
.share-icon-btn.fb { background: #1877f2; }
.share-icon-btn.tw { background: #000000; }
.share-icon-btn.wa { background: #25d366; }
.share-icon-btn.copy { background: var(--color-navy); }

/* Main Cover Photo (16:7 Aspect Ratio) */
.details-cover-container {
    margin-bottom: 28px;
}
.details-cover-img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    display: block;
    background: #eef1f6;
}
.details-cover-caption {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--color-gray);
    line-height: 1.4;
}

/* Article Body Text */
.details-body-text {
    color: var(--color-navy);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 30px;
}
.details-body-text p {
    margin: 0 0 20px;
    color: var(--color-navy);
    font-size: 17px;
    line-height: 1.9;
}
.details-body-text blockquote {
    margin: 24px 0;
    padding: 16px 22px;
    background: var(--color-light);
    border-left: 4px solid var(--color-red);
    font-size: 18px;
    line-height: 1.6;
    font-weight: 600;
    color: var(--color-navy);
}

/* External Reference Box (from admin ref) */
.details-ref-card {
    background: var(--color-light);
    border: 1px solid #dce1eb;
    padding: 12px 18px;
    font-size: 13px;
    color: var(--color-navy);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.details-ref-card a {
    color: var(--color-red);
    font-weight: 600;
}
.details-ref-card a:hover {
    text-decoration: underline;
}

/* Gallery Images (4:3) */
.details-gallery-box {
    margin: 28px 0;
}
.details-gallery-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 12px;
}
.details-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.details-gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* Embedded Video (from admin video field) */
.details-video-box {
    margin: 28px 0;
}
.details-video-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 12px;
}
.details-video-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000000;
}
.details-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Related News Carousel Section */
.details-related-wrapper {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e6e8ee;
}
.related-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.related-section-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
}
.related-slider-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.related-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: var(--color-light);
    border: 1px solid #dce1eb;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.related-nav-btn:hover {
    background: var(--color-red);
    color: #ffffff;
    border-color: var(--color-red);
}

.relatedNewsSwiper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 6px;
}

/* Related News Card */
.related-news-card {
    background: var(--color-white);
    border: 1px solid #e6e8ee;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(15, 27, 61, 0.08);
}
.related-card-img-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f2f5;
}
.related-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.related-news-card:hover .related-card-img {
    transform: scale(1.05);
}
.related-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.related-card-body .news-category {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
}
.related-card-title {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 10px;
    transition: color 0.2s ease;
    flex-grow: 1;
}
.related-card-title a {
    color: inherit;
    text-decoration: none;
}
.related-news-card:hover .related-card-title a {
    color: var(--color-red);
}
.related-card-date {
    font-size: 12px;
    color: var(--color-gray);
    margin-top: auto;
}

/* Simple toast for copy link */
.details-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-navy);
    color: var(--color-white);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    display: none;
    z-index: 9999;
    border-radius: 4px;
}

@media (max-width:480px) {
        .news-details-section {
    margin-top: 100px;
}
}
/* Responsive adjustments */
@media (max-width: 991px) {
    .details-main-column {
        padding: 24px 20px 40px;
        border-right: 0;
        border-bottom: 1px solid #e6e8ee;
    }
    .details-title {
        font-size: 28px;
    }
    .details-subtitle {
        font-size: 16px;
    }
    .details-gallery-grid {
        grid-template-columns: 1fr;
    }
}
