/* ================================================================
   NEWS PAGE (PREMIUM STYLE)
   Inherits from Global Theme Styles
   ================================================================ */

/* 1. HERO SECTION */
.news-hero {
    background-color: var(--color-blue-deep);
    padding: 100px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.news-hero .subtitle {
    color: var(--color-yellow-warm);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    font-size: var(--text-xs);
    display: block;
    margin-bottom: var(--space-3);
}

.news-hero h1 {
    font-size: var(--text-h2);
    color: var(--color-text-main);
    margin-bottom: var(--space-4);
}

.news-hero p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* 2. FEATURED STORY (Editorial Highlight) */
.section-featured {
    margin-bottom: var(--space-14);
}

.featured-post {
    display: grid;
    /* Mobile: Stacked */
    grid-template-columns: 1fr;
    gap: var(--space-8);
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    transition: transform 0.4s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
}

/* Desktop: Image Left, Text Right */
@media (min-width: 992px) {
    .featured-post {
        grid-template-columns: 1.5fr 1fr;
        min-height: 450px;
    }
}

.featured-media {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-post:hover .featured-media img {
    transform: scale(1.05);
}

/* Category Badge overlay */
.cat-badge {
    position: absolute;
    top: var(--space-6);
    left: var(--space-6);
    background: var(--color-yellow-warm);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.featured-content {
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h2 {
    font-size: var(--text-h3);
    margin-bottom: var(--space-4);
    line-height: 1.3;
}

.featured-content h2 a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.featured-content h2 a:hover {
    color: var(--color-primary);
}

.featured-excerpt {
    color: var(--color-text-muted);
    font-size: var(--text-base);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-weight: 500;
}

/* 3. MAIN LAYOUT GRID */
.news-layout-grid {
    display: grid;
    /* Mobile: Stacked */
    grid-template-columns: 1fr;
    gap: var(--space-12);
}

/* Desktop: Content (2/3) + Sidebar (1/3) */
@media (min-width: 1024px) {
    .news-layout-grid {
        grid-template-columns: 2.2fr 1fr;
    }
}

/* 4. NEWS GRID (Standard Cards) */
.news-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile */
    gap: var(--space-8);
}

/* Tablet: 2 columns */
@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.news-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-light);
}

.news-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.08);
}

.news-thumb .cat-badge {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    background: white;
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.news-body {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-body h3 {
    font-size: var(--text-h5);
    margin-bottom: var(--space-3);
    line-height: 1.4;
}

.news-body h3 a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.news-body h3 a:hover {
    color: var(--color-primary);
}

.news-body p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    line-height: 1.6;
    flex: 1;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: gap 0.2s;
}

.btn-link:hover {
    gap: 10px;
    color: var(--color-yellow-warm);
}

/* 5. SIDEBAR (Premium Widgets) */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

/* Sticky Sidebar on Desktop */
@media (min-width: 1024px) {
    .news-sidebar {
        position: sticky;
        top: var(--space-10);
        align-self: start;
    }
}

.sidebar-widget {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
    font-size: var(--text-h6);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--color-bg-offset);
    color: var(--color-text-main);
}

/* Widget 1: Newsletter (High Impact) */
.newsletter-widget {
    background: var(--color-primary); /* Teal Background */
    color: white;
    border: none;
}

.newsletter-widget h4 { color: white; border-color: rgba(255,255,255,0.2); }
.newsletter-widget p { color: rgba(255,255,255,0.8); }

.widget-icon {
    font-size: 2.5rem;
    color: var(--color-yellow-warm);
    margin-bottom: var(--space-4);
}

.sidebar-form input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: none;
    margin-bottom: var(--space-3);
    color: var(--color-text-main);
}

/* Widget 2: Categories */
.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    border-bottom: 1px solid var(--color-bg-offset);
    transition: background 0.2s;
}
.sidebar-widget ul li:last-child { border-bottom: none; }

.sidebar-widget ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
}

.sidebar-widget ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px; /* Simple indent animation */
}

/* Widget 3: Popular Posts */
.mini-posts-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.mini-post {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.mini-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.mini-post:hover .mini-thumb img {
    transform: scale(1.1);
}

.mini-details h5 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.mini-details h5 a {
    color: var(--color-text-main);
    text-decoration: none;
}

.mini-details h5 a:hover {
    color: var(--color-primary);
}

.date-mini {
    font-size: var(--text-xs);
    color: var(--color-text-light);
}

/* 6. PAGINATION */
.pagination-wrapper {
    margin-top: var(--space-10);
    display: flex;
    justify-content: center;
    gap: var(--space-2);
}

.pagination-wrapper a, 
.pagination-wrapper span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 600;
    transition: all 0.2s;
}

.pagination-wrapper a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.pagination-wrapper span.current {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* 7. UTILITIES */
.no-posts {
    text-align: center;
    padding: var(--space-14);
    color: var(--color-text-muted);
    grid-column: 1 / -1;
}

/* Reveal Animation (JS Hook) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Tweaks */
@media (max-width: 600px) {
    .featured-content { padding: var(--space-6); }
    .news-hero { padding: 60px 0 40px; }
}