﻿/* ── Variables (same design system as hot-deals) ────────────────── */
:root {
    --cca-primary: #003B70;
    --cca-secondary: #00C4B3;
    --cca-secondary-bg: rgba(0, 196, 179, 0.08);
    --cca-white: #FFFFFF;
    --cca-font: 'Co Headline', sans-serif;
    --cca-radius-card: 16px;
}


/* ================================================================
   SECTION WRAPPER
   ================================================================ */
.cca_section {
    width: 100%;
    padding: 20px 30px;
    box-sizing: border-box;
}

.cca_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0 auto;
  /*  min-height: 663px;*/
}


/* ================================================================
   TOP BLOCK  (badge + title row)
   ================================================================ */
.cca_top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
   /* height: 100px;*/
    justify-content: center;
}


/* ── Badge ──────────────────────────────────────────────────────── */
.cca_badge-wrap {
    margin-top:20px;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 15px 15px;
    gap: 10px;
    background: var(--cca-secondary-bg);
    border-radius: 300px;
    width: fit-content;
}

.cca_badge-dot {
    width: 4px;
    height: 4px;
    background: var(--cca-secondary);
    border-radius: 200px;
    flex-shrink: 0;
    display: none !important;
}

.cca_badge-text {
    font-family: var(--cca-font);
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: var(--cca-secondary);
    white-space: nowrap;
}


/* ── Title row  (heading + see more button) ─────────────────────── */
.cca_title-row {

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    width: 100%;
    gap: 24px;
}

.cca_title {
    font-family: var(--cca-font);
    font-style: normal;
    font-weight: 400;
    font-size: 32px;
    line-height: 130%;
    text-transform: capitalize;
    color: var(--cca-primary);
    margin: 0;
    flex: 1;
}

.cca_see-more {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2px 16px;
    gap: 10px;
    width: 150px;
    height: 38px;
    background: #8BDC64;
    border-radius: 23px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

    .cca_see-more:hover {
        background: #00a99a;
    }

    .cca_see-more span {
        font-family: var(--cca-font);
        font-style: normal;
        font-weight: 400;
        font-size: 14px;
        line-height: 24px;
        text-transform: uppercase;
        color: var(--cca-white);
        white-space: nowrap;
    }


/* ================================================================
   CARDS GRID  (two image cards side by side)
   ================================================================ */
.cca_cards-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
   /* height: 539px;*/
}

/* ── Each image card ────────────────────────────────────────────── */
.cca_card {
    flex: 1;
    height: 380px;
    border-radius: var(--cca-radius-card);
    overflow: hidden;
    position: relative;
}

/* Card with plain background image */
.cca_card--plain {
    background: url('../images/credit-cards/card-person.jpg') center center / cover no-repeat;
}

/* Card with dark overlay */
.cca_card--overlay {
    background: linear-gradient(0deg, rgba(0, 59, 112, 0.3), rgba(0, 59, 112, 0.3)), url('../images/credit-cards/card-stylish.png') center center / cover no-repeat;
}

/* If using <img> tag inside the card instead of CSS background */
.cca_card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: var(--cca-radius-card);
}

.cca_card--overlay img {
    filter: brightness(0.75);
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ── Tablet ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .cca_section {
        padding: 32px 16px;
    }

    .cca_cards-grid {
        height: auto;
        gap: 16px;
    }

    .cca_card {
        height: 420px;
    }

    .cca_title {
        font-size: 26px;
    }
}

/* ── Mobile landscape ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .cca_section {
        padding:  32px 16px;
    }

    .cca_container {
        gap: 20px;
        min-height: unset;
    }

    .cca_top {
        height: auto;
        gap: 16px;
    }

    .cca_title-row {

        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .cca_title {
        font-size: 22px;
        line-height: 130%;
    }

    .cca_see-more {
        width: 106px;
        padding: 2px 16px;
    }

    .cca_cards-grid {
        flex-direction: column;
        height: auto;
        gap: 16px;
    }

    .cca_card {
        width: 100%;
        height: 320px;
    }

    .cca_card--plain {
        background-position: center top;
    }
}

/* ── Mobile portrait ────────────────────────────────────────────── */
@media (max-width: 480px) {
    .cca_section {
        padding: 32px 16px;
    }

    .cca_title {
        font-size: 18px;
    }

    .cca_see-more span {
        font-size: 12px;
    }

    .cca_card {
        height: 260px;
    }
}
