/*
Theme Name: IPTV Smarters Pro
Description: A complete WordPress theme for IPTV services with WooCommerce integration, featuring Arabic RTL support, animated backgrounds, and professional design.
Author: IPTV Smarters Pro Team
Version: 1.0.0
Text Domain: iptv-smarters
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: rtl-language-support, e-commerce, entertainment, responsive-design, custom-colors
*/

/* تضمين خط Changa لتحقيق شكل مقارب للنص الأصلي */
@import url('https://fonts.googleapis.com/css2?family=Changa:wght@300;400;500;600;700;800&display=swap');

/* Animations Keyframes: الحركات المضافة حديثاً */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideInUp {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes pulse-vibrant {
    0% { box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(138, 43, 226, 0); }
    100% { box-shadow: 0 0 0 0 rgba(138, 43, 226, 0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* CSS الأساسي والخطوط */
:root {
    /* تعديل الألوان لتصبح بنفسجية متدرجة */
    --color-primary: rgb(138, 43, 226); /* بنفسجي أساسي */
    --color-primary-dark: rgb(102, 33, 170); /* بنفسجي غامق عند التحويم */
    --color-accent: #e66617; /* اللون البرتقالي للأزرار والأسعار */
    --color-dark: #1a0033; /* بنفسجي غامق جداً بدلاً من الأسود */
    --color-dark-gray: rgb(45, 20, 70); /* بنفسجي رمادي */
    --color-light-text: #FFFFFF;
    --color-gray-text: rgb(200, 180, 220); /* رمادي بنفسجي */
    --spacing-large: 90px;
    --spacing-medium: 60px;
    --spacing-small: 30px;
}

/* تحسين مظهر شريط التمرير (Webkit Browsers) */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: var(--color-dark);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 10px;
    border: 3px solid var(--color-dark);
}

body {
    font-family: 'Changa', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-text);
    margin: 0;
    background: linear-gradient(135deg, #1a0033 0%, #2d1447 50%, #1a0033 100%);
    direction: rtl;
    overflow-x: hidden;
}

/* 🚀 ضبط أحجام الخطوط (Desktop) */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-light-text);
    margin-bottom: 16px;
    font-weight: 600;
}

h1 { font-size: 3.8em; line-height: 1.2; } /* أكبر وأكثر وضوحاً */
h2 { font-size: 2.8em; line-height: 1.3; } /* كبير وبارز */
h3 { font-size: 2.1em; } /* متوازن */
h4 { font-size: 1.5em; } /* للقوائم والأسئلة الشائعة */
h5 { font-size: 1.25em; }
h6 { font-size: 1em; }

p {
    margin-bottom: 16px;
    font-size: 1.15em; /* زيادة حجم النص العادي قليلاً */
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s;
}

a:hover {
    color: #b57edc; /* درجة أفتح من البنفسجي */
}

.container {
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.section {
    padding-top: var(--spacing-large);
    padding-bottom: var(--spacing-large);
    position: relative;
    z-index: 1;
}

/* تخطيط مرن وعام */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

.col-12 { width: 100%; }
.col-lg-6 { width: 50%; }
.col-lg-4 { width: 33.333%; }
.col-lg-3 { width: 25%; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* 🚀 توسيط الأزرار وجعلها أكثر حيوية */
.btn-wrapper {
    text-align: center; /* توسيط الأزرار المحاطة بهذه الحاوية */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-family: 'Changa', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px; /* زيادة حجم خط الأزرار */
    color: var(--color-light-text);
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 110px; /* شكل بيضاوي */
    transition: all 0.3s ease-in-out; /* حركة سلسة */
    margin: 10px; /* زيادة الهامش */
    cursor: pointer;
    animation: float 4s ease-in-out infinite; /* 🚀 انيميشن تعويم خفيف */
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: 0px 0px 15px 5px rgba(138, 43, 226, 0.7); /* ظل بارز عند التحويم */
    transform: scale(1.05); /* تكبير عند التحويم */
    animation: none; /* إيقاف انيميشن التعويم عند التحويم */
}

.btn-accent {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    font-size: 18px;
    animation: pulse-vibrant 2s infinite; /* 🚀 انيميشن نبض للأزرار المهمة */
}

.btn-accent:hover {
    background-color: #d15c13;
    border-color: #d15c13;
    box-shadow: 0px 0px 15px 5px rgba(230, 102, 23, 0.7);
}


/* الهيدر والقائمة */
.header {
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.95) 0%, rgba(45, 20, 70, 0.95) 100%);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    transition: all 0.3s ease; /* انيميشن عند التمرير */
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* المحاذاة لليمين */
    width: 100%;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

.nav-menu ul li a {
    color: var(--color-light-text);
    font-size: 17px;
    font-weight: 600;
    padding: 10px 20px;
    display: block;
    position: relative;
    transition: color 0.3s, border-bottom 0.3s;
}

.nav-menu ul li a:hover {
    color: var(--color-primary);
    border-bottom: 3px solid var(--color-primary); /* زيادة سمك الخط */
    padding-bottom: 8px;
}

.logo-container img {
    max-height: 70px;
    transition: transform 0.3s;
}
.logo-container img:hover {
    transform: rotate(5deg); /* انيميشن عند التحويم على الشعار */
}

.cart-icon {
    color: var(--color-light-text);
    font-size: 40px;
    margin-right: 20px;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

.cart-icon:hover {
    color: var(--color-primary);
    transform: scale(1.1); /* تكبير أيقونة السلة */
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: pulse 1.5s infinite; /* انيميشن نبض لعدد المنتجات */
}

/* Mobile Navigation Styles */
.mobile-nav {
    display: none;
    align-items: center;
    gap: 15px;
}

.logo-wrapper {
    flex-shrink: 0;
}

.mobile-cart-icon {
    color: var(--color-light-text);
    font-size: 24px;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.mobile-cart-icon:hover {
    color: var(--color-primary);
}

.mobile-cart-icon .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 30px;
    height: 30px;
    justify-content: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-light-text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 90px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 90px);
    background: linear-gradient(135deg, rgba(26, 0, 51, 0.98) 0%, rgba(45, 20, 70, 0.98) 100%);
    border-left: 1px solid rgba(138, 43, 226, 0.3);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 20px 0;
    box-shadow: -5px 0 15px rgba(138, 43, 226, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

.mobile-menu ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--color-light-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.mobile-menu ul li a:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Desktop/Mobile Navigation Toggle */
@media (max-width: 767px) {
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-nav {
        display: flex !important;
    }
    
    .logo-container {
        justify-content: space-between !important;
    }
    
    .logo-wrapper img {
        max-height: 50px !important; /* تصغير اللوجو قليلاً في الموبايل */
    }
    
    /* إصلاح ارتفاع الهيدر للموبايل */
    .header {
        padding: 15px 0;
    }
    
    .mobile-menu {
        top: 80px;
        height: calc(100vh - 80px);
    }
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important; /* إخفاء في الديسكتوب */
    }
    
    .desktop-nav {
        display: flex !important;
    }
}

/* ------------------------------------------- */
/* 1. قسم البطل (Hero Section) - خلفية متحركة/مظلمة */
/* ------------------------------------------- */

/* تعريف الصور للخلفية المتحركة */
#hero-section, #one {
    background-size: cover;
    background-position: center center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* حاوية الخلفية المتحركة */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* الصور المتحركة */
.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    animation: slideShow 20s infinite;
}

/* تأخير بدء عرض الصور لتحقيق التتابع (4 صور، كل صورة تظهر 5 ثوانٍ) */
.slideshow-image:nth-child(1) {
    background-image: url('https://smarterpro.net/wp-content/uploads/2025/11/iptv-5.webp');
    animation-delay: 0s;
}

.slideshow-image:nth-child(2) {
    background-image: url('https://smarterpro.net/wp-content/uploads/2025/11/iptv-1.webp');
    animation-delay: 5s;
}

.slideshow-image:nth-child(3) {
    background-image: url('https://smarterpro.net/wp-content/uploads/2025/11/iptv-3.webp');
    animation-delay: 10s;
}

.slideshow-image:nth-child(4) {
    background-image: url('https://smarterpro.net/wp-content/uploads/2025/11/iptv-2.webp');
    animation-delay: 15s;
}

/* مفتاح الإطار الزمني للصور المتحركة */
@keyframes slideShow {
    0% { opacity: 0; transform: scale(1.05); }
    5% { opacity: 1; transform: scale(1); }
    20% { opacity: 1; transform: scale(1); }
    25% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.05); }
}

