/* ==========================
   PACKAGES SECTION (REFINED)
========================== */

.packages {
    background-color: #f8fafc;
    border-radius: 18px;
    padding: 2rem 1.8rem;
    margin: 1.5rem auto;
}

/* ==========================
   HEADING
========================== */

.packages h2 {
    color: #0f766e;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    text-align: center;
    position: relative;
}

.packages h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: #1abc9c;
    border-radius: 2px;
}

/* ==========================
   GRID
========================== */

.packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
    max-width: 1080px;
    margin: 0 auto;
}

/* ==========================
   CARD
========================== */

.packages .card {
    position: relative;
    height: 390px; /* 🔥 KEY CHANGE */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(15, 118, 110, 0.22);
    transition: all 0.35s ease;
}

.packages .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 118, 110, 0.4);
}

/* ==========================
   FULL IMAGE
========================== */

.packages .card-img {
    position: absolute;
    inset: 0;
}

.packages .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.packages .card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 118, 110, 0.12) 0%,
        rgba(15, 118, 110, 0.32) 40%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

/* ==========================
   CONTENT (BOTTOM)
========================== */

.packages .card-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem 1.4rem 1.4rem;
    text-align: center;
    z-index: 2;
}

/* Title */
.packages .card h3 {
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

/* ==========================
   PRICE BADGE
========================== */

.packages .price {
    display: inline-block;
    background: #1abc9c;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: bold;
    padding: 0.35rem 1rem;
    border-radius: 25px;
    margin-bottom: 0.7rem;
    box-shadow: 0 6px 16px rgba(26, 188, 156, 0.5);
}

/* ==========================
   FEATURES
========================== */

.packages ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.8rem;
}

.packages li {
    color: #ffffff;
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
}

.packages li::before {
    content: '✓ ';
    color: #a7f3d0;
    font-weight: bold;
}

/* ==========================
   BUTTON
========================== */

.packages .btn {
    display: inline-block;
    background: linear-gradient(135deg, #1abc9c, #0f766e);
    color: #ffffff;
    padding: 0.45rem 1.4rem;
    border-radius: 22px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.packages .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(26, 188, 156, 0.55);
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 992px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }

    .packages .card {
        height: 440px;
    }
}

@media (max-width: 480px) {
    .packages {
        padding: 1.5rem 1.2rem;
    }

    .packages h2 {
        font-size: 1.6rem;
    }

    .packages .card {
        height: 430px;
    }

    .packages li {
        font-size: 0.8rem;
    }
}
