/*
Theme Name: TV Smart IPTV
Description: A professional IPTV subscription theme with Arabic RTL support and light orange design
Version: 3.0
Author: TV Smart
Text Domain: tvsmart
*/

/* --- Global Variables and Base Styles --- */
:root {
    --primary-color: #FF5722; /* Main orange color */
    --secondary-color: #E64A19; /* Darker orange */
    --accent-yellow: #FFC107; /* New accent yellow for alternating sections */
    --bg-light: #F7F7F7; /* Light background for sections */
    --bg-secondary: #FFFFFF; /* Secondary background, e.g., for cards and white sections */
    --bg-alt-orange: #FFF3E0; /* Soft orange for alternating sections */
    --text-primary: #121212; /* Primary text color */
    --text-secondary: #4A4A4A; /* Secondary text color */
    --border-color: #E0E0E0; /* Border color for cards and elements */
    --glass-bg: rgba(255, 255, 255, 0.7); /* Transparent white for glass effect */
    --glass-border: rgba(255, 87, 34, 0.2); /* Transparent orange for glass effect borders */
}

/* Base body styles with glass background effect */
body {
    background: linear-gradient(135deg, 
        rgba(255, 243, 224, 0.8) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(255, 243, 224, 0.8) 100%
    );
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden; /* منع السكرولينج الأفقي */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Glass Background Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 87, 34, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(255, 87, 34, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Custom Scrollbar - زجاجي وسلس */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(255, 87, 34, 0.8) 0%,
        rgba(230, 74, 25, 0.9) 50%,
        rgba(255, 87, 34, 0.8) 100%
    );
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(255, 87, 34, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(255, 87, 34, 1) 0%,
        rgba(230, 74, 25, 1) 50%,
        rgba(255, 87, 34, 1) 100%
    );
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.5);
}

/* Firefox Scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 87, 34, 0.8) rgba(255, 255, 255, 0.1);
}

/* Prevent horizontal overflow */
* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.container, .section, .full-width {
    max-width: 100%;
    overflow-x: hidden;
}

/* Main container for content, centered and with max-width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Full-width sections with padding */
.section {
    padding: 50px 0;
    width: 100%;
    overflow-x: hidden;
}

/* --- Alternating Section Backgrounds (Enhanced with Glass Effect) --- */
.section-white {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.7) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-orange {
    background: linear-gradient(
        135deg,
        rgba(255, 243, 224, 0.9) 0%,
        rgba(255, 243, 224, 0.7) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h1, .section-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Section Divider --- */
.section-divider {
    border: 0;
    height: 1.5px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--glass-border) 10%,
        var(--primary-color) 50%,
        var(--glass-border) 90%,
        transparent 100%
    );
    margin: 40px auto;
    width: 80%;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.6);
}

/* --- Glass Effect and Button Styles (Enhanced) --- */
.btn, .cta-button {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(145deg,
        rgba(255, 87, 34, 0.9),
        rgba(230, 74, 25, 0.95)
    );
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 87, 34, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary, .btn-outline {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    border: 2px solid rgba(255, 87, 34, 0.3);
    backdrop-filter: blur(15px);
}

.btn-secondary:hover, .btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 87, 34, 0.4);
}

.add-to-cart {
    background: linear-gradient(145deg,
        rgba(255, 87, 34, 0.9),
        rgba(230, 74, 25, 1)
    );
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.4s ease;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.add-to-cart:hover::before {
    left: 100%;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 87, 34, 0.4);
}
/* --- Content & Features Sections --- */
.content-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 30px 0;
}

.content-section .content-text,
.content-section .content-image {
    flex: 1;
}

.content-section.reverse {
    flex-direction: row-reverse;
}

.content-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
}

.content-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 87, 34, 0.2);
}

.content-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.features-grid, .content-highlights, .security-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.feature-card, .highlight-box, .security-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 87, 34, 0.2);
    border-right: 3px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.feature-card:hover, .highlight-box:hover, .security-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 87, 34, 0.2);
}

.feature-card h4, .highlight-box h4, .security-item h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