#hero-section::before, #one::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.7) 0%, rgba(26, 0, 51, 0.8) 50%, rgba(138, 43, 226, 0.7) 100%);
    z-index: 1;
}

#hero-section .container, #one .container {
    position: relative;
    z-index: 10;
    /* 🚀 انيميشن لإدخال النص ببطء */
    animation: fadeIn 2s ease-out;
}

#hero-section h1, #one h1 {
    font-size: 43px;
    color: var(--color-light-text);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
    position: relative;
    z-index: 15;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ------------------------------------------- */
/* 2. قسم الاشتراكات - خلفية بنفسجية متدرجة */
/* ------------------------------------------- */
#products-section, #buy-now {
    background: linear-gradient(180deg, rgba(26, 0, 51, 0.95) 0%, rgba(45, 20, 70, 0.95) 50%, rgba(26, 0, 51, 0.95) 100%);
    padding-top: 0;
}

/* 🚀 تطبيق انيميشن على العنوان */
#buy-now h2 {
    animation: slideInUp 1s ease-out 0.2s backwards;
}

/* تنسيق بطاقات المنتجات - الحل الجذري */
.product-card {
    background: linear-gradient(135deg, rgba(45, 20, 70, 0.9) 0%, rgba(60, 30, 90, 0.9) 100%);
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 20px;
    box-shadow: -3px 5px 15px 0px rgba(138, 43, 226, 0.5); 
    padding: 20px;
    text-align: center;
    transition: transform 0.6s, box-shadow 0.6s;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    height: auto;
    box-sizing: border-box;
    /* 🚀 انيميشن ظهور لكل بطاقة */
    opacity: 0; /* يبدأ مخفي */
    animation: slideInUp 0.8s ease-out forwards;
}

