/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= NAV ================= */
.navHeadContainer {
    background:
        linear-gradient(rgba(31, 81, 58, 0.55), rgba(31, 81, 58, 0.92)),
        url('../images/community-hero.jpeg') center/cover no-repeat;
    background-color: #1F513AE5;
    min-height: 420px;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbarCon {
    width: 95%;
    background-color: white;
    border-radius: 40px;
    padding: 10px 20px;
}

.imagesNavConList {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.imageList {
    display: flex;
    align-items: center;
    gap: 40px;
}

.imagesNavConList .imageList img {
    height: 60px;
}

.navMainList ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.navMainList ul li {
    font-weight: 600;
    font-size: 14px;
    color: rgba(34, 40, 42, 0.7);
    cursor: pointer;
}

.navMainList ul li a {
    text-decoration: none;
    color: inherit;
}

/* Active nav item */
.navMainList ul li.active a,
.navMainList ul li:has(> :not(a)) {
    color: #1f513a;
}

.navContactButton button {
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    background-color: #38644f;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* ================= HERO ================= */
.aboutHeroContent {
    width: 90%;
    max-width: 1200px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.aboutHeroContent h3 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.aboutHeroContent p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    line-height: 1.7;
}

/* ================= FEATURED ARTICLE ================= */
.featuredSection {
    display: flex;
    justify-content: center;
    padding: 50px 20px 30px;
    background: #fff;
}

.featuredContainer {
    width: 90%;
    max-width: 1200px;
    background: #f9f9f9;
    border-radius: 16px;
    padding: 40px;
    border-left: 4px solid #1f513a;
}

.featuredLabel {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #1f513a;
    text-transform: uppercase;
    display: block;
    margin-bottom: 14px;
}

.featuredContainer h2 {
    font-size: 24px;
    color: #1a2c24;
    margin-bottom: 12px;
    font-weight: 700;
}

.featuredContainer p {
    font-size: 14px;
    color: #6b7478;
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 24px;
}

.featuredMeta {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.readBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1f513a;
    color: white;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.readBtn:hover {
    background-color: #163d2c;
}

.metaInfo {
    font-size: 12px;
    color: #9aa0a4;
}

/* ================= FILTER BAR ================= */
.filterSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 10px;
    background: #fff;
}

.filterContainer {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.filterTabs {
    display: flex;
    gap: 8px;
}

.filterTab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1.5px solid #ddd;
    border-radius: 50px;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #6b7478;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filterTab.active,
.filterTab:hover {
    border-color: #1f513a;
    color: #1f513a;
    background: rgba(31, 81, 58, 0.06);
}

.filterSearch {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #ddd;
    border-radius: 50px;
    padding: 8px 18px;
    background: #fafafa;
    min-width: 260px;
}

.filterSearch i {
    color: #aaa;
    font-size: 13px;
}

.filterSearch input {
    border: none;
    background: transparent;
    font-size: 13px;
    color: #444;
    outline: none;
    width: 100%;
}

.tagContainer {
    width: 90%;
    max-width: 1200px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 10px;
}

.tag {
    padding: 5px 16px;
    border-radius: 50px;
    border: 1.5px solid #ddd;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: #6b7478;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag.active,
.tag:hover {
    background: #1f513a;
    border-color: #1f513a;
    color: white;
}

/* ================= ARTICLES GRID ================= */
.articlesSection {
    display: flex;
    justify-content: center;
    padding: 30px 20px 60px;
    background: #fff;
}

.articlesGrid {
    width: 90%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.articleCard {
    background: #f9f9f9;
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.articleCard:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.cardTag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    width: fit-content;
}

.cardTag.sustainability { background: #e6f0eb; color: #1f513a; }
.cardTag.education      { background: #e8f4fb; color: #1a6b9a; }
.cardTag.announcements  { background: #fef3e2; color: #b07a10; }
.cardTag.innovation     { background: #f0eafa; color: #6d35b0; }
.cardTag.featured-tag   { background: #1f513a; color: white; }

.articleCard h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a2c24;
    line-height: 1.4;
}

.articleCard p {
    font-size: 13px;
    color: #6b7478;
    line-height: 1.7;
    flex-grow: 1;
}

.cardMeta {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: #9aa0a4;
}

.cardMeta i {
    margin-right: 4px;
}

.cardReadMore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #1f513a;
    margin-top: 4px;
    transition: gap 0.2s ease;
}

.cardReadMore:hover {
    gap: 10px;
}

/* ================= JOIN / SUBSCRIBE CTA ================= */
.joinSection {
    display: flex;
    justify-content: center;
    padding: 80px 20px;
    background: #f1ede4;
}

.joinContainer {
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.joinContainer h2 {
    font-size: 32px;
    color: #254f3d;
    margin-bottom: 14px;
    font-weight: 700;
}

.joinContainer p {
    font-size: 14px;
    color: #6b7478;
    line-height: 1.7;
    margin-bottom: 32px;
}

.joinForm {
    display: flex;
    gap: 0;
    border-radius: 50px;
    overflow: hidden;
    border: 1.5px solid #ddd;
    background: white;
    max-width: 480px;
    margin: 0 auto;
}

.joinForm input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #444;
    background: transparent;
}

.joinForm button {
    padding: 14px 28px;
    background: #1f513a;
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 0 50px 50px 0;
}

.joinForm button:hover {
    background: #163d2c;
}

/* ================= FOOTER ================= */
.footerSection {
    width: 100%;
    background-color: #1f513a;
    color: white;
    padding: 80px 20px 30px;
}

.footerContainer {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.footerLeft img {
    width: 60px;
    margin-bottom: 15px;
}

.footerLeft p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.footerLinks h4,
.footerContact h4 {
    margin-bottom: 15px;
}

.footerLinks ul {
    list-style: none;
}

.footerLinks ul li {
    font-size: 13px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.7);
}

.footerContact p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}

.footerContact i {
    margin-right: 8px;
}

.socialIcons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.socialIcons span {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.footerBottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* ================= HAMBURGER (hidden on desktop) ================= */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .navMainList,
    .navContactButton {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .aboutHeroContent h3 {
        font-size: 2rem;
    }

    .articlesGrid {
        grid-template-columns: 1fr;
    }

    .filterContainer {
        flex-direction: column;
        align-items: flex-start;
    }

    .filterSearch {
        width: 100%;
    }

    .featuredMeta {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .footerContainer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .socialIcons {
        justify-content: center;
    }

    .joinForm {
        flex-direction: column;
        border-radius: 12px;
        overflow: visible;
        background: transparent;
        border: none;
        gap: 10px;
    }

    .joinForm input {
        border-radius: 50px;
        border: 1.5px solid #ddd;
        background: white;
        padding: 14px 20px;
    }

    .joinForm button {
        border-radius: 50px;
        padding: 14px 28px;
    }
}