/* ================================================================
   فرح الدور للمعدات الطبية - نظام الهوية البصرية الشاملة
   Farah Aldoor Medical Equipment - Complete Design System
   Sudan - Nyala | Designed by Fair Deal Technology
   ================================================================ */

/* ===== خطوط ===== */
@font-face {
    font-family: 'Cairo';
    src: url('/static/font/cairo/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Cairo';
    src: url('/static/font/cairo/Cairo-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Cairo';
    src: url('/static/font/cairo/Cairo-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Cairo';
    src: url('/static/font/cairo/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Cairo';
    src: url('/static/font/cairo/Cairo-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

/* ===== متغيرات الهوية البصرية ===== */
:root {
    /* الألوان الرئيسية */
    --brand-primary:        #0e4d92;   /* الأزرق الطبي العميق */
    --brand-primary-light:  #1a6bbf;
    --brand-primary-dark:   #092f5a;
    --brand-secondary:      #00a896;   /* الفيروزي الطبي */
    --brand-secondary-light:#00c4b0;
    --brand-secondary-dark: #007d70;
    --brand-accent:         #f0a500;   /* الذهبي للعناصر المميزة */
    --brand-accent-light:   #f5bc40;

    /* الألوان المحايدة */
    --color-dark:           #1a2535;
    --color-gray-dark:      #2c3e50;
    --color-gray:           #6c757d;
    --color-gray-light:     #adb5bd;
    --color-light:          #eaf4fb;
    --color-white:          #ffffff;
    --color-bg:             #f8fafb;

    /* Bootstrap Overrides */
    --bs-primary:           #0e4d92;
    --bs-primary-rgb:       14, 77, 146;
    --bs-secondary:         #00a896;
    --bs-secondary-rgb:     0, 168, 150;
    --bs-dark:              #1a2535;
    --bs-dark-rgb:          26, 37, 53;
    --bs-light:             #eaf4fb;
    --bs-light-rgb:         234, 244, 251;

    /* الخط */
    --font-primary:         'Cairo', sans-serif;

    /* الظلال */
    --shadow-sm:            0 2px 8px rgba(14, 77, 146, 0.10);
    --shadow-md:            0 4px 20px rgba(14, 77, 146, 0.15);
    --shadow-lg:            0 8px 40px rgba(14, 77, 146, 0.20);
    --shadow-card:          0 2px 16px rgba(0, 0, 0, 0.08);

    /* الحواف */
    --radius-sm:            6px;
    --radius-md:            12px;
    --radius-lg:            20px;
    --radius-xl:            30px;
    --radius-pill:          100px;

    /* الانتقالات */
    --transition:           all 0.35s ease;
}

/* ===== الأساس ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark);
    background-color: var(--color-bg);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.font-primary {
    font-family: var(--font-primary);
    color: var(--color-dark);
    line-height: 1.4;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
}

/* ===== Spinner ===== */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}
#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
#spinner .spinner-border {
    border-color: var(--brand-primary);
    border-right-color: transparent;
}

/* ===== زر العودة للأعلى ===== */
.back-to-top {
    position: fixed;
    left: 25px;
    bottom: 25px;
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary);
    color: var(--color-white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 99;
}
.back-to-top:hover {
    background: var(--brand-secondary);
    transform: translateY(-4px);
    color: var(--color-white);
}

/* ===== زر واتساب عائم ===== */
.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: var(--color-white);
    border-radius: 50%;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: var(--transition);
    z-index: 999;
}
.whatsapp-float:hover {
    background: #1ebe5b;
    transform: scale(1.1);
    color: var(--color-white);
}

/* ===== الأزرار ===== */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    transition: var(--transition);
    border-radius: var(--radius-pill);
}
.btn-primary {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--color-white);
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-primary-light);
    border-color: var(--brand-primary-light);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(14, 77, 146, 0.35);
}
.btn-secondary {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: var(--color-white);
}
.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--brand-secondary-light);
    border-color: var(--brand-secondary-light);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(0, 168, 150, 0.35);
}
.btn-accent {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--color-white);
}
.btn-accent:hover {
    background: var(--brand-accent-light);
    border-color: var(--brand-accent-light);
    color: var(--color-white);
}
.btn-outline-primary {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}
.btn-outline-primary:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--color-white);
}

