/* ========================= */
/* assets/css/main.css */
/* ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-width: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #f7faf7;
    overflow-x: hidden;
    color: #1f2937;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

.flex,
.grid {
    min-width: 0;
}

/* NAV */

.nav-link {
    position: relative;
    height: 42px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    transition: .28s ease;
}

.nav-link:hover {
    color: #166534;
    background: #f1fbf3;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 18px;
    width: 0;
    height: 2px;
    border-radius: 20px;
    background: #22c55e;
    transition: .3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 36px);
}

.nav-link.active {
    color: #166534;
    background: #effcf1;
}

/* MOBILE LINK */

.mobile-link {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    transition: .25s;
}

.mobile-link:hover,
.active-mobile {
    background: #effcf1;
    color: #166534;
}

/* CONTAINER */

.main-container {
    max-width: 1380px;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* CARD */

.modern-card {
    background: white;
    border: 1px solid #e8efe8;
    border-radius: 22px;
    transition: .35s ease;
}

.modern-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
}

/* NEWS CARD */

.news-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #edf1ed;
    transition: .35s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, .08);
}

.news-card img {
    transition: .5s ease;
}

.news-card:hover img {
    transform: scale(1.06);
}

/* TITLE */

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: #166534;
    line-height: 1.2;
}

/* BUTTON */

.green-btn {
    height: 44px;
    padding: 0 22px;
    border-radius: 12px;
    background: #1f7a31;
    color: white;
    border: 0;
    font-weight: 700;
    transition: .25s;
}

.green-btn:hover {
    background: #166127;
}

/* RESPONSIVE */

@media (max-width: 1280px) {

    .news-grid,
    .reward-grid,
    .ranking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

}

@media (max-width: 768px) {

    .section-title {
        font-size: 28px;
    }

    .main-container {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .news-grid,
    .reward-grid,
    .ranking-grid,
    .process-grid,
    .honor-grid,
    .benefit-grid {
        grid-template-columns: 1fr !important;
    }

    .mobile-stack {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .mobile-center {
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .mobile-full {
        width: 100% !important;
    }

    .mobile-text {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }

    .mobile-hide {
        display: none !important;
    }

    .mobile-scroll {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .mobile-scroll::-webkit-scrollbar {
        display: none;
    }

    .mobile-card {
        min-width: 280px;
    }

    .mobile-p {
        padding: 16px !important;
    }

    .mobile-gap {
        gap: 14px !important;
    }

    .mobile-title {
        font-size: 22px !important;
    }

    .mobile-subtitle {
        font-size: 14px !important;
    }

}