/* =========================
   ROOT VARIABLES & THEMES
========================= */
:root,
[data-theme="light"] {
    --primary: #c7a25c;
    --primary-dark: #f7bf52;
    --secondary: #f8f5f0;
    --background: #fefefe;
    --foreground: #1a1a1a;
    --foreground2: #1a1a1a;
    --muted: #6b7280;
    --border: #e5e7eb;
    --card: #ffffff;
    --card-rgb: 255, 255, 255;
    --radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] {
    --primary: #c7a25c;
    --primary-dark: #f7bf52;
    --secondary: #2a2a2a;
    --background: #121212;
    --foreground: #f5f5f5;
    --foreground2: #1a1a1a;
    --muted: #a0a0a0;
    --border: #333333;
    --card: #1e1e1e;
    --card-rgb: 30, 30, 30;
}

/* =========================
   BASE STYLES
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* =========================
   FONTS
========================= */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_28pt-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_28pt-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_28pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_28pt-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_28pt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

body {
    font-family: 'Inter', 'Tajawal', 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    padding-top: 80px;
    min-height: 100vh;
}

/* =========================
   CONTAINER
========================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================
   TYPOGRAPHY
========================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* =========================
   NAVBAR
========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background-color: rgba(30, 30, 30, 0.95);
    border-bottom: 1px solid var(--border);
}

/* Navbar Toggler Visibility Fix */
.navbar-toggler {
    border-color: var(--border) !important;
    box-shadow: none !important;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
}

.navbar-toggler:focus {
    border-color: var(--primary) !important;
}

[data-theme="dark"] .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1) brightness(1.5);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.navbar-brand .logo-text {
    color: var(--foreground);
    font-size: 1.5rem;
}

.navbar-brand small {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: normal;
}

/* Logo Glow Effect */
#app-logo {
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(199, 162, 92, 0.3));
}

#app-logo:hover {
    filter: drop-shadow(0 0 8px rgba(199, 162, 92, 0.6));
    transform: scale(1.05);
}

/* Stronger glow in dark mode */
[data-theme="dark"] #app-logo {
    filter: drop-shadow(0 0 8px rgba(199, 162, 92, 0.5));
}

[data-theme="dark"] #app-logo:hover {
    filter: drop-shadow(0 0 12px rgba(199, 162, 92, 0.8));
}

.navbar-nav .nav-link {
    color: var(--foreground) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}



/* =========================
   HERO SECTION
========================= */
.hero-section {
    padding: 6rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;

    background:
        linear-gradient(135deg,
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.6)),
        url("../images/hero-bg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .hero-section {
    background-image:
        linear-gradient(135deg,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.4)),
        url("../images/hero-bg_light.png");
}


/* لمسة ذهبية فخمة */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%,
            rgba(199, 162, 92, 0.2),
            transparent 60%);
    z-index: 1;
}

/* محتوى الهيرو */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* العنوان */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
}

/* النص المتدرج */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #e6c98a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* الوصف */
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* الأزرار */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* =========================
   LIMITED OFFER SECTION
========================= */
.hero-logo-glow {
    filter: drop-shadow(0 0 15px rgba(199, 162, 92, 0.4));
    animation: pulse-glow 3s infinite ease-in-out;
    transition: filter 0.3s ease;
}

.hero-logo-glow:hover {
    filter: drop-shadow(0 0 25px rgba(199, 162, 92, 0.8));
}

[data-theme="light"] .hero-logo-glow {
    content: url("../images/logo-nomad_dark.png");
}

@keyframes pulse-glow {
    0% {
        filter: drop-shadow(0 0 15px rgba(199, 162, 92, 0.4));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(199, 162, 92, 0.7));
        transform: scale(1.02);
    }

    100% {
        filter: drop-shadow(0 0 15px rgba(199, 162, 92, 0.4));
        transform: scale(1);
    }
}