/* 🚀 تأخير ظهور البطاقات بالتتابع */
.products-grid .product-box:nth-child(1) { animation-delay: 0.3s; }
.products-grid .product-box:nth-child(2) { animation-delay: 0.5s; }
.products-grid .product-box:nth-child(3) { animation-delay: 0.7s; }
.products-grid .product-box:nth-child(4) { animation-delay: 0.9s; }


.product-card:hover {
    transform: translateY(-10px) scale(1.03); /* زيادة تأثير التحويم */
    box-shadow: 0 10px 25px 0px rgba(138, 43, 226, 0.8);
}

.product-card img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.4s;
}

.product-card:hover img {
    transform: scale(1.05); /* تكبير الصورة قليلاً عند التحويم */
}

.product-card h2 {
    font-size: 24px; /* زيادة حجم العنوان في البطاقة */
    margin-top: 0;
    color: var(--color-light-text);
    margin-bottom: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-card .price {
    color: var(--color-accent);
    font-size: 22px; /* زيادة حجم السعر */
    font-weight: 700;
    margin-bottom: 20px;
}

.product-card .btn {
    width: 100%;
    background: var(--color-primary);
    font-size: 18px;
    font-weight: 600;
    margin-top: auto;
}

/* الحل الجذري للمنتجات - استخدام CSS Grid */
.products-wrapper {
    width: 100%;
    padding: 0 15px;
}

/* قائمة المنتجات الافتراضية */
.product-list {
    display: grid !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.product-list li {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* WooCommerce Products Override */
.woocommerce ul.products {
    display: grid !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

/* Desktop - 4 products per row */
@media (min-width: 1024px) {
    .product-list {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
        justify-items: center !important;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
        justify-items: center !important;
    }
    
    .product-card {
        width: 100% !important;
        max-width: 280px !important;
    }
    
    .woocommerce ul.products li.product {
        width: 100% !important;
        max-width: 280px !important;
    }
}

/* Tablet - 2 products per row */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        justify-items: center !important;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        justify-items: center !important;
    }
    
    .product-card {
        width: 100% !important;
        max-width: 300px !important;
    }
    
    .woocommerce ul.products li.product {
        width: 100% !important;
        max-width: 300px !important;
    }
}

/* Mobile - 2 products per row (FORCED) */
@media (max-width: 767px) {
    
    /* 1. **إزالة المسافة الجانبية الزائدة في حاوية المنتجات** */
    .home-products .container {
        width: 100% !important;
        padding: 0 5px !important; /* تقليل البادينغ إلى 5px أو 0 */
        margin: auto !important;
    }

    .home-products .products-grid {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important;
        width: 100% !important;
        margin: 0 auto 20px !important;
        padding: 0 5px;
    }

    /* 2. **توسيط العناصر الأخرى في الموبايل** */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .row {
        margin: 0;
        justify-content: center;
    }

    .col {
        padding: 0 5px;
    }
    
    .product-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        justify-items: center !important;
        align-items: start !important;
        width: 100% !important;
        padding: 0 5px !important;
        grid-auto-flow: row !important;
    }
    
    .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        justify-items: center !important;
        align-items: start !important;
        width: 100% !important;
        padding: 0 5px !important;
        grid-auto-flow: row !important;
    }
    
    .product-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 10px !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    .woocommerce ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    .product-card h2 {
        font-size: 16px !important;
        min-height: 40px !important;
        line-height: 1.2 !important;
    }
    
    .product-card .price {
        font-size: 18px !important;
    }
    
    .product-card .btn {
        font-size: 14px !important;
        padding: 10px 15px !important;
    }
    
    .product-card img {
        max-height: 120px !important;
    }
}

