.container:has(.hero-container),
.col-12:has(.hero-container) {
    padding: 0;
}

/* Shared Button Styles */
.btn {
    background: black;
    color: white;
    border: none;
    padding: 12px;
    font-size: 14px;
    width: 16rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.btn:hover {
    color: white;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===Top Hero Container=== */
.hero-container {
    background-color: #F9EBEE;
    padding: 3% 5% 1%;
    max-width: 1680px;
    min-width: 1280px;
    margin: 30px auto 0;
    color: #111;
}

.hero-wrapper {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
}

.text-wrapper {
    flex: 1;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    margin-left: 3%;
    text-align: left;
}

.hero-content {
    text-align: left;
}

.hero-wrapper h1 {
    text-align: left;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 2px;
    font-family: "Ethic Serif";
    margin: 0;
}

.hero-content h2 {
    font-size: 38px;
    font-weight: 600;
    letter-spacing: 0px;
}

.hero-content p {
    font-size: 16px;
    line-height: 19px;
}

.hero-content small {
    font-size: 12px;
}

.hero-content .offer-txt {
    font-size: 24px;
    color: #CA6C60;
    font-weight: 400;
}

.hero-image {
    flex: 0 0 auto;
    max-width: 350px;
    position: relative;
    height: 220px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 2vw;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.card-back {
    position: absolute;
    top: 60%;
    right: 14%;
    transform: translateY(-50%);
    z-index: 1;
}

.card-front {
    position: absolute;
    top: 32%;
    right: 42%;
    transform: translateY(-50%);
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    margin-top: 36px;
}

.hero-divider {
    margin-top: 50px;
    border: none;
    height: 2px;
    background: black;
    width: 94%;
}

@media (max-width: 768px) {
    .hero-container {
        min-width: unset;
    }

    .hero-wrapper {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .text-wrapper {
        width: 100%;
        display: contents;
        text-align: center;
        font-size: 10px;
    }

    .hero-wrapper h1 {
        font-size: 28px;
        letter-spacing: 0px;
        order: 0;
        text-align: center;
        width: 100%;
    }

    .hero-image {
        order: 1;
        max-width: 184px;
        margin: 15px 0 30px 98px;
        height: 130px;
        justify-content: center;
    }

    .hero-content {
        order: 2;
        margin: 0 2%;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 11px;
        line-height: 14px;
    }

    .hero-content .offer-txt {
        font-size: 18px;
    }

    .hero-content small {
        font-size: 7px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========Perks Container========= */
.perks-container {
    background-color: #F9EBEE;
    padding: 3% 5%;
    max-width: 1680px;
    min-width: 1280px;
    margin: 0 auto;
    color: #111;
}

.perks-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.perks-wrapper h1 {
    font-size: 52px;
    font-weight: 400;
    text-align: center;
    font-family: "Ethic Serif";
    letter-spacing: 0px;
    margin: 0;
}

.perks-images {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-bottom: 38px;
}

.perks-images img {
    max-width: 87.5px;
    height: auto;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    position: static;
    transform: none;
    top: auto;
    right: auto;
}

.perks-icons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
    margin: 0 auto 20px;
}

.icon-item {
    flex: 1;
    text-align: center;
}

.icon-item img {
    width: 108px;
    height: auto;
}

.applePay img {
    padding: 30px 0 8px;
}


.icon-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 5px;
}

.icon-item p {
    font-size: 14px;
    margin: 0;
}

.reward-text {
    background-color: #FEE3E8;
    padding: 10px 20px;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
    margin: 20px 0;
}

.perks-wrapper small {
    font-size: 12px;
    text-align: center;
    margin-top: 15px;
}

.perks-divider {
    margin: 30px 0;
    border: none;
    height: 1px;
    background: black;
    width: 100%;
}

@media (max-width: 768px) {
    .perks-container {
        min-width: unset;
    }

    .perks-wrapper {
        margin-top: 0px;
    }

    .perks-wrapper h1 {
        font-size: 30px;
    }

    .perks-images {
        margin: 15px;
    }

    .perks-images img {
        max-width: 76px;
    }

    .perks-images {
        padding-bottom: 0px;
    }

    .perks-icons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .icon-item img {
        width: 86px;
    }

    .icon-item p {
        font-size: 12px;
    }

    .applePay img {
        width: 76px;
        padding: 28px 0 9px;
    }

    .reward-text {
        margin: 15px 0;
    }

    .reward-text {
        font-size: 18px;
    }

    .perks-wrapper small {
        margin: 15px 0;
    }
}

/* Grid Container */
section.perks-grid-container {
    padding: 3% 5%;
    max-width: 1680px;
    min-width: 1280px;
    margin: 0 auto;
    color: #111;
}

section.perks-grid-container h1 {
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 15px;
    font-family: "Ethic Serif";
}

section.perks-grid-container>p {
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
}

/* Grid Sections */
.perks-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    /* Wider first column for descriptions */
    gap: 10px;
    padding: 20px;
}

/* Gradient Backgrounds */
.perks-bg--green {
    background: linear-gradient(to bottom, #E0C2C2, #F6EEEF);
}

.perks-bg--pink {
    background: linear-gradient(to bottom, #F9F0E5, #FCFAF9);
}

/* Grid Rows - Revert to display: contents for row behavior */
.perks-grid-row {
    display: contents;
    /* Child divs map to grid cells */
}

/* Add continuous black lines using pseudo-elements */
.perks-grid-row::after {
    content: '';
    grid-column: 1 / -1;
    /* Span all columns */
    border-bottom: 1px solid #000;
    /* Thin black line */
    height: 1px;
    /* Ensure thin line */
}

.perks-grid-row:last-child::after {
    border-bottom: none;
    /* Remove border from the last row */
}

/* Ensure child divs align correctly - center by default */
.perks-grid-row div {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* Override for left-aligned text - only apply to perks-text--left */
.perks-text--left {
    justify-content: flex-start !important;
    text-align: left;
}

/* Heading Row */
.perks-grid-row--heading div {
    align-items: flex-end;
    justify-content: center;
}

.perks-grid-row--heading h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.perks-grid-row--heading small {
    font-size: 12px;
    display: block;
}

.perks-vert {
    line-height: 1.2;
}

/* Data Rows */
.perks-grid-row span {
    font-size: 14px;
}

.perks-grid-row img {
    width: 20px;
    height: auto;
}

.perks-grid-row div:empty {
    /* Optional: Add a dash for empty cells */
    /* content: "-"; */
    /* color: #999; */
}

/* Mobile Styles */
@media (max-width: 768px) {
    section.perks-grid-container {
        min-width: unset;
        padding: 3% 2%;
    }

    section.perks-grid-container>p {
        font-size: 13px;
        text-align: center;
        margin-bottom: 30px;
    }

    .perks-grid-container h1 {
        font-size: 27px;
        letter-spacing: 1px;
    }

    .perks-grid {
        display: flex;
        flex-direction: column;
        padding: 8px;
        gap: 2px;
    }

    .perks-grid-row {
        display: contents;
    }

    .perks-grid-row--heading {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 2px;
        width: 100%;
        margin-bottom: 5px;
    }

    .perks-grid-row--heading div {
        text-align: center;
    }

    .perks-text--left {
        grid-column: 1 / 1;
        text-align: center;
        margin-bottom: 2px;
        width: 100%;
    }

    .perks-grid-row div:not(.perks-text--left):not(.perks-grid-row--heading div) {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2px;
        max-width: 80%;
    }

    /* Vertical headings with increased height and forced wrapping */
    .perks-vert {
        line-height: 0.8;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        white-space: normal;
        font-size: 12px !important;
        max-height: 117px;
        padding: 2px;
        text-align: left !important;
    }

    .perks-grid-row:not(.perks-grid-row--heading) {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 2px;
        width: 100%;
    }

    .perks-grid-row::after {
        content: '';
        grid-column: 1 / -1;
        border-bottom: 1px solid #000;
        margin-top: 2px;
    }

    .perks-grid-row:last-child::after {
        border-bottom: none;
    }

    .perks-grid-row img {
        width: 12px;
        height: auto;
    }

    .perks-grid-row span {
        font-size: 11px;
        text-align: left;
    }
}

/* Final Container */
.final-container {
    padding: 3% 5%;
    max-width: 1680px;
    min-width: 1280px;
    margin: 0 auto;
    color: #111;
}

/* Wrapper for Desktop Flex Layout */
.final-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 3vw;
}

/* Box Styling */
.final-box {
    flex: 1;
    background-color: #f8f1e6;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 300px;
}

.final-box--left {
    justify-content: center;
}


/* Typography */
.final-box h1 {
    font-size: 22px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 15px;
    font-family: "Ethic Serif";
}

.final-box--left>h1>span {
    font-weight: 400;
}

.final-box p {
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.final-box small {
    font-size: 12px;
    text-align: center;
    margin-top: 15px;
}

.final-box small a {
    text-decoration: underline;
}

/* Cards within Right Box */
.final-cards {
    display: flex;
    flex-direction: row;
    gap: 3vw;
    width: 100%;
    margin-top: 20px;
    justify-content: center;
}

.final-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.final-card img {
    max-width: 80%;
    height: auto;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .final-container {
        min-width: unset;
        padding: 3% 2%;
    }

    .final-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .final-box {
        max-width: 100%;
        min-height: unset;
    }

    .final-box h1 {
        font-size: 19px;
        letter-spacing: 1px;
    }

    .final-box p {
        margin-bottom: 15px;
    }

    .final-cards {
        flex-direction: column;
        gap: 50px;
        margin-top: 0;
    }

}

.credit-disclaimer {
    background: #F9EBEE;
    padding: 2% 3%;
    max-width: 1680px;
    margin: 1% auto;
    font-size: .85rem;
    color: #111;
}

@media (max-width: 768px) {
    .credit-disclaimer {
        font-size: 11px;
        padding: 3% 5%;
    }
}