/* =====================================================
   RhingGo NEWS & MEDIA
   MAIN CSS
===================================================== */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "Inter", sans-serif;
    color: #111111;
    background: #ffffff;
    line-height: 2.6;
}


img {
    width: 100%;
    display: block;
}


a {
    text-decoration: none;
    color: inherit;
}




/* =====================================================
   VARIABLES
===================================================== */

:root {

    --green: #19B419;

    --green-dark: #19B419;

    --black: #111111;

    --dark: #171717;

    --grey: #666666;

    --light-grey: #f5f6f3;

    --border: #e5e5e5;

    --white: #ffffff;

    --container: 1200px;

}


/* =====================================================
   CONTAINER
===================================================== */

.container {

    width: min(92%, var(--container));

    margin: auto;

}


/* =====================================================
   HEADER
===================================================== */

.header {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid #eeeeee;

    backdrop-filter: blur(12px);

}


.nav-container {

    min-height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


.logo img {

    width: 145px;

}




.nav-menu a {

    font-size: 14px;

    font-weight: 600;

    position: relative;

    transition: 0.3s ease;

}


.nav-menu a:hover,
.nav-menu a.active {

    color: #19B419;

}


.nav-menu a.active::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 100%;

    height: 2px;

    background: var(--green);

}


.nav-button {

    background: var(--black);

    color: var(--white);

    padding: 13px 22px;

    border-radius: 5px;

    font-size: 11px;

    font-weight: 700;

    transition: 0.3s ease;

}


.nav-button:hover {

    background: var(--green);

    color: var(--black);

}


.menu-toggle {

    display: none;

    border: none;

    background: transparent;

    font-size: 25px;

    cursor: pointer;

}



/* =====================================================
   HERO
===================================================== */

.news-hero {

    min-height: 540px;

    display: flex;

    align-items: center;

    position: relative;

    background-image:
        url("images/news-hero.jpg");

    background-size: cover;

    background-position: center;

    color: white;
    padding-bottom: 2px;
    padding-top: 2px;
    padding-left: 30px;

}


.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.25)
        );

}


.hero-content {

    position: relative;

    max-width: 850px;

    padding: 80px 0;

}


.hero-label {

    display: inline-block;

    color: var(--green);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 20px;

}


.hero-content h1 {

    font-size: clamp(42px, 6vw, 76px);

    line-height: 1.05;

    letter-spacing: -3px;

    max-width: 850px;

    margin-bottom: 25px;

}


.hero-content h1 span {

    color: var(--green);

}


.hero-content p {

    max-width: 650px;

    font-size: 17px;

    color: #eeeeee;

}


/* =====================================================
   SECTION COMMON
===================================================== */

section {

    padding: 90px 0;

}


.section-label,
.section-heading span {

    display: block;

    font-size: 20px;

    font-weight: 800;

    letter-spacing: 2px;

    color: #19B419;

    margin-bottom: 10px;
    margin-top: 15px;

}


.section-heading h2,
.section-top h2,
.media-heading h2 {

    font-size: clamp(34px, 4vw, 52px);

    line-height: 1.1;

    letter-spacing: -2px;

}


/* =====================================================
   FEATURED
===================================================== */

.featured-section {

    background: white;

}


.section-heading {

    margin-bottom: 45px;

}


.featured-card {

    display: grid;

    grid-template-columns: 1.25fr 1fr;

    background: var(--light-grey);

    min-height: 520px;

}


.featured-image {

    position: relative;

    min-height: 500px;

    overflow: hidden;

}


.featured-image img {

    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;

}


.featured-card:hover
.featured-image img {

    transform: scale(1.04);

}


.image-tag {

    position: absolute;

    top: 25px;

    left: 25px;

    background: var(--green);

    color: #111;

    padding: 8px 15px;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

}


.featured-content {

    padding: 60px;

    display: flex;

    flex-direction: column;

    justify-content: center;

}