/* ------------------------------------------- */
/* 3. أقسام المحتوى المتضمنة صور خلفية مختلفة */
/* ------------------------------------------- */

.content-section {
    display: flex;
    align-items: center;
    color: var(--color-light-text);
    min-height: 450px;
    position: relative;
    z-index: 1;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    /* 🚀 انيميشن لإظهار القسم ببطء */
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}

#content-1 { animation-delay: 0.8s; }
#content-2 { animation-delay: 1.2s; }
#content-3 { animation-delay: 1.6s; }
#content-4 { animation-delay: 2.0s; }

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.85) 0%, rgba(26, 0, 51, 0.7) 50%, rgba(138, 43, 226, 0.85) 100%);
    z-index: 1;
}

.content-section .container {
    position: relative;
    z-index: 2;
}

.content-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.content-col {
    padding: 0 15px;
}

.content-col-right {
    margin-left: 50%;
    padding-right: 0;
}

.content-col-left {
    margin-right: 50%;
    padding-left: 0;
}

.content-section .text-box {
    background: linear-gradient(135deg, rgba(45, 20, 70, 0.85) 0%, rgba(26, 0, 51, 0.85) 100%);
    padding: 30px;
    border-radius: 15px; /* حواف أكثر دائرية */
    position: relative;
    z-index: 3;
    backdrop-filter: blur(8px); /* زيادة ضبابية الخلفية */
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.5);
    /* 🚀 انيميشن لإظهار الصندوق النصي من الجانب */
    transform: translateX(0);
    transition: transform 0.8s ease-out;
}
/* لا يمكن تطبيق انيميشن الظهور من الجانبين مباشرةً عبر CSS بدون استخدام JS أو مكتبات */

.text-box-left {
    text-align: left;
}

.content-section h2 {
    border-right: 8px solid var(--color-primary);
    padding-right: 10px;
    font-weight: 700; /* خط أثقل */
    color: var(--color-light-text);
}

.h2-left {
    border-right: none !important;
    border-left: 8px solid var(--color-primary) !important;
    padding-right: 0 !important;
    padding-left: 10px !important;
}

.content-section p {
    color: var(--color-light-text);
    line-height: 1.8;
}

/* Background Images for Content Sections */
#content-1 {
    background-image: url('https://smarterpro.net/wp-content/uploads/2025/11/iptv.webp');
}

#content-2 {
    background-image: url('https://smarterpro.net/wp-content/uploads/2025/11/iptv-6.webp');
}

#content-3 {
    background-image: url('https://smarterpro.net/wp-content/uploads/2025/11/banner.webp');
}

