/* ===== NEWS SECTION STYLES ===== */

/* --- News Index Page --- */
.news-page {
    min-height: 100vh;
    background: #fff;
    padding: 100px 40px 80px;
}

.news-page-header {
    max-width: 1100px;
    margin: 0 auto 20px;
    text-align: center;
}

.news-page-title {
    font-size: 48px;
    font-weight: 800;
    color: #cc3300;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.news-page-subtitle {
    font-size: 16px;
    color: #888;
    margin-bottom: 36px;
}

/* Category Filter Pills */
.news-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto 50px;
}

.news-cat-pill {
    background: #f2f2f2;
    border: 1.5px solid #e0e0e0;
    border-radius: 24px;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: inherit;
}

.news-cat-pill:hover {
    border-color: #cc3300;
    color: #cc3300;
    background: rgba(204, 51, 0, 0.04);
}

.news-cat-pill.active {
    background: #cc3300;
    color: #fff;
    border-color: #cc3300;
}

/* News Cards Grid */
.news-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.news-card {
    background: #fafafa;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 28px 26px 22px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: all 0.35s ease;
    /* Scroll reveal initial state */
    opacity: 0;
    transform: translateY(44px);
}

.news-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.news-card:hover {
    border-color: #cc3300;
    box-shadow: 0 8px 32px rgba(204, 51, 0, 0.10), 0 2px 8px rgba(0,0,0,0.04);
    transform: translateY(-4px);
}

.news-card:hover.visible {
    transform: translateY(-4px);
}

.news-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.news-card-date {
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
    letter-spacing: 0.5px;
}

.news-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.news-card-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #cc3300;
    background: rgba(204, 51, 0, 0.07);
    padding: 4px 10px;
    border-radius: 12px;
}

.news-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
}

.news-card-excerpt {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

.news-card-arrow {
    font-size: 18px;
    color: #cc3300;
    font-weight: 700;
    margin-top: auto;
    align-self: flex-end;
    transition: transform 0.2s ease;
}

.news-card:hover .news-card-arrow {
    transform: translateX(4px);
}

/* Thumbnail area in news index cards */
.news-card-thumb {
    width: 100%;
    height: 160px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 13px;
    margin-bottom: 4px;
}

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


/* --- Individual Article Page --- */
.article-page {
    min-height: 100vh;
    background: #f4f4f4;
    padding: 80px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-inner {
    width: 100%;
    max-width: 820px;
    display: flex;
    flex-direction: column;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cc3300;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 28px;
    padding: 8px 16px 8px 12px;
    border: 1.5px solid rgba(204, 51, 0, 0.3);
    border-radius: 24px;
    background: #fff;
    transition: background 0.2s, border-color 0.2s, gap 0.2s;
    width: fit-content;
}

.article-back:hover {
    background: rgba(204, 51, 0, 0.06);
    border-color: #cc3300;
    gap: 10px;
}

.article-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 52px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 16px 48px rgba(0,0,0,0.09);
    width: 100%;
    /* Scroll reveal */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.article-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.article-date {
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    letter-spacing: 0.5px;
}

.article-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #cc3300;
    background: rgba(204, 51, 0, 0.08);
    padding: 5px 12px;
    border-radius: 20px;
}

.article-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f0f0f;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.article-divider {
    width: 50px;
    height: 3px;
    background: #cc3300;
    border-radius: 2px;
    margin: 18px 0 24px;
}

.article-body {
    font-size: 16px;
    line-height: 1.85;
    color: #444;
}

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

/* Media placeholder area */
.article-media-placeholder {
    width: 100%;
    min-height: 220px;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 15px;
    font-weight: 500;
    margin: 24px 0;
    transition: border-color 0.3s ease;
}

.article-media-placeholder:hover {
    border-color: #cc3300;
}

/* Article social share row */
.article-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.article-social-icon {
    width: 40px;
    height: 40px;
    background: #cc3300;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
    padding: 8px;
    flex-shrink: 0;
}

.article-social-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    display: block;
}

.article-social-icon:hover {
    background: #ff4400;
    transform: translateY(-3px);
}

/* --- Mail Contact Section (above footer on every page) --- */
.mail-section {
    background: #111;
    padding: 36px 20px;
    text-align: center;
}

.mail-section-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.mail-section-text {
    color: #ccc;
    font-size: 16px;
    font-weight: 500;
}

.mail-section-text span {
    color: #cc3300;
    font-weight: 700;
}

.mail-section-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #cc3300;
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.mail-section-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.mail-section-btn:hover {
    background: #ff4400;
    transform: translateY(-2px);
}

/* --- Scroll Reveal for main page cards --- */
.reveal-card {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Main page news card with real content */
.news-card-filled {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0 20px;
    height: 90px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 12px;
}

.news-card-filled:hover {
    border-color: #cc3300;
    background: #fff;
    box-shadow: 0 4px 12px rgba(204, 51, 0, 0.08);
}

.news-card-filled .nf-date {
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}

.news-card-filled .nf-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.news-card-filled .nf-arrow {
    color: #cc3300;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.news-card-filled:hover .nf-arrow {
    transform: translateX(3px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .news-page {
        padding: 80px 16px 60px;
    }

    .news-page-title {
        font-size: 32px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-page {
        padding: 80px 16px 60px;
    }

    .article-card {
        padding: 28px 20px;
    }

    .article-title {
        font-size: 24px;
    }

    .mail-section-inner {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .news-cat-pill {
        padding: 6px 14px;
        font-size: 12px;
    }

    .news-card {
        padding: 20px 18px 16px;
    }
}
