/* ==========================================================================
   Thailand 5S Award - News & Activities Page Styles (styleNews.css)
   Harmonized with the Royal Gold theme and index.html polished aesthetic
   ========================================================================== */

:root {
    --news-gold-primary: #b87900;
    --news-gold-dark: #8c5d00;
    --news-gold-light: #df9e08;
    --news-gold-bg: #fffbf2;
    --news-gold-border: rgba(196, 149, 45, 0.24);
    --news-text-main: #3d2d0d;
    --news-text-sub: #6e5c3b;
    --news-text-muted: #8c7752;
    --news-card-bg: #ffffff;
    --news-shadow: 0 12px 36px rgba(120, 90, 20, 0.08);
    --news-shadow-hover: 0 18px 44px rgba(120, 90, 20, 0.16);
    --news-radius-lg: 24px;
    --news-radius-md: 16px;
}

/* Page Container */
.news-page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 20px 80px;
}

/* ==================== Hero Header ==================== */
.news-hero-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.news-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: linear-gradient(135deg, #fff7e4 0%, #faecd0 100%);
    border: 1px solid rgba(196, 149, 45, 0.35);
    border-radius: 50px;
    color: var(--news-gold-dark);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 16px;
    box-shadow: 0 3px 12px rgba(184, 121, 0, 0.08);
}

.news-badge-pill svg {
    color: var(--news-gold-primary);
    flex-shrink: 0;
}

.news-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--news-text-main);
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

.news-hero-title span {
    background: linear-gradient(135deg, #a46c00 0%, #df9e08 50%, #8c5d00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.news-hero-subtitle {
    font-size: 1.1rem;
    color: var(--news-text-sub);
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ==================== Featured Carousel Enhancements ==================== */
.news-featured-section {
    padding: 20px 0 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.news-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--news-gold-dark);
    background: #fdf5e2;
    padding: 5px 14px;
    border-radius: 30px;
    border: 1px solid #ebd59e;
}

.news-featured-section .home-news-stage {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    padding: 0 58px;
}

.news-featured-section .portfolio-grid {
    display: block;
    margin-top: 0;
}

.news-featured-section .portfolio-item {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(196, 149, 45, 0.24);
    box-shadow: 0 14px 38px rgba(120, 90, 20, 0.1);
    overflow: hidden;
    margin: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-featured-section .portfolio-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(120, 90, 20, 0.15);
}

.news-item-badge-top {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #b87900, #df9e08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.news-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: var(--news-text-muted);
}

.news-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-meta-item svg {
    color: var(--news-gold-primary);
}

/* Dots indicator for carousel */
.news-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
}

.news-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(184, 121, 0, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.28s ease;
    padding: 0;
}

.news-dot.active {
    width: 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, #b87900, #df9e08);
    box-shadow: 0 2px 8px rgba(184, 121, 0, 0.3);
}

/* ==================== Filter Controls Bar ==================== */
.news-filter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 40px 0 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f4ecdd;
    flex-wrap: wrap;
}

.news-filter-heading {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--news-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.news-filter-heading svg {
    color: var(--news-gold-primary);
}

.news-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    background: #ffffff;
    border: 1px solid #ebd8b6;
    color: var(--news-text-sub);
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.24s ease;
}

.filter-pill:hover {
    background: #fdf6e6;
    border-color: var(--news-gold-light);
    color: var(--news-gold-dark);
}

.filter-pill.active {
    background: linear-gradient(135deg, #df9e08, #b87900);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(184, 121, 0, 0.24);
}

/* ==================== All News Cards Grid ==================== */
.news-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}

.news-grid-card {
    background: #ffffff;
    border-radius: var(--news-radius-md);
    border: 1px solid var(--news-gold-border);
    box-shadow: var(--news-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #9f6900, #df9e08, #ffd269);
    z-index: 2;
}

.news-grid-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--news-shadow-hover);
    border-color: rgba(217, 150, 5, 0.55);
}

.news-grid-media {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #fdf8ee 0%, #f4e9cf 100%);
    overflow: hidden;
}

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

.news-grid-card:hover .news-grid-media img {
    transform: scale(1.05);
}

.news-grid-media.is-contain-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.news-grid-media.is-contain-box img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.news-grid-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    color: var(--news-gold-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(196, 149, 45, 0.28);
}

.news-grid-body {
    padding: 24px 22px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-grid-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.84rem;
    color: var(--news-text-muted);
    margin-bottom: 10px;
}

.news-grid-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--news-text-main);
    line-height: 1.45;
    margin: 0 0 10px;
    transition: color 0.2s ease;
}

.news-grid-card:hover .news-grid-title {
    color: var(--news-gold-primary);
}

.news-grid-desc {
    font-size: 0.93rem;
    color: var(--news-text-sub);
    line-height: 1.65;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-grid-action {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed #eee3ce;
    display: flex;
    justify-content: flex-end;
}

/* ==================== Bottom CTA Banner ==================== */
.news-cta-banner {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf2 50%, #f9edd0 100%);
    border: 1px solid var(--news-gold-border);
    border-radius: var(--news-radius-lg);
    padding: 34px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--news-shadow);
    margin-top: 40px;
}

.news-cta-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--news-text-main);
    margin: 0 0 6px;
}

.news-cta-content p {
    font-size: 0.98rem;
    color: var(--news-text-sub);
    margin: 0;
}

.news-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.news-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 40px;
    background: linear-gradient(135deg, #df9e08, #b87900);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(184, 121, 0, 0.28);
    transition: all 0.25s ease;
}

.news-cta-btn-primary:hover {
    background: linear-gradient(135deg, #e8a917, #9f6600);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(184, 121, 0, 0.35);
    color: #ffffff;
}

.news-cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 40px;
    background: #ffffff;
    color: var(--news-gold-dark);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #dfc798;
    transition: all 0.25s ease;
}

.news-cta-btn-outline:hover {
    background: #fbf5e6;
    border-color: var(--news-gold-primary);
    transform: translateY(-2px);
    color: var(--news-gold-dark);
}

/* Responsive */
@media (max-width: 900px) {
    .news-featured-section .home-news-stage {
        padding: 0 44px;
    }

    .news-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
    }

    .news-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .news-cta-btn-primary,
    .news-cta-btn-outline {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .news-page-container {
        padding: 24px 14px 60px;
    }

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

    .news-hero-subtitle {
        font-size: 0.98rem;
    }

    .news-featured-section .home-news-stage {
        padding: 0 38px;
    }

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

    .news-filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