#content-4 {
    background-image: url('https://smarterpro.net/wp-content/uploads/2025/11/iptv-1.avif');
}

/* Column positioning */
#content-1 .content-row { justify-content: flex-end; }
#content-2 .content-row { justify-content: flex-start; }
#content-3 .content-row { justify-content: flex-end; }
#content-4 .content-row { justify-content: flex-start; }

/* ------------------------------------------- */
/* 4. قسم المميزات (التعديلات هنا) */
/* ------------------------------------------- */
#features-section, #features {
    background: linear-gradient(180deg, rgba(26, 0, 51, 0.95) 0%, rgba(45, 20, 70, 0.95) 50%, rgba(26, 0, 51, 0.95) 100%);
}

.features-title {
    margin-bottom: 50px;
    /* 🚀 انيميشن دخول للعنوان */
    animation: slideInUp 1s ease-out 0.2s backwards;
}

.features-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: center; /* توسيط بطاقات المميزات */
}

/* التعديل 1: التحكم في المسافة السفلية للعمود الحاوي (لضمان وجود فاصل مرئي عمودي في الموبايل) */
.feature-col {
    padding: 0 15px;
    margin-bottom: 40px; /* زيادة المسافة السفلية بين الأعمدة */
}

.feature-card {
    background: linear-gradient(135deg, rgba(45, 20, 70, 0.9) 0%, rgba(60, 30, 90, 0.9) 100%);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: right;
    transition: all 0.4s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    
    /* التعديل 2: إضافة فاصل عمودي بارز على اليمين وظل واضح */
    border-right: 8px solid var(--color-primary); /* فاصل عمودي بلون مميز */
    box-shadow: 0px 5px 15px rgba(138, 43, 226, 0.4); /* ظل خفيف لإبراز البطاقة */

    /* 🚀 انيميشن ظهور لكل ميزة */
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

/* 🚀 تأخير ظهور بطاقات المميزات بالتتابع */
.feature-col:nth-child(1) .feature-card { animation-delay: 0.5s; }
.feature-col:nth-child(2) .feature-card { animation-delay: 0.7s; }
.feature-col:nth-child(3) .feature-card { animation-delay: 0.9s; }
.feature-col:nth-child(4) .feature-card { animation-delay: 1.1s; }


.feature-card:hover {
    box-shadow: 0px 10px 25px 2px rgba(138, 43, 226, 0.6); /* زيادة الظل عند التحويم لزيادة الإبراز */
    transform: translateY(-8px) scale(1.02);
}

.feature-card .icon {
    color: var(--color-primary);
    font-size: 70px; /* حجم أيقونة أكبر */
    margin-bottom: 20px;
    transition: transform 0.5s;
}

.feature-card:hover .icon {
    transform: rotate(5deg) scale(1.1); /* حركة دوران خفيفة */
}

.feature-card h3 {
    font-size: 25px; /* حجم خط أوضح */
    color: var(--color-light-text);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--color-light-text);
    font-size: 17px;
}

/* ------------------------------------------- */
/* 5. قسم نداء العمل (CTA) */
/* ------------------------------------------- */
#cta-section, #cta {
    background-image: url('https://smarterpro.net/wp-content/uploads/2025/11/iptv-4.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* 🚀 انيميشن نبض خفيف للخلفية */
    animation: fadeIn 1.5s ease-out;
}

#cta-section::before, #cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.85) 0%, rgba(26, 0, 51, 0.7) 50%, rgba(138, 43, 226, 0.85) 100%);
    z-index: 1;
}

#cta-section .container, #cta .container {
    position: relative;
    z-index: 3;
}

#cta-section h2, #cta-section h5, #cta h2, #cta h5 {
    position: relative;
    z-index: 3;
    color: var(--color-light-text);
    text-align: center;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(138, 43, 226, 0.8);
    /* 🚀 انيميشن دخول للنص */
    opacity: 0;
    animation: slideInUp 1s ease-out 0.5s forwards;
}

#cta-section h5, #cta h5 {
    font-weight: 500;
}

