﻿:root {
    --primary: #0c8a52;
    --primary-dark: #0a7344;
    --text: #25324a;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f5f6f8;
    --white: #ffffff;
    --shadow: 0 12px 32px rgba(0, 0, 0, .08);
    --radius: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    background: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: .2s ease;
    border: 1px solid transparent;
}

.btn-outline {
    border-color: #d1d5db;
    color: #111827;
    background: #fff;
}

    .btn-outline:hover {
        color: black;
        border-color: rgba(0,0,0,.08);
        background: #F5F6F8;
    }

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(100% - 48px, var(--container));
    margin: 0 auto;
}

.section {
    padding: 72px 0;
}

.section-light {
    background: var(--bg);
}

/* Hero */
.mediahub-hero {
    position: relative;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.mediahub-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.40) 0%, rgba(0,0,0,.08) 100%);
}

.mediahub-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

    .mediahub-hero-content h1 {
        margin: 0 0 14px;
        font-size: 40px;
        line-height: 1.08;
        font-weight: 600;
        max-width: 520px;
    }

    .mediahub-hero-content p {
        margin: 0;
        font-size: 16px;
        line-height: 1.75;
        color: rgba(255,255,255,.92);
        max-width: 480px;
    }

/* Tabs */
.mediahub-tabs {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.tabs-wrap {
    min-height: 58px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

    .tabs-wrap a {
        position: relative;
        color: #7b8495;
        font-size: 14px;
        padding: 6px 0;
    }

        .tabs-wrap a.active,
        .tabs-wrap a:hover {
            color: var(--text);
            font-weight: 600;
        }

            .tabs-wrap a.active::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                bottom: -15px;
                height: 2px;
                background: var(--primary);
            }

/* Heads */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

    .section-head h2,
    .center-title h2 {
        margin: 0;
        font-size: 25px;
        color: #394866;
    }

.section-link {
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-card {
    background: #fff;
    overflow: hidden;
}

    .news-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 6px;
    }

.news-body {
    padding-top: 14px;
}

    .news-body h3 {
        margin: 0 0 6px;
        font-size: 22px;
        line-height: 1.35;
        color: #182033;
    }

.news-date {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.news-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    font-size: 14px;
}

/* Magazine */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.magazine-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.magazine-card h3 {
    margin: 16px 0 0;
    font-size: 22px;
    line-height: 1.35;
    color: #182033;
}

/* Brand section */
.brand-section {
    background: #fff;
}

.center-title {
    text-align: center;
    margin-bottom: 42px;
}

.brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.brand-logo-box img {
    width: 100%;
    max-width: 520px;
}

.brand-desc p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.95;
    font-size: 15px;
    text-align: justify;
}

/* Movement */
.movement-section {
    text-align: center;
    margin-top: 56px;
}

    .movement-section h3,
    .core-values h3 {
        margin: 0 0 18px;
        font-size: 22px;
        color: #182033;
    }

.movement-logo {
    margin: 0 auto 18px;
    max-width: 380px;
}

.movement-section p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.9;
}

/* Core Values */
.core-values {
    text-align: center;
    margin-top: 56px;
}

.core-values-icon {
    margin: 0 auto 18px;
    max-width: 240px;
}

.core-values-text {
    max-width: 820px;
    margin: 0 auto 34px;
    color: var(--muted);
    line-height: 1.9;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 26px;
}

.value-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--primary);
    padding: 20px;
    text-align: justify;
}

.value-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.value-card h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #182033;
}

.value-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 14px;
}

.value-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

/* CTA */
.cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cta-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .cta-learn-more .material-icons {
        font-size: 18px;
        transition: transform 0.3s ease;
    }

.cta-card:hover .cta-learn-more .material-icons {
    transform: translateX(5px);
}


