/* Card Modern */
.card-modern {
    display: flex;
    border: none;
    border-radius: 0; /* ไม่มีมุมโค้ง */
    overflow: hidden;
    box-shadow: none !important;
    margin-bottom: 20px;
    background-color: #fff;
    height: 250px;
    position: relative;
}

/* รูปซ้ายเต็ม column, ไม่มีขอบ */
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 0;
    margin: 0px !important;
    padding: 0px !important;
}

/* เนื้อหา column ขวา */
.card-body-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* ปุ่มอยู่ด้านล่าง */
    padding: 1.25rem;
}

/* Title + Text */
.card-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.card-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

/* ปุ่มอ่านต่อ */
.btn-flat {
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    text-decoration: none;
    position: absolute;
    right: 10px;
    bottom: 10px;
}

@media (max-width: 768px) {
    /* รูปซ้ายเต็ม column, ไม่มีขอบ */
    .card-img-wrapper img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
        border: none;
        border-radius: 0;
        margin: 0px !important;
        padding: 0px !important;
        transition: transform 0.3s ease;
    }
    .hide-mobile {
        display: none;
    }
    .container-performance {
        padding: 10px 5%;
    }
    .card-title {
        font-size: 16px !important;
        margin-top: -10px;
    }
    .mainBanner .carousel-inner {
        height: 25vh;
    }
    .mainBanner .carousel-inner active {
        height: 25vh;
    }
    .mainBanner .carousel-item img {
        height: 25vh;
        width: 100%;
        object-fit: cover;
    }

    .img-banner {
        height: 10vh;
        width: 100%;
        object-fit: cover;
    }
}

@media (min-width: 769px) {
    .mainBanner .carousel-inner {
        height: 68vh;
    }
    .mainBanner .carousel-inner active {
        height: 68vh;
    }
    .mainBanner .carousel-item img {
        height: 68vh;
        width: 100%;
        object-fit: cover;
    }

    .img-banner {
        height: 34vh;
        width: 100%;
        object-fit: cover;
    }
}