.date {

    color: #777;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    margin-bottom: 15px;

}


.featured-content h3 {

    font-size: clamp(30px, 3vw, 44px);

    line-height: 1.12;

    letter-spacing: -1.5px;

    margin-bottom: 22px;

}


.featured-content p:not(.date) {

    color: var(--grey);

    margin-bottom: 14px;

}


.read-more {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    font-size: 14px;

    font-weight: 800;

    margin-top: 15px;

    width: fit-content;

}


.read-more i {

    transition: transform 0.3s ease;

}


.read-more:hover i {

    transform: translateX(6px);

}


/* =====================================================
   LATEST NEWS
===================================================== */

.latest-section {

    background: var(--light-grey);

}


.section-top {

    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 50px;

    margin-bottom: 50px;

}


.section-top > p {

    max-width: 430px;

    color: var(--grey);

}


.news-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 28px;

}


.news-card {

    background: white;

    overflow: hidden;

    transition: 0.35s ease;

}


.news-card:hover {

    transform: translateY(-7px);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.08);

}


.card-image {

    position: relative;

    height: 245px;

    overflow: hidden;

}


.card-image img {

    height: 100%;

    object-fit: cover;

    transition: 0.5s ease;

}


.news-card:hover
.card-image img {

    transform: scale(1.05);

}


.category {

    position: absolute;

    left: 18px;

    bottom: 18px;

    background: var(--green);

    color: #111;

    font-size: 10px;

    font-weight: 800;

    padding: 6px 11px;

    text-transform: uppercase;

}


.card-content {

    padding: 27px;

}


.card-content h3 {

    font-size: 21px;

    line-height: 1.25;

    margin-bottom: 13px;

}


.card-content p:not(.date) {

    color: var(--grey);

    font-size: 14px;

    margin-bottom: 20px;

}


.card-content a {

    display: inline-flex;

    gap: 9px;

    align-items: center;

    font-size: 13px;

    font-weight: 800;

}


.card-content a i {

    transition: 0.3s ease;

}


.card-content a:hover i {

    transform: translateX(5px);

}


/* =====================================================
   MEDIA
===================================================== */

.media-section {

    background: white;

}


.media-heading {

    text-align: center;

    max-width: 700px;

    margin: 0 auto 55px;

}


.media-heading p {

    color: var(--grey);

    margin-top: 15px;

}


.media-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

}


.media-card {

    border: 1px solid var(--border);

    padding: 32px;

    display: flex;

    gap: 22px;

    transition: 0.3s ease;

}


.media-card:hover {

    border-color: var(--green);

    transform: translateY(-5px);

}


.media-logo {

    min-width: 52px;

    width: 52px;

    height: 52px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--green);

    font-size: 19px;

}


.media-card span {

    color: #19B419;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

}


.media-card h3 {

    font-size: 18px;

    line-height: 1.3;

    margin: 8px 0 10px;

}


.media-card p {

    color: var(--grey);

    font-size: 13px;

    margin-bottom: 15px;

}


.media-card a {

    font-size: 12px;

    font-weight: 800;

    display: inline-flex;

    gap: 8px;

    align-items: center;

}





/* =====================================================
   RESOURCES
===================================================== */

.resources-section {

    background: var(--light-grey);

}


.resources-box {

    background: var(--green);

    padding: 55px 60px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

}


.resources-box h2 {

    font-size: clamp(30px, 4vw, 45px);

    line-height: 1.1;

    letter-spacing: -1.5px;

    margin: 8px 0 15px;

}


.resources-box p {

    max-width: 550px;

    color: #303030;

}


.resource-buttons {

    display: flex;

    flex-direction: column;

    gap: 12px;

    min-width: 210px;

}


.resource-button {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    background: var(--black);

    color: white;

    padding: 14px 20px;

    font-size: 12px;

    font-weight: 800;

    transition: 0.3s ease;

}


.resource-button:hover {

    background: white;

    color: #111;

}