/* --- IPTV Cards Section --- */
.iptv-cards-section.full-width {
    width: 100%;
    max-width: 100%;
    padding: 50px 4%;
    color: var(--text-primary);
    box-sizing: border-box;
    overflow-x: hidden;
}

.iptv-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: bold;
    text-align: center;
}

.iptv-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.7;
    text-align: center;
}

.iptv-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.iptv-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 25px 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 87, 34, 0.2);
    text-align: center;
}

.iptv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255,87,34,0.3);
}

.iptv-card-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.iptv-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.iptv-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.iptv-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* --- Products Section --- */
.products-container {
    display: grid;
    gap: 15px;
    justify-items: center;
}

.product-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 87, 34, 0.2);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    max-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 87, 34, 0.3);
}

.product-image-wrapper {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
}

.product-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-card img:hover {
    transform: scale(1.05);
}

.product-card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.product-card h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card h3 a:hover {
    color: var(--primary-color);
}

.product-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
}

.product-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* --- Servers Section --- */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}

.server-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 87, 34, 0.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 87, 34, 0.3);
    border-color: var(--primary-color);
}

.category-image-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
}

.server-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.server-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 8px;
}

/* --- FAQ Section - إصلاح كامل للألوان --- */
.faq-section {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: 'Cairo', sans-serif;
}

.faq-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 87, 34, 0.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 87, 34, 0.2);
}

.faq-question {
    cursor: pointer;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    background-color: transparent;
    color: var(--text-primary) !important; /* إجبار اللون */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    border: none;
    outline: none;
}

.faq-question h3 {
    color: var(--text-primary) !important; /* إجبار اللون */
    margin: 0;
    flex: 1;
}

.faq-question:hover {
    color: var(--primary-color) !important;
}

.faq-question:hover h3 {
    color: var(--primary-color) !important;
}

.faq-icon {
    font-size: 20px;
    color: var(--primary-color) !important;
    transition: transform 0.3s ease;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 16px;
    transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    opacity: 1;
    padding: 16px;
}

.faq-answer-content {
    background: rgba(247, 247, 247, 0.9);
    padding: 16px;
    border-radius: 8px;
    margin-top: 5px;
}

