/* ════════════════════════════════════════════════════════════════
   PACKAGES PAGE — Sacred Islamic Premium Design System
   "Paths of Knowledge" · Emerald · Gold · Parchment
   ════════════════════════════════════════════════════════════════ */

/* ── HERO ────────────────────────────────────────────────────────── */
.pk-hero {
    position: relative;
    padding: 10rem 0 8rem;
    background: linear-gradient(160deg, #071810 0%, #0b2a1c 40%, #0d3524 100%);
    text-align: center;
    color: #fff;
    overflow: hidden;
}

/* Full-bleed 8-pointed star geometric tile */
.pk-hero__geo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Horseshoe arch SVG wrapper */
.pk-hero__arch-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}
.pk-hero__arch-svg {
    width: min(600px, 90vw);
    height: auto;
    opacity: 0.8;
    margin-top: 2rem;
}

/* Quranic ayah display */
.pk-hero__ayah-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 3;
}
.pk-hero__ayah-bracket {
    font-family: "Amiri", "Traditional Arabic", serif;
    color: var(--ic-gold, #c9a84c);
    font-size: 1.8rem;
    opacity: 0.7;
    line-height: 1;
}
.pk-hero__ayah {
    font-family: "Amiri", "Traditional Arabic", serif;
    color: var(--ic-gold, #c9a84c);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    letter-spacing: 0.03em;
    line-height: 1.6;
    direction: rtl;
}
.pk-hero__ayah-ref {
    font-family: "Amiri", serif;
    color: rgba(201,168,76,0.6);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 3;
}

/* Ornamental divider in hero */
.pk-hero__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 2.5rem;
    max-width: 300px;
    position: relative;
    z-index: 3;
}
.pk-hero__div-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.5), transparent);
}
.pk-hero__div-stars {
    color: rgba(201,168,76,0.7);
    font-size: 0.55rem;
    letter-spacing: 0.5em;
}

.pk-hero__title {
    font-family: var(--font-heading-ar, "Amiri", serif);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    color: #fff;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 3;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.pk-hero__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ic-gold, #c9a84c), transparent);
    margin: 0.75rem auto 0;
    border-radius: 99px;
}

.pk-hero__desc {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,0.78);
    max-width: 680px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    position: relative;
    z-index: 3;
}

