/*==================================================
  AL FAJR FOUNDATION
  NEWS DETAIL PAGE — PREMIUM EDITORIAL STYLESHEET
  High-end publication layout for news detail articles
==================================================*/

/*=========================================
  SECTION BASE — Warm Parchment Canvas
=========================================*/

.news-detail-section {
    position: relative;
    overflow: hidden;
    padding: 48px 0 64px;
    background: linear-gradient(
        160deg,
        #fffefb 0%,
        #fdf9f0 45%,
        #f5f0e2 100%
    );
    scroll-margin-top: 90px;
}

/* Background geometric texture */
.news-detail-section .news-bg-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.025;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23C9A227' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

/* Light Orbs */
.news-detail-section .news-light.one {
    width: 600px;
    height: 600px;
    left: -200px;
    top: -150px;
    background: rgba(212, 175, 55, 0.10);
}

.news-detail-section .news-light.two {
    width: 500px;
    height: 500px;
    right: -150px;
    top: 40%;
    background: rgba(6, 20, 45, 0.05);
}

/*=========================================
  BREADCRUMB NAVIGATION
=========================================*/

.news-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    font-family: "Inter", "Poppins", sans-serif;
    color: #6B6254;
}

.news-breadcrumb a {
    color: var(--navy, #06142D);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-breadcrumb a:hover {
    color: var(--gold, #D4AF37);
}

.news-breadcrumb .separator {
    color: var(--gold, #D4AF37);
    font-size: 0.75rem;
}

.news-breadcrumb .current {
    color: #8C8070;
    font-weight: 400;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*=========================================
  ARTICLE HEADER (Title, Meta & Lead)
=========================================*/

.news-detail-header {
    max-width: 860px;
    margin: 0 auto 32px;
    text-align: left;
}

.news-detail-header .news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.news-detail-header .news-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #6B6254;
    font-family: "Inter", "Poppins", sans-serif;
}

.news-detail-header .news-meta-item i {
    color: var(--gold, #D4AF37);
    font-size: 0.90rem;
}

.news-detail-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.8rem, 2.7vw, 2.6rem);
    line-height: 1.28;
    color: var(--navy, #06142D);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.news-detail-lead {
    font-size: 1.10rem;
    line-height: 1.65;
    color: #4A4237;
    font-family: "Inter", "Poppins", sans-serif;
    font-weight: 400;
    margin-bottom: 24px;
    border-left: 3px solid var(--gold, #D4AF37);
    padding-left: 16px;
}

/*=========================================
  HERO FEATURED IMAGE & CAPTION
=========================================*/

.news-detail-hero-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(7, 26, 54, 0.10);
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: #f4efe4;
    margin-bottom: 40px;
}

.news-detail-hero-wrapper img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.news-detail-hero-caption {
    padding: 12px 20px;
    background: rgba(255, 254, 247, 0.95);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    font-size: 0.84rem;
    color: #6B6254;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-detail-hero-caption i {
    color: var(--gold, #D4AF37);
    font-style: normal;
}

/*=========================================
  MAIN 2-COLUMN LAYOUT GRID
=========================================*/

.news-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 44px;
    align-items: start;
}

/*=========================================
  ARTICLE BODY TYPOGRAPHY & ELEMENTS
=========================================*/

.news-article-body {
    max-width: 720px;
    font-family: "Inter", "Poppins", sans-serif;
    font-size: 1.06rem;
    line-height: 1.78;
    color: #2D271E;
}

/* Drop Cap on First Paragraph */
.news-article-body > p:first-of-type::first-letter {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 3.2rem;
    float: left;
    line-height: 0.85;
    padding-top: 4px;
    padding-right: 12px;
    padding-bottom: 2px;
    color: var(--navy, #06142D);
    font-weight: 700;
}

.news-article-body p {
    margin-bottom: 22px;
}

/* Editorial Headings */
.news-article-body h2,
.news-article-body h3,
.news-article-body h4 {
    font-family: "Playfair Display", Georgia, serif;
    color: var(--navy, #06142D);
    font-weight: 700;
    margin: 36px 0 16px;
    line-height: 1.3;
}

.news-article-body h2 {
    font-size: 1.65rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.25);
    padding-bottom: 8px;
}

.news-article-body h3 {
    font-size: 1.40rem;
}

.news-article-body h4 {
    font-size: 1.20rem;
}

/* Blockquote */
.news-article-body blockquote {
    position: relative;
    margin: 32px 0;
    padding: 24px 28px 24px 32px;
    background: #FFFEF7;
    border-left: 4px solid var(--gold, #D4AF37);
    border-radius: 0 14px 14px 0;
    box-shadow: 0 6px 20px rgba(7, 26, 54, 0.05);
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--navy, #06142D);
}

.news-article-body blockquote p {
    margin: 0 0 10px;
}

.news-article-body blockquote cite {
    display: block;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
    color: #8B6A14;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Islamic & Foundation Callout Box */
.news-callout-box {
    margin: 32px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, #06142D 0%, #0d234a 100%);
    color: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 28px rgba(6, 20, 45, 0.15);
    position: relative;
    overflow: hidden;
}

.news-callout-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold, #D4AF37), #f3d36f);
}

.news-callout-box h4 {
    color: var(--gold, #D4AF37);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-callout-box p {
    color: rgba(255, 255, 255, 0.90);
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.65;
}

/* Lists */
.news-article-body ul,
.news-article-body ol {
    margin: 0 0 24px 20px;
    padding: 0;
}

.news-article-body li {
    margin-bottom: 10px;
    line-height: 1.65;
}

.news-article-body ul li::marker {
    color: var(--gold, #D4AF37);
}

/* Article Images */
.news-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 24px 0 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/*=========================================
  SHARE & TOOLBAR BAR
=========================================*/

.news-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 24px;
    margin: 40px 0 32px;
    background: #FFFEF7;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.20);
    box-shadow: 0 6px 20px rgba(7, 26, 54, 0.05);
}

.news-share-title {
    font-size: 0.90rem;
    font-weight: 700;
    color: var(--navy, #06142D);
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-share-title i {
    color: var(--gold, #D4AF37);
}

.news-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.news-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    color: #ffffff;
}

.news-share-btn.facebook { background: #1877F2; }
.news-share-btn.twitter  { background: #1DA1F2; }
.news-share-btn.whatsapp { background: #25D366; }
.news-share-btn.linkedin { background: #0A66C2; }
.news-share-btn.copy     { background: var(--navy, #06142D); }

/* Copy Toast */
.news-copy-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    background: var(--navy, #06142D);
    color: var(--gold, #D4AF37);
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: none;
    align-items: center;
    gap: 8px;
}

/*=========================================
  ARTICLE SIDEBAR WIDGETS
=========================================*/

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.news-sidebar-widget {
    background: #FFFEF7;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.20);
    box-shadow: 0 6px 22px rgba(7, 26, 54, 0.07);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.news-sidebar-widget::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold, #D4AF37), #f3d36f);
}

.news-widget-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.20rem;
    color: var(--navy, #06142D);
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-widget-title i {
    color: var(--gold, #D4AF37);
}

/* Widget 1: Donation CTA Card */
.news-sidebar-widget.widget-donate {
    background: linear-gradient(145deg, #06142D 0%, #0c244d 100%);
    color: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.news-sidebar-widget.widget-donate .news-widget-title {
    color: var(--gold, #D4AF37);
    border-bottom-color: rgba(212, 175, 55, 0.25);
}

.news-sidebar-widget.widget-donate p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 18px;
}

.btn-sidebar-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold, #D4AF37), #E5C768);
    color: var(--navy, #06142D);
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.30);
}

.btn-sidebar-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.45);
    color: #06142D;
}

/* Widget 2: Recent Articles List */
.news-recent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-recent-item {
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.news-recent-item:hover {
    transform: translateX(4px);
}

.news-recent-thumb {
    width: 72px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f4efe4;
}

.news-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.news-recent-info {
    flex: 1;
}

.news-recent-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--navy, #06142D);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-recent-item:hover .news-recent-title {
    color: var(--gold, #D4AF37);
}

.news-recent-date {
    font-size: 0.78rem;
    color: #8C8070;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Widget 3: Categories */
.news-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-categories-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-radius: 10px;
    color: #4A4237;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
}

.news-categories-list a:hover {
    background: var(--navy, #06142D);
    color: var(--gold, #D4AF37);
    border-color: var(--navy, #06142D);
    padding-left: 18px;
}

/*=========================================
  ARTICLE PAGINATION (Previous / Next)
=========================================*/

.news-article-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    padding: 32px 0;
    margin-top: 48px;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.news-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 14px 18px;
    background: #FFFEF7;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.20);
    transition: all 0.3s ease;
}

.news-nav-link:hover {
    border-color: var(--gold, #D4AF37);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(7, 26, 54, 0.08);
}

.news-nav-link.next {
    flex-direction: row-reverse;
    text-align: right;
}

.news-nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold, #D4AF37);
    font-weight: 700;
}

.news-nav-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--navy, #06142D);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-news-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--navy, #06142D);
    border: 1px solid rgba(212, 175, 55, 0.35);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-news-all:hover {
    background: var(--navy, #06142D);
    color: var(--gold, #D4AF37);
    border-color: var(--navy, #06142D);
}

/*=========================================
  RELATED STORIES SECTION
=========================================*/

.news-related-section {
    margin-top: 56px;
}

.news-related-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.6rem;
    color: var(--navy, #06142D);
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-related-title span {
    position: relative;
}

.news-related-title span::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--gold, #D4AF37);
    border-radius: 999px;
}

/*=========================================
  RESPONSIVE MEDIA QUERIES
=========================================*/

@media (max-width: 991px) {
    .news-detail-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .news-detail-header {
        text-align: left;
    }

    .news-detail-title {
        font-size: 1.9rem;
    }

    .news-article-pagination {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .news-nav-link.next {
        flex-direction: row;
        text-align: left;
    }

    .btn-news-all {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .news-detail-section {
        padding: 32px 0 44px;
    }

    .news-detail-title {
        font-size: 1.55rem;
    }

    .news-detail-lead {
        font-size: 0.98rem;
    }

    .news-article-body {
        font-size: 0.98rem;
        line-height: 1.70;
    }

    .news-share-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