.btn-square  { width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; }
.btn-sm-square { width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; }
.btn-md-square { width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; }
.btn-lg-square { width: 56px; height: 56px; padding: 0; display: flex; align-items: center; justify-content: center; }

/* ===== عناوين الأقسام ===== */
.section-title {
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 8px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-secondary), var(--brand-accent));
    border-radius: 3px;
}
.section-title.text-center::after {
    right: 50%;
    transform: translateX(50%);
}

/* ===== الشريط العلوي ===== */
.topbar {
    background: var(--brand-primary-dark) !important;
    padding: 10px 20px;
}
.topbar .top-info {
    font-family: var(--font-primary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.topbar .top-info a {
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
}
.topbar .top-info a:hover {
    color: var(--brand-accent);
}
.topbar .top-info i {
    color: var(--brand-secondary);
    margin-left: 6px;
}
.topbar .top-link {
    font-family: var(--font-primary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.topbar .top-link a {
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
    padding: 2px 8px;
}
.topbar .top-link a:hover {
    color: var(--brand-accent);
}

/* ===== شريط التنقل ===== */
.fixed-top {
    background: var(--color-white) !important;
    box-shadow: 0 2px 20px rgba(14, 77, 146, 0.10);
    transition: var(--transition);
}
.navbar {
    min-height: 80px;
    padding: 0 15px;
}
.navbar-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.navbar-brand-logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
}
.navbar-brand-logo .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.navbar-brand-logo .brand-text .brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-primary);
    font-family: var(--font-primary);
}
.navbar-brand-logo .brand-text .brand-sub {
    font-size: 12px;
    color: var(--brand-secondary);
    font-weight: 500;
}
.navbar .navbar-nav .nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
    color: var(--color-dark) !important;
    padding: 8px 16px;
    transition: var(--transition);
    position: relative;
}
.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 16px;
    left: 16px;
    height: 2px;
    background: var(--brand-secondary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: right;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--brand-primary) !important;
}
.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}
.navbar-toggler {
    border: none;
    outline: none;
    box-shadow: none !important;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* Login Icon */
.nav-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-light);
    color: var(--brand-primary);
    font-size: 18px;
    transition: var(--transition);
}
.nav-login-btn:hover {
    background: var(--brand-primary);
    color: var(--color-white);
}

/* ===== Modal بحث ===== */
#searchModal .modal-content {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
}

/* ===== قسم الهيرو ===== */
.hero-header {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 50%, var(--brand-primary-light) 100%);
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}
.hero-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0,168,150,0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(240,165,0,0.10) 0%, transparent 50%);
    pointer-events: none;
}
.hero-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    left: 0;
    height: 60px;
    background: var(--color-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-header .hero-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25));
    animation: heroLogoFloat 4s ease-in-out infinite;
}
@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero-header .hero-badge {
    display: inline-block;
    background: rgba(0,168,150,0.2);
    border: 1px solid rgba(0,168,150,0.4);
    color: #7ffff4;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.hero-header h1 {
    color: var(--color-white);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.3;
}
.hero-header .hero-subtitle {
    color: rgba(255,255,255,0.80);
    font-size: 15px;
    line-height: 1.8;
    max-width: 480px;
}
.hero-header .hero-btn {
    background: var(--brand-accent);
    color: var(--color-white);
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
}
.hero-header .hero-btn:hover {
    background: var(--brand-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240,165,0,0.40);
}
.hero-header .hero-btn-outline {
    border: 2px solid rgba(255,255,255,0.50);
    color: var(--color-white);
    padding: 11px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    background: transparent;
}
.hero-header .hero-btn-outline:hover {
    border-color: var(--color-white);
    background: rgba(255,255,255,0.10);
}

/* الكاروسيل */
.hero-carousel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-carousel .carousel-item img {
    height: 380px;
    object-fit: cover;
    width: 100%;
}
.hero-carousel .carousel-caption-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(14, 77, 146, 0.85);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.carousel-control-next,
.carousel-control-prev {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(14,77,146,0.7);
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}
.carousel-control-next { left: 12px; right: auto; }
.carousel-control-prev { right: 12px; left: auto; }
.carousel-control-next:hover,
.carousel-control-prev:hover {
    background: var(--brand-primary);
}

