/* news.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 50px;
    font-family: 'Crimson Pro', serif;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
}

/* ===== HEADER ===== */
.sub-header {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 31, 15, 0.85) 0%, rgba(59, 31, 15, 0.6) 100%);
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.sub-header h1 {
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ===== NEWS SECTION ===== */
.news-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.news-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image-wrapper img {
    transform: scale(1.08);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(59, 31, 15, 0.9);
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 1;
}

.news-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #999;
}

.news-divider {
  color: #ddd;
}

.news-date, .news-author {
    font-weight: 500;
}

.news-card h3 {
    font-family: 'Crimson Pro', serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #2F1200;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.view-more {
    display: inline-block;
    padding: 12px 28px;
    background-color: #3b1f0f;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 4px;
    align-self: flex-start;
}

.view-more:hover {
    background-color: #2b170b;
    transform: translateX(5px);
    box-shadow: 0px 4px 12px rgba(59, 31, 15, 0.3);
}

/* ===== FEATURED HERO ===== */
.featured-hero {
    margin-bottom: 50px;
}

.featured-hero-link {
    position: relative;
    display: block;
    width: 100%;
    height: 520px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.featured-hero-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
}

.featured-hero-link:hover img {
    transform: scale(1.05);
}

.featured-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.15) 0%,
        rgba(47,18,0,0.55) 40%,
        rgba(47,18,0,0.92) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 40px;
    transition: background 0.4s ease;
}

.featured-hero-link:hover .featured-hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.2) 0%,
        rgba(47,18,0,0.65) 40%,
        rgba(47,18,0,0.96) 100%
    );
}

.featured-hero-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.featured-badge {
    background: #e63946;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.75; }
}

.news-cat-badge {
    background: rgba(255,255,255,0.9);
    color: #3b1f0f;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
}

.featured-hero-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-hero-bottom h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 2.6rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.featured-hero-link:hover .featured-hero-bottom h2 {
    color: #ffd89b;
}

.featured-hero-bottom p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

.featured-meta i {
    margin-right: 4px;
}

/* ===== SECTION LABELS ===== */
.news-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #3b1f0f;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0e8e0;
}

.label-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.latest-dot { background: #e63946; }
.past-dot   { background: #aaa; }

/* ===== NEW RIBBON on latest cards ===== */
.latest-ribbon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e63946;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

/* ===== PAST CARD dimmed slightly ===== */
.past-card .news-image-wrapper img {
    filter: grayscale(20%);
    transition: filter 0.3s ease, transform 0.4s ease;
}

.past-card:hover .news-image-wrapper img {
    filter: grayscale(0%);
    transform: scale(1.08);
}

/* ===== FEATURED HERO RESPONSIVE ===== */
@media (max-width: 1024px) {
    .featured-hero-link     { height: 420px; }
    .featured-hero-bottom h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .featured-hero-link      { height: 320px; border-radius: 8px; }
    .featured-hero-overlay   { padding: 20px; }
    .featured-hero-bottom h2 { font-size: 1.5rem; }
    .featured-hero-bottom p  { display: none; }
    .featured-meta           { font-size: 11px; gap: 8px; }
    .featured-badge          { font-size: 10px; padding: 5px 10px; }
}

@media (max-width: 480px) {
    .featured-hero-link      { height: 240px; }
    .featured-hero-bottom h2 { font-size: 1.2rem; -webkit-line-clamp: 3; }
    .featured-meta           { flex-wrap: wrap; }
}

/* ===== NO NEWS MESSAGE ===== */
.no-news {
    text-align: center;
    padding: 100px 20px;
}

.no-news i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-news h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.8rem;
    color: #3b1f0f;
    margin-bottom: 10px;
}

.no-news p {
    font-family: 'Montserrat', sans-serif;
    color: #666;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .sub-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .sub-header {
        height: 250px;
    }
    
    .sub-header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .news-section {
        padding: 60px 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-image-wrapper {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .sub-header h1 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .news-card h3 {
        font-size: 1.2rem;
    }
    
    .news-image-wrapper {
        height: 200px;
    }
    
    .view-more {
        padding: 10px 24px;
        font-size: 12px;
    }
}