/*
Theme Name: Astra Child
Author: Brainstorm Force
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* =========================================================
   NEET ULTIMATE GOAL — CUSTOM CATEGORY ARCHIVE
========================================================= */


/* =========================================================
   ASTRA OVERRIDE ISOLATION
   These rules only affect the custom category template.
========================================================= */

.nug-category-page {
    box-sizing: border-box;
}

.nug-category-page *,
.nug-category-page *::before,
.nug-category-page *::after {
    box-sizing: border-box;
}

.nug-category-page h1,
.nug-category-page h2,
.nug-category-page h3,
.nug-category-page p {
    margin-top: 0;
}

.nug-category-page img {
    max-width: 100%;
}

.nug-category-page a {
    text-decoration: none;
}

/* =========================================================
   NEET ULTIMATE GOAL
   CUSTOM CATEGORY ARCHIVE DESIGN
========================================================= */

:root {
    --nug-green: #557C4C;
    --nug-green-dark: #46683F;
    --nug-green-light: #EEF4EC;

    --nug-navy: #102A43;
    --nug-text: #243B53;
    --nug-muted: #627D98;

    --nug-bg: #F4F7F5;
    --nug-white: #FFFFFF;
    --nug-border: #E2E8E5;

    --nug-radius: 14px;
    --nug-container: 1350px;
}


/* =========================================================
   MAIN PAGE
========================================================= */

.nug-category-page {
    width: 100%;
    background: var(--nug-bg);
    color: var(--nug-text);
    font-family: "Manrope", sans-serif;
    overflow: hidden;
}

.nug-container {
    width: min(var(--nug-container), calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   CATEGORY HERO
========================================================= */

.nug-category-hero {
    padding: 80px 0 70px;
    background: var(--nug-white);
    border-bottom: 1px solid var(--nug-border);
}

.nug-category-hero .nug-container {
    max-width: 1000px;
    margin-left: max(
        calc((100% - var(--nug-container)) / 2),
        24px
    );
}

.nug-eyebrow,
.nug-small-label {
    display: inline-block;
    margin-bottom: 14px;

    color: var(--nug-green);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.nug-category-hero h1 {
    margin: 0 0 18px;

    color: var(--nug-navy);

    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 700;

    letter-spacing: -2px;
}

.nug-category-description {
    max-width: 820px;

    color: var(--nug-muted);

    font-size: 18px;
    line-height: 1.75;
}

.nug-category-description p {
    margin: 0;
}


/* =========================================================
   CATEGORY NAVIGATION
========================================================= */

.nug-category-nav-section {
    background: var(--nug-white);
    border-bottom: 1px solid var(--nug-border);
}

.nug-category-nav {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 20px 0;

    overflow-x: auto;
    scrollbar-width: none;
}

.nug-category-nav::-webkit-scrollbar {
    display: none;
}

.nug-category-link {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 18px;

    border: 1px solid var(--nug-border);
    border-radius: 999px;

    background: #fff;

    color: var(--nug-text);

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.nug-category-link:hover {
    border-color: var(--nug-green);
    color: var(--nug-green);

    transform: translateY(-1px);
}

.nug-category-link.active {
    border-color: var(--nug-green);
    background: var(--nug-green);
    color: #fff;
}


/* =========================================================
   FEATURED SECTION
========================================================= */

.nug-featured-section {
    padding: 70px 0 30px;
}

.nug-featured-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 55px;

    align-items: start;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.nug-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 24px;
}

.nug-section-heading h2 {
    margin: 0;

    color: var(--nug-navy);

    font-size: 30px;
    line-height: 1.2;
    font-weight: 750;

    letter-spacing: -0.7px;
}


/* =========================================================
   FEATURED ARTICLE
========================================================= */

.nug-featured-card {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 0.95fr);

    min-height: 390px;

    overflow: hidden;

    background: var(--nug-white);

    border: 1px solid var(--nug-border);
    border-radius: var(--nug-radius);

    box-shadow:
        0 8px 30px rgba(16, 42, 67, 0.045);
}

.nug-featured-image {
    display: block;

    min-height: 390px;

    overflow: hidden;

    background: #e9eeeb;
}

.nug-featured-image img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 390px;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.nug-featured-card:hover .nug-featured-image img {
    transform: scale(1.035);
}

.nug-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 42px;
}

.nug-post-category {
    margin-bottom: 12px;

    color: var(--nug-green);

    font-size: 13px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nug-featured-content h3 {
    margin: 0 0 16px;

    color: var(--nug-navy);

    font-size: 31px;
    line-height: 1.25;
    font-weight: 750;

    letter-spacing: -0.7px;
}

.nug-featured-content h3 a {
    color: inherit;
    text-decoration: none;
}

.nug-featured-content h3 a:hover {
    color: var(--nug-green);
}

.nug-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 18px;

    color: var(--nug-muted);

    font-size: 13px;
    font-weight: 600;
}

.nug-post-excerpt {
    margin-bottom: 25px;

    color: var(--nug-muted);

    font-size: 16px;
    line-height: 1.7;
}

.nug-read-more,
.nug-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    width: fit-content;

    color: var(--nug-green);

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    transition: gap 0.2s ease;
}

