/* =========================
   CARDS PAGE TITLE
========================= */

.cards-page-title {
    padding: 54px 0 30px;
    background: #dff2f1;
    border-bottom: 1px solid rgba(22, 184, 181, 0.10);
}

.cards-page-title-inner {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.cards-page-heading {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.12;
    font-weight: 800;
    color: #163b4d;
}

.cards-page-subheading {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #58707c;
}

/* =========================
   HERO BANNER
========================= */

.cards-hero-banner {
    padding: 26px 0 16px;
    background: #f7fbfb;
}

.cards-hero-banner-box {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(22, 184, 181, 0.08);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.cards-hero-banner-image {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================
   CARDS GRID SECTION
========================= */

.cards-grid-section {
    padding: 30px 0 60px;
    background: #f7fbfb;
}

.cards-grid-heading {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.cards-grid-heading h2 {
    margin: 0 0 10px;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 800;
    color: #163b4d;
}

.cards-grid-heading p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #60707b;
}

.cards-grid-row {
    row-gap: 24px;
}

/* =========================
   CARD TYPE BOX
========================= */

.card-type-box {
    display: flex;
    align-items: stretch;
    gap: 20px;
    height: 100%;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(22, 184, 181, 0.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-type-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.10);
    border-color: rgba(22, 184, 181, 0.18);
}

.card-type-box__image {
    width: 170px;
    min-width: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 18px;
    background: #f5fbfb;
    border: 1px solid rgba(22, 184, 181, 0.06);
}

.card-type-box__image img {
    display: block;
    max-width: 100%;
  /*  max-height: 150px; */
    width: auto;
    height: auto;
}

.card-type-box__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.card-type-box__title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #163b4d;
    cursor: pointer;
    transition: color 0.2s ease;
}

.card-type-box__title:hover {
    color: #16b8b5;
}

.card-type-box__text {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #60707b;
}

.card-type-box__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #16b8b5;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.card-type-box__link:hover {
    color: #0fa4a1;
    text-decoration: none;
    transform: translateX(2px);
}

/* =========================
   APP SECTION - LOCAL ONLY
   IMPORTANT: affects only cards page
========================= */

.cards-page-app-section {
    padding-top: 18px;
    padding-bottom: 70px;
    background: #f7fbfb;
}

.cards-page-app-section .home-app-premium__box {
    background: linear-gradient(135deg, #eef8f8 0%, #dff2f1 100%);
    border: 1px solid rgba(22, 184, 181, 0.10);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.cards-page-app-section .home-app-premium__badge {
    background: rgba(22, 184, 181, 0.10);
    color: #11b6b3;
}

.cards-page-app-section .home-app-premium__title {
    max-width: 520px;
}

.cards-page-app-section .home-app-premium__text {
    max-width: 560px;
    color: #5c6f7a;
}

.cards-page-app-section .home-app-premium__feature {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(22, 184, 181, 0.08);
}

.cards-page-app-section .home-app-premium__store {
    background: #ffffff;
    border: 1px solid rgba(22, 184, 181, 0.10);
}

.cards-page-app-section .home-app-premium__store:hover {
    border-color: rgba(22, 184, 181, 0.22);
}

.cards-page-app-section .home-app-premium__visual img {
    transform: scale(1.03);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991.98px) {
    .cards-page-heading {
        font-size: 36px;
    }

    .cards-grid-heading h2 {
        font-size: 34px;
    }

    .card-type-box {
        gap: 16px;
    }

    .card-type-box__image {
        width: 150px;
        min-width: 150px;
    }

    .card-type-box__title {
        font-size: 24px;
    }

    .cards-page-app-section {
        padding-bottom: 56px;
    }
}

@media (max-width: 767.98px) {
    .cards-page-title {
        padding: 40px 0 22px;
    }

    .cards-page-heading {
        font-size: 30px;
    }

    .cards-page-subheading,
    .cards-grid-heading p {
        font-size: 15px;
    }

    .cards-grid-heading h2 {
        font-size: 28px;
    }

    .cards-hero-banner {
        padding: 20px 0 10px;
    }

    .cards-hero-banner-box {
        border-radius: 20px;
    }

    .card-type-box {
        flex-direction: column;
        padding: 18px;
        border-radius: 20px;
    }

    .card-type-box__image {
        width: 100%;
        min-width: 100%;
        min-height: 180px;
    }

    .card-type-box__image img {
        max-height: 160px;
    }

    .card-type-box__title {
        font-size: 22px;
    }

    .card-type-box__text {
        font-size: 14px;
    }

    .cards-page-app-section {
        padding-top: 10px;
        padding-bottom: 46px;
    }

    .cards-page-app-section .home-app-premium__box {
        border-radius: 22px;
    }
}

@media (max-width: 575.98px) {
    .cards-grid-section {
        padding: 24px 0 46px;
    }

    .cards-page-heading {
        font-size: 28px;
    }

    .cards-grid-heading {
        margin-bottom: 22px;
    }

    .cards-page-app-section .home-app-premium__visual img {
        transform: none;
    }
}

/* =========================
   CARD BUTTON
========================= */

.card-type-box__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.card-type-box__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;
    border-radius: 999px;

    background: linear-gradient(135deg, #16b8b5 0%, #0fa4a1 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    box-shadow: 0 8px 18px rgba(22, 184, 181, 0.25);
    transition: all 0.25s ease;
}

.card-type-box__btn:hover {
    background: linear-gradient(135deg, #13afac 0%, #0c9b98 100%);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(22, 184, 181, 0.30);
}

.card-type-box__btn i {
    font-size: 13px;
}

.card-type-box:hover .card-type-box__btn {
    transform: translateX(4px);
}



/* =========================
   ITIC THEME
========================= */

.card-type-box--itic {
    border: 1px solid rgba(255, 140, 0, 0.20);
    background: linear-gradient(180deg, #fff8f2 0%, #ffffff 100%);
}

.card-type-box--itic:hover {
    border-color: rgba(255, 140, 0, 0.35);
    box-shadow: 0 20px 36px rgba(255, 140, 0, 0.12);
}

/* IMAGE */
.card-type-box--itic .card-type-box__image {
    background: #fff4eb;
    border: 1px solid rgba(255, 140, 0, 0.15);
}

/* TITLE */
.card-type-box--itic .card-type-box__title {
    color: #e96a00;
}

.card-type-box--itic .card-type-box__title:hover {
    color: #cc5a00;
}

/* TEXT */
.card-type-box--itic .card-type-box__text {
    color: #7a5a45;
}

/* BUTTON */
.card-type-box--itic .card-type-box__btn {
    background: linear-gradient(135deg, #ff8c00 0%, #ff5e00 100%);
    box-shadow: 0 8px 18px rgba(255, 120, 0, 0.25);
}

.card-type-box--itic .card-type-box__btn:hover {
    background: linear-gradient(135deg, #ff7a00 0%, #e65300 100%);
    box-shadow: 0 12px 22px rgba(255, 120, 0, 0.30);
}


/* =========================
   CARD BOX BASE POLISH
========================= */

.card-type-box {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 20px;
    height: 100%;
    padding: 22px;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfefe 100%);
    border: 1px solid rgba(22, 184, 181, 0.10);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card-type-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.10);
}

.card-type-box__image {
    width: 170px;
    min-width: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 22px;
    background: #f5fbfb;
    border: 1px solid rgba(22, 184, 181, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-type-box__image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.card-type-box__image img {
    display: block;
    max-width: 100%;
    max-height: 160px;
    width: auto;
    height: auto;
    transition: transform 0.25s ease;
}

.card-type-box:hover .card-type-box__image img {
    transform: scale(1.03);
}

.card-type-box__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.card-type-box__title {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    color: #163b4d;
    cursor: pointer;
    transition: color 0.2s ease;
}

.card-type-box__title:hover {
    color: #11b6b3;
}

.card-type-box__text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.7;
    color: #60707b;
}

.card-type-box__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.card-type-box__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #16b8b5 0%, #0fa4a1 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(22, 184, 181, 0.22);
    transition: all 0.25s ease;
}

.card-type-box__btn:hover {
    background: linear-gradient(135deg, #13afac 0%, #0c9b98 100%);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(22, 184, 181, 0.28);
}

/* =========================
   ISIC THEME
========================= */

.card-type-box:not(.card-type-box--itic) {
    border-color: rgba(22, 184, 181, 0.12);
    background: linear-gradient(180deg, #faffff 0%, #ffffff 100%);
}

.card-type-box:not(.card-type-box--itic):hover {
    border-color: rgba(22, 184, 181, 0.22);
    box-shadow: 0 20px 36px rgba(22, 184, 181, 0.10);
}

.card-type-box:not(.card-type-box--itic) .card-type-box__image {
    background: linear-gradient(180deg, #eefbfb 0%, #f8fefe 100%);
    border-color: rgba(22, 184, 181, 0.10);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.card-type-box:not(.card-type-box--itic) .card-type-box__title {
    color: #113c57;
}

.card-type-box:not(.card-type-box--itic) .card-type-box__title:hover {
    color: #11b6b3;
}

.card-type-box:not(.card-type-box--itic) .card-type-box__text {
    color: #5f7280;
}

.card-type-box:not(.card-type-box--itic) .card-type-box__btn {
    background: linear-gradient(135deg, #15bbb8 0%, #08a9a5 100%);
    box-shadow: 0 10px 20px rgba(22, 184, 181, 0.20);
}

.card-type-box:not(.card-type-box--itic) .card-type-box__btn:hover {
    background: linear-gradient(135deg, #12afac 0%, #079c99 100%);
    box-shadow: 0 14px 24px rgba(22, 184, 181, 0.26);
}

/* =========================
   ITIC THEME
========================= */

.card-type-box--itic {
    border: 1px solid rgba(255, 140, 0, 0.20);
    background: linear-gradient(180deg, #fff8f2 0%, #ffffff 100%);
}

.card-type-box--itic:hover {
    border-color: rgba(255, 140, 0, 0.35);
    box-shadow: 0 20px 36px rgba(255, 140, 0, 0.12);
}

.card-type-box--itic .card-type-box__image {
    background: linear-gradient(180deg, #fff4eb 0%, #fffaf6 100%);
    border: 1px solid rgba(255, 140, 0, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.card-type-box--itic .card-type-box__title {
    color: #e96a00;
}

.card-type-box--itic .card-type-box__title:hover {
    color: #cc5a00;
}

.card-type-box--itic .card-type-box__text {
    color: #7a5a45;
}

.card-type-box--itic .card-type-box__btn {
    background: linear-gradient(135deg, #ff8c00 0%, #ff5e00 100%);
    box-shadow: 0 8px 18px rgba(255, 120, 0, 0.25);
}

.card-type-box--itic .card-type-box__btn:hover {
    background: linear-gradient(135deg, #ff7a00 0%, #e65300 100%);
    box-shadow: 0 12px 22px rgba(255, 120, 0, 0.30);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991.98px) {
    .card-type-box__title {
        font-size: 24px;
    }

    .card-type-box__image {
        width: 150px;
        min-width: 150px;
    }
}

@media (max-width: 767.98px) {
    .card-type-box {
        flex-direction: column;
        padding: 18px;
        border-radius: 22px;
    }

    .card-type-box__image {
        width: 100%;
        min-width: 100%;
        min-height: 180px;
    }

    .card-type-box__title {
        font-size: 22px;
    }

    .card-type-box__text {
        font-size: 14px;
    }

    .card-type-box__footer {
        justify-content: flex-start;
    }
}
