/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Navy, Gold, White Theme */
    --primary: #B99253;
    --primary-light: #7B3900;
    --accent: #7B3900;
    --accent-dark: #263b66;
    --background: hsl(0, 0%, 100%);
    --secondary: hsl(220, 30%, 98%);
    --text: hsl(220, 20%, 20%);
    --text-muted: hsl(220, 10%, 50%);
    --border: hsl(220, 15%, 90%);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 10px 40px -10px rgba(212, 175, 55, 0.4);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a{
    text-decoration: none;
    color: inherit;
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Page Hero Section */
.packages-hero {
    position: relative;
    height: 400px;
    background: linear-gradient(
                135deg,
                rgba(0, 0, 0, 0.9),
                rgba(185, 146, 83, 0.4)
            ),
            url('https://images.unsplash.com/photo-1591604129939-f1efa4d9f7fa?w=1920&h=600&fit=crop')
            center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--background);
    overflow: hidden;
}

.packages-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 25, 47, 0.3) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 25, 47, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-family: var(--font-arabic);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--background), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.hero-breadcrumb a:hover {
    color: var(--primary-light);
}

/* ==================== Filter Section ==================== */
.filter-section {
    background: var(--background);
    padding: 2rem 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent-dark);
    font-size: 0.9rem;
    font-family: var(--font-primary);
}

.filter-group label i {
    color: var(--primary);
    width: 18px;
    height: 18px;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--accent-dark);
    background: var(--background);
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-gold);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(185, 146, 83, 0.25);
}






/* ===============================
   Packages Section
================================ */
.packages-section {
    padding: 4rem 0;
    background: var(--background);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.25rem;
    align-items: stretch; /* مهم لتوحيد الارتفاع */
}

/* ===============================
   Package Card
================================ */
.package-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* يخلي كل الكروت نفس الطول */
    background: var(--background);
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1.5px solid var(--border);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    cursor: pointer;
}

.package-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-gold);
    transform: translateY(-6px);
}

/* ===============================
   Package Image
================================ */
.package-image {
    position: relative;
    height: 220px;
    flex-shrink: 0; /* يمنع الصورة تصغر */
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.1);
}

.package-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 40%,
        rgba(0,0,0,0.55) 100%
    );
}

/* ===============================
   Package Content
================================ */
.package-content {
    display: flex;
    flex-direction: column;
    flex: 1; /* ده السر في توحيد الارتفاع */
    padding: 1.6rem;
}

/* ===============================
   Title (ارتفاع ثابت)
================================ */
.package-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 0.9rem;

    /* تثبيت مساحة العنوان */
    min-height: 3.5rem;
    max-height: 3.5rem;
    overflow: hidden;
}

.package-card:hover .package-title {
    color: var(--primary);
}

/* ===============================
   Package Info (Aligned Left Properly)
================================ */
.package-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.info-item i {
    flex-shrink: 0;          /* يمنع الأيقونة من التصغير */
    width: 18px;
    height: 18px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;         /* يوازن الأيقونة مع النص */
}

/* ===============================
   Price (دايمًا تحت)
================================ */
.package-price {
    margin-top: auto; /* يخلي السعر ينزل تحت */
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===============================
   Actions
================================ */
.package-actions {
    margin-top: 1.2rem;
}

.package-actions .btn {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border-radius: 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.25s ease;
}

/* ===============================
   Responsive Fix
================================ */
@media (max-width: 480px) {
    .package-title {
        min-height: auto;
        max-height: none;
    }
}


/* Why Choose Section */
.why-choose-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--background) 0%, var(--secondary) 100%);
}

.section-title {
    font-family: var(--font-arabic);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--accent-dark);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(185, 146, 83, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(185, 146, 83, 0.3);
}

.feature-icon i {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-family: var(--font-arabic);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(185, 146, 83, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: var(--font-arabic);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--background);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--background);
    box-shadow: 0 4px 20px rgba(185, 146, 83, 0.4);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 28px rgba(185, 146, 83, 0.6);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--background);
    border: 2px solid var(--background);
}

.cta-btn.secondary:hover {
    background: var(--background);
    color: var(--accent-dark);
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
        filter: brightness(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
}

/* Subtle Glow Animation for Golden Elements */
@keyframes goldenGlow {
    0% {
        box-shadow: 0 0 10px rgba(185, 146, 83, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(240, 214, 117, 0.6);
    }
    100% {
        box-shadow: 0 0 10px rgba(185, 146, 83, 0.3);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.15rem;
    }
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .filter-section {
        position: relative;
        top: 0;
        box-shadow: none;
    }
    
    .filter-controls {
        grid-template-columns: 1fr;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
}
