/* Article cards are real links now — reset default anchor styling */
a.insight-card {
    text-decoration: none;
    color: inherit;
}

/* ── News listing empty state ── */
.news-empty {
    width: 80%;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.news-empty p {
    font-size: 17px;
    color: #666666;
}

.news-empty a {
    color: #7CC42A;
    font-weight: 600;
    text-decoration: none;
}

/* ── News Hero — a self-contained banner, independent of .contact-main-wrapper
   (used by every other page), so nothing here can conflict with or be broken by
   that shared class. Reuses the homepage's .hero-bg-slide/.active crossfade CSS
   and the initHeroSlider() JS already wired up in originalhome.js — both are
   generic and apply themselves to any .hero-bg-slide element on the page. ── */
.news-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

.news-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.news-hero-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 400;
    color: #ffffff;
    margin: 0;
}

.news-hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    font-size: 16px;
    font-weight: 300;
    color: #ffffff;
}

.news-hero-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.news-hero-breadcrumb p {
    margin: 0;
    color: #ffffff;
}

@media (max-width: 768px) {
    .news-hero {
        height: 50vh;
    }

    .news-hero-breadcrumb {
        font-size: 14px;
        gap: 10px;
    }
}

/* ── Post Grid (news card-grid, adapted from a bordered-card reference layout) ── */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    border-color: #7CC42A;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.post-media {
    position: relative;
    display: block;
    overflow: hidden;
}

.post-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.post-card:hover .post-media img {
    transform: scale(1.05);
}

.post-cat {
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: #7CC42A;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 8px 14px;
    transition: background-color 0.3s ease;
}

.post-card:hover .post-cat {
    background-color: #1a1a1a;
}

.post-body {
    padding: 26px 28px 28px;
}

.post-meta {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999999;
    margin: 0 0 12px;
}

.post-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
}

.post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card:hover .post-title a {
    color: #7CC42A;
}

.post-excerpt {
    font-size: 15px;
    line-height: 1.8;
    color: #888888;
    margin: 0;
}

/* ── Pagination ── */
.news-pagination {
    width: 80%;
    margin: 60px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.news-page-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.news-page-link:hover {
    color: #7CC42A;
}

.news-page-count {
    font-size: 14px;
    color: #888888;
}

/* ── Our Videos ── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.video-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.video-thumb {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: #1a1a1a;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play i {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #7CC42A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.video-card:hover .video-play i {
    background-color: #7CC42A;
    color: #ffffff;
    transform: scale(1.1);
}

.video-title {
    margin: 16px 0 0;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.video-card:hover .video-title {
    color: #7CC42A;
}

/* ── Our Gallery ── */
.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.media-gallery-item {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.media-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.media-gallery-item:hover img {
    transform: scale(1.08);
}

/* ── Article Banner (news_detail) ── */
.article-banner {
    width: 100%;
    min-height: 55vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.article-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 100%);
}

.article-banner-content {
    position: relative;
    z-index: 1;
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 0 50px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-banner-content .contact-sub-heading {
    justify-content: flex-start;
    margin-top: 0;
    font-size: 14px;
    flex-wrap: wrap;
}

.insight-tag.article-banner-tag {
    color: #ffffff;
}

.article-banner-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
    margin: 0;
}

.article-banner-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin: 0;
}

/* ── Article Body ── */
.article-body-section {
    background-color: #ffffff;
    padding: 70px 20px;
}

.article-body {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    line-height: 1.9;
    color: #444444;
}

.article-body p {
    margin: 0 0 24px;
}

@media (max-width: 991px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .media-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-banner {
        min-height: 40vh;
    }

    .article-banner-content {
        width: 90%;
        padding: 40px 0 30px;
    }

    .article-body-section {
        padding: 40px 20px;
    }

    .article-body {
        width: 100%;
        font-size: 15px;
    }

    .news-pagination {
        width: 90%;
        gap: 16px;
    }
}