@keyframes ctaFadeUp {
    from {
        opacity: 0;
        transform: translateY(36px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-card {
    position: relative;
    min-height: 220px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    box-shadow: var(--shadow);
    opacity: 0;
}

    .cta-card.is-visible {
        animation: ctaFadeUp 0.6s ease both;
    }

    .cta-card:nth-child(2).is-visible {
        animation-delay: 0.15s;
    }

.cta-bg,
.cta-bg-hover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.cta-bg-hover {
    opacity: 0;
}

.cta-card:hover .cta-bg {
    transform: scale(1.07);
}

.cta-card:hover .cta-bg-hover {
    opacity: 1;
    transform: scale(1.07);
}

.cta-overlay {
    position: absolute;
    inset: 0;
    transition: opacity 0.5s ease;
}

.cta-card:hover .cta-overlay {
    opacity: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 24px;
    width: 100%;
}

    .cta-content h3 {
        margin: 0 0 8px;
        font-size: 34px;
        line-height: 1.1;
    }

    .cta-content span {
        font-size: 14px;
        font-weight: 600;
    }

/* All News Page */
.allnews-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    font-size: 13px;
    color: var(--muted);
}

    .allnews-breadcrumb a {
        color: var(--muted);
    }

        .allnews-breadcrumb a:hover {
            color: var(--primary);
        }

.breadcrumb-sep {
    margin: 0 6px;
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 600;
}

.allnews-section {
    padding-bottom: 56px;
}

.allnews-empty {
    text-align: center;
    color: var(--muted);
    padding: 64px 0;
    font-size: 16px;
}

.allnews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.allnews-card {
    display: flex;
    flex-direction: column;
}

    .allnews-card:hover .allnews-card-img img {
        transform: scale(1.2);
    }

.allnews-card-img {
    overflow: hidden;
}

    .allnews-card-img img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
    }

.allnews-card-body {
    padding: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

    .allnews-card-body h3 {
        margin: 0;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.4;
        color: #182033;
    }

    .allnews-card-body p {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.7;
    }

/* Bottom bar: count + pagination */
.allnews-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.allnews-count {
    font-size: 13px;
    color: var(--muted);
}

.allnews-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    text-decoration: none;
}

    .page-btn:hover {
        background: var(--bg);
        border-color: var(--line);
        color: var(--text);
    }

.page-arrow {
    font-size: 16px;
    color: var(--muted);
    border: 1px solid var(--line);
    background: #fff;
}

    .page-arrow:hover {
        color: var(--primary);
        border-color: var(--primary);
        background: #fff;
    }

.page-btn-active {
    background: var(--text) !important;
    color: #fff !important;
    border-color: var(--text) !important;
    pointer-events: none;
}

.page-btn-disabled {
    color: #c5cad3;
    background: #fff;
    border-color: var(--line);
    pointer-events: none;
    cursor: default;
}

.page-ellipsis {
    font-size: 13px;
    color: var(--muted);
    padding: 0 2px;
    user-select: none;
}

/* News Detail Page */
.breadcrumb-news-link:hover {
    color: var(--primary);
}

.newsdetail-section {
    padding-top: 40px;
    padding-bottom: 0;
}

.newsdetail-banner {
    width: 100%;
    margin-bottom: 28px;
}

    .newsdetail-banner img {
        width: 100%;
        max-height: 520px;
        object-fit: cover;
        display: block;
        border-radius: 4px;
    }

.newsdetail-title {
    margin: 0 0 16px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    color: #182033;
}

.newsdetail-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.newsdetail-category {
    display: inline-block;
    background: #e8f5ee;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

.newsdetail-author,
.newsdetail-date {
    font-size: 13px;
    color: var(--muted);
}

    .newsdetail-author::before {
        margin-right: 14px;
    }

    .newsdetail-date::before {
        margin-right: 14px;
    }

.newsdetail-body {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text);
    padding-bottom: 56px;
}

    .newsdetail-body p {
        margin: 0 0 18px;
    }

    .newsdetail-body h2 {
        font-size: 22px;
        font-weight: 700;
        margin: 32px 0 12px;
        color: #182033;
    }

    .newsdetail-body h3 {
        font-size: 19px;
        font-weight: 700;
        margin: 28px 0 10px;
        color: #182033;
    }

    .newsdetail-body ul,
    .newsdetail-body ol {
        margin: 0 0 18px 20px;
        padding: 0;
    }

    .newsdetail-body li {
        margin-bottom: 6px;
    }

    .newsdetail-body blockquote {
        border-left: 3px solid var(--primary);
        margin: 24px 0;
        padding: 12px 20px;
        background: var(--bg);
        color: var(--muted);
        font-style: italic;
        border-radius: 0 6px 6px 0;
    }

    .newsdetail-body img {
        max-width: 100%;
        border-radius: 4px;
        margin: 16px 0;
    }

    .newsdetail-body a {
        color: var(--primary);
        text-decoration: underline;
    }

/* Other News section */
.newsdetail-others-section {
    background: var(--bg);
    padding-top: 56px;
    padding-bottom: 72px;
}

.newsdetail-others-heading {
    margin: 0 0 28px;
    font-size: 28px;
    font-weight: 700;
    color: #182033;
}

/* Make news-card and allnews-card work as <a> tags */
a.news-card,
a.allnews-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

    a.news-card img {
        transition: transform 0.35s ease;
    }

    a.news-card:hover img {
        transform: scale(1.2);
    }

/* Responsive */
@media (max-width: 1100px) {
    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .news-grid,
    .brand-grid,
    .value-grid,
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .allnews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .allnews-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .mediahub-hero-content h1 {
        font-size: 42px;
    }

    .section-head h2,
    .center-title h2 {
        font-size: 32px;
    }

    .tabs-wrap {
        gap: 18px;
        flex-wrap: wrap;
        padding: 12px 0;
    }
}

@media (max-width: 576px) {
    .container {
        width: min(100% - 32px, var(--container));
    }

    .section {
        padding: 56px 0;
    }

    .mediahub-hero {
        min-height: 280px;
    }

    .mediahub-hero-content h1 {
        font-size: 34px;
    }

    .mediahub-hero-content p {
        font-size: 16px;
    }

    .section-head {
        flex-direction: column;
        align-items: start;
    }

        .section-head h2,
        .center-title h2 {
            font-size: 28px;
        }

    .magazine-grid {
        grid-template-columns: 1fr;
    }

    .magazine-card img {
        height: 300px;
    }

    .news-card img {
        height: 220px;
    }

    .cta-content h3 {
        font-size: 28px;
    }

    .value-card-body {
        flex-direction: column;
        align-items: start;
    }

    .allnews-grid {
        grid-template-columns: 1fr;
    }

    .newsdetail-title {
        font-size: 22px;
    }

    .newsdetail-banner img {
        max-height: 300px;
    }
}
