.card>* {
    position: relative;
    z-index: 2;
}

.card-internal {
    position: relative;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(24, 27, 49, 0.1);
    border: 0;
    height: 300px !important;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.card-internal::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 15px;
    z-index: 1;
    transition: all 0.4s ease;
}

.card-internal:hover::before {
    background: rgba(0, 0, 0, 0.75);
}



.card-internal::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    z-index: 0;
}

.card-internal:hover::after {
    transform: scale(1.25);
}

.card-1::after {
    background-image: url("https://www.phithan-toyota.com/th/hello_everyday/assets/img/internal-link/img-knowledge.png");
}

.card-2::after {
    background-image: url("https://www.phithan-toyota.com/th/hello_everyday/assets/img/internal-link/img-morning.png");
}

.card-3::after {
    background-image: url("https://www.phithan-toyota.com/th/hello_everyday/assets/img/internal-link/img-csr.png");
}

.card-4::after {
    background-image: url("https://www.phithan-toyota.com/th/hello_everyday/assets/img/internal-link/img-car.png");
}



.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    transition: all 0.3s ease;
}



.btn {
    background: var(--color-button);
    border: 2px solid var(--color-button);
    color: var(--color-primary);
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 234, 35, 0.4);
    text-shadow: none;
}

.btn:hover {
    background: var(--color-blue);
    color: white;
    border-color: var(--color-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 43, 202, 0.4);
    text-decoration: none;
}



.card-footer {
    background: transparent;
    border: none;
    padding-top: 20px;
}

@media (max-width: 768px) {
    .heading h3 {
        font-size: 2rem;
    }

    .card-internal {
        height: 280px !important;
    }
}