/* ============================================================
   NEWS DETAIL PAGE STYLES
   Modern, Government-Standard News Article Layout
   ============================================================ */

/* Make sure the hero touches the navbar — enforce no gap */
#navbar-placeholder, .navbar { margin-bottom: 0; }

/* ── NEWS DETAIL HERO SECTION ──────────────────────────── */
.news-detail-hero-section {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0; /* remove default gap under navbar so hero sits directly beneath navigation */
}

.news-detail-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.news-detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.news-detail-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

.news-detail-hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.news-detail-hero-subtitle {
    font-size: 20px;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.2px;
}
news-detail-hero-section { position: relative; height: 500px; overflow: hidden; }
    .hero-slider { position: absolute; inset: 0; }
    .hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; }
    .hero-slide.active { opacity: 1; }
    .news-detail-hero-overlay { position:absolute; inset:0; background: rgba(0,0,0,0.35); pointer-events:none; }
    .news-detail-hero-content { position: relative; z-index: 5; color: #fff; padding: 28px 20px; max-width: 1100px; margin: 0 auto; }
    .news-detail-hero-title { margin: 0 0 8px; font-size: 28px; }
    .news-detail-hero-subtitle { margin: 0; font-size: 16px; }

/* ── NEWS DETAIL CONTENT SECTION ────────────────────────── */
.news-detail-content-section {
    padding: 60px 0;
    background-color: #fff;
}

.news-detail-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

/* ── MAIN ARTICLE ────────────────────────────────────────── */
.news-detail-main {
    background-color: #fff;
}

/* Article Meta Information */
.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

.news-detail-date,
.news-detail-author,
.news-detail-category {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-detail-date i,
.news-detail-author i,
.news-detail-category i {
    color: #003f87;
    font-size: 14px;
}

/* Article Figure (optional inline images) */

.news-detail-figure {
    margin: 30px 0;
    padding: 0;
    text-align: center;

}

.news-detail-figure-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    /* image-rendering: auto; */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* display: block; */
    float: left;
    margin: 0 20px 15px 0;
}

.news-detail-figure figcaption {
    font-size: 13px;
    color: #999;
    margin-top: 12px;
    font-style: italic;
}

/* Article Text Content */
.news-detail-text {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
    margin-bottom: 40px;
}

.news-detail-text p {
    margin-bottom: 18px;
    text-align: justify;
}

.news-detail-text h2 {
    font-size: 28px;
    color: #003f87;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 20px;
    border-left: 4px solid #c9a135;
    padding-left: 15px;
}

.news-detail-text h3 {
    font-size: 20px;
    color: #0052cc;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 15px;
}

.news-detail-text ul,
.news-detail-text ol {
    margin: 20px 0;
    margin-left: 20px;
}

.news-detail-text ul li,
.news-detail-text ol li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.news-detail-text strong {
    color: #003f87;
    font-weight: 700;
}

.news-detail-text em {
    color: #666;
    font-style: italic;
}

.news-detail-text blockquote {
    border-left: 4px solid #c9a135;
    padding: 20px;
    padding-left: 20px;
    margin: 30px 0;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 16px;
    font-style: italic;
    color: #555;
}

.news-detail-text blockquote footer {
    margin-top: 12px;
    text-align: right;
    font-weight: 600;
    color: #003f87;
    font-style: normal;
}

.news-detail-text a {
    color: #0052cc;
    text-decoration: none;
    border-bottom: 1px solid #0052cc;
    transition: color 0.2s ease;
}

.news-detail-text a:hover {
    color: #003f87;
    border-bottom-color: #003f87;
}

/* Social Share Buttons */
.news-detail-share {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.news-detail-share p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}

.news-detail-share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.share-facebook {
    background-color: #1877f2;
}

.share-facebook:hover {
    background-color: #165fdb;
    transform: translateY(-2px);
}

.share-twitter {
    background-color: #000;
}

.share-twitter:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.share-linkedin {
    background-color: #0a66c2;
}

.share-linkedin:hover {
    background-color: #084595;
    transform: translateY(-2px);
}

.share-email {
    background-color: #666;
}

.share-email:hover {
    background-color: #444;
    transform: translateY(-2px);
}

/* ── SIDEBAR ────────────────────────────────────────────── */
.news-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px;
}