.resource-button.outline {

    background: transparent;

    color: #111;

    border: 1px solid #111;

}


.resource-button.outline:hover {

    background: #111;

    color: white;

}


/* =====================================================
   PRESS
===================================================== */

.press-section {

    background:
        linear-gradient(
            120deg,
            #eef8df,
            #ffffff
        );

}


.press-content {

    max-width: 720px;

}


.press-content > span {

    font-size: 11px;

    letter-spacing: 2px;

    color: #19B419;

    font-weight: 800;

}


.press-content h2 {

    font-size: clamp(42px, 6vw, 72px);

    line-height: 1;

    letter-spacing: -3px;

    margin: 15px 0 25px;

}


.press-content p {

    max-width: 600px;

    color: var(--grey);

    margin-bottom: 30px;

}


.press-button {

    display: inline-flex;

    gap: 12px;

    align-items: center;

    background: #111;

    color: white;

    padding: 15px 23px;

    font-size: 13px;

    font-weight: 800;

}


.press-button:hover {

    background: #19B419;

}


/* =====================================================
   FOOTER
===================================================== */

.footer {

    background: #101010;

    color: white;

    padding-top: 70px;

}


.footer-grid {

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1.2fr;

    gap: 50px;

    padding-bottom: 60px;

}


.footer-brand img {

    width: 140px;

    margin-bottom: 20px;

}


.footer-brand p {

    color: #999;

    max-width: 350px;

    font-size: 13px;

}


.social-links {

    display: flex;

    gap: 10px;

    margin-top: 25px;

}


.social-links a {

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #333;

    border-radius: 50%;

    font-size: 13px;

    transition: 0.3s ease;

}


.social-links a:hover {

    background: var(--green);

    color: #111;

    border-color: var(--green);

}


.footer-column {

    display: flex;

    flex-direction: column;

    gap: 13px;

}


.footer-column h4 {

    color: white;

    margin-bottom: 10px;

    font-size: 14px;

}


.footer-column a,
.footer-column p {

    color: #999;

    font-size: 12px;

}


.footer-column a:hover {

    color: var(--green);

}


.footer-column p {

    display: flex;

    gap: 9px;

}


.footer-column p i {

    color: var(--green);

}


.footer-bottom {

    border-top: 1px solid #252525;

}


.footer-bottom .container {

    min-height: 70px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

}


.footer-bottom p,
.footer-bottom a {

    font-size: 11px;

    color: #777;

}


.footer-bottom div {

    display: flex;

    gap: 20px;

}


.footer-bottom a:hover {

    color: white;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {

    .nav-menu {

        gap: 18px;

    }


    .nav-menu a {

        font-size: 12px;

    }


    .featured-card {

        grid-template-columns: 1fr;

    }


    .featured-image {

        min-height: 400px;

    }


    .news-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .media-grid {

        grid-template-columns:
            1fr;

    }


    .impact-section .container {

        grid-template-columns:
            1fr;

    }


    .footer-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 768px) {

    section {

        padding: 65px 0;

    }


    .nav-button {

        display: none;

    }


    .menu-toggle {

        display: block;

    }


    .nav-menu {

        position: absolute;

        left: 0;

        right: 0;

        top: 78px;

        background: white;

        display: none;

        flex-direction: column;

        align-items: flex-start;

        gap: 0;

        padding: 15px 5%;

        border-bottom: 1px solid #ddd;

        box-shadow:
            0 10px 25px rgba(0, 0, 0, 0.08);

    }


    .nav-menu.show {

        display: flex;

    }


    .nav-menu a {

        width: 100%;

        padding: 15px 0;

        font-size: 14px;

    }


    .nav-menu a.active::after {

        display: none;

    }


    .news-hero {

        min-height: 500px;

    }


    .hero-content h1 {

        letter-spacing: -2px;

    }


    .section-top {

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;

    }


    .featured-content {

        padding: 35px 25px;

    }


    .news-grid {

        grid-template-columns:
            1fr;

    }


    .resources-box {

        flex-direction: column;

        align-items: flex-start;

        padding: 40px 30px;

    }


    .resource-buttons {

        width: 100%;

    }


    .impact-stats {

        grid-template-columns:
            1fr 1fr;

    }


    .footer-grid {

        grid-template-columns:
            1fr;

        gap: 35px;

    }


    .footer-bottom .container {

        flex-direction: column;

        align-items: flex-start;

        padding: 25px 0;

    }

}


@media (max-width: 480px) {

    .logo img {

        width: 125px;

    }


    .hero-content p {

        font-size: 15px;

    }


    .impact-stats {

        grid-template-columns:
            1fr;

    }


    .impact-stats div {

        min-height: 120px;

    }


    .footer-bottom div {

        flex-direction: column;

        gap: 8px;

    }

}

/* =====================================================
   RhingGo MEDIA VIDEO CARDS
===================================================== */

.media-video-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 28px;

}


