
:root {
    --green: #064b2d;
    --green-dark: #032d1c;
    --green-light: #0d6940;
    --gold: #d9ad45;
    --gold-light: #f1d58b;
    --ivory: #f7f5ec;
    --white: #ffffff;
    --text: #20352a;
    --muted: #77847a;
    --shadow: 0 12px 35px rgba(0, 40, 20, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--ivory);
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* NAVBAR */

.main-navbar {
    background: var(--green-dark);
    padding: 12px 0;
    border-bottom: 1px solid rgba(217, 173, 69, 0.25);
}

.site-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    padding: 3px;
    border-radius: 10px;
    background: var(--white);
}

.brand-text {
    color: var(--white);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
}

.brand-text small {
    display: block;
    margin-top: 3px;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-navbar .nav-link {
    padding: 10px 13px !important;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--gold-light);
}

.main-navbar .register-nav {
    padding: 9px 17px !important;
    border: 1px solid var(--gold);
    border-radius: 7px;
}

/* PAGE BANNER */

.category-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 330px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(3, 45, 28, 0.97), rgba(6, 75, 45, 0.82)),
        url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1800&q=85")
        center 48% / cover no-repeat;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 40%, rgba(217, 173, 69, 0.15), transparent 30%);
}

.banner-content {
    position: relative;
    z-index: 2;
    padding-top: 45px;
    padding-bottom: 45px;
}

.banner-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: var(--gold-light);
    border: 1px solid rgba(217, 173, 69, 0.55);
    background: rgba(217, 173, 69, 0.10);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.category-banner h1 {
    margin: 20px 0 12px;
    color: var(--white);
    font-size: clamp(38px, 5vw, 57px);
    font-weight: 800;
    letter-spacing: -1.5px;
}

.category-banner h1 span {
    color: var(--gold);
}

.category-banner p {
    max-width: 500px;
    margin-bottom: 23px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.8;
}

.banner-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-light);
    font-size: 13px;
}

.banner-breadcrumb a {
    color: var(--white);
    transition: 0.3s;
}

.banner-breadcrumb a:hover {
    color: var(--gold);
}

.banner-breadcrumb i {
    font-size: 10px;
    color: var(--gold);
}

.banner-decoration {
    position: absolute;
    z-index: 1;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(217, 173, 69, 0.20);
    border-radius: 50%;
    pointer-events: none;
}

.decoration-one {
    right: 7%;
    top: -95px;
}

.decoration-two {
    right: 15%;
    bottom: -155px;
    width: 300px;
    height: 300px;
}

/* CATEGORY SECTION */

.categories-section {
    padding: 70px 0 85px;
}

.section-heading {
    margin-bottom: 42px;
}

.section-subtitle {
    display: inline-block;
    margin-bottom: 10px;
    color: #aa8126;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin-bottom: 15px;
    color: var(--green-dark);
    font-size: clamp(27px, 3.5vw, 36px);
    font-weight: 800;
    letter-spacing: -0.8px;
}

.section-heading h2 span {
    color: #b58a29;
}

.heading-line {
    width: 65px;
    height: 4px;
    margin: 0 auto;
    background: var(--gold);
    border-radius: 10px;
}

/* CATEGORY CARD */

.category-card {
    display: block;
    height: 100%;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(6, 75, 45, 0.08);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 35, 19, 0.045);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.category-image {
    position: relative;
    height: 225px;
    overflow: hidden;
    background: #e8eee7;
}

.category-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(
        to top,
        rgba(3, 45, 28, 0.28),
        transparent 48%
    );
    pointer-events: none;
}

.category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.07);
}

.category-icon {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: var(--gold);
    background: var(--green);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 13px;
    font-size: 21px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.13);
}

.category-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 76px;
    padding: 18px 18px;
}

.category-card-footer h3 {
    margin: 0;
    color: var(--green-dark);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.4;
    transition: color 0.25s;
}

.category-card:hover .category-card-footer h3 {
    color: #a77c20;
}

.category-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    color: var(--green);
    background: #eff5ef;
    border-radius: 50%;
    font-size: 15px;
    transition: all 0.25s;
}

.category-card:hover .category-arrow {
    color: var(--green-dark);
    background: var(--gold);
    transform: rotate(45deg);
}

/* FOOTER */

.site-footer {
    padding: 23px 0;
    color: rgba(255, 255, 255, 0.75);
    background: var(--green-dark);
    font-size: 12px;
    line-height: 1.8;
}

/* TABLET */

@media (max-width: 991.98px) {
    .main-navbar .navbar-collapse {
        padding-top: 12px;
    }

    .main-navbar .nav-link {
        padding: 10px 5px !important;
    }

    .main-navbar .register-nav {
        display: inline-block;
        margin-top: 5px;
    }

    .category-banner {
        min-height: 300px;
    }

    .categories-section {
        padding: 55px 0 65px;
    }

    .category-image {
        height: 205px;
    }

    .category-card-footer {
        padding: 15px;
    }

    .category-card-footer h3 {
        font-size: 16px;
    }
}

/* MOBILE */

@media (max-width: 575.98px) {
    .main-navbar {
        padding: 10px 0;
    }

    .site-logo {
        width: 41px;
        height: 41px;
    }

    .brand-text {
        font-size: 16px;
    }

    .brand-text small {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .category-banner {
        min-height: 250px;
        background-position: center;
    }

    .banner-content {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .banner-label {
        padding: 7px 11px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    .category-banner h1 {
        margin: 17px 0 10px;
        font-size: 36px;
        letter-spacing: -1px;
    }

    .category-banner p {
        max-width: 310px;
        margin-bottom: 17px;
        font-size: 13px;
    }

    .banner-decoration {
        opacity: 0.5;
    }

    .categories-section {
        padding: 40px 0 50px;
    }

    .section-heading {
        margin-bottom: 27px;
    }

    .section-subtitle {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .category-image {
        height: 145px;
    }

    .category-icon {
        right: 9px;
        bottom: 9px;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 17px;
    }

    .category-card {
        border-radius: 12px;
    }

    .category-card-footer {
        min-height: 65px;
        padding: 11px 10px;
    }

    .category-card-footer h3 {
        font-size: 13px;
        line-height: 1.4;
    }

    .category-arrow {
        flex-basis: 25px;
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .site-footer {
        padding: 17px 10px;
        font-size: 11px;
    }
}

/* EXTRA SMALL MOBILE */

@media (max-width: 360px) {
    .category-image {
        height: 120px;
    }

    .category-card-footer {
        padding: 9px 8px;
    }

    .category-card-footer h3 {
        font-size: 12px;
    }

    .category-arrow {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }
}