.news-detail-sidebar-box {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #c9a135;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #003f87;
    margin-bottom: 15px;
    display: block;
}

.sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-links li {
    margin-bottom: 0;
}

.sidebar-links a {
    display: block;
    padding: 10px 0;
    color: #0052cc;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-links a:hover {
    color: #003f87;
    padding-left: 5px;
}

.sidebar-links li:last-child a {
    border-bottom: none;
}

/* ── PREVIOUS / NEXT NAVIGATION ────────────────────────── */
.news-detail-navigation {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8ecf1 100%);
}

.news-nav-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.news-nav-button {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-left: 4px solid #c9a135;
}

.news-nav-button:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
    border-left-color: #0052cc;
}

.news-nav-button.news-nav-prev {
    justify-self: start;
}

.news-nav-button.news-nav-next {
    justify-self: end;
}

.news-nav-button.news-nav-next {
    flex-direction: row-reverse;
}

.nav-arrow {
    font-size: 24px;
    color: #c9a135;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.news-nav-button:hover .nav-arrow {
    color: #0052cc;
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.news-nav-button.news-nav-next .nav-content {
    text-align: right;
}

.nav-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 16px;
    font-weight: 700;
    color: #003f87;
    transition: color 0.3s ease;
}

.news-nav-button:hover .nav-title {
    color: #0052cc;
}

/* ── RESPONSIVE MEDIA QUERIES ──────────────────────────── */

    @media (min-width:900px)
     { .news-detail-hero-section { 
        height: 420px; 
        } 
        .news-detail-hero-title { 
            font-size: 36px; 
        } 
        .news-detail-hero-subtitle { 
            font-size: 18px; 
        } 
    }


/* TABLET (768px and below) */
@media (max-width: 768px) {
    .news-detail-hero-title {
        font-size: 36px;
    }

    .news-detail-hero-subtitle {
        font-size: 16px;
    }

    .news-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .news-detail-text h2 {
        font-size: 24px;
    }

    .news-detail-text h3 {
        font-size: 18px;
    }

    .news-detail-meta {
        flex-direction: column;
        gap: 12px;
    }

    .news-nav-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-nav-button {
        justify-self: stretch;
    }

    .news-nav-button.news-nav-next {
        justify-self: stretch;
    }

    .share-btn {
        font-size: 12px;
        padding: 10px 15px;
    }
    .news-detail-figure-img{
        float: none;
    }
}

/* MOBILE (480px and below) */
@media (max-width: 480px) {
    .news-detail-hero-section {
        height: 300px;
    }

    .news-detail-hero-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .news-detail-hero-subtitle {
        font-size: 14px;
    }

    .news-detail-content-section {
        padding: 40px 0;
    }

    .news-detail-text {
        font-size: 15px;
    }

    .news-detail-text p {
        margin-bottom: 15px;
    }

    .news-detail-text h2 {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .news-detail-text h3 {
        font-size: 16px;
        margin-top: 18px;
        margin-bottom: 12px;
    }

    .news-detail-sidebar-box {
        padding: 18px;
    }

    .sidebar-title {
        font-size: 16px;
    }

    .sidebar-links a {
        font-size: 13px;
        padding: 8px 0;
    }

    .news-detail-share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
        font-size: 13px;
        padding: 12px;
    }

    .news-nav-wrapper {
        gap: 15px;
    }

    .news-nav-button {
        padding: 18px;
        font-size: 13px;
    }

    .nav-arrow {
        font-size: 20px;
    }

    .nav-title {
        font-size: 14px;
    }

    .nav-label {
        font-size: 11px;
    }

    .news-detail-text blockquote {
        padding: 15px;
        padding-left: 15px;
        font-size: 14px;
    }

    .news-detail-figure-img {
       float: none;
    }
     
}

/* Extra small screens (< 360px) */
@media (max-width: 360px) {
    .news-detail-hero-section {
        height: 250px;
    }

    .news-detail-hero-title {
        font-size: 20px;
    }

    .news-detail-content-section {
        padding: 30px 0;
    }

    .container {
        padding: 0 15px;
    }

    .news-detail-meta {
        font-size: 12px;
    }
}