/* ===== إحصائيات الهيرو ===== */
.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.hero-stat-item {
    text-align: center;
}
.hero-stat-item .stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-accent);
    display: block;
    line-height: 1;
}
.hero-stat-item .stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.70);
    font-weight: 500;
}

/* ===== صفحة الرأس (page-header) ===== */
.page-header {
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
    padding: 60px 0;
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;
    height: 40px;
    background: var(--color-bg);
    clip-path: ellipse(50% 100% at 50% 100%);
}

@media (min-width: 992px) {
    .hero-header,
    .page-header { margin-top: 132px !important; }
}
@media (max-width: 991px) {
    .hero-header,
    .page-header { margin-top: 90px !important; }
    .hero-carousel .carousel-item img { height: 260px; }
}

/* ===== قسم الميزات ===== */
.features-section {
    background: var(--color-white);
}
.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid rgba(14,77,146,0.08);
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-card);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-secondary);
}
.feature-card .feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-light), rgba(0,168,150,0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--brand-primary);
    transition: var(--transition);
}
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: var(--color-white);
}
.feature-card h5 {
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--color-gray);
    font-size: 14px;
    margin: 0;
}

/* ===== قسم المنتجات ===== */
.products-section {
    background: var(--color-bg);
}
.fruite .tab-class .nav-pills .nav-item .nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-dark);
    background: var(--color-white);
    border: 1px solid rgba(14,77,146,0.12);
    border-radius: var(--radius-pill);
    padding: 8px 22px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.fruite .tab-class .nav-pills .nav-item .nav-link:hover {
    background: var(--color-light);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}
.fruite .tab-class .nav-pills .nav-item .nav-link.active {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary);
    color: var(--color-white) !important;
    box-shadow: 0 4px 16px rgba(14,77,146,0.30);
}
.fruite .tab-class .nav-pills .nav-item .nav-link.active span {
    color: var(--color-white) !important;
}

/* بطاقة المنتج */
.fruite-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(14,77,146,0.08);
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-card);
}
.fruite-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,168,150,0.25);
}
.fruite-item .fruite-img {
    overflow: hidden;
    height: 200px;
}
.fruite-item .fruite-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.fruite-item:hover .fruite-img img {
    transform: scale(1.08);
}
.fruite-item .product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--brand-secondary);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}
.fruite-item .product-body {
    padding: 20px;
    border-top: 2px solid var(--color-light);
}
.fruite-item .product-body h5 {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-dark);
    margin-bottom: 8px;
}
.fruite-item .product-body p {
    font-size: 13px;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fruite-item .btn-product {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-light));
    color: var(--color-white);
    border: none;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
}
.fruite-item .btn-product:hover {
    background: linear-gradient(135deg, var(--brand-secondary-dark), var(--brand-secondary));
    box-shadow: 0 4px 14px rgba(0,168,150,0.35);
    transform: translateY(-1px);
    color: var(--color-white);
}

/* ===== قسم الإحصائيات ===== */
.stats-section {
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0,168,150,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.stat-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}
.stat-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255,255,255,0.15);
}
.stat-card:last-child::after { display: none; }
.stat-card .stat-icon {
    font-size: 36px;
    color: var(--brand-accent);
    margin-bottom: 12px;
    display: block;
}
.stat-card .stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
    display: block;
}
.stat-card .stat-plus {
    font-size: 28px;
    color: var(--brand-accent);
    font-weight: 800;
}
.stat-card .stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin-top: 6px;
    font-weight: 500;
}

/* ===== قسم CTA ===== */
.cta-section {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(14,77,146,0.10);
    box-shadow: var(--shadow-md);
}

/* ===== الأقسام العامة ===== */
.section-tag {
    display: inline-block;
    background: rgba(0,168,150,0.10);
    color: var(--brand-secondary-dark);
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    border: 1px solid rgba(0,168,150,0.20);
}