.limited-offer-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--foreground2) 0%, #2c2c2c 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.limited-offer-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(199, 162, 92, 0.15), transparent 60%);
}

.limited-offer-section .container {
    position: relative;
    z-index: 2;
}

.limited-offer-section .display-4 {
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.limited-offer-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.ad-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ad-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .ad-image {
        height: 320px;
    }
}

@media (max-width: 767px) {
    .banner-ad-img {
        height: 220px;
    }
}

/* تحسين عناصر التحكم في الكاروسيل */
#adCarousel .carousel-control-prev,
#adCarousel .carousel-control-next {
    width: 8%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ad-banner-wrapper:hover #adCarousel .carousel-control-prev,
.ad-banner-wrapper:hover #adCarousel .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(199, 162, 92, 0.8);
    border-radius: 50%;
    padding: 1.25rem;
    background-size: 40%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

/* =========================
   CATEGORIES SECTION
========================= */
.categories-section {
    padding: 5rem 0;
}

.categories-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--foreground);
}

.category-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.category-card .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
}

.category-icon i {
    font-size: 2rem;
}

.category-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.category-card .card-text {
    color: var(--muted);
    text-align: center;
}

/* =========================
   ACTIVITIES SECTION
========================= */
.activities-section {
    padding: 5rem 0;
}

.activities-section.bg-light {
    background-color: var(--secondary) !important;
}

.activities-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground2);
    margin: 0;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all:hover {
    color: var(--primary-dark);
}

.activity-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.activity-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
}

[dir="rtl"] .featured-badge {
    left: auto;
    right: 15px;
}

/* Members Only Badge & Card */
.members-only-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #DAA520);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
}

[dir="rtl"] .members-only-badge {
    right: auto;
    left: 15px;
}

.members-only-card {
    border: 1px solid rgba(218, 165, 32, 0.3) !important;
    position: relative;
}

.members-only-card:hover {
    border-color: #FFD700 !important;
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.15);
}

.activity-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-title a {
    color: var(--foreground);
    text-decoration: none;
}

.activity-title a:hover {
    color: var(--primary);
}

.activity-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.meta-item i {
    font-size: 1rem;
}

.activity-description {
    color: var(--muted);
    flex: 1;
    margin-bottom: 1.5rem;
}

.activity-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.activity-price {
    text-align: right;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.price-label {
    font-size: 0.85rem;
    color: var(--muted);
}

/* =========================
   DOWNLOAD APP SECTION
========================= */
.download-app-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--foreground2) 0%, #2c2c2c 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.download-app-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(199, 162, 92, 0.15), transparent 60%);
}

.download-app-section .container {
    position: relative;
    z-index: 2;
}

.download-app-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.download-app-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
}

.app-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.app-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn i {
    font-size: 1.1em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(199, 162, 92, 0.3);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* =========================
   FORM ELEMENTS
========================= */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}

