/* News Details Page Styles (Adapted from Notices & Powertel Hero) */
:root {
    --news-primary: #004E89;
    /* ZESA Blue */
    --news-secondary: #f0f4f8;
    --news-text: #1a1a1a;
    --news-text-light: #666;
    --news-border: #e2e8f0;
    --news-radius: 12px;
    --news-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --accent-color: #dc143c;
    --white-color: #ffffff;
    --gradient-overlay: linear-gradient(rgba(0, 78, 137, 0.7), rgba(0, 78, 137, 0.5));
}

.news-detail-page {
    padding-bottom: 6rem;
    background-color: #fff;
}

/* =========================================
   Hero Section (Adapted from Powertel Hero)
   ========================================= */

/* =========================================
   Hero Meta Styles (Inside Global Powertel Hero)
   ========================================= */
.powertel-hero .news-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 1s ease-out 0.7s both;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.powertel-hero .news-meta i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.powertel-hero .news-meta span {
    display: inline-flex;
    align-items: center;
}


/* =========================================
   Layout & Content
   ========================================= */

.news-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 0.75rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    backdrop-filter: blur(5px);
}

/* Layout */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* Main Content */
.news-main {
    min-width: 0;
    /* Prevent flex/grid overflow */
}

/* Featured Media (Image) - Main Content Area */
.news-featured-media {
    margin-bottom: 3.5rem;
    border-radius: var(--news-radius);
    overflow: hidden;
    box-shadow: var(--news-shadow);
    border: 1px solid var(--news-border);
    position: relative;
    background: #fff;
}

.news-featured-media img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 700px;
    /* Generous height limit */
    object-fit: contain;
    /* Ensure full image visibility */
    background-color: #f8fafc;
}

.media-caption {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid var(--news-border);
    font-style: italic;
}

/* Content Body */
.news-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
    text-align: justify;
}

.news-body p {
    margin-bottom: 1.5rem;
}

.news-body h2,
.news-body h3 {
    color: var(--news-text);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    font-family: 'Aeonik', 'Inter', sans-serif;
}

.news-body ul,
.news-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.news-body li {
    margin-bottom: 0.5rem;
}

.news-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-left: 4px solid var(--news-primary);
    font-style: italic;
    color: #555;
    border-radius: 0 8px 8px 0;
}

/* Share Section */
.news-share-section {
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--news-border);
}

.share-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--news-primary);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #555;
    border: 1px solid var(--news-border);
    transition: all 0.2s;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn-facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

.share-btn-twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.share-btn-linkedin:hover {
    background: #0077B5;
    color: white;
    border-color: #0077B5;
}

.share-btn-email:hover {
    background: #EA4335;
    color: white;
    border-color: #EA4335;
}

.share-btn-copy:hover {
    background: #333;
    color: white;
    border-color: #333;
}


/* Gallery */
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
    background: #fff;
    border: 1px solid var(--news-border);
}

.gallery-item img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    background-color: #f8fafc;
}

.gallery-item figcaption {
    padding: 0.75rem;
    font-size: 0.85rem;
    color: #666;
    background: #fff;
}


/* Sidebar */
.news-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar-widget {
    background-color: #fff;
    border: 1px solid var(--news-border);
    border-radius: var(--news-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--news-shadow);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--news-text);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.recent-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-link {
    display: block;
    text-decoration: none;
}

.recent-date {
    display: block;
    font-size: 0.75rem;
    color: var(--news-text-light);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.recent-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--news-text);
    line-height: 1.4;
    transition: color 0.2s;
}

.recent-link:hover .recent-title {
    color: var(--news-primary);
}

/* Responsive */
@media (max-width: 992px) {
    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-title {
        font-size: 2rem;
    }
}