/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=DM+Sans:wght@400;500;600;700&family=Red+Hat+Display:wght@500;700&display=swap');

/* ===== PACKAGES PAGE ===== */
.packages-section {
    padding: 80px 0 100px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.packages-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(46, 46, 114, 0.04);
    top: -150px;
    inset-inline-end: -150px;
    pointer-events: none;
}

/* ===== SECTION INTRO ===== */
.pkg-section-intro {
    text-align: center;
    margin-bottom: 52px;
    animation: pkgFadeUp .7s .1s both;
}

.pkg-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--theme-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-family: 'DM Sans', sans-serif;
}

.pkg-section-tag::before,
.pkg-section-tag::after {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--theme-color);
    opacity: .4;
}

.pkg-sec-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 4vw, 44px);
    color: var(--title-color);
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.15;
}

/* ===== CARDS GRID — 2 per row ===== */
.packages-section .pkg-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: start;
}

/* ===== CARD ===== */
.packages-section .pkg-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--smoke-color3, #e8e8f0);
    box-shadow: 0 4px 24px rgba(46, 46, 114, 0.07);
    transition: transform .35s ease, box-shadow .35s ease;
    position: relative;
    animation: pkgFadeUp .7s both;
    display: flex !important;
    flex-direction: column !important;
    min-height: unset !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.packages-section .pkg-card:nth-child(odd)  { animation-delay: .15s; }
.packages-section .pkg-card:nth-child(even) { animation-delay: .3s; }

.packages-section .pkg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(46, 46, 114, 0.14);
}

/* ===== PREMIUM CARD ===== */
.packages-section .pkg-card.is-premium {
    border-color: rgba(46, 46, 114, 0.25);
    border-width: 1.5px;
}

.packages-section .pkg-card.is-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-color), var(--theme-color2, #5b5bb8), var(--theme-color));
    z-index: 6;
}

/* ===== IMAGE ===== */
.packages-section .pkg-card .pkg-card-img {
    display: block;
    width: 100% !important;
    min-width: 100% !important;
    aspect-ratio: 1000 / 600;
    height: auto;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background-color: #eeeef8;
}

.pkg-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.pkg-card-title a:hover {
    color: var(--theme-color);
}

.pkg-card-desc {
    font-size: 13px;
    color: var(--body-color);
    line-height: 1.5;
    margin: 4px 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.packages-section .pkg-card .pkg-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .6s ease;
}

.pkg-services-extra {
    display: none;
    margin-top: -8px;
}
.pkg-services-extra.show {
    display: flex;
}

.pkg-toggle-services {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--theme-color);
    font-size: 12px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    padding: 4px 0 14px;
}

.pkg-toggle-services .toggle-ico {
    font-size: 10px;
    transition: transform .3s;
}

.pkg-toggle-services.open .toggle-ico {
    transform: rotate(180deg);
}

.packages-section .pkg-card:hover .pkg-card-img img {
    transform: scale(1.05);
}

/* ===== IMAGE OVERLAY ===== */
.pkg-img-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(20, 20, 55, 0.15) 0%, transparent 60%);
}

/* ===== BADGE ===== */
.pkg-badge {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    z-index: 10;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif;
}

.badge-standard {
    background: rgba(255, 255, 255, 0.92);
    color: var(--theme-color);
    border: 1px solid rgba(46, 46, 114, 0.18);
}

.badge-premium {
    background: rgba(46, 46, 114, 0.92);
    color: #ffffff;
    border: 1px solid rgba(46, 46, 114, 0.4);
}

/* ===== PRICE PILL ===== */
.pkg-price-pill {
    position: absolute;
    bottom: 16px;
    left: 0;
    background: var(--theme-color);
    border-radius: 0 8px 8px 0;
    padding: 8px 16px;
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    direction: ltr;
    unicode-bidi: embed;
    z-index: 5;
}

[dir="rtl"] .pkg-price-pill {
    left: auto;
    right: 0;
    border-radius: 8px 0 0 8px;
}

.pkg-price-pill .p-amount {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    line-height: 1;
    white-space: nowrap;
}

.pkg-price-pill .p-currency {
    color: var(--yellow-color, #f5c518);
    font-size: 10px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: .5px;
}

/* ===== CARD BODY ===== */
.packages-section .pkg-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pkg-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 2px;
    line-height: 1.2;
}