/* Trust badges strip */
.pk-hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    position: relative;
    z-index: 3;
}
.pk-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}
.pk-hero__trust-item i { color: var(--ic-gold, #c9a84c); }
.pk-hero__trust-sep {
    color: rgba(201,168,76,0.4);
    font-size: 0.45rem;
}

/* Section bridge wave */
.pk-bridge {
    display: block;
    line-height: 0;
    margin-top: -2px;
    background: linear-gradient(160deg, #071810 0%, #0d3524 100%);
}
.pk-bridge svg { display: block; width: 100%; }

/* ── GRID SECTION ──────────────────────────────────────────────── */
.pk-grid-section {
    position: relative;
    padding: 6rem 0 8rem;
    background: #f7f0e3;
    overflow: hidden;
}

/* Arabesque watermark */
.pk-grid-section__watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 80vw);
    height: min(600px, 80vw);
    pointer-events: none;
    z-index: 0;
}
.pk-grid-section__watermark svg { width: 100%; height: 100%; }

/* Section header */
.pk-section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}
.pk-section-header__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.pk-section-header__line {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.6));
}
.pk-section-header__line:last-child {
    background: linear-gradient(to left, transparent, rgba(201,168,76,0.6));
}
.pk-section-header__glyph { color: var(--ic-gold, #c9a84c); font-size: 0.75rem; }
.pk-section-header__title {
    font-family: var(--font-heading-ar, "Amiri", serif);
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: #0b2a1c;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.pk-section-header__sub {
    font-size: 1.05rem;
    color: rgba(13,43,31,0.65);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}
.pk-pricing-ethic {
    margin: 1.4rem auto 0;
    max-width: 760px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(201,168,76,0.32);
    border-radius: 8px;
    background: rgba(255,255,255,0.64);
    color: rgba(13,43,31,0.74);
    font-weight: 600;
    line-height: 1.6;
}
.pk-pricing-ethic i {
    color: var(--ic-gold, #c9a84c);
    flex-shrink: 0;
}

/* Grid */
.pk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

/* ── PROGRAM CARD ──────────────────────────────────────────────── */
.pk-card {
    position: relative;
    background: rgba(255, 252, 242, 0.97);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 4px;
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s ease,
                border-color 0.35s ease;
    box-shadow:
        0 2px 12px rgba(13,43,31,0.06),
        0 8px 24px rgba(13,43,31,0.04),
        inset 0 0 0 1px rgba(255,255,255,0.6);
    overflow: hidden;
}

/* Top accent bar */
.pk-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ic-gold, #c9a84c) 40%, var(--ic-gold, #c9a84c) 60%, transparent);
    opacity: 0.6;
    transition: opacity 0.35s;
}
.pk-card:hover::before { opacity: 1; }

/* Islamic corner ornaments */
.pk-card__corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: rgba(201,168,76,0.45);
    border-style: solid;
    transition: all 0.4s ease;
    pointer-events: none;
}
.pk-card__corner--tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.pk-card__corner--br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }
.pk-card:hover .pk-card__corner { border-color: var(--ic-gold, #c9a84c); width: 28px; height: 28px; }

.pk-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201,168,76,0.55);
    box-shadow:
        0 6px 20px rgba(13,43,31,0.1),
        0 20px 50px rgba(13,43,31,0.12),
        inset 0 0 0 1px rgba(201,168,76,0.1);
}

/* Category badge */
.pk-card__category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ic-gold, #c9a84c);
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 99px;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}
.pk-card__cat-star { font-size: 0.45rem; }

/* Medallion */
.pk-card__medallion {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pk-card__medallion-ring {
    position: absolute;
    inset: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    animation: pk-spin 20s linear infinite;
    pointer-events: none;
}
@keyframes pk-spin { 100% { transform: rotate(360deg); } }
.pk-card:hover .pk-card__medallion-ring { animation-duration: 6s; }

.pk-card__medallion-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1a5235, #0a2016);
    border: 2px solid rgba(201,168,76,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3), inset 0 0 15px rgba(201,168,76,0.15);
    position: relative;
    z-index: 2;
    gap: 2px;
}
.pk-card__glyph {
    font-family: "Amiri", "Traditional Arabic", serif;
    font-size: 1.6rem;
    color: var(--ic-gold, #c9a84c);
    line-height: 1;
    text-shadow: 0 0 8px rgba(201,168,76,0.5);
}
.pk-card__icon-fa {
    font-size: 0.65rem;
    color: rgba(201,168,76,0.5);
    line-height: 1;
}

/* Title */
.pk-card__title {
    font-family: var(--font-heading-ar, "Amiri", serif);
    font-size: clamp(1.4rem, 1.8vw, 1.7rem);
    color: #0b2a1c;
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* Description */
.pk-card__desc {
    font-size: 0.9rem;
    color: rgba(13,43,31,0.65);
    text-align: center;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Diamond divider */
.pk-card__divider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}
.pk-card__divider span:not(.pk-card__div-diamond) {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.35), transparent);
}
.pk-card__div-diamond {
    color: rgba(201,168,76,0.5);
    font-size: 0.5rem;
    flex-shrink: 0;
}