.nug-read-more:hover,
.nug-card-link:hover {
    color: var(--nug-green-dark);
    gap: 12px;
}


/* =========================================================
   ADVERTISEMENT
========================================================= */

.nug-ad-wrapper {
    position: sticky;
    top: 110px;
}

.nug-ad-label {
    margin-bottom: 10px;

    color: var(--nug-muted);

    font-size: 11px;
    font-weight: 700;

    text-align: center;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.nug-ad-box {
    width: 300px;
    min-height: 600px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto;

    border: 1px solid var(--nug-border);

    background: #fff;

    color: #A0AEC0;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   LATEST ARTICLES
========================================================= */

.nug-latest-section {
    padding: 55px 0 80px;
}

.nug-article-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   ARTICLE CARD
========================================================= */

.nug-article-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--nug-white);

    border: 1px solid var(--nug-border);
    border-radius: var(--nug-radius);

    box-shadow:
        0 6px 25px rgba(16, 42, 67, 0.035);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.nug-article-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(16, 42, 67, 0.08);
}

.nug-article-image {
    display: block;

    width: 100%;
    height: 215px;

    overflow: hidden;

    background: #e9eeeb;
}

.nug-article-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.nug-article-card:hover .nug-article-image img {
    transform: scale(1.04);
}

.nug-no-image {
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #eef4ec,
            #f7f9f7
        );

    color: var(--nug-green);

    font-size: 18px;
    font-weight: 800;

    text-decoration: none;
}

.nug-article-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 26px;
}

.nug-article-content h3 {
    margin: 0 0 12px;

    color: var(--nug-navy);

    font-size: 21px;
    line-height: 1.35;
    font-weight: 750;

    letter-spacing: -0.3px;
}

.nug-article-content h3 a {
    color: inherit;
    text-decoration: none;
}

.nug-article-content h3 a:hover {
    color: var(--nug-green);
}

.nug-article-content .nug-post-meta {
    margin-bottom: 15px;
}

.nug-article-content p {
    margin: 0 0 20px;

    color: var(--nug-muted);

    font-size: 14px;
    line-height: 1.7;
}

.nug-card-link {
    margin-top: auto;
}


/* =========================================================
   PAGINATION
========================================================= */

.nug-pagination {
    display: flex;
    justify-content: center;

    margin-top: 50px;
}

.nug-pagination ul {
    display: flex;

    align-items: center;
    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.nug-pagination li {
    margin: 0;
    padding: 0;
}

.nug-pagination a,
.nug-pagination span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding: 0 13px;

    border: 1px solid var(--nug-border);
    border-radius: 8px;

    background: #fff;

    color: var(--nug-text);

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}

.nug-pagination a:hover {
    border-color: var(--nug-green);
    color: var(--nug-green);
}

.nug-pagination .current {
    border-color: var(--nug-green);
    background: var(--nug-green);
    color: #fff;
}


/* =========================================================
   RESOURCES
========================================================= */

.nug-resources-section {
    padding: 0 0 90px;
}

