:root {
    --text-dark: #2c3e50;
    --verified-color: #0d6efd;
    --verified-gradient: linear-gradient(45deg, #0d6efd, #0dcaf0);
    --primary-gradient: linear-gradient(45deg, #d20a11, #ff4d54);
    --light-bg: #f8f9fa;
}

/* --- Category Carousel Section --- */
.category-carousel-section {
    position: relative;
    /* جديد: إضافة overflow: hidden لمنع التجاوز الأفقي */
    overflow: hidden;
}

.category-product-carousel {
    padding: 0; /* Remove padding  */
    overflow: visible; /* Override Swiper's default to show navigation arrows */
}

.category-product-carousel .swiper-slide {
    width: 220px; /* Set a fixed width for product cards */
    height: auto; /* Allow cards to determine their height */
}


.category-product-carousel .swiper-slide .product-card {
    height: 100%;
}

/* --- Category Hero Card --- */
.category-hero-slide {
    width: 280px !important; /* Wider hero card */
    flex-shrink: 0;
}

.category-hero-card {
    height: 100%;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.category-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
}

.category-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 1.5rem;
    width: 100%;
}

.category-hero-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.category-hero-content .btn-light {
    font-weight: 600;
}

/* --- Carousel Navigation Arrows --- */
.category-carousel-section .swiper-button-next,
.category-carousel-section .swiper-button-prev {
    width: 44px;
    height: 44px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: #333;
    transition: all 0.2s ease;
}

.category-carousel-section .swiper-button-next:hover,
.category-carousel-section .swiper-button-prev:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
}

.category-carousel-section .swiper-button-next::after,
.category-carousel-section .swiper-button-prev::after {
    font-size: 1rem;
    font-weight: 900;
}

.category-carousel-section .swiper-button-prev {
    right: 0;
    left: auto;
}

.category-carousel-section .swiper-button-next {
    left: 0;
    right: auto;
}

@media (max-width: 768px) {
    .category-product-carousel {
        padding: 0;
        margin: 0;
        overflow: hidden; /* إعادة القيمة الافتراضية لـ Swiper على الموبايل */
    }
    .category-carousel-section .swiper-button-next,
    .category-carousel-section .swiper-button-prev {
        display: none; /* إخفاء أسهم التنقل على الموبايل */
    }
}

/* --- تحسينات السلايدر (Slider) --- */
#mainSlider.swiper-container {
    width: 100%;
    height: 420px; /* تحديد ارتفاع ثابت للسلايدر لضمان التناسق */
    border-radius: 12px;
    overflow: hidden;
    position: relative; /* مهم: لجعل الأزرار تتموضع بداخله */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

#mainSlider .swiper-slide { position: relative; overflow: hidden; height: 100%; }

#mainSlider .swiper-slide img {
    width: 100%;
    height: 100%; /* ملء ارتفاع السلايدر */
    object-fit: cover; /* تغطية كاملة دون تمطيط */
    border-radius: 12px;
    display: block;
}

/* إزالة الظل بشكل افتراضي */
#mainSlider .swiper-slide::after { content: ''; background: none; }

/* تطبيق الظل فقط على الشرائح التي تحتوي على نص */
#mainSlider .swiper-slide.has-text-content::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

/* نصوص السلايدر */
#mainSlider .slide-layers {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    text-align: right;
    color: #fff;
    z-index: 10; /* تأكد من أن النصوص تظهر فوق الصورة */
    width: 85%; /* زيادة العرض لاستيعاب الشبكة الداخلية */
}

#mainSlider .s-describe {
    font-size: 18px; font-weight: 600; color: #f1f1f1; margin-bottom: 10px;
    opacity: 0; transform: translateY(30px);
}

#mainSlider .s-title {
    font-size: 36px; font-weight: 800; margin-bottom: 25px; line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); opacity: 0; transform: translateY(30px);
}

/* زر التسوق */
#mainSlider .btn-more {
    display: inline-flex; align-items: center; background: #d20a11; color: #fff;
    padding: 12px 30px; border-radius: 50px; font-weight: 700; font-size: 15px;
    transition: all 0.3s ease; opacity: 0; transform: translateY(30px);
    box-shadow: 0 4px 10px rgba(210, 10, 17, 0.3);
}
.btn-more:hover { background: #ff4d54; color: #fff; transform: translateY(-2px); text-decoration: none; }
.btn-more i { margin-right: 8px; transition: transform 0.3s; }
.btn-more:hover i { transform: translateX(-5px); }

/* تنسيق الشعار المصغر داخل السلايدر */
.slider-thumbnail-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0; /* إخفاء الشعار مبدئياً */
    transform: translateX(-30px); /* تحريك الشعار لليسار مبدئياً */
}