/* Features list */
.pk-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.pk-card__features li {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.45rem 0;
    border-bottom: 1px dashed rgba(201,168,76,0.2);
    color: #1a3d28;
    font-size: 0.92rem;
    line-height: 1.5;
}
.pk-card__features li:last-child { border-bottom: none; }
.pk-card__feat-icon {
    color: var(--ic-gold, #c9a84c);
    font-size: 0.45rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Price */
.pk-card__price-wrap {
    text-align: center;
    margin-bottom: 1.5rem;
}
.pk-card__price-original {
    display: block;
    font-size: 0.9rem;
    color: rgba(13,43,31,0.4);
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}
.pk-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
}
.pk-card__price-from {
    font-size: 0.85rem;
    color: rgba(13,43,31,0.5);
}
.pk-card__price-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0b2a1c;
    font-family: var(--font-english, "Inter", sans-serif);
    line-height: 1;
}
.pk-card__price-period {
    font-size: 0.85rem;
    color: rgba(13,43,31,0.5);
}

/* CTA Button */
.pk-card__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #0d3524, #0b2a1c);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.2);
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.3s ease;
    box-shadow: 0 4px 16px rgba(13,43,31,0.2);
}
.pk-card__btn-arrow { font-size: 1rem; transition: transform 0.3s ease; }
html[lang="ar"] .pk-card__btn-arrow { display: inline-block; }
.pk-card__btn-shine {
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);
    transform: skewX(-18deg);
    transition: left 0.5s ease;
}
.pk-card__btn:hover {
    background: linear-gradient(135deg, #1a5235, #0d3524);
    box-shadow: 0 8px 28px rgba(13,43,31,0.35);
    transform: translateY(-1px);
}
.pk-card__btn:hover .pk-card__btn-shine { left: 130%; }
.pk-card__btn:hover .pk-card__btn-arrow { transform: translateX(4px); }
html[lang="ar"] .pk-card__btn:hover .pk-card__btn-arrow { transform: translateX(-4px); }

/* ── CTA SECTION ───────────────────────────────────────────────── */
.pk-cta-section {
    position: relative;
    padding: 7rem 0;
    background: linear-gradient(160deg, #071810 0%, #0b2a1c 50%, #0d3524 100%);
    overflow: hidden;
}
.pk-cta__geo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.pk-cta-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* CTA ornament */
.pk-cta__ornament {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.pk-cta__orn-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.4), transparent);
}
.pk-cta__orn-diamond {
    color: rgba(201,168,76,0.7);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    flex-shrink: 0;
}

/* CTA verse */
.pk-cta__verse {
    font-family: "Amiri", "Traditional Arabic", serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--ic-gold, #c9a84c);
    line-height: 1.8;
    direction: rtl;
    margin-bottom: 0.5rem;
}
.pk-cta__verse-ref {
    font-family: "Amiri", serif;
    color: rgba(201,168,76,0.55);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.pk-cta__title {
    font-family: var(--font-heading-ar, "Amiri", serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.pk-cta__sub {
    color: rgba(255,255,255,0.72);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.pk-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.pk-cta__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 99px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pk-cta__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37,211,102,0.45);
}
.pk-cta__btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    background: transparent;
    color: var(--ic-gold, #c9a84c);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 99px;
    text-decoration: none;
    border: 1.5px solid rgba(201,168,76,0.5);
    transition: all 0.3s ease;
}
.pk-cta__btn-secondary:hover {
    background: rgba(201,168,76,0.1);
    border-color: var(--ic-gold, #c9a84c);
    transform: translateY(-2px);
}

.pkd-pricing-note {
    color: rgba(255,255,255,0.68);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: -0.5rem 0 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(201,168,76,0.22);
    border-radius: 8px;
    background: rgba(255,255,255,0.045);
    text-align: start;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .pk-hero { padding: 8rem 0 5rem; }
    .pk-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 2rem; }
    .pk-cta-section { padding: 5rem 0; }
}
@media (max-width: 767px) {
    .pk-hero { padding: 7rem 0 4rem; }
    .pk-hero__trust { gap: 0.5rem 0.75rem; }
    .pk-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .pk-card { padding: 2rem 1.5rem 1.5rem; }
    .pk-cta__actions { flex-direction: column; align-items: center; }
    .pk-cta__btn-primary, .pk-cta__btn-secondary { width: 100%; justify-content: center; }
}