/* =========================
   UTILITY CLASSES
========================= */
.bg-background {
    background-color: var(--background) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rounded-lg {
    border-radius: var(--radius);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* =========================
   NO DATA STATE
========================= */
.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

.no-data i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-data h4 {
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

/* =========================
   FOOTER (يتم تضمينه من ملف footer.php)
========================= */

/* =========================
   RTL SUPPORT
========================= */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .float-end {
    float: left !important;
}

[dir="rtl"] .float-start {
    float: right !important;
}

[dir="rtl"] .dropdown-menu-end {
    right: auto !important;
    left: 0 !important;
}

[dir="rtl"] .form-check-input {
    margin-right: 0;
    margin-left: 0.5em;
}

[dir="rtl"] .btn i {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .view-all i {
    transform: rotate(180deg);
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .limited-offer-section .display-4 {
        font-size: 2rem;
    }

    .categories-section .section-title,
    .activities-section .section-title {
        font-size: 2rem;
    }

    .download-app-section h2 {
        font-size: 2rem;
    }

    .activity-image {
        height: 180px;
    }

    .price {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .navbar-brand .logo-text {
        font-size: 1.2rem;
    }

    .category-icon {
        width: 60px;
        height: 60px;
    }

    .category-icon i {
        font-size: 1.5rem;
    }

    .activity-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .activity-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .activity-price {
        text-align: center;
    }
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* =========================
   SCROLLBAR
========================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* =========================
   THEME SWITCHER FIX - النسخة النهائية
========================= */

/* إزالة كل أنماط أزرار الثيم القديمة */
.theme-btn,
.theme-switcher .theme-btn,
.theme-switcher .btn[data-theme],
.theme-switcher .btn[onclick*="theme"] {
    all: unset !important;
}

/* تصميم أزرار الثيم من الصفر */
.theme-switcher {
    margin: 0 5px;
    display: flex;
    gap: 5px;
}

.theme-switcher .btn {
    /* Reset Bootstrap */
    all: unset;

    /* التصميم الجديد */
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 10px !important;
    border: 2px solid transparent !important;

    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--primary) !important;

    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;

    font-size: 0.9rem !important;
    font-weight: normal !important;
    line-height: 1 !important;
    text-align: center !important;
}

/* أزرار محددة */
.theme-switcher .btn:first-child {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #FFD700 !important;
    /* ذهبي للشمس */
}

.theme-switcher .btn:last-child {
    background: rgba(0, 0, 0, 0.15) !important;
    color: #B0B0FF !important;
    /* أزرق للقمر */
}

/* حالة Hover */
.theme-switcher .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.theme-switcher .btn:first-child:hover {
    background: rgba(255, 215, 0, 0.2) !important;
    border-color: #FFD700 !important;
}

.theme-switcher .btn:last-child:hover {
    background: rgba(176, 176, 255, 0.2) !important;
    border-color: #B0B0FF !important;
}

/* الحالة النشطة - المهم جداً */
.theme-switcher .btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 20px rgba(199, 162, 92, 0.4) !important;
    transform: scale(1.05) !important;
}

.theme-switcher .btn.active i {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* تحسينات للوضع الداكن */
.dark-theme .theme-switcher .btn:not(.active) {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-theme .theme-switcher .btn:first-child:not(.active) {
    color: #FFD700 !important;
}

.dark-theme .theme-switcher .btn:last-child:not(.active) {
    color: #A0A0FF !important;
}

/* تحسينات للوضع الفاتح */
.light-theme .theme-switcher .btn:not(.active) {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* الأيقونات */
.theme-switcher .btn i {
    font-size: 1.1rem !important;
    transition: transform 0.3s ease;
}

/* إصلاح Bootstrap Overrides */
.theme-switcher .btn.btn-primary,
.theme-switcher .btn.btn-outline-secondary {
    /* إعادة تعيين Bootstrap classes */
    border: 2px solid transparent !important;
    background: none !important;
    color: inherit !important;
}

/* تحسين المسافات في RTL */
[dir="rtl"] .theme-switcher {
    margin-left: 5px;
    margin-right: 0;
}

/* =========================
   DARK THEME OVERRIDES
========================= */
body.dark-theme {
    color-scheme: dark;
    background-color: #121212 !important;
    color: #f5f5f5 !important;
}

/* Navbar */
.dark-theme .navbar {
    background-color: rgba(30, 30, 30, 0.98) !important;
    border-bottom: 1px solid #232323;
}

.dark-theme .navbar-brand .logo-text {
    color: #f5f5f5 !important;
}

.dark-theme .navbar-brand small {
    color: #aaa !important;
}

.dark-theme .navbar-nav .nav-link {
    color: #f5f5f5 !important;
}

.dark-theme .navbar-nav .nav-link:hover,
.dark-theme .navbar-nav .nav-link.active {
    color: #c7a25c !important;
}

.dark-theme .language-switcher .btn,
.dark-theme .theme-switcher .btn {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #f5f5f5 !important;
}

.dark-theme .language-switcher .btn.active,
.dark-theme .theme-switcher .btn.active {
    background: #c7a25c !important;
    border-color: #c7a25c !important;
    color: white !important;
}

/* Hero & Sections Background */
/* Hero & Sections Background */
.dark-theme .hero-section {
    background:
        linear-gradient(135deg,
            rgba(0, 0, 0, 0.7),
            rgba(0, 0, 0, 0.85)),
        url("../images/hero-bg.png") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.dark-theme .limited-offer-section,
.dark-theme .download-app-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%) !important;
}

/* Cards */
.dark-theme .card,
.dark-theme .category-card,
.dark-theme .activity-card {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
    color: #f5f5f5 !important;
}

.dark-theme .activity-card:hover {
    border-color: #c7a25c !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.dark-theme .card-title,
.dark-theme .activity-title a,
.dark-theme .activity-title {
    color: #f5f5f5 !important;
}

.dark-theme .card-text,
.dark-theme .activity-description,
.dark-theme .text-muted {
    color: #aaa !important;
}

/* Buttons */
.dark-theme .btn-outline-primary {
    color: #c7a25c !important;
    border-color: #c7a25c !important;
}

.dark-theme .btn-outline-primary:hover {
    background-color: #c7a25c !important;
    color: #121212 !important;
}

.dark-theme .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #f5f5f5 !important;
}

.dark-theme .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Badges */
.dark-theme .badge.bg-light {
    background-color: #333 !important;
    color: #f5f5f5 !important;
}

.dark-theme .badge.bg-primary {
    background: linear-gradient(135deg, #c7a25c, #f7bf52) !important;
}

/* Form Elements */
.dark-theme .form-check-input {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
}

.dark-theme .form-check-input:checked {
    background-color: #c7a25c !important;
    border-color: #c7a25c !important;
}

.dark-theme .form-check-label {
    color: #f5f5f5 !important;
}

/* Activities Section Background */
.dark-theme .activities-section.bg-light {
    background-color: #1a1a1a !important;
}

/* Meta Items */
.dark-theme .meta-item {
    color: #aaa !important;
}

/* Price */
.dark-theme .price {
    color: #c7a25c !important;
}

/* Footer */
.footer-section {
    background-color: var(--secondary);
    color: var(--foreground);
    transition: var(--transition);
}

.footer-section a {
    color: var(--foreground);
}

.footer-section a:hover {
    color: var(--primary);
}

.dark-theme .footer-section {
    background: #1a1a1a !important;
    color: #f5f5f5 !important;
}

.dark-theme .footer-section a {
    color: #f5f5f5 !important;
}

.dark-theme .footer-section a:hover {
    color: #c7a25c !important;
}

/* View All Link */
.dark-theme .view-all {
    color: #c7a25c !important;
}

/* Dropdown */
.dark-theme .dropdown-menu {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
}

.dark-theme .dropdown-item {
    color: #f5f5f5 !important;
}

.dark-theme .dropdown-item:hover {
    background-color: #3a3a3a !important;
    color: #c7a25c !important;
}

/* Borders */
.dark-theme .border,
.dark-theme .border-light {
    border-color: #333 !important;
}

/* Shadows */
.dark-theme .shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.dark-theme .shadow-lg {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

/* Featured Badge */
.dark-theme .featured-badge {
    background: linear-gradient(135deg, #c7a25c, #f7bf52) !important;
    color: white !important;
}

/* Icons */
.dark-theme .bi {
    color: inherit;
}

/* Scrollbar */
.dark-theme ::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.dark-theme ::-webkit-scrollbar-thumb {
    background: #444;
}

.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* =========================
   UI ENHANCEMENTS (GLASSMORPHISM)
========================= */
.glass-nav {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme='dark'] .glass-nav {
    background: rgba(18, 18, 18, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme='dark'] .glass-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Animation Fixes */
.activity-card {
    overflow: hidden;
    border-radius: 15px;
}

.activity-image img {
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-image img {
    transform: scale(1.05);
}


/* FIX: Ensure all cards use the theme variable */
.card {
    background-color: var(--card);
    color: var(--foreground);
    border-color: var(--border);
}

.card-body {
    background-color: transparent;
    /* Ensure body doesn't override parent */
}

/* أنماط خاصة بصفحة من نحن */
.about-hero {
    background: linear-gradient(135deg, rgb(199 162 92 / 13%), rgb(176 140 66 / 0%)), url(../images/pages_bg.png);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    position: relative;
}

.gradient-text {
    background: linear-gradient(135deg, #c7a25c, #e6c98a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.team-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-img {
    height: 250px;
    object-fit: cover;
}

.team-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.team-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.values-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--primary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    transform: translateX(-50%);
}

[dir="rtl"] .timeline::before {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 55%;
}

[dir="rtl"] .timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
    margin-left: 0;
}

[dir="rtl"] .timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
    margin-right: 0;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -45px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -45px;
}

[dir="rtl"] .timeline-item:nth-child(odd) .timeline-content::before {
    left: auto;
    right: -45px;
}

[dir="rtl"] .timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: -45px;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    [dir="rtl"] .timeline::before {
        left: auto;
        right: 30px;
    }

    .timeline-content {
        width: calc(100% - 70px);
        margin-left: 70px !important;
        margin-right: 0 !important;
    }

    .timeline-content::before {
        left: -45px !important;
        right: auto !important;
    }

    [dir="rtl"] .timeline-content {
        margin-left: 0 !important;
        margin-right: 70px !important;
    }

    [dir="rtl"] .timeline-content::before {
        left: auto !important;
        right: -45px !important;
    }
}

.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

[dir="rtl"] .cta-section::before {
    right: auto;
    left: -20%;
}

/* ===================================================
   BOOTSTRAP OVERRIDES (Stronger Specificity)
   =================================================== */
.btn-primary,
.btn-primary:active,
.btn-primary.active,
.show>.btn-primary.dropdown-toggle {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* =========================
   SOFT/GLASS BUTTONS
========================= */
.btn-soft-success {
    background: rgba(25, 135, 84, 0.15) !important;
    color: #20c997 !important;
    border: 1px solid rgba(25, 135, 84, 0.2) !important;
    transition: all 0.3s ease;
}

.btn-soft-success:hover {
    background: #20c997 !important;
    color: #000 !important;
    box-shadow: 0 0 10px rgba(32, 201, 151, 0.4) !important;
    transform: translateY(-2px);
}

.btn-soft-info {
    background: rgba(13, 202, 240, 0.15) !important;
    color: #0dcaf0 !important;
    border: 1px solid rgba(13, 202, 240, 0.2) !important;
    transition: all 0.3s ease;
}

.btn-soft-info:hover {
    background: #0dcaf0 !important;
    color: #000 !important;
    box-shadow: 0 0 10px rgba(13, 202, 240, 0.4) !important;
    transform: translateY(-2px);
}

.btn-soft-danger {
    background: rgba(220, 53, 69, 0.15) !important;
    color: #ea868f !important;
    border: 1px solid rgba(220, 53, 69, 0.2) !important;
    transition: all 0.3s ease;
}

.btn-soft-danger:hover {
    background: #dc3545 !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.4) !important;
    transform: translateY(-2px);
}

.btn-soft-warning {
    background: rgba(255, 193, 7, 0.15) !important;
    color: #ffc107 !important;
    border: 1px solid rgba(255, 193, 7, 0.2) !important;
    transition: all 0.3s ease;
}

.btn-soft-warning:hover {
    background: #ffc107 !important;
    color: #000 !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4) !important;
    transform: translateY(-2px);
}

.btn-soft-light {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
}

.btn-soft-light:hover {
    background: #fff !important;
    color: #000 !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px);
}