/* أنيميشن السلايدر */
#mainSlider .swiper-slide-active .s-title { animation: slideContentUp 0.8s ease forwards 0.2s; }
#mainSlider .swiper-slide-active .s-describe { animation: slideContentUp 0.8s ease forwards 0.4s; }
#mainSlider .swiper-slide-active .btn-more { animation: slideContentUp 0.8s ease forwards 0.6s; }
#mainSlider .swiper-slide-active .slider-thumbnail-img { animation: slideContentIn 0.8s ease forwards 0.5s; }

@keyframes slideContentUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* حركة الشعار المصغر */
@keyframes slideContentIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

#mainSlider .swiper-button-next, #mainSlider .swiper-button-prev {
    color: #fff; width: 45px; height: 45px; background: rgba(255,255,255,0.2);
    border-radius: 50%; backdrop-filter: blur(5px); transition: all 0.3s;
    /* جديد: تحديد موضع الأزرار داخل السلايدر */
    top: 50%;
    transform: translateY(-50%);
}
/* تحديد موضع زر التالي على اليمين */
#mainSlider .swiper-button-next {
    right: 15px;
    left: auto;
}
/* تحديد موضع زر السابق على اليسار */
#mainSlider .swiper-button-prev {
    left: 15px;
    right: auto;
}
#mainSlider .swiper-button-next:hover, #mainSlider .swiper-button-prev:hover { background: #d20a11; }
#mainSlider .swiper-button-next::after, #mainSlider .swiper-button-prev::after { display: none; } /* Hide default arrows */

#mainSlider .swiper-pagination-bullet-active { background: #d20a11; width: 25px; border-radius: 10px; opacity: 1; }

/* --- تنسيقات البطاقات الجانبية (Banner Cards) --- */
.info-block {
    position: relative;
    /* معادلة الارتفاع: (ارتفاع السلايدر 420px - المسافة 20px) / 2 = 200px */
    height: 200px; 
    margin-bottom: 20px; /* المسافة بين البطاقتين */
    border-radius: 12px;
    overflow: hidden;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
}

/* إزالة الهامش من آخر عنصر */
.info-block:last-child {
    margin-bottom: 0;
}

.info-block img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.info-block:hover img { transform: scale(1.1); }

.info-block-content {
    position: absolute; top: 20px; right: 20px; z-index: 2; width: 60%;
}

.info-block-describe {
    font-size: 13px; color: #666; margin: 0 0 5px 0; font-weight: 600;
}

.info-block-title {
    font-size: 18px; font-weight: 800; margin: 0; color: #333; line-height: 1.3;
}

/* تنسيقات خاصة بلافتات البرامج الجانبية */
.software-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* يغطي المساحة بالكامل */
    opacity: 0.15; /* يجعل الصورة خلفية باهتة */
    transition: opacity 0.3s ease;
}

.info-block.software-banner:hover .software-banner-img {
    opacity: 0.3;
}

.software-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    font-size: 4rem;
    color: #ced4da;
}

