@import url("https://fonts.googleapis.com/css?family=Playfair+Display:400,400i,700,700i,900,900i|Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i");

/* GOLD: #B3A26C */

.buy-main-container {
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    font-family: "Lato";
    background-color: #F5F5F5;
}

.buy-main-container .hero-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    filter: brightness(0.8);
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}

.buy-main-container .hero-svg {
    margin-top: 200px;
    color: white;
    position: relative;
    z-index: 2;
}

.buy-main-container h1 {
    color: white;
    font-family: "Lato";
    font-weight: normal;
    font-style: normal;
    font-size: 72px;
    line-height: 108%;
    text-align: center;
    margin-top: 33px;
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.buy-main-container .hero-desc {
    color: white;
    font-family: "Lato";
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    line-height: 108%;
    text-align: center;
    min-height: 112px;
    margin-top: 21px;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.buy-main-container .hero-button-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.buy-main-container .hero-button {
    padding: 16px 42px;
    margin: 0px;
    background-color: white;
    border: none;
    color: #b3a26c;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-main-container .hero-button:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

.buy-main-container .hero-button.active {
    padding: 16px 42px;
    margin: 0px;
    background-color: #b3a26c;
    border: none;
    color: white;
}

.buy-main-container .hero-button.active:hover {
    background-color: #9a8c5a;
}

.buy-main-container .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 340px));
    max-width: 1200px;
    width: 100%;
    margin-top: 50px;
    gap: 40px;
    justify-items: center;
    place-content: center;
    position: relative;
    z-index: 2;
}

/* Ensure max 3 columns */
@media (min-width: 1200px) {
    .buy-main-container .cards-container {
        grid-template-columns: repeat(auto-fit, 340px);
    }
}

/* Single column for tablets and small screens */
@media (max-width: 767px) {
    .buy-main-container .cards-container {
        grid-template-columns: 340px;
        gap: 20px;
    }
}

/* Special handling for 4 items - center the 4th item */
.buy-main-container .cards-container:has(.card:nth-child(4):last-child) {
    grid-template-columns: repeat(3, 340px);
}

.buy-main-container .cards-container:has(.card:nth-child(4):last-child) .card:nth-child(4) {
    grid-column: 2 / 3;
}

/* Fallback for browsers without :has() support */
.buy-main-container .cards-container .card:nth-child(4):last-child {
    grid-column: 2 / 3;
}

.card {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    padding: 14px;
    background-color: white;
    background: #FFF;
    box-shadow: 0px 31.661px 47.821px 0px rgba(0, 0, 0, 0.09);
}

.card.hidden {
    display: none;
}

.card-inner {
    border: 1px solid #b3a26c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    padding: 20px;
}

.card-inner-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.card-inner svg {
    color: #b3a26c;
    margin-top: 14px;
    flex-shrink: 0;
}

.card-inner .title {
    color: black;
    margin-top: 28px;
    font-size: 300;
    text-transform: uppercase;
    font-weight: 300;
    font-size: 37px;
    border-bottom: 1px solid #b3a26c;
    padding-bottom: 10px;
    margin-bottom: 0;
    text-align: center;
}

.card-inner .prize {
    color: #b3a26c;
    margin: 0px;
    font-weight: 300px;
    font-size: 55px;
    line-height: 144%;
}

.card-inner .description-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 8px;
}

.card-inner .description-container p {
    color: black;
    font-weight: 400;
    font-size: 14px;
    line-height: 144%;
    text-align: center;
    margin: 0;
}

.card-inner button {
    padding: 12px 58px;
    background-color: #b3a26c;
    color: white;
    font-size: 20px;
    border: none;
}

.divider-logo {
    margin-top: 165px;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1150px;
    padding: 0 20px;
    gap: 28px;
}

.divider-logo svg {
    color: black;
}

.divider-logo .divider {
    flex: 1;
    height: 1px;
    background-color: black;
    opacity: 0.6;
}

.divider-main-text {
    color: #b3a26c;
    font-weight: 300;
    font-size: 26px;
    line-height: 144%;
    text-align: center;
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
}

.divider-secondary-text {
    color: black;
    opacity: 0.75;
    font-weight: 700;
    font-size: 16px;
    line-height: 144%;
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin-top: 32px;
    padding: 0 20px;

}

.members {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.members .section-title {
    color: #b3a26c;
    font-weight: 300;
    font-size: 37px;
    text-align: center;
    border: 1px solid #b3a26c;
    padding: 8px 81px;
    margin-top: 140px;
    text-transform: uppercase;
}

.members .members-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 50px;
    width: 100%;
    padding: 0 24px;
}

.how-it-works {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    margin-bottom: 240px;
    width: 100%;
    padding: 0 24px;
}

.how-it-works .section-title {
    color: #b3a26c;
    font-weight: 300;
    font-size: 37px;
    text-align: center;
    border: 1px solid #b3a26c;
    padding: 8px 81px;
    margin-top: 140px;
    text-transform: uppercase;
}

.how-it-works .card-how {
    display: flex;
    box-shadow: 0px 2.65px 50.553px 0px rgba(0, 0, 0, 0.25);
    background: #FFF;
}

.how-it-works .card-how .image-container {
    position: relative;
    /* width: 40%; */
}

.how-it-works .card-how .image-container img {
    /* width: 100%; */
    height: 100%;
    height: auto;
    max-width: 400px;
    object-fit: cover;
}

.how-it-works .card-how .image-container .border {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%);
    border: 1px solid white;
}

.how-it-works .card-how .how-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 4px;
    width: 100%;
    padding: 0 48px
}

.how-it-works .card-how .how-text-container .how-text-subcontainer {
    display: flex;
    align-items: center;
    gap: 6px;
}

.how-it-works .card-how .how-text-container .text {
    color: #858585;
    margin: 0;
    font-size: 22px;
}

@media (max-width: 1024px) {
    .buy-main-container .hero-svg {
        margin-top: 125px;
    }

    .buy-main-container h1 {
        font-size: 48px;
        padding: 0 20px;;
    }

    .buy-main-container .hero-desc {
        font-size: 22px;
        padding: 0 20px;
    }

    .divider-logo {
        margin-top: 95px;
        margin-bottom: 50px;
    }

    .buy-main-container .hero-button-container {
        display: flex;
        flex-direction: column;
    }

    /* Responsive grid adjustments */
    .buy-main-container .cards-container {
        gap: 30px;
        padding: 0 20px;
    }

    /* Single column for mobile screens */
    @media (max-width: 767px) {
        .buy-main-container .cards-container {
            grid-template-columns: 1fr !important;
            gap: 20px;
        }
    }

    /* Reset 4-item centering on mobile */
    .buy-main-container .cards-container:has(.card:nth-child(4):last-child) {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .buy-main-container .cards-container:has(.card:nth-child(4):last-child) .card:nth-child(4) {
        grid-column: auto;
    }

    .how-it-works .card-how {
        flex-direction: column;
        align-items: center;
    }

    .how-it-works .card-how .image-container img {
        width: 100%;
        height: auto;
        max-width: unset;
        object-fit: cover;
    }

    .how-it-works .card-how .how-text-container {
        padding: 16px;
        gap: 12px;
    }

    .how-it-works .card-how .how-text-container .text {
        font-size: 18px;
    }
}