/* =====================================================
   VIDEO CARD
===================================================== */

.media-video-card {

    background: #ffffff;

    border: 1px solid #e5e5e5;

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;

}


.media-video-card:hover {

    transform: translateY(-7px);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.10);

}


/* =====================================================
   YOUTUBE THUMBNAIL
===================================================== */

.youtube-thumbnail {

    position: relative;

    display: block;

    height: 230px;

    overflow: hidden;

    background: #111111;

}


.youtube-thumbnail img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;

}


.media-video-card:hover
.youtube-thumbnail img {

    transform: scale(1.05);

}


/* =====================================================
   VIDEO OVERLAY
===================================================== */

.youtube-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(0, 0, 0, 0.15);

    transition:
        background 0.3s ease;

}


.media-video-card:hover
.youtube-overlay {

    background:
        rgba(0, 0, 0, 0.30);

}


/* =====================================================
   YOUTUBE PLAY BUTTON
===================================================== */

.youtube-play {

    width: 65px;

    height: 65px;

    border-radius: 50%;

    background: #ff0000;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;

    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.3s ease;

}


.media-video-card:hover
.youtube-play {

    transform: scale(1.12);

}


/* =====================================================
   VIDEO CONTENT
===================================================== */

.media-video-content {

    padding: 25px;

}


.media-station {

    display: inline-block;

    color: #78a800;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    margin-bottom: 9px;

}


.media-video-content h3 {

    font-size: 20px;

    line-height: 1.3;

    margin-bottom: 12px;

}


.media-video-content p {

    color: #666666;

    font-size: 13px;

    line-height: 1.7;

    margin-bottom: 18px;

}


.watch-youtube {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    font-size: 12px;

    font-weight: 800;

}


.watch-youtube i {

    transition:
        transform 0.3s ease;

}


.watch-youtube:hover i {

    transform: translateX(5px);

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {

    .media-video-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 650px) {

    .media-video-grid {

        grid-template-columns:
            1fr;

    }


    .youtube-thumbnail {

        height: 240px;

    }

}


/* =====================================================
   SKELETON LOADING STATES (for dynamic news cards)
===================================================== */

@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.skeleton-card {
    pointer-events: none;
}

.skeleton-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
}

.skeleton-line {
    height: 14px;
    border-radius: 6px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
}

.skeleton-line.short  { width: 40%; }
.skeleton-line.medium { width: 70%; }

/* News card animation on load */
.news-card {
    animation: cardFadeIn 0.4s ease both;
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Read More / Load More button */
#loadMoreBtn {
    background: transparent;
    border: 2px solid var(--green);
    color: var(--green);
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
#loadMoreBtn:hover {
    background: var(--green);
    color: #fff;
}

/* Empty news state */
.news-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 20px;
    color: #888;
}
.news-empty-state i { font-size: 48px; margin-bottom: 16px; display: block; color: #ccc; }
.news-empty-state h3 { font-size: 20px; margin-bottom: 8px; color: #555; }