/* ------------------------------------------- */
/* 6. قسم الأسئلة الشائعة (FAQ) */
/* ------------------------------------------- */
#faq-section, #faq {
    background: linear-gradient(180deg, rgba(26, 0, 51, 0.95) 0%, rgba(45, 20, 70, 0.95) 50%, rgba(26, 0, 51, 0.95) 100%);
}

#faq h4 {
    /* 🚀 انيميشن دخول للعنوان */
    animation: slideInUp 1s ease-out 0.2s backwards;
}

.faq-col {
    padding: 0 15px;
}

.accordion {
    border: 0;
    border-radius: 20px;
}

.accordion-item {
    margin-bottom: 10px; /* زيادة المسافة بين العناصر */
    border-radius: 15px;
    overflow: hidden;
    /* 🚀 انيميشن ظهور لعناصر الأكورديون */
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}
/* 🚀 تأخير ظهور العناصر بالتتابع */
.accordion-item:nth-child(1) { animation-delay: 0.6s; }
.accordion-item:nth-child(2) { animation-delay: 0.8s; }
.accordion-item:nth-child(3) { animation-delay: 1.0s; }
.accordion-item:nth-child(4) { animation-delay: 1.2s; }
.accordion-item:nth-child(5) { animation-delay: 1.4s; }


.accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px; /* زيادة البادينغ */
    background: linear-gradient(135deg, rgba(45, 20, 70, 0.9) 0%, rgba(60, 30, 90, 0.9) 100%);
    color: var(--color-light-text);
    font-weight: 600;
    font-size: 20px; /* حجم خط أوضح */
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    border-radius: 15px;
}

.accordion-title:hover {
    background-color: var(--color-primary);
    transform: translateX(-5px); /* حركة جانبية خفيفة */
}

.accordion-icon {
    font-size: 30px;
    width: 40px; /* تصغير الأيقونة قليلاً لتكون متناسبة */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    color: var(--color-light-text);
    transition: transform 0.3s;
}

.accordion-content {
    padding: 15px 24px;
    text-align: right;
    background: linear-gradient(135deg, rgba(45, 20, 70, 0.8) 0%, rgba(26, 0, 51, 0.8) 100%);
    color: var(--color-light-text);
    font-size: 17px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    border-radius: 0 0 15px 15px;
}

.accordion-content.active {
    max-height: 500px;
    transition: max-height 0.4s ease-in, padding 0.4s ease-in;
}
.accordion-title:hover .accordion-icon {
    transform: rotate(180deg);
}

/* ------------------------------------------- */
/* 7. الفوتر */
/* ------------------------------------------- */
.footer-top {
    background: linear-gradient(180deg, rgba(26, 0, 51, 0.95) 0%, rgba(45, 20, 70, 0.95) 100%);
    padding: 0;
}

