﻿/* General article cards container - centers cards */
.div {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 0px 40px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.homepage .div {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 0px 40px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.homepage .content-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 calc(33.333% - 16px);
    min-width: 300px;
    max-width: 461.33px;
    align-items: flex-start;
    gap: 32px;
    padding: 16px 16px 32px;
    position: relative;
    /* fallback for browsers that don't support CSS variables */
    background-color: var(--nbg-grayscale-1);
    /* if --rgb is defined, this will override the previous line */
    background-color: rgba(var(--rgb), 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.homepage .content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.homepage .frame-2 {
    position: relative;
    align-self: stretch;
    width: 100%;
    height: 337px;
    border-radius: 20px;
    background-size: cover;
    background-position: 50% 50%;
}

.homepage .content-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0px 24px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.homepage .info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 0 0 auto;
}

.homepage .hubs-pillbox {
    display: inline-flex;
    align-items: flex-start;
    padding: 4px 13px;
    position: relative;
    flex: 0 0 auto;
    border-radius: 35px;
    background-color: rgba(var(--rgb),1);
}

.homepage .text-2 {
    position: relative;
    width: fit-content;
    margin-top: -1.00px;
    font-family: "Aptos-Bold", Helvetica;
    color: var(--primitive-color-neutral-white);
    font-size: 14px;
    letter-spacing: 0;
    line-height: 21px;
    white-space: nowrap;
}

.homepage .text-3 {
    position: relative;
    width: fit-content;
    font-family: "Aptos-Display", Helvetica;
    font-weight: 400;
    color: #696969;
    font-size: 14px;
    letter-spacing: 0;
    line-height: 21px;
    white-space: nowrap;
}

.homepage .p {
    font-family: "Aptos-Bold", Helvetica;
    font-weight: 700;
    color: #292929;
    font-size: 36px;
    line-height: 43.2px;
    position: relative;
    align-self: stretch;
    letter-spacing: 0;
}

.homepage .text-4 {
    position: relative;
    align-self: stretch;
    font-family: "Aptos-Display", Helvetica;
    font-weight: 400;
    color: var(--nbg-grayscale-5);
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
}

.homepage .button {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    flex: 0 0 auto;
}

.homepage .button-2 {
    all: unset;
    box-sizing: border-box;
    position: relative;
    width: fit-content;
    margin-top: -1.00px;
    font-family: "Aptos-Bold", Helvetica;
    font-weight: 700;
    color: #000000;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer;
}

/* Mobile responsive styles for article cards */
@media screen and (max-width: 768px) {
    .homepage .div {
        flex-direction: column;
        gap: 20px;
        padding: 0px 20px;
        align-items: center;
    }

    .homepage .content-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .homepage .frame-2 {
        height: 200px;
    }

    .homepage .p {
        font-size: 24px;
        line-height: 28.8px;
    }

    .homepage .content-2 {
        padding: 0px 16px;
    }
}

/* Tablet responsive styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .homepage .div {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 0px 30px;
    }

    .homepage .content-card {
        width: calc(50% - 10px);
        min-width: 300px;
    }

    .homepage .frame-2 {
        height: 250px;
    }
}