.faq-answer-content p {
    font-size: 15px;
    color: #121212 !important; /* إجبار اللون الأسود */
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

/* --- Testimonials & Pricing --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding: 30px 15px;
}

.testimonial-card, .pricing-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 87, 34, 0.2);
    margin-bottom: 5px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.testimonial-card:hover, .pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 87, 34, 0.3);
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg,
        var(--primary-color),
        var(--secondary-color)
    );
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.4);
}

.testimonial-content p {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.pricing-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.price .currency {
    font-size: 1rem;
    vertical-align: top;
}

.price .period {
    font-size: 1rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 5px;
}

.features-list {
    list-style: none;
    margin-bottom: 20px;
    text-align: right;
    padding: 0;
}

.features-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.features-list li:before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 10px;
}

/* --- CTA Section --- */
.cta-section {
    padding: 60px 20px;
    text-align: center;
    margin: 40px auto;
    max-width: 100%;
    border-radius: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 0 40px rgba(255, 87, 34, 0.3);
    position: relative;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.cta-text h2 {
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.cta-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 15px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 12px;
}

/* --- Footer (Full-width) --- */
.site-footer {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 87, 34, 0.2);
}

.site-footer a {
    color: var(--text-primary);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary-color);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .content-section, .content-section.reverse {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .servers-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .iptv-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile Styles - أقل من 768px */
@media (max-width: 768px) {
    /* منع السكرولينج الأفقي */
    body {
        overflow-x: hidden;
        width: 100vw;
    }
    
    .container {
        padding: 0 10px;
        max-width: 100vw;
    }
    
    .section {
        padding: 30px 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Hero Section */
    .hero {
        height: 50vh;
        min-height: 350px;
        padding: 0 10px;
    }
    
    .hero-content {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 80%;
        max-width: 300px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Content Sections - ترتيب الصور والنص للموبايل */
    .content-section {
        flex-direction: column !important;
        gap: 20px;
        padding: 20px 0;
    }
    
    /* على الموبايل: الصورة أولا ثم النص */
    .content-section .content-image {
        order: 1;
        margin-bottom: 15px;
    }
    
    .content-section .content-text {
        order: 2;
    }
    
    /* حتى للـ reverse sections */
    .content-section.reverse .content-image {
        order: 1;
        margin-bottom: 15px;
    }
    
    .content-section.reverse .content-text {
        order: 2;
    }
    
    .content-section h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .content-section p {
        font-size: 0.9rem;
        text-align: center;
        line-height: 1.6;
        margin-bottom: 10px;
    }
    
    /* Grid Adjustments */
    .features-grid, .content-highlights, .security-features {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 15px;
    }
    
    .feature-card, .highlight-box, .security-item {
        padding: 12px;
    }
    
    /* IPTV Cards */
    .iptv-cards-section.full-width {
        padding: 30px 10px;
    }
    
    .iptv-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .iptv-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .iptv-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .iptv-card {
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    .iptv-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .iptv-buttons .btn {
        width: 90%;
        max-width: 320px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Products Grid - 2 columns على الموبايل */
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 5px;
    }
    
    .product-card {
        max-width: none;
        width: 100%;
    }
    
    .product-card h3 {
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
    
    .add-to-cart {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
    
    /* Servers Grid */
    .servers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .server-card {
        padding: 10px;
    }
    
    .category-image-wrapper {
        height: 80px;
    }
    
    .server-card h3 {
        font-size: 0.9rem;
        margin-top: 5px;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .testimonial-card {
        padding: 15px;
    }
    
    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 10px;
    }
    
    .pricing-card {
        padding: 20px 15px;
    }
    
    /* FAQ Section */
    .faq-section {
        padding: 0 10px;
    }
    
    .faq-question {
        padding: 12px;
        font-size: 1rem;
    }
    
    .faq-answer-content {
        padding: 12px;
    }
    
    .faq-answer-content p {
        font-size: 0.9rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 40px 15px;
    }
    
    .cta-text h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .cta-text p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .cta-buttons .btn {
        width: 90%;
        max-width: 320px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Section Headers */
    .section-header h1, .section-header h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .section-header p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    /* Buttons General */
    .btn, .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    /* Images */
    .content-image img {
        border-radius: 12px;
        margin-bottom: 10px;
    }
    
    /* Glass Scrollbar تحسين للموبايل */
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-thumb {
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* Very Small Screens - أقل من 480px */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .iptv-title {
        font-size: 1.3rem;
    }
    
    .iptv-subtitle {
        font-size: 0.85rem;
    }
    
    .section-header h1, .section-header h2 {
        font-size: 1.3rem;
    }
    
    .servers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-text h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .section {
        padding: 20px 0;
    }
    
    .iptv-cards-section.full-width {
        padding: 20px 8px;
    }
}

/* Desktop Product Grid (5 columns) */
@media (min-width: 769px) {
    .products-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

/* FAQ Section Style */
.faq-section {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: 'Cairo', sans-serif;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 87, 34, 0.2);
    overflow: hidden;
}

.faq-question {
    cursor: pointer;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    outline: none;
    background-color: transparent;
}

.faq-question h3 {
    margin: 0;
}

.faq-icon {
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.3s ease;
    padding: 0 16px;
}

.faq-answer.active {
    max-height: 500px;
    opacity: 1;
    padding: 16px;
}

.faq-answer-content {
    padding: 16px;
    border-radius: 8px;
    margin-top: 5px;
}

/* إجبار النص داخل الإجابة على اللون الأسود والخط */
.faq-answer-content p {
    color: #121212 !important;
    font-weight: 500 !important;
    line-height: 1.7;
    margin: 0;
}
/* --- Blog Page Styles --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 87, 34, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(255, 87, 34, 0.25);
}

.blog-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 12px;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-thumb:hover img {
    transform: scale(1.05);
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: right;
}

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

.blog-title a:hover {
    color: var(--secondary-color);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
    flex-grow: 1;
}

.no-posts {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 30px 0;
}

.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary-color);
    border-radius: 8px;
    border: 1px solid rgba(255, 87, 34, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: bold;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
}