/* ===== الفوتر ===== */
.footer {
    background: var(--color-dark) !important;
    color: rgba(255,255,255,0.75);
}
.footer-top {
    background: var(--brand-primary-dark);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer h5 {
    color: var(--color-white);
    font-weight: 700;
    font-size: 16px;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--brand-secondary);
    border-radius: 2px;
}
.footer .footer-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}
.footer .footer-brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 4px;
}
.footer .footer-brand-sub {
    font-size: 13px;
    color: var(--brand-secondary);
    font-weight: 500;
}
.footer .footer-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    margin-top: 12px;
}
.footer .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}
.footer .footer-contact-item .icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: rgba(0,168,150,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-secondary);
    font-size: 14px;
}
.footer .footer-link {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    padding: 5px 0;
    transition: var(--transition);
}
.footer .footer-link:hover {
    color: var(--brand-accent);
    padding-right: 6px;
}
.footer .footer-link i {
    color: var(--brand-secondary);
    margin-left: 8px;
    font-size: 11px;
}

/* أيقونات التواصل الاجتماعي */
.social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.70);
}
.social-icon:hover {
    transform: translateY(-3px);
    color: var(--color-white);
}
.social-icon.facebook:hover  { background: #1877f2; border-color: #1877f2; }
.social-icon.twitter:hover   { background: #1da1f2; border-color: #1da1f2; }
.social-icon.instagram:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #dc2743; }
.social-icon.youtube:hover   { background: #ff0000; border-color: #ff0000; }
.social-icon.whatsapp:hover  { background: #25d366; border-color: #25d366; }
.social-icon.linkedin:hover  { background: #0077b5; border-color: #0077b5; }

/* واتساب في الفوتر */
.footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: var(--color-white);
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    margin-top: 10px;
}
.footer-whatsapp-btn:hover {
    background: #1ebe5b;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.40);
}

/* حقوق النشر */
.copyright-bar {
    background: var(--brand-primary-dark) !important;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.copyright-bar .copyright-text {
    color: rgba(255,255,255,0.60);
    font-size: 13px;
}
.copyright-bar .copyright-text a {
    color: var(--brand-secondary);
    font-weight: 600;
}
.copyright-bar .copyright-text a:hover {
    color: var(--brand-accent);
}
.copyright-bar .fairdeale-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.9);
}

/* ===== التقسيم ===== */
.pagination {
    display: inline-flex;
    gap: 6px;
}
.pagination a {
    color: var(--color-dark);
    padding: 8px 14px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(14,77,146,0.20);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
}
.pagination a.active {
    background: var(--brand-primary);
    color: var(--color-white);
    border-color: var(--brand-primary);
}
.pagination a:hover:not(.active) {
    background: var(--color-light);
    border-color: var(--brand-primary);
}

/* ===== متفرقات ===== */
.text-primary  { color: var(--brand-primary)   !important; }
.text-secondary { color: var(--brand-secondary)  !important; }
.text-accent   { color: var(--brand-accent)    !important; }
.bg-primary    { background: var(--brand-primary)   !important; }
.bg-secondary  { background: var(--brand-secondary)  !important; }
.border-secondary { border-color: var(--brand-secondary) !important; }
.border-primary   { border-color: var(--brand-primary)   !important; }

/* تحسينات Bootstrap Tabs */
.nav.nav-tabs .nav-link {
    font-family: var(--font-primary);
    color: var(--color-gray);
    font-weight: 600;
}
.nav.nav-tabs .nav-link.active {
    color: var(--brand-primary) !important;
    border-bottom: 2px solid var(--brand-secondary) !important;
}

/* ===== الاستجابية ===== */
@media (max-width: 768px) {
    .navbar-brand-logo .brand-text .brand-name { font-size: 15px; }
    .hero-header h1 { font-size: 26px; }
    .stat-card::after { display: none; }
    .social-icons { gap: 8px; }
}
@media (max-width: 576px) {
    .hero-header .hero-stats { gap: 20px; }
    .hero-stat-item .stat-number { font-size: 22px; }
}

/* ===== تحسينات RTL ===== */
[dir="rtl"] .carousel-control-next { left: 12px; right: auto; }
[dir="rtl"] .carousel-control-prev { right: 12px; left: auto; }
[dir="rtl"] .footer h5::after { right: 0; left: auto; }
[dir="rtl"] .section-title::after { right: 0; left: auto; }
[dir="rtl"] .section-title.text-center::after { right: 50%; left: auto; transform: translateX(50%); }