/* تنسيقات بطاقات البرامج الكاملة في الشريط الجانبي */
.software-banner-full-content {
    /* --- Variables from example --- */
    --card-bg-gradient: linear-gradient(145deg, #005a7d 0%, #003e5c 100%);
    --card-border-color: 1px solid rgba(255, 255, 255, 0.1);
    --text-white-color: #ffffff;
    --text-muted-color: #8ab4cc;
    --verified-blue-color: #0078d4; 
    --hover-border-color: 1px solid rgba(255, 255, 255, 0.3);
    --btn-bg-color: #0078d4;
    --btn-hover-bg-color: #006cbd;

    /* --- Card Styles --- */
    background: var(--card-bg-gradient);
    border: var(--card-border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: default;
    transition: all 0.3s ease;
    box-sizing: border-box;
    direction: ltr; /* Match example direction */
    height: auto; /* Override info-block height */
    min-height: auto;
    display: block; /* Reset flex properties */
    height: 200px; /* استعادة الارتفاع الثابت من .info-block */
    min-height: 200px;
    display: flex; /* استخدام flexbox للتحكم في المحتوى الداخلي */
    flex-direction: column; /* ترتيب العناصر بشكل عمودي */
    justify-content: space-between; /* توزيع المساحة بين العناصر */
}

.software-banner-full-content:hover {
    border: var(--hover-border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.software-banner-full-content .card-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px; /* Match example */
}

.software-banner-full-content .app-icon {
    width: 80px;
    height: 80px;
    background-color: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 12px;
}

.software-banner-full-content .app-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0; /* Image itself doesn't need radius */
}

.software-banner-full-content .pocket-logo-placeholder {
    font-size: 2.5rem;
    color: var(--btn-bg-color);
}

.software-banner-full-content .app-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left; /* محاذاة النص لليسار */
    flex-grow: 1;
}

.software-banner-full-content .title-row {
    display: flex;
    align-items: center;
    gap: 6px; 
    margin-bottom: 4px; /* Match example */
}

.software-banner-full-content .app-title {
    font-size: 24px;
    /* تعديل حجم الخط ليكون متجاوبًا ويمنع التمدد */
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    font-weight: 600;
    color: var(--text-white-color);
    margin: 0;
    line-height: 1;
    line-height: 1.2; /* تحسين قراءة النص عند الالتفاف */
}

.software-banner-full-content .verified-badge {
    width: 18px;
    height: 18px;
    fill: var(--verified-blue-color);
}

.software-banner-full-content .app-category {
    font-size: 14px;
    color: var(--text-muted-color);
    margin: 0 0 8px 0; /* Match example */
    display: flex;
    align-items: center;
    gap: 6px;
}

.software-banner-full-content .version-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.software-banner-full-content .rating {
    color: white;
    font-size: 14px;
    letter-spacing: 2px;
}
.software-banner-full-content .rating span.dim { 
    opacity: 0.4; 
}

.software-banner-full-content .download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--btn-bg-color);
    padding: 10px 16px;
    border-radius: 8px;
    gap: 10px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.software-banner-full-content .download-btn:hover {
    background-color: var(--btn-hover-bg-color);
}

.software-banner-full-content .download-btn:active {
    transform: scale(0.98);
}

.software-banner-full-content .windows-icon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    width: 16px;
    height: 16px;
}
.software-banner-full-content .win-sq {
    width: 100%;
    height: 100%;
    background: white;
}

.software-banner-full-content .download-btn .btn-text {
    color: var(--text-white-color);
    font-size: 15px;
    font-weight: 600;
}
/* =========================================
   تعديلات التجاوب (الهاتف والتابلت)
   ========================================= */

@media (max-width: 991px) {
/* استعادة تنسيقات السلايدر على شاشات الهاتف */
    #mainSlider.swiper-container {
        height: auto;
        aspect-ratio: 16/9; /* نسبة عرض لارتفاع سينمائية */
    }

    #mainSlider .s-title { font-size: 20px; margin-bottom: 10px; }
    #mainSlider .s-describe { font-size: 14px; margin-bottom: 5px; }
    #mainSlider .btn-more { padding: 8px 20px; font-size: 13px; }
    #mainSlider .slide-layers { right: 5%; width: 80%; max-width: 80%; }

    .side-column { margin-top: 20px; } /* Re-add margin for mobile */
    #banner30 { display: flex; flex-direction: column; gap: 15px; } /* تغيير التنسيق إلى عمودي */
    .info-block { width: 100%; height: auto; min-height: auto; margin-bottom: 0; } /* جعل البطاقة تأخذ العرض الكامل */
    
    .software-banner-full-content {
        padding: 16px;
    }
    .software-banner-full-content .app-icon {
        width: 70px;
        height: 70px;
    }
    .software-banner-full-content .app-title {
        font-size: 1rem;
    }
}
/* --- New Hero Section Styles --- */

/* Slider Item */
.slide-content-wrapper {
    background-color: #f3f4f6; /* Light gray background */
    border-radius: 1rem; /* 16px */
    height: 100%;
    overflow: hidden;
}

/* جديد: تحديد ارتفاعات متجاوبة للسلايدر */
/* .slide-content-wrapper {
    min-height: 450px; /* ارتفاع افتراضي للشاشات الكبيرة */
/* } */

/*
@media (max-width: 991.98px) {
    .slide-content-wrapper {
        min-height: 350px; /* ارتفاع للشاشات المتوسطة */


@media (max-width: 767.98px) {
    .slide-content-wrapper {
        min-height: 188px; /* ارتفاع مخصص للهاتف */
    }
}
*/
.slider-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.slider-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.slider-btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(210, 10, 17, 0.3);
    color: white;
}

.slider-item-image {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
}

/* Slider Indicators */
.carousel-indicators {
    bottom: -40px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
}

