﻿
/* CARD WRAPPER */
.comp-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 6px;
    /*padding: 0 10px;*/
}

/* DESKTOP: show 4 cards when Slick is OFF */
@media (min-width: 992px) {
    .card-slider:not(.slick-initialized) .comp-card {
        width: 25%;
    }
}

/* MOBILE full width */
@media (max-width: 991px) {
    .comp-card {
        width: 100%;
    }
}

/* IMAGE container */
.comp-img {
    position: relative;
    width: 100%;
    height: 700px;
}

    .comp-img::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: rgba(0, 0, 0, 0.35);
        filter: blur(25px);
        z-index: 1;
        pointer-events: none;
    }

    .comp-img img {
        width: 100%;
        height: 100%; /* Required to preserve your correct desktop height */
        object-fit: cover;
        display: block;
    }

/* TOP overlay panel */
.card-top {
    padding: 25px 20px;
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%); /* Hidden on desktop */
    transition: transform 0.35s ease;
    z-index: 6;
    text-align: center;
}

.comp-card .btn-theme-default {
    opacity: 0.8;
}

/* DESKTOP hover → show panel */
@media (min-width: 992px) {
    .comp-card:hover .card-top {
        transform: translateY(0);
    }
}

@media (max-width: 1320px) {
    .comp-img {
        height: 600px;
    }
}

/* MOBILE → panel always visible */
@media (max-width: 991px) {
    .card-top {
        transform: translateY(0);
        position: relative;
        transform: none;
    }

    .comp-img {
        height: 600px;
    }

        .comp-img img {
            height: 100%;
            object-fit: cover;
            margin-top: -8px;
        }
}

@media (max-width: 767px) {
    .comp-img {
        height: 600px;
    }
}

@media (max-width: 560px) {
    .comp-img {
        height: 585px;
    }

    .card-top-title {
        font-size: 24px !important;
    }
}

/* HEADING — always visible on desktop */
.card-top-heading {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 1 !important; /* ALWAYS visible */
    transform: translateY(0) !important;
    transition: none !important;
    text-align: center;
}

.card-heading-static {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 15px 20px;
    color: #fff;
    text-align: center;
}


/* TITLE — hidden initially */
.card-top-title {
    margin: 35px 0 0;
    font-size: 28px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.35s ease;
    text-align: center;
    color: #fff;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
    line-height: 106%;
    height: auto;
    display: flex;
    position: relative;
    flex-shrink: 1;
    flex-direction: column;
    font-weight: 400;
    font-family: inherit !important;
}

.card-slider .slick-dots li button:before {
    font-size: 16px;
    width: 32px;
    height: 35px;
    color: #173145;
}

.card-slider .slick-list {
    margin-bottom: 30px;
}

.card-slider {
    gap: 16px;
}

    .card-slider .slick-track {
        gap: 16px;
        display: flex;
    }

.comp-card,
.comp-card .comp-img,
.comp-card img,
.comp-card .card-top {
    border-radius: 0.25rem !important;
}

.slick-carousel {
    visibility: hidden;
}

.slick-initialized {
    visibility: visible;
}

/* DESKTOP: title fades in on hover */
@media (min-width: 992px) {
    .comp-card:hover .card-top-title {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }
}

/* MOBILE: heading + title always visible */
@media (max-width: 991px) {
    .card-top-title {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* BUTTON */
.card-btn {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    z-index: 5;
}

@media (max-width: 991px) {
    .card-btn {
        bottom: 15px;
    }
}

/* MOBILE slider padding */
@media (max-width: 767px) {
    .card-slider {
        padding-left: 0px;
        padding-right: 0px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .slick-list {
        margin-left: 15px;
    }
}
