html,
body {
    background-color: #fafafa;
}

html,
body,
button,
input,
textarea,
select {
    font-family: "Inter", sans-serif;
}

#home .hero-section {
    display: none;
}

html {
    scroll-behavior: smooth;
}

body::-webkit-scrollbar {
    width: 0px;
}


/* =========================================================
   HOME HERO
========================================================= */

.home-hero {
    width: 100%;
    max-width: 100%;
    padding: 28px 5% 22px;
    box-sizing: border-box;
     background: #fafafa;
}

.home-hero-content {
    width: 100%;
    margin: 0 auto;
}

/* Level 1 Font Size */
.home-hero-content h1 {
    font-size: 52px;
    font-weight: 500;
    line-height: 1.12;
    color: black;
    text-align: left;
    letter-spacing: -0.025em;
    max-width: auto;
}

.home-divider {
    width: 65px;
    height: 3px;
    background-color: black;
    margin: 14px 0;
}

/* Level 2 Font Size */
.home-hero-content p {
    font-size: 15px;
    line-height: 1.45;
    color: black;
    text-align: left;
    margin: 0;
    max-width:auto;
    display: block;
}


/* =========================================================
   CATEGORY GRID - 5 COLUMNS
========================================================= */

.home-category-grid {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-top:25px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fafafa;
    box-sizing: border-box;
}

/* =========================================================
   CATEGORY CARD
========================================================= */

.category-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e8e8e8;
    background: #fafafa;
    text-decoration: none;
    box-sizing: border-box;
}

.category-card:last-child {
    border-right: none;
}


/* =========================================================
   CATEGORY IMAGE
========================================================= */

.category-image {
    width: 100%;
    height: 205px;
    overflow: hidden;
    background: #fafafa;
    flex-shrink: 0;
}

.category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.04);
}


/* =========================================================
   CATEGORY CONTENT
========================================================= */

.category-content {
    padding: 17px 20px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-sizing: border-box;
}

/* Level 3 Font Size */
.category-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: black;
    line-height: 1.25;
}

/* Level 4 Font Size */
.category-content p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: black;
    flex: 1;
    display: block;
    text-align: left;
}


/* =========================================================
   CATEGORY ARROW
========================================================= */

.category-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid black;
    border-radius: 50%;
    color: #343837;
    text-decoration: none;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
    margin-top: auto;
    flex-shrink: 0;
}

.category-arrow:hover {
    background: #343837;
    color: #ffffff;
    transform: translateX(4px);
}

