@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


body {
    font-family: 'Poppins', sans-serif;
}

.card-img-top {
    height: 180px;
    border-radius: 10px;
    object-fit: cover;
}

.domestic-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: box-shadow 0.3s ease;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.domestic-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.domestic-card-image {
    height: 220px;
    background-size: cover;
    border-radius: 10px;
    /* background-position: center center; */
}

.domestic-card-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.domestic-plan-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.domestic-plan-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.domestic-plan-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-overflow: ellipsis;
    height: 20px;
    flex-grow: 1;
}

.domestic-plan-price {
    font-size: 0.9rem;
    font-weight: 700;
}

.domestic-btn {
    font-weight: 600;
    background-color: #223B64;
    color: #fff;
}

/* .domestic-btn:hover {
    /* color: #ffff;
    background-attachment: #223B64; */
/* } */
*/ .domestic-details-icon {
    color: #223B64;
    margin-right: 4px;
}

.domestic-details {
    color: #666;
    font-size: 0.85rem;
}

.domestic-card-container {
    gap: 1.5rem;
    /* Adjust gap between cards */
}

.domestic-row {
    margin-top: 2rem;
}

.domestic-card-horizontal {
    display: flex;
    flex-direction: row;
    height: 400px;
}

.domestic-card-horizontal .domestic-card-image {
    width: 50%;
    height: 100%;
}

.domestic-card-horizontal .domestic-card-body {
    width: 50%;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.text-ellipsis {
    color: #666;
    display: -webkit-box;
    /* Required for multi-line ellipsis */
    -webkit-line-clamp: 2;
    /* Default: show 2 lines */
    -webkit-box-orient: vertical;
    /* Required for multi-line ellipsis */
    overflow: hidden;
    /* Hides overflowing content */
    text-overflow: ellipsis;
    /* Adds ellipsis (...) */
    white-space: normal;
    /* Allows text to wrap to multiple lines */
    font-size: 0.9rem;
    /* Default font size */
}

@media (max-width: 768px) {

    /* Medium screens and below (md and sm) */
    .text-ellipsis {
        font-size: 0.9rem;
        /* Reduce font size for medium screens */
        -webkit-line-clamp: 1;
        /* Show only 1 line */
    }


    .card-img-top {
        height: 165px;
        /* border-radius: 10px; */
    }
}

@media (max-width: 576px) {

    /* Small screens and below (sm) */
    .text-ellipsis {
        font-size: 0.8rem;
        /* Further reduce font size for small screens */
        -webkit-line-clamp: 1;
        /* Ensure only 1 line is displayed */
    }

    .card-img-top {
        height: 165px;
        object-fit: cover;
        /* border-radius: 10px; */
    }
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.d-flex.flex-column {
    flex-grow: 1;
}

.domestic-plan-price,
.domestic-btn {
    margin-top: auto;
}