.footer-top-col {
    /* الحفاظ على اللون البرتقالي/الأحمر المميز في الفوتر العلوي */
    background-color: rgba(203, 31, 39, 0.8);
    padding: var(--spacing-medium) var(--spacing-small);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-top-col ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.footer-top-col ul li a {
    color: var(--color-light-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1em;
}

.footer-bottom {
    background: linear-gradient(135deg, rgba(45, 20, 70, 0.95) 0%, rgba(26, 0, 51, 0.95) 100%);
    padding: var(--spacing-large) 0;
    /* 🚀 انيميشن لدخول الفوتر */
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 2.5s;
}

.payment-methods img {
    max-height: 70px;
    /* 🚀 انيميشن لعلامات الدفع */
    opacity: 0.8;
    transition: opacity 0.3s;
}

.payment-methods img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ------------------------------------------- */
/* Media Queries للتحكم في الاستجابة (Responsive Design) */
/* ------------------------------------------- */
@media (min-width: 768px) {
    .col-md-6 { width: 50%; }
    .col-md-4 { width: 33.333%; }
}

@media (max-width: 1023px) {
    .section {
        padding-top: var(--spacing-medium);
        padding-bottom: var(--spacing-medium);
    }
    
    .col-lg-6, .col-lg-4, .col-lg-3 {
        width: 100%;
    }
    
    /* 🚀 تعديل الخطوط للتابلت */
    h1 { font-size: 3.2em; }
    h2 { font-size: 2.4em; }
    h3 { font-size: 1.8em; }
    p { font-size: 1.05em; }
    
    .footer-top-col {
        margin-bottom: 20px;
    }

    /* تحسين أقسام المحتوى للتابلت */
    .content-col-right,
    .content-col-left {
        margin-left: 0;
        margin-right: 0; 
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
    }
    /* إلغاء الـ justify-content لـ content-row في التابلت لضمان توسيط الكتلة النصية */
    #content-1 .row,
    #content-2 .row,
    #content-3 .row,
    #content-4 .row {
        justify-content: center !important; /* توسيط الكتلة النصية */
    }

    .text-box-left {
        text-align: right;
    }
    
    .h2-left {
        border-left: none;
        border-right: 8px solid var(--color-primary);
        padding-left: 0;
        padding-right: 10px;
    }
    
    /* تحسين المميزات للتابلت */
    .feature-col {
        width: 50%;
        margin-bottom: 30px; /* التعديل هنا: زيادة المسافة لتظهر كفاصل */
    }
    
    /* إيقاف background-attachment للتابلت */
    .content-section {
        background-attachment: scroll;
    }
}

@media (max-width: 767px) {
    .section {
        padding-top: var(--spacing-small);
        padding-bottom: var(--spacing-small);
    }
    
    /* 🚀 تعديل الخطوط للموبايل */
    h1 { font-size: 2.4em; line-height: 1.3; } 
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }
    h4 { font-size: 1.3em; }
    p { font-size: 1em; } /* العودة لحجم الخط الأساسي */
    
    /* Hero Section للموبايل */
    #hero-section h1, #one h1 {
        font-size: 28px; /* حجم خط أوضح */
        line-height: 1.4;
        padding: 0 10px;
    }
    
    .features-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    /* تحسين المميزات للموبايل - ميزة واحدة في الصف */
    .feature-col {
        width: 100%;
        margin-bottom: 30px; /* التعديل هنا: ضمان مسافة كافية بين البطاقات المتراصة */
        padding: 0 10px;
    }
    
    .feature-card {
        padding: 20px;
        margin-bottom: 15px;
        border-right-width: 6px; /* تصغير عرض الفاصل قليلاً */
    }
    
    .feature-card h3 {
        font-size: 1.2em;
    }
    
    .feature-card p {
        font-size: 16px;
    }
    
    /* تحسين أقسام المحتوى للموبايل */
    .content-section {
        min-height: 300px;
        padding: 40px 0;
        background-attachment: scroll;
    }
    
    /* إزالة المسافات وتوسيط المحتوى */
    .row {
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
    }

    .col {
        padding: 0 5px;
    }
    
    .col-lg-6, .col-12 {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .content-col-right,
    .content-col-left {
        margin-left: 0 !important;
        margin-right: 0 !important; 
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .text-box {
        padding: 20px;
        margin: 10px;
        width: calc(100% - 20px);
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .text-box-left {
        text-align: right;
    }
    
    .text-box h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    
    .h2-left {
        border-left: none !important;
        border-right: 8px solid var(--color-primary) !important;
        padding-left: 0 !important;
        padding-right: 10px !important;
    }
    
    .text-box p {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* تحسين الأزرار للموبايل */
    .btn {
        padding: 12px 25px;
        font-size: 14px;
        margin: 10px 5px;
    }
    
    /* تحسين الأكورديون للموبايل */
    .accordion-title {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .accordion-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-right: -15px;
    }
    
    .accordion-content {
        padding: 15px 20px;
        font-size: 15px;
    }
}

/* ------------------------------------------- */
/* استمرار الكود دون تغيير كبير... */
/* ------------------------------------------- */

/* ... (بقية تنسيقات ووكوميرس لم يتم تعديلها بناءً على طلبك) ... */

/* Product Card */
.iptv-product-card {
    /* تطبيق انيميشن الظهور أيضاً على صفحة المتجر */
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}
.iptv-product-card:nth-child(2n) { animation-delay: 0.2s; }
.iptv-product-card:nth-child(3n) { animation-delay: 0.4s; }
/* ... (نهاية الكود) ... */