.category-arrow svg {
    width: 16px;
    height: 16px;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #1a1a1a;
    box-sizing: border-box;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.footer-links p {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 525;
    letter-spacing: -0.01em;
}
.footer-links a {
    text-decoration: none;
    color: #ffffff; /* Base color for dark footer; change to black if background is light */
    font-size: 0.8rem;
    font-weight: 525;
    letter-spacing: -0.01em;
    cursor: pointer;
    position: relative;
    display: inline-block;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.footer-links a:hover,
.footer-links a.active-link {
    color: #267316;
}
.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #267316;
    transition: width 0.3s ease-in-out;
}
.footer-links a:hover::after,
.footer-links a.active-link::after {
    width: 100%;
}
/* =========================================================
   LARGE DESKTOP (1400px and above)
========================================================= */

@media (min-width: 1400px) {
    body::-webkit-scrollbar {
        width: 0px;
    }

    .home-hero {
        padding: 30px 5% 24px;
    }

    /* Level 1 */
    .home-hero-content h1 {
        font-size: 52px;
        max-width: 1100px;
    }

    .home-divider {
        margin: 13px 0;
    }

    /* Level 2 */
    .home-hero-content p {
        font-size: 17px;
        max-width: 650px;
    }

    .category-image {
        height: 205px;
    }

    .category-content {
        padding: 17px 20px 18px;
    }

    /* Level 3 */
    .category-content h3 {
        font-size: 18px;
    }

    /* Level 4 */
    .category-content p {
        font-size: 13px;
    }
}


/* =========================================================
   LAPTOP
   1025px - 1399px
========================================================= */

@media (min-width: 1025px) and (max-width: 1399px) {

    .home-hero {
        padding: 25px 5% 20px;
    }

    /* Level 1 */
    .home-hero-content h1 {
        font-size: 48px;
        max-width: 1150px;
    }

    /* Level 2 */
    .home-hero-content p {
        font-size: 15px;
        max-width: 650px;
    }

    .category-image {
        height: 195px;
    }

    .category-content {
        padding: 15px 16px 17px;
    }

    /* Level 3 */
    .category-content h3 {
        font-size: 16px;
    }

    /* Level 4 */
    .category-content p {
        font-size: 12.5px;
        line-height: 1.4;
    }

    .category-arrow {
        width: 32px;
        height: 32px;
    }
}


/* =========================================================
   TABLET
   769px - 1024px
========================================================= */

@media (max-width: 1024px) {
   body::-webkit-scrollbar {
        width: 0px;
    }

    .footer-links p {
        font-size: 0.7rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .home-hero {
        padding: 25px 5% 20px;
    }

    /* Level 1 */
    .home-hero-content h1 {
        font-size: 42px;
        line-height: 1.12;
    }

    /* Level 2 */
    .home-hero-content p {
        font-size: 15px;
        max-width: 600px;
    }

    .home-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-card:nth-child(3) {
        border-right: none;
    }

    .category-card:nth-child(4),
    .category-card:nth-child(5) {
        border-top: 1px solid #e8e8e8;
    }

    .category-image {
        height: 200px;
    }

    .category-content {
        padding: 17px 18px 20px;
    }

    /* Level 3 */
    .category-content h3 {
        font-size: 16px;
    }

    /* Level 4 */
    .category-content p {
        font-size: 13px;
    }
}


/* =========================================================
   MOBILE
   481px - 768px
========================================================= */

@media (max-width: 768px) {
    body::-webkit-scrollbar {
        width: 0px;
    }

    .home-hero {
        padding: 22px 5% 18px;
    }

    /* Level 1 */
    .home-hero-content h1 {
        font-size: 36px;
        line-height: 1.15;
        margin-bottom: 12px;
    }

    .home-divider {
        width: 55px;
        height: 3px;
        margin: 12px 0;
    }

    /* Level 2 */
    .home-hero-content p {
        font-size: 14px;
        line-height: 1.45;
        max-width: 100%;
    }

    .home-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card:nth-child(2),
    .category-card:nth-child(4) {
        border-right: none;
    }

    .category-card:nth-child(3),
    .category-card:nth-child(4),
    .category-card:nth-child(5) {
        border-top: 1px solid #e8e8e8;
    }

    .category-image {
        height: 195px;
    }

    .category-content {
        padding: 16px 16px 18px;
    }

    /* Level 3 */
    .category-content h3 {
        font-size: 16px;
        line-height: 1.25;
        margin-bottom: 7px;
    }

    /* Level 4 */
    .category-content p {
        font-size: 13px;
        line-height: 1.45;
        margin-bottom: 13px;
    }

    .category-arrow {
        width: 32px;
        height: 32px;
    }

    .category-arrow svg {
        width: 15px;
        height: 15px;
    }
}


/* =========================================================
   SMALL MOBILE
   480px and below
========================================================= */

@media (max-width: 480px) {
    body::-webkit-scrollbar {
        width: 0px;
    }

    .home-hero {
        padding: 20px 20px 16px;
    }

    /* Level 1 */
    .home-hero-content h1 {
        font-size: 27px;
        line-height: 1.15;
        letter-spacing: -0.02em;
        margin-bottom: 10px;
    }

    .home-divider {
        width: 50px;
        margin: 10px 0;
    }

    /* Level 2 */
    .home-hero-content p {
        font-size: 13.5px;
        line-height: 1.45;
    }

    .home-category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
    }

    .category-card:nth-child(3),
    .category-card:nth-child(4),
    .category-card:nth-child(5) {
        border-top: none;
    }

    .category-card:last-child {
        border-bottom: none;
    }

    .category-image {
        height: 220px;
    }

    .category-content {
        padding: 16px 18px 18px;
    }

    /* Level 3 */
    .category-content h3 {
        font-size: 17px;
    }

    /* Level 4 */
    .category-content p {
        font-size: 13.5px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   360px and below
========================================================= */

@media (max-width: 360px) {

    .home-hero {
        padding: 18px 18px 15px;
    }

    /* Level 1 */
    .home-hero-content h1 {
        font-size: 25px;
    }

    /* Level 2 */
    .home-hero-content p {
        font-size: 13px;
    }

    .category-image {
        height: 205px;
    }

    .category-content {
        padding: 14px 16px 17px;
    }

    /* Level 3 */
    .category-content h3 {
        font-size: 16px;
    }

    /* Level 4 */
    .category-content p {
        font-size: 13px;
    }
}