.pkg-card-sub {
    color: var(--gray-color, #8888aa);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--smoke-color2, #f0f0f7);
    font-family: 'DM Sans', sans-serif;
}

/* ===== SERVICES ===== */
.pkg-services {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    /* flex: 1; */
}

.pkg-services li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 500;
    color: var(--body-color);
    padding: 8px 11px;
    background: var(--smoke-color, #f7f7fc);
    border-radius: 8px;
    transition: background .2s;
    font-family: 'DM Sans', sans-serif;
}

.pkg-services li:hover {
    background: var(--smoke-color2, #ededf7);
}

.svc-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    background: rgba(46, 46, 114, 0.1);
    color: var(--theme-color);
}

.pkg-card.is-premium .svc-icon {
    background: rgba(46, 46, 114, 0.15);
    color: var(--theme-color2, #5b5bb8);
}

/* ===== CTA BUTTON ===== */
.pkg-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: 'Red Hat Display', cursive;
    letter-spacing: .4px;
    margin-top: auto;
}

.pkg-cta-btn.btn-std {
    background: var(--smoke-color2, #ededf7);
    color: var(--theme-color);
    border-color: var(--smoke-color3, #ddddef);
}

.pkg-cta-btn.btn-std:hover {
    background: var(--theme-color);
    color: #ffffff;
    border-color: var(--theme-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(46, 46, 114, 0.22);
}

.pkg-cta-btn.btn-prm {
    background: var(--theme-color);
    color: #ffffff;
    border-color: var(--theme-color);
}

.pkg-cta-btn.btn-prm:hover {
    background: var(--theme-color2, #5b5bb8);
    border-color: var(--theme-color2, #5b5bb8);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(46, 46, 114, 0.3);
}

.pkg-cta-btn .btn-ico { transition: transform .3s; }
.pkg-cta-btn:hover .btn-ico { transform: translateX(4px); }
[dir="rtl"] .pkg-cta-btn:hover .btn-ico { transform: translateX(-4px); }

/* ===== PAGINATION ===== */
.pkg-pagination {
    margin-top: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pkg-pagination a,
.pkg-pagination span {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    border: 1px solid var(--border-color, #e0e0ee);
    color: var(--body-color);
    background: #ffffff;
    font-family: 'DM Sans', sans-serif;
}

.pkg-pagination a:hover {
    background: var(--theme-color);
    color: #ffffff;
    border-color: var(--theme-color);
}

.pkg-pagination .current-page {
    background: var(--theme-color);
    color: #ffffff;
    border-color: var(--theme-color);
}

.pkg-pagination .disabled {
    opacity: .3;
    pointer-events: none;
}

/* ===== ANIMATION ===== */
@keyframes pkgFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Tablet */
@media (max-width: 991px) {
    .packages-section .pkg-cards-grid {
        grid-template-columns: 1fr !important;
        padding: 0 16px;
    }

    .packages-section .pkg-card .pkg-card-img {
        height: 380px;  /* كانت 260px — رفعناها */
    }
}

@media (max-width: 767px) {
    .packages-section .pkg-card .pkg-card-img {
        height: 300px;  /* كانت 220px — رفعناها */
    }
}


/* Small Mobile */
@media (max-width: 575px) {
 .packages-section .pkg-card .pkg-card-img {
        height: 250px;  /* كانت 200px — رفعناها شوية */
        border-radius: 10px 10px 0 0;
    }

    .packages-section .pkg-card {
        border-radius: 10px;
    }

    .packages-section .pkg-card .pkg-card-img {
        height: 200px;
        border-radius: 10px 10px 0 0;
    }

    .pkg-card-title {
        font-size: 17px;
    }

    .pkg-services li {
        font-size: 12px;
    }

    .pkg-sec-title {
        font-size: 26px;
    }

    .pkg-price-pill {
        bottom: 0;
        border-radius: 8px 8px 0 0;
        left: 16px;
        right: auto;
    }

    [dir="rtl"] .pkg-price-pill {
        left: auto;
        right: 16px;
    }
}
.pkg-services {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pkg-services li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 500;
    color: var(--body-color);
    padding: 8px 11px;
    background: var(--smoke-color, #f7f7fc);
    border-radius: 8px;
    transition: background .2s;
    font-family: 'DM Sans', sans-serif;
    min-width: 0;           /* مهم جداً */
    width: 100%;
    box-sizing: border-box;
}

.pkg-services li span:not(.svc-icon) {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    white-space: normal;
}

.pkg-services-extra {
    display: none !important;
    margin-top: -8px;
    flex: none !important;
}

.pkg-services-extra.show {
    display: flex !important;
}