/* ============================================
   NEWS DETAILS PAGE PREMIUM UI/UX ENHANCEMENTS
   ============================================ */

/* ============================================
   1. HERO SECTION WITH FEATURED IMAGE
   ============================================ */
.news-details-hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 16px;
}

.news-details-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-details-hero:hover .news-details-hero-image {
    transform: scale(1.05);
}

.news-details-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

.news-details-hero-title {
    color: #ffffff;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.news-details-hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.news-details-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.news-details-badge svg {
    width: 14px;
    height: 14px;
}

.news-details-badge.reading-time {
    background: #d7821c;
    color: #ffffff;
}

/* ============================================
   2. READING PROGRESS BAR
   ============================================ */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #d7821c 0%, #ff9933 100%);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 4px rgba(215, 130, 28, 0.3);
}

/* ============================================
   3. ARTICLE CONTENT ENHANCED TYPOGRAPHY
   ============================================ */
.news-details-article {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
}

.news-details-article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.news-details-article-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.news-details-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-details-meta-item:hover {
    color: #d7821c;
}

.news-details-meta-item svg {
    width: 16px;
    height: 16px;
}

.news-details-article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

/* Drop cap for first paragraph */
.news-details-article-content>p:first-of-type::first-letter {
    float: left;
    font-size: 72px;
    line-height: 60px;
    padding-right: 12px;
    margin-top: 8px;
    font-weight: 700;
    color: #d7821c;
}

.news-details-article-content p {
    margin-bottom: 24px;
}

.news-details-article-content h2,
.news-details-article-content h3,
.news-details-article-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.news-details-article-content h2 {
    font-size: 32px;
    border-bottom: 3px solid #d7821c;
    padding-bottom: 10px;
}

.news-details-article-content h3 {
    font-size: 26px;
}

.news-details-article-content h4 {
    font-size: 22px;
}

.news-details-article-content ul,
.news-details-article-content ol {
    margin-bottom: 24px;
    padding-left: 30px;
}

.news-details-article-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.news-details-article-content blockquote {
    border-left: 4px solid #d7821c;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f9f9f9;
    font-style: italic;
    font-size: 20px;
    color: #555;
    border-radius: 0 8px 8px 0;
}

.news-details-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-details-article-content a {
    color: #d7821c;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.news-details-article-content a:hover {
    color: #228B22;
}

/* ============================================
   4. SOCIAL SHARE SIDEBAR
   ============================================ */
.news-details-share-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-right: 30px;
}

.news-details-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    color: #666;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 20px;
}

.news-details-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-details-share-btn.facebook:hover {
    background: #1877f2;
    color: #ffffff;
}

.news-details-share-btn.twitter:hover {
    background: #1da1f2;
    color: #ffffff;
}

.news-details-share-btn.linkedin:hover {
    background: #0077b5;
    color: #ffffff;
}

.news-details-share-btn.whatsapp:hover {
    background: #25d366;
    color: #ffffff;
}

.news-details-share-btn.email:hover {
    background: #d7821c;
    color: #ffffff;
}

/* ============================================
   5. RELATED ARTICLES SECTION
   ============================================ */
.news-details-related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.news-details-related-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a1a;
    text-align: center;
}

.news-details-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-details-related-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
}

.news-details-related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.news-details-related-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-details-related-card:hover .news-details-related-image {
    transform: scale(1.08);
}

.news-details-related-content {
    padding: 20px;
}

.news-details-related-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-details-related-card:hover .news-details-related-card-title {
    color: #d7821c;
}

.news-details-related-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.news-details-related-date {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   6. ARTICLE NAVIGATION (PREV/NEXT)
   ============================================ */
.news-details-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.news-details-nav-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-details-nav-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.news-details-nav-btn.prev:hover {
    transform: translateX(-5px);
}

.news-details-nav-icon {
    font-size: 24px;
    color: #d7821c;
}

.news-details-nav-content {
    flex: 1;
}

.news-details-nav-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.news-details-nav-title {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.4;
}

/* ============================================
   7. ENHANCED SIDEBAR
   ============================================ */
.news-details-sidebar {
    position: sticky;
    top: 100px;
}

.news-details-sidebar-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.news-details-sidebar-box:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.news-details-sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #d7821c;
    position: relative;
}

.news-details-sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #d7821c;
}

/* ============================================
   8. TAGS STYLING
   ============================================ */
.news-details-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.news-details-tags-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.news-details-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-details-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    color: #333;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-details-tag:hover {
    background: #d7821c;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============================================
   9. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1199px) {
    .news-details-share-sidebar {
        position: static;
        flex-direction: row;
        margin-right: 0;
        margin-bottom: 30px;
        justify-content: center;
    }
}

@media (max-width: 991px) {
    .news-details-hero {
        height: 400px;
    }

    .news-details-hero-title {
        font-size: 32px;
    }

    .news-details-article {
        padding: 30px;
    }

    .news-details-article-content {
        font-size: 16px;
    }

    .news-details-related-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 767px) {
    .news-details-hero {
        height: 300px;
        border-radius: 0;
    }

    .news-details-hero-overlay {
        padding: 20px;
    }

    .news-details-hero-title {
        font-size: 24px;
    }

    .news-details-article {
        padding: 20px;
        border-radius: 0;
    }

    .news-details-article-content {
        font-size: 16px;
    }

    .news-details-article-content>p:first-of-type::first-letter {
        font-size: 48px;
        line-height: 40px;
    }

    .news-details-navigation {
        grid-template-columns: 1fr;
    }

    .news-details-related-grid {
        grid-template-columns: 1fr;
    }

    .news-details-sidebar {
        position: static;
    }
}

@media (max-width: 575px) {
    .news-details-hero-meta {
        gap: 10px;
    }

    .news-details-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .news-details-share-sidebar {
        gap: 8px;
    }

    .news-details-share-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ============================================
   10. PRINT STYLES
   ============================================ */
@media print {

    .reading-progress-bar,
    .news-details-share-sidebar,
    .news-details-navigation,
    .news-details-related,
    .news-details-sidebar,
    .tg-breadcrumb-area {
        display: none !important;
    }

    .news-details-article {
        box-shadow: none;
        padding: 0;
    }

    .news-details-hero {
        height: auto;
        page-break-inside: avoid;
    }

    .news-details-article-content a::after {
        content: " (" attr(href) ")";
        font-size: 12px;
        color: #666;
    }
}

/* ============================================
   11. ACCESSIBILITY ENHANCEMENTS
   ============================================ */
.news-details-article:focus-within {
    outline: 3px solid #d7821c;
    outline-offset: 4px;
}

.news-details-share-btn:focus-visible,
.news-details-tag:focus-visible,
.news-details-nav-btn:focus-visible {
    outline: 2px solid #d7821c;
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #d7821c;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 0;
}