﻿
/* ---------- Base Container ---------- */
/* Base Container */
.nav-card-main {
    background: #e9f1f8;
    padding: 64px 0;
}

    .nav-card-main .mb-48 {
        margin-bottom: 48px;
    }

    .nav-card-main .quiz-card-border {
        border-color: rgb(113 123 138 / 1);
        border-width: 2px;
        border-style: solid;
        border-radius: .5rem;
    }

.nav-card-main h2 {
    font-size: 40px;
    line-height: 1.3;
    font-weight: 700 !important;
}

/* Quiz Card */
    .nav-card-main .quiz-card {
        background: #ffffff;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        height: 100%;
        border-radius: .5rem;
    }

    /* Hover effect */
        .nav-card-main .quiz-card:hover {
            /* transform: translateY(-4px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.12);*/
        }

/* Image */
    .nav-card-main .quiz-card-img {
        height: 10.25rem;
        overflow: hidden;
    }

        .nav-card-main .quiz-card-img img {
            width: calc(100% + 2px);
            height: 100%;
            /*object-fit: cover;*/
            transition: transform 0.4s ease;
        }

        .nav-card-main .quiz-card-img:hover img {
            transform: scale(1.08);
        }

/* Body */
    .nav-card-main .quiz-card-body {
        padding: 1.457rem;
        text-align: left;
        flex-grow: 1;
    }

        .nav-card-main .quiz-card-body h3 {
            font-size: 1.2rem;
            font-weight: 700 !important;
            color: rgb(51 51 51 / 1) !important;
            line-height: 1.34;
            margin-top: 8px !important;
            margin-bottom: 4px !important;
        }

        .nav-card-main .quiz-card-body p {
            margin-top: 20px !important;
            margin-bottom: 8px !important;
            font-size: 20px;
            line-height: 1.46;
            font-weight: 400;
            color: rgb(117 117 117 / 1) !important;
        }

    .nav-card-main .appeal-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #008caa;
        color: #ffffff !important;
        width: 100%;
        height: 64px;
        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: 30px !important;
        margin-top: 20px;
        margin-bottom: 8px;
    }

        .nav-card-main .appeal-btn:hover {
            border-color: rgb(23 49 69 / 1) !important;
            --tw-bg-opacity: 1;
            background-color: rgb(23 49 69 / 1) !important;
            color: rgb(252 213 0) !important;
        }


/* Link */
    .nav-card-main .quiz-link {
        align-items: center;
        display: flex;
        font-weight: 700;
        color: rgb(0 140 170 / 1);
        text-decoration: none;
        font-size: 20px;
        line-height: 1.46;
        margin-top: 20px;
        margin-bottom: 8px;
    }

        .nav-card-main .quiz-link:hover {
            color: #002f6c;
            transition: color 0.3s ease, border-color 0.3s ease;
        }

            .nav-card-main .quiz-link:hover img {
                fill: #002f6c;
            }

    .nav-card-main .quiz-card:hover {
        box-shadow: 0 0 #0000, 0 0 #0000, 3px 8px 15px 1px rgba(0, 0, 0, .35);
    }

        .nav-card-main .quiz-card:hover .quiz-card-title {
            --tw-text-opacity: 1;
            color: #008caa !important;
        }

        .nav-card-main .quiz-card:hover .quiz-card-img img {
            transform: scale(1.08);
        }

    .nav-card-main .slick-dots li button:before {
        font-size: 16px;
        line-height: 34px;
        width: 32px;
        height: 35px;
        color: #ebe4e4;
    }

    .nav-card-main .slick-dots li button:before {
        color: #e5dddd;
    }

    @media (min-width: 1200px) and (max-width: 1399.98px) {
        .nav-card-main .custom-xl-width {
            width: 91.666667%;
            max-width: 91.666667%;
            flex: 0 0 86%;
        }
    }
    /* Responsive Layout */
    @media (min-width: 1200px) {
        .nav-card-main .quiz-card-container {
            max-width: 430px;
            width: 100%;
        }
    }
    /* Tablet: 2 per row */
    @media (min-width: 768px) and (max-width: 1199px) {

        .nav-card-main .quiz-card {
            flex-direction: row;
        }

        .nav-card-main .quiz-card-body {
            padding: 20px;
            text-align: left;
            flex-grow: 1;
            flex: 1 1 60%;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .nav-card-main .nav-card-main h2 {
            font-size: 30px;
            line-height: 1.34;
        }

        .nav-card-main .nav-card-main-heading {
            text-align: start !important;
        }

            .nav-card-main .nav-card-main-heading img {
                margin-top: 10px;
            }

        .nav-card-main .mb-48 {
            margin-bottom: 32px;
        }

        .nav-card-main .quiz-card-img {
            min-height: 260px;
            overflow: hidden;
            flex: 1 1 40%;
            height: 100%;
        }

        .nav-card-main .nav-card-main {
            padding: 40px 15px;
        }

        .nav-card-main .quiz-card-body h3 {
            font-size: 26px;
            line-height: 1.39;
            margin-bottom: 0 !important;
        }

        .nav-card-main .quiz-card-body p {
            margin-top: 16px !important;
            font-size: 18px;
            line-height: 1.56;
            margin-bottom: 0 !important;
        }

        .nav-card-main .quiz-link {
            font-size: 18px;
            line-height: 1.56;
            margin-top: 24px;
            margin-bottom: 0;
        }

        .nav-card-main .appeal-btn {
            margin-bottom: 0 !important;
        }
    }
    /* Mobile: single column */
    @media (max-width: 767px) {

        .nav-card-main .quiz-card-body {
            padding: 20px;
            text-align: left;
            flex-grow: 1;
        }

        .nav-card-main h2 {
            font-size: 30px;
            line-height: 1.34;
        }

        .nav-card-main .nav-card-main-heading {
            text-align: start !important;
        }

            .nav-card-main .nav-card-main-heading img {
                margin-top: 10px;
            }

        .nav-card-main .mb-48 {
            margin-bottom: 32px;
        }

        .nav-card-main .quiz-card-img {
            height: 14.69rem;
            overflow: hidden;
        }

        .nav-card-main .nav-card-main {
            padding: 40px 15px;
        }

        .nav-card-main .quiz-card-img {
            width: 100%;
        }

        .nav-card-main .quiz-card {
            margin-bottom: 20px;
            
        }

        .nav-card-main .quiz-card-body h3 {
            font-size: 26px;
            line-height: 1.39;
            margin-bottom: 0 !important;
        }

        .nav-card-main .quiz-card-body p {
            margin-top: 16px !important;
            font-size: 18px;
            line-height: 1.56;
            margin-bottom: 0 !important;
        }

        .nav-card-main .quiz-link {
            font-size: 18px;
            line-height: 1.56;
            margin-top: 24px;
            margin-bottom: 0;
        }

        .nav-card-main .appeal-btn {
            margin-bottom: 0 !important;
        }

        .nav-card-main .slick-slider .slick-track, .slick-slider .slick-list {
            display: flex;
            opacity: 1;
            gap: 6px;
        }

        .nav-card-main .slick-carousel {
            display: flex;
            width: 100%;
            margin: 0 auto;
        }

        .quiz-card-carousel {
            display: flex !important;
            justify-content: center !important;
        }
    }