.carousel-indicators button.active {
    background-color: var(--primary-gradient);
}

/* Side Banners */
.side-banners-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* 12px */
    height: 100%;
}

.side-banner {
    flex: 1;
    border-radius: 1rem; /* 16px */
    padding: 1.5rem;
    color: white;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.side-banner.top-banner {
    background-image: linear-gradient(45deg, #1f2937, #374151);
}

.side-banner.bottom-banner {
    background-image: linear-gradient(45deg, #0d6efd, #0dcaf0);
}

.banner-content p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.banner-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.banner-link {
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.banner-link:hover {
    border-bottom-color: white;
}

@media (max-width: 991.98px) {
    .side-banner {
        padding: 1rem;
        min-height: 140px; /* Ensure a minimum height on mobile */
    }
    .banner-content h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* Features Bar */
.features-bar {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    font-size: 2rem;
    color: #9ca3af;
}

.feature-text h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.feature-text p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
}

@media (max-width: 767.98px) {
    .feature-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
}


/* تأثيرات حركية للسلايدر */
.animate__animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.carousel-item.active .animate__fadeInDown {
    animation-name: fadeInDown;
    animation-delay: 0.2s;
}

.carousel-item.active .animate__fadeInUp {
    animation-name: fadeInUp;
    animation-delay: 0.3s;
}

.carousel-item.active .animate__fadeInLeft {
    animation-name: fadeInLeft;
    animation-delay: 0.4s;
}

/* تصميم قسم التصنيفات */
.categories-section {
    padding: 0;
    margin: 0;
}

.categories-section .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.categories-slider {
    padding: 0;
    margin: 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.5rem 0;
    position: relative;
    text-align: center;
    gap: 1.5rem;
}

.section-title::before,
.section-title::after {
    content: '';
    height: 2px;
    width: 80px;
    background: linear-gradient(to right, transparent, #d20a11);
}

.section-title::before {
    background: linear-gradient(to left, transparent, #d20a11);
}

.section-title i {
    font-size: 1.3rem;
    color: #d20a11;
    margin: 0 0.5rem;
}

.section-title h2 {
    font-size: 1.6rem;
    margin: 0;
    font-weight: 800;
    color: #2c3e50;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0px;
}

.section-subtitle {
    text-align: center;
    margin: -0.5rem 0 1.5rem 0;
}

.section-subtitle p {
    font-size: 1rem;
    margin: 0;
    color: #6c757d;
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .section-title::before,
    .section-title::after {
        width: 50px;
    }
    
    .section-title h2 {
        font-size: 1.3rem;
        letter-spacing: 0.3px;
    }
    
    .section-subtitle p {
        font-size: 0.9rem;
    }
}

/* تصميم سلايدر التصنيفات */
.categories-slider {
    padding: 0.5rem;
    margin: 0;
}

/* تصميم بطاقة التصنيف */
.category-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(45deg, #0d6efd, #0dcaf0);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #2c3e50;
}

.category-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.category-card:hover .card-icon {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
}

.card-icon i {
    font-size: 1.5rem;
    color: #0d6efd;
    transition: all 0.3s ease;
}

.category-card:hover .card-icon i {
    color: #fff;
}

.card-content {
    flex-grow: 1;
    min-width: 0;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-count {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.products-count span {
    color: #0d6efd;
    font-weight: 600;
}

/* تخصيص نقاط التنقل */
.swiper-pagination {
    position: relative;
    margin-top: 2rem;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #dee2e6;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #0d6efd;
    width: 24px;
    border-radius: 4px;
}

/* تحسينات للشاشات المختلفة */
@media (max-width: 991.98px) {
    .category-card {
        padding: 1.25rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
    }
    
    .card-icon i {
        font-size: 1.25rem;
    }
    
    .card-content h3 {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .categories-section .container {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .section-title {
        margin-bottom: 0.25rem;
    }

    .section-title i {
        font-size: 1.25rem;
    }

    .section-title h2 {
        font-size: 1.25rem;
    }

    .categories-slider {
        padding: 0.5rem;
    }
    
    .category-card {
        padding: 1rem;
        gap: 1rem;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
    }
    
    .products-count {
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .categories-section .container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .section-title {
        gap: 0.75rem;
    }

    .section-title i {
        font-size: 1.25rem;
    }

    .section-title h2 {
        font-size: 1.25rem;
    }
}

/* تصميم قسم العلامات التجارية */
.brands-section {
    padding: 0;
    background-color: #f2f4fa;
    margin: 0;
}

.brands-slider {
    padding: 0;
    margin: 0;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    height: 100px;
    margin: 0;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.brand-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.brand-card:hover .brand-logo {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .brand-card {
        height: 90px;
        padding: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .brands-section .container,
    .categories-section .container {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .brand-card {
        height: 80px;
        padding: 0.5rem;
    }

    .section-title {
        margin-bottom: 0.25rem;
    }

    .section-title i {
        font-size: 1.25rem;
    }

    .section-title h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .brands-section .container,
    .categories-section .container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .brand-card {
        height: 70px;
        padding: 0.5rem;
    }
}

/* إضافة مسافات بين الأقسام */
section {
    margin: 0;
    padding: 0.7rem 0;
    position: relative;
}

section:nth-child(even) {
    background-color: #f2f4fa;
}

.add-to-cart {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
        letter-spacing: 0.5px;
    background: linear-gradient(45deg, #d20a11, #ff4d54);
    border: none;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(210, 10, 17, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 10, 17, 0.4);
    color: #fff;
    text-decoration: none;
}

.add-to-cart:hover i {
    transform: scale(1.1);
}

.add-to-cart:active {
    transform: translateY(0);
}

@media (max-width: 767.98px) {
    .add-to-cart {
        padding: 0.6rem 1.25rem;
        font-size: 0.7rem;
    }
}

.py-5 {
    padding-top: 0 !important;
    padding-bottom: 3rem !important;
}

/* تنسيقات قسم البرامج */
.software-card {
    margin-bottom: 1.5rem;
}

.app-info-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.app-info-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

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

.app-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 16px;
    padding: 1rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.app-logo-placeholder {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 16px;
    color: var(--verified-color);
    font-size: 2.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.app-details {
    min-width: 0;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--verified-gradient);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.app-meta {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0.5rem auto;
    width: auto;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 0.85rem;
    background: var(--light-bg);
    border-radius: 8px;
    white-space: nowrap;
    min-width: 60px;
}

.meta-badge i {
    font-size: 0.85rem;
    margin-right: 6px;
    color: var(--verified-color);
}

.app-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.app-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.app-actions .btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.app-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(210, 10, 17, 0.3);
}

@media (max-width: 767.98px) {
    .app-info-card .card-body {
        padding: 1rem;
    }

    .app-logo, .app-logo-placeholder {
        width: 80px;
        height: 80px;
    }

    .app-title {
        font-size: 1.25rem;
    }

    .meta-badge {
        padding: 4px 8px;
        font-size: 0.8rem;
        min-width: 55px;
    }

    .meta-badge i {
        font-size: 0.8rem;
        margin-right: 4px;
    }
}

@media (max-width: 575.98px) {
    .d-flex.align-items-start {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }

    .app-logo-wrapper {
        margin-bottom: 1rem;
    }

    .app-details {
        width: 100%;
        text-align: center;
    }

    .app-title {
        justify-content: center;
    }

    .app-actions {
        justify-content: center;
    }
}

.app-category {
    margin-bottom: 0.75rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background: var(--verified-gradient);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.category-badge i {
    margin-left: 6px;
    font-size: 0.9rem;
}

.app-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    background: var(--light-bg);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.info-badge i {
    margin-left: 6px;
    color: var(--verified-color);
    font-size: 0.9rem;
}

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

.btn-outline-primary:hover {
    background: var(--verified-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

@media (max-width: 767.98px) {
    .app-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .category-badge,
    .info-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .category-badge i,
    .info-badge i {
        font-size: 0.85rem;
    }

    .app-info {
        gap: 6px;
    }
}

@media (max-width: 575.98px) {
    .app-category,
    .app-description,
    .app-info {
        text-align: center;
    }

    .app-info {
        justify-content: center;
    }
}

.info-badge.arabic-support {
    background: linear-gradient(45deg, #45b649, #38ef7d);
    color: white;
}

.info-badge.arabic-support i {
    color: white;
}

/* Update price icon to a checkmark */
.price-icon-wrapper i.fa-tag {
    display: none; /* Hide old icon if needed */
}
.price-icon-wrapper i.fa-check {
    font-size: 12px; /* Adjust size of the checkmark */
}

@media (max-width: 767.98px) {
    .app-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .category-badge,
    .info-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .category-badge i,
    .info-badge i {
        font-size: 0.85rem;
    }

    .app-info {
        gap: 6px;
    }
}

@media (max-width: 575.98px) {
    .app-category,
    .app-description,
    .app-info {
        text-align: center;
    }

    .app-info {
        justify-content: center;
    }
}