.nug-resources-box {
    position: relative;

    overflow: hidden;

    padding: 55px 60px;

    border: 1px solid #DCE7D9;
    border-radius: var(--nug-radius);

    background: var(--nug-green-light);
}

.nug-resources-box::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -90px;
    bottom: -110px;

    border-radius: 50%;

    background: rgba(85, 124, 76, 0.08);
}

.nug-resources-box h2 {
    position: relative;
    z-index: 2;

    margin: 0 0 12px;

    color: var(--nug-navy);

    font-size: 32px;
    line-height: 1.2;
}

.nug-resources-box p {
    position: relative;
    z-index: 2;

    max-width: 650px;

    margin: 0 0 25px;

    color: var(--nug-muted);

    font-size: 16px;
    line-height: 1.7;
}

.nug-resource-button {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 13px 21px;

    border-radius: 8px;

    background: var(--nug-green);

    color: #fff;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.nug-resource-button:hover {
    background: var(--nug-green-dark);
    color: #fff;

    transform: translateY(-2px);
}


/* =========================================================
   NO POSTS
========================================================= */

.nug-no-posts {
    padding: 50px 25px;

    border: 1px solid var(--nug-border);
    border-radius: var(--nug-radius);

    background: #fff;

    color: var(--nug-muted);

    text-align: center;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .nug-featured-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    .nug-ad-wrapper {
        position: static;
    }

    .nug-ad-box {
        width: 100%;
        max-width: 300px;
        min-height: 250px;
    }

    .nug-article-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   TABLET SMALL
========================================================= */

@media (max-width: 800px) {

    .nug-container {
        width: min(
            var(--nug-container),
            calc(100% - 32px)
        );
    }

    .nug-category-hero {
        padding: 60px 0 55px;
    }

    .nug-category-hero .nug-container {
        margin-left: auto;
    }

    .nug-category-hero h1 {
        font-size: 46px;
        letter-spacing: -1.5px;
    }

    .nug-category-description {
        font-size: 16px;
    }

    .nug-featured-card {
        grid-template-columns: 1fr;
    }

    .nug-featured-image,
    .nug-featured-image img {
        min-height: 280px;
        height: 280px;
    }

    .nug-featured-content {
        padding: 30px;
    }

    .nug-featured-content h3 {
        font-size: 27px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .nug-container {
        width: calc(100% - 28px);
    }

    .nug-category-hero {
        padding: 48px 0 45px;
    }

    .nug-category-hero h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .nug-category-description {
        font-size: 15px;
        line-height: 1.65;
    }

    .nug-category-nav {
        padding: 15px 0;
    }

    .nug-category-link {
        min-height: 38px;
        padding: 0 15px;

        font-size: 12px;
    }

    .nug-featured-section {
        padding-top: 45px;
    }

    .nug-section-heading {
        margin-bottom: 20px;
    }

    .nug-section-heading h2 {
        font-size: 25px;
    }

    .nug-featured-image,
    .nug-featured-image img {
        min-height: 220px;
        height: 220px;
    }

    .nug-featured-content {
        padding: 25px;
    }

    .nug-featured-content h3 {
        font-size: 23px;
    }

    .nug-post-excerpt {
        font-size: 14px;
    }

    .nug-latest-section {
        padding: 35px 0 60px;
    }

    .nug-article-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .nug-article-image {
        height: 210px;
    }

    .nug-article-content {
        padding: 22px;
    }

    .nug-article-content h3 {
        font-size: 20px;
    }

    .nug-resources-section {
        padding-bottom: 60px;
    }

    .nug-resources-box {
        padding: 35px 25px;
    }

    .nug-resources-box h2 {
        font-size: 27px;
    }

    .nug-pagination {
        margin-top: 35px;
    }

    .nug-pagination ul {
        gap: 5px;
    }

    .nug-pagination a,
    .nug-pagination span {
        min-width: 36px;
        height: 36px;

        padding: 0 9px;

        font-size: 12px;
    }

}


/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .nug-category-hero h1 {
        font-size: 34px;
    }

    .nug-featured-content h3 {
        font-size: 21px;
    }

    .nug-section-heading h2 {
        font-size: 23px;
    }

}