/* ==========================================
   Main Style CSS for AlRaebi Auto Car
   ========================================== */

/* Root Variables */
:root {
    /* Use CSS variables from brand-identity.css */
    --primary-color: var(--color-primary);
    --primary-color-dark: var(--color-primary-dark);
    --neutral-black: #000000;
    --neutral-dark: var(--color-footer-bg);
    --neutral-mid: var(--color-text-secondary);
    --neutral-light: var(--color-bg-muted);
    --neutral-ice: var(--color-bg-section);
    --card-color: var(--color-card-bg);
    --text-primary: var(--color-text);
    --text-secondary: var(--color-text-secondary);
    --border-color: var(--color-border);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --header-height: 120px;
    --transition: var(--theme-transition);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-width: 100%;
    width: 100%;
}

body {
    font-family: 'ITF Ghroob Arabic', 'IBM Plex Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    direction: rtl;
    text-align: right;
    transition: var(--theme-transition);
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-width: 100%;
    width: 100%;
}

/* Fix for numbers and phone numbers direction */
a[href^="tel:"],
.phone-number,
.number,
[dir="rtl"] a[href^="tel:"] {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* Fix for all numbers in RTL context */
[dir="rtl"] .top-links a,
[dir="rtl"] .contact-info a,
[dir="rtl"] .footer-contact a {
    direction: ltr;
    unicode-bidi: embed;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color-dark);
}

/* ==========================================
   Top Bar
   ========================================== */
.top-bar {
    background-color: var(--color-bg-muted);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 14px;
    transition: var(--theme-transition);
}

.top-bar a {
    color: var(--color-text-secondary);
    margin: 0 10px;
    transition: var(--theme-transition);
}

.top-bar a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--color-card-bg);
    border-radius: 50%;
    transition: var(--theme-transition);
    flex-shrink: 0;
}

.social-links a:hover {
    background-color: var(--color-primary);
    color: var(--btn-primary-text) !important;
    transform: translateY(-2px);
}

/* ==========================================
   Main Header
   ========================================== */
.main-header {
    background-color: var(--color-card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 90px !important;
    padding: 10px 0;
    transition: var(--theme-transition);
}

.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar-brand .logo {
    height: 140px !important;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
    margin: -60px 0 !important;
}

.navbar {
    min-height: 70px !important;
    align-items: center;
}

.navbar-nav .nav-link {
    color: var(--color-text);
    font-weight: 500;
    padding: 10px 15px !important;
    transition: var(--theme-transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-primary);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 15px;
    left: 15px;
    height: 3px;
    background-color: var(--color-primary);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 10px !important;
    background-color: var(--color-card-bg);
    transition: var(--theme-transition);
}

.dropdown-item {
    padding: 8px 20px;
    transition: var(--theme-transition);
    font-weight: 400;
    color: var(--color-text);
}

.dropdown-item:hover {
    background-color: var(--color-bg-section);
    color: var(--color-primary);
    padding-right: 25px;
}

/* Language switcher buttons now use styles from buttons.css only */
.language-switcher {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.language-switcher .btn {
    min-width: 70px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slider {
    height: 600px;
}

.hero-slide {
    height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-text-on-dark);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-on-dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--color-text-on-dark);
    opacity: 0.95;
}

.hero-buttons .btn {
    padding: 12px 30px;
    margin: 5px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--color-primary);
    transition: var(--theme-transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--color-primary);
    color: var(--btn-primary-text);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--color-text-on-dark);
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--color-primary);
    width: 30px;
    border-radius: 6px;
}

/* ==========================================
   Quick Links Section
   ========================================== */
.quick-links-section {
    background-color: var(--color-bg-section);
    border-bottom: 2px solid var(--color-border);
    transition: var(--theme-transition);
}

.quick-link-card {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--color-card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--theme-transition);
    color: var(--color-text);
}

.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--color-primary);
}

.quick-link-card i {
    font-size: 24px;
    margin-left: 15px;
    color: var(--color-primary);
}

/* ==========================================
   Section Headers
   ========================================== */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    transition: var(--theme-transition);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-top: 1rem;
    transition: var(--theme-transition);
}

/* Vehicle Card Styles - Now handled by vehicle-cards.css */
/* Legacy card styles removed - all cards now use unified vehicle-cards.css */

/* ==========================================
   Service Cards
   ========================================== */
.service-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    transition: var(--theme-transition);
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--color-bg-section);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--theme-transition);
}

.service-card:hover .service-icon {
    background-color: var(--color-primary);
}

.service-icon i {
    font-size: 36px;
    color: var(--color-primary);
    transition: var(--theme-transition);
}

.service-card:hover .service-icon i {
    color: var(--btn-primary-text);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--color-text);
    transition: var(--theme-transition);
}

.service-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    transition: var(--theme-transition);
}

.service-link {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 14px;
}

.service-link:hover {
    text-decoration: underline;
}

/* ==========================================
   Why Us Section
   ========================================== */
.why-us-section {
    background-color: var(--color-bg-section);
    position: relative;
    transition: var(--theme-transition);
}

.why-us-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.why-us-item .icon {
    flex-shrink: 0;
}

.why-us-item .icon i {
    font-size: 24px;
    color: var(--color-primary);
}

.why-us-item .content h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-text);
    transition: var(--theme-transition);
}

.why-us-item .content p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0;
    transition: var(--theme-transition);
}

.why-us-image {
    position: relative;
}

.why-us-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background-color: var(--color-primary);
    color: var(--btn-primary-text);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.experience-badge .number {
    font-size: 2rem;
    font-weight: 700;
}

.experience-badge .text {
    font-size: 12px;
    text-transform: uppercase;
}

/* ==========================================
   News Section
   ========================================== */
.news-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--theme-transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--theme-transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-primary);
    color: var(--btn-primary-text);
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.news-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 12px;
    text-transform: uppercase;
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-text);
    line-height: 1.4;
    transition: var(--theme-transition);
}

.news-excerpt {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
    transition: var(--theme-transition);
}

.read-more {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

/* ==========================================
   Partners Section
   ========================================== */
.partners-section {
    background-color: var(--color-card-bg);
    padding: 60px 0;
    transition: var(--theme-transition);
}

.partners-slider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.partners-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.partner-logo {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--color-card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    min-height: 180px;
    cursor: default;
    transition: var(--theme-transition);
}

.partner-logo img {
    max-height: 120px;
    max-width: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--btn-primary-text);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--btn-primary-text);
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    transition: var(--theme-transition);
}

.footer-top {
    border-bottom: 1px solid var(--color-border);
}

.footer-logo {
    height: 70px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-about p {
    color: var(--color-footer-text);
    font-size: 14px;
    line-height: 1.8;
    transition: var(--theme-transition);
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--color-text-secondary);
    border-radius: 50%;
    margin-left: 10px;
    color: var(--btn-primary-text);
    transition: var(--theme-transition);
}

.footer-social a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-footer-text);
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--color-footer-text);
    font-size: 14px;
    transition: var(--theme-transition);
}

.footer-links ul li a:hover {
    color: var(--btn-primary-text);
    padding-right: 5px;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--color-footer-text);
    font-size: 14px;
    transition: var(--theme-transition);
}

.contact-info li i {
    color: var(--color-primary);
    margin-left: 10px;
    margin-top: 3px;
    width: 20px;
}

.footer-bottom {
    background-color: var(--color-text-secondary);
    transition: var(--theme-transition);
}

.copyright {
    color: var(--color-footer-text);
    font-size: 14px;
    transition: var(--theme-transition);
}

.footer-bottom-links a {
    color: var(--color-footer-text);
    font-size: 14px;
    margin: 0 10px;
    transition: var(--theme-transition);
}

.footer-bottom-links a:hover {
    color: var(--btn-primary-text);
}

/* ==========================================
   Featured Videos Section
   ========================================== */
.featured-videos {
    background: var(--color-bg-section);
    position: relative;
    transition: var(--theme-transition);
    overflow-x: hidden;
}

.featured-videos .container-fluid {
    padding: 0;
}

.featured-videos .section-title {
    color: var(--color-text);
}

.featured-videos .section-subtitle {
    color: var(--color-text-secondary);
}

.full-width-video {
    background: var(--color-card-bg);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--theme-transition);
}

.full-width-video .row {
    margin-left: 0;
    margin-right: 0;
}

.full-width-video .col-lg-8,
.full-width-video .col-lg-4 {
    padding-left: 0;
    padding-right: 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-info-side {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-muted) 0%, var(--color-bg-section) 100%);
    transition: var(--theme-transition);
}

.video-info-side .video-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    transition: var(--theme-transition);
}

.video-info-side .video-description {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
    transition: var(--theme-transition);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-pause-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--color-primary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pause-btn:hover {
    background: var(--btn-primary-text);
    transform: scale(1.1);
}

.play-pause-btn i {
    margin-left: 3px;
}

.video-card-info {
    padding: 20px;
}

.video-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
    transition: var(--theme-transition);
}

.video-card-description {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    transition: var(--theme-transition);
}

/* Video loading animation */
.video-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive adjustments for videos */
@media (max-width: 991px) {
    .video-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .video-card-title {
        font-size: 18px;
    }

    .play-pause-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: var(--btn-primary-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    transition: var(--theme-transition);
    z-index: 999;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: var(--btn-primary-text);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 105px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--theme-transition);
    z-index: 10000;
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--theme-transition);
    border: 2px solid transparent;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--btn-primary-text);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--btn-primary-text);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 126, 198, 0.3);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: var(--btn-primary-text);
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-text);
}

.btn-outline-light:hover {
    background-color: var(--color-bg-muted);
    color: var(--color-primary);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 6px 15px;
    font-size: 14px;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 20px 0;
    }

    .navbar-nav .nav-link {
        padding: 10px 0 !important;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-slider {
        height: 500px;
    }

    .hero-slide {
        height: 500px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-slider {
        height: 400px;
    }

    .hero-slide {
        height: 400px;
    }

    /* Move swiper navigation buttons to bottom on mobile */
    .swiper-button-next,
    .swiper-button-prev {
        top: auto;
        bottom: 20px;
        width: 40px;
        height: 40px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px;
    }

    .swiper-button-prev {
        left: 10px;
    }

    .swiper-button-next {
        right: 10px;
    }

    .swiper-pagination {
        bottom: 80px;
    }

    .section-title {
        font-size: 2rem;
    }



    .cta-title {
        font-size: 1.75rem;
    }

    .quick-link-card {
        padding: 10px 15px;
    }

    .quick-link-card i {
        font-size: 20px;
    }

    .quick-link-card span {
        font-size: 14px;
    }
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__fadeInRight {
    animation-name: fadeInRight;
}

.animate__delay-1s {
    animation-delay: 0.3s;
}

.animate__delay-2s {
    animation-delay: 0.6s;
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {

    .top-bar,
    .main-header,
    .whatsapp-btn,
    .back-to-top,
    .hero-section,
    .cta-section {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}


/* ==========================================
   CRITICAL FIX: Force images to always display
   ========================================== */
/* Image display fixes now handled by vehicle-cards.css */

/* Ensure vehicle cards maintain proper structure */
.vehicle-card .vehicle-image {
    min-height: 300px;
    background-color: var(--color-bg-section);
    transition: var(--theme-transition);
}

.vehicle-showcase-card .vehicle-image-large {
    min-height: 400px;
    background-color: var(--color-bg-section);
    transition: var(--theme-transition);
}


/* Hide specific footer links */
.footer-links a[href*="العروض"],
.footer-links a[href*="الأخبار"],
.footer-links a[href*="الوظائف"],
.footer-links a[href*="الأسئلة الشائعة"],
.footer-links a[href*="Offers"],
.footer-links a[href*="News"],
.footer-links a[href*="Jobs"],
.footer-links a[href*="Careers"],
.footer-links a[href*="FAQ"] {
    display: none !important;
}

.footer-links li:has(a[href*="العروض"]),
.footer-links li:has(a[href*="الأخبار"]),
.footer-links li:has(a[href*="الوظائف"]),
.footer-links li:has(a[href*="الأسئلة الشائعة"]),
.footer-links li:has(a[href*="Offers"]),
.footer-links li:has(a[href*="News"]),
.footer-links li:has(a[href*="Jobs"]),
.footer-links li:has(a[href*="Careers"]),
.footer-links li:has(a[href*="FAQ"]) {
    display: none !important;
}


/* Hide footer bottom links temporarily */
.footer-bottom a[href*="privacy"],
.footer-bottom a[href*="terms"],
.footer-bottom a[href*="sitemap"],
.footer-bottom a[href*="الخصوصية"],
.footer-bottom a[href*="الشروط"],
.footer-bottom a[href*="خريطة"],
footer a[href*="privacy"],
footer a[href*="terms"],
footer a[href*="sitemap"],
footer a[href*="الخصوصية"],
footer a[href*="الشروط"],
footer a[href*="خريطة"] {
    display: none !important;
}

/* Hide separator before/after hidden links */
.footer-bottom a[href*="privacy"] + span,
.footer-bottom a[href*="terms"] + span,
.footer-bottom a[href*="الخصوصية"] + span,
.footer-bottom a[href*="الشروط"] + span {
    display: none !important;
}


/* Hide privacy policy and terms links in footer */
.footer-bottom-links a[href*="privacy"],
.footer-bottom-links a[href*="terms"],
.footer-bottom-links a[href*="sitemap"],
.footer-bottom-links a[href*="الخصوصية"],
.footer-bottom-links a[href*="الشروط"],
.footer-bottom-links a[href*="خريطة"] {
    display: none !important;
}

/* Hide separators next to hidden links */
.footer-bottom-links a[href*="privacy"] + span,
.footer-bottom-links a[href*="terms"] + span,
.footer-bottom-links a[href*="الخصوصية"] + span,
.footer-bottom-links a[href*="الشروط"] + span {
    display: none !important;
}




/* Prevent horizontal scroll only on body */
body {
    overflow-x: hidden;
}


/* ====================================
   Three Info Cards Section (Riddara Page)
   ==================================== */

.three-cards-section {
    padding: 80px 0;
    background-color: var(--color-bg-section);
    transition: var(--theme-transition);
}

.three-cards-section .row {
    align-items: stretch;
}

.three-cards-section .col-lg-4 {
    display: flex;
}

.info-card {
    background: var(--color-card-bg);
    border-radius: 20px;
    padding: 50px 35px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 320px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.info-card i {
    font-size: 56px;
    color: var(--color-primary);
    margin-bottom: 25px;
    display: block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: rgba(0, 165, 223, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--theme-transition);
}

.info-card p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
    transition: var(--theme-transition);
}

/* Dark mode adjustments */
html[data-theme="dark"] .three-cards-section {
    background-color: #000000;
}

html[data-theme="dark"] .info-card {
    background: linear-gradient(145deg, #0d0d0d, #080808);
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 
                0 2px 4px rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .info-card:hover {
    background: linear-gradient(145deg, #121212, #0a0a0a);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7), 
                0 3px 8px rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .info-card i {
    background: rgba(0, 165, 223, 0.2);
}

html[data-theme="dark"] .info-card h3 {
    color: #ffffff;
}

html[data-theme="dark"] .info-card p {
    color: #d2d2d2;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .info-card {
        min-height: 280px;
        padding: 40px 30px;
    }
    
    .info-card i {
        font-size: 48px;
        width: 70px;
        height: 70px;
        line-height: 70px;
    }
    
    .info-card h3 {
        font-size: 18px;
        min-height: 45px;
    }
}

@media (max-width: 767px) {
    .info-card {
        margin-bottom: 20px;
    }
}


/* ====================================
   Feature Cards Carousel (Riddara Page)
   ==================================== */

.feature-carousel-section {
    padding: 80px 0;
    background-color: var(--color-bg);
    transition: var(--theme-transition);
}

.feature-carousel-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 50px;
}

.featureSwiper {
    padding: 20px 0 60px;
}

.featureSwiper .swiper-slide {
    height: auto;
    display: flex;
}

.feature-card {
    background: var(--color-card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    border: none;
    width: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.feature-card-body {
    padding: 35px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feature-card-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 65px;
    transition: var(--theme-transition);
}

.feature-card-body p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
    transition: var(--theme-transition);
}

/* Swiper navigation buttons */
.featureSwiper .swiper-button-next,
.featureSwiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    color: #ffffff;
}

.featureSwiper .swiper-button-next::after,
.featureSwiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.featureSwiper .swiper-button-next:hover,
.featureSwiper .swiper-button-prev:hover {
    background-color: var(--color-primary-dark);
}

.featureSwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--color-text-secondary);
    opacity: 0.5;
}

.featureSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--color-primary);
    width: 30px;
    border-radius: 6px;
}

/* Dark mode adjustments */
html[data-theme="dark"] .feature-carousel-section {
    background-color: #000000;
}

html[data-theme="dark"] .feature-card {
    background: linear-gradient(145deg, #0d0d0d, #080808);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 
                0 2px 4px rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .feature-card:hover {
    background: linear-gradient(145deg, #121212, #0a0a0a);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7), 
                0 3px 8px rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .feature-card-body h3 {
    color: #ffffff;
}

html[data-theme="dark"] .feature-card-body p {
    color: #d2d2d2;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .feature-card img {
        height: 250px;
    }
    
    .feature-card-body {
        padding: 30px 25px;
    }
    
    .feature-card-body h3 {
        font-size: 20px;
        min-height: 60px;
    }
}

@media (max-width: 767px) {
    .feature-carousel-section h2 {
        font-size: 2rem;
    }
    
    .feature-card img {
        height: 220px;
    }
    
    .feature-card-body h3 {
        font-size: 18px;
        min-height: auto;
    }
}


/* ====================================
   Riddara Page - Dark Mode Support
   ==================================== */

/* All sections background */
html[data-theme="dark"] .viewer-360-section,
html[data-theme="dark"] .hero-stats-section,
html[data-theme="dark"] .banner-slider-section,
html[data-theme="dark"] .chassis-section,
html[data-theme="dark"] .safety-section,
html[data-theme="dark"] .led-section,
html[data-theme="dark"] .color-section,
html[data-theme="dark"] .interior-section,
html[data-theme="dark"] .specs-section {
    background-color: #000000 !important;
}

/* All headings in Riddara sections */
html[data-theme="dark"] .viewer-360-section h2,
html[data-theme="dark"] .hero-stats-section h2,
html[data-theme="dark"] .banner-slider-section h2,
html[data-theme="dark"] .chassis-section h2,
html[data-theme="dark"] .safety-section h2,
html[data-theme="dark"] .led-section h2,
html[data-theme="dark"] .color-section h2,
html[data-theme="dark"] .interior-section h2,
html[data-theme="dark"] .specs-section h2,
html[data-theme="dark"] .viewer-360-section h3,
html[data-theme="dark"] .hero-stats-section h3,
html[data-theme="dark"] .chassis-section h3,
html[data-theme="dark"] .safety-section h3,
html[data-theme="dark"] .interior-section h3,
html[data-theme="dark"] .specs-section h3 {
    color: #ffffff !important;
}

/* All paragraphs and text */
html[data-theme="dark"] .viewer-360-section p,
html[data-theme="dark"] .hero-stats-section p,
html[data-theme="dark"] .chassis-section p,
html[data-theme="dark"] .safety-section p,
html[data-theme="dark"] .led-section p,
html[data-theme="dark"] .color-section p,
html[data-theme="dark"] .interior-section p,
html[data-theme="dark"] .specs-section p {
    color: #d2d2d2 !important;
}

/* Stats cards */
html[data-theme="dark"] .stat-item,
html[data-theme="dark"] .hero-stat {
    background: linear-gradient(145deg, #0d0d0d, #080808) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 
                0 1px 3px rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .stat-item h3,
html[data-theme="dark"] .hero-stat h3,
html[data-theme="dark"] .stat-number {
    color: #ffffff !important;
}

html[data-theme="dark"] .stat-item p,
html[data-theme="dark"] .hero-stat p,
html[data-theme="dark"] .stat-label {
    color: #d2d2d2 !important;
}

/* Safety features cards */
html[data-theme="dark"] .safety-card,
html[data-theme="dark"] .safety-feature {
    background: linear-gradient(145deg, #0d0d0d, #080808) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 
                0 1px 3px rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .safety-card h4,
html[data-theme="dark"] .safety-feature h4 {
    color: #ffffff !important;
}

html[data-theme="dark"] .safety-card p,
html[data-theme="dark"] .safety-feature p {
    color: #d2d2d2 !important;
}

/* Interior cards */
html[data-theme="dark"] .interior-card,
html[data-theme="dark"] .interior-feature {
    background: linear-gradient(145deg, #0d0d0d, #080808) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 
                0 1px 3px rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .interior-card h4,
html[data-theme="dark"] .interior-feature h4 {
    color: #ffffff !important;
}

/* Specifications table */
html[data-theme="dark"] .specs-table,
html[data-theme="dark"] .specification-table {
    background: linear-gradient(145deg, #0d0d0d, #080808) !important;
}

html[data-theme="dark"] .specs-table th,
html[data-theme="dark"] .specification-table th {
    background: #0a0a0a !important;
    color: #ffffff !important;
    border-color: #2a2a2a !important;
}

html[data-theme="dark"] .specs-table td,
html[data-theme="dark"] .specification-table td {
    color: #d2d2d2 !important;
    border-color: #2a2a2a !important;
}

/* Color selector */
html[data-theme="dark"] .color-option,
html[data-theme="dark"] .color-selector-item {
    border-color: #2a2a2a !important;
}

html[data-theme="dark"] .color-option.active,
html[data-theme="dark"] .color-selector-item.active {
    border-color: #00a5df !important;
}

html[data-theme="dark"] .color-name {
    color: #ffffff !important;
}

/* LED section */
html[data-theme="dark"] .led-container {
    background: linear-gradient(145deg, #0d0d0d, #080808) !important;
}

/* Chassis section */
html[data-theme="dark"] .chassis-container {
    background: linear-gradient(145deg, #0d0d0d, #080808) !important;
}

/* 360 Viewer */
html[data-theme="dark"] .viewer-360-container {
    background: linear-gradient(145deg, #0d0d0d, #080808) !important;
}

/* Banner slider */
html[data-theme="dark"] .banner-slider-section {
    background-color: #000000 !important;
}

/* Video section */
html[data-theme="dark"] .video-section {
    background-color: #000000 !important;
}

/* Banner full section */
html[data-theme="dark"] .banner-full-section {
    background-color: #000000 !important;
}


/* ====================================
   Riddara Page - Additional Dark Mode Fixes
   ==================================== */

/* LED Section - Dark Mode */
html[data-theme="dark"] .led-section {
    background: #000000 !important;
}

html[data-theme="dark"] .led-caption {
    background: rgba(13, 13, 13, 0.95) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
}

html[data-theme="dark"] .led-caption h4 {
    color: #ffffff !important;
}

html[data-theme="dark"] .led-caption li {
    color: #d2d2d2 !important;
}

/* Color Section - Dark Mode */
html[data-theme="dark"] .color-section {
    background: #000000 !important;
}

html[data-theme="dark"] .color-display img {
    background: #0a0a0a !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
}

html[data-theme="dark"] .color-name {
    color: #ffffff !important;
}

html[data-theme="dark"] .color-arrow {
    color: #ffffff !important;
}

/* Comparison Section - Dark Mode */
html[data-theme="dark"] .comparison-section,
html[data-theme="dark"] .specs-comparison {
    background: #000000 !important;
}

html[data-theme="dark"] .comparison-table,
html[data-theme="dark"] .specs-comparison-table {
    background: linear-gradient(145deg, #0d0d0d, #080808) !important;
}

html[data-theme="dark"] .comparison-table thead,
html[data-theme="dark"] .specs-comparison-table thead {
    background: #0a0a0a !important;
}

html[data-theme="dark"] .comparison-table th,
html[data-theme="dark"] .specs-comparison-table th {
    background: #0a0a0a !important;
    color: #ffffff !important;
    border-color: #2a2a2a !important;
}

html[data-theme="dark"] .comparison-table td,
html[data-theme="dark"] .specs-comparison-table td {
    color: #d2d2d2 !important;
    border-color: #2a2a2a !important;
    background: transparent !important;
}

html[data-theme="dark"] .comparison-table tr:nth-child(even),
html[data-theme="dark"] .specs-comparison-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02) !important;
}

html[data-theme="dark"] .comparison-header,
html[data-theme="dark"] .version-header {
    background: linear-gradient(145deg, #0d0d0d, #080808) !important;
    color: #ffffff !important;
}

/* All inline white backgrounds */
html[data-theme="dark"] [style*="background: white"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background-color: white"],
html[data-theme="dark"] [style*="background-color: #fff"],
html[data-theme="dark"] [style*="background-color:#fff"],
html[data-theme="dark"] [style*="background:#fff"] {
    background: #000000 !important;
    background-color: #000000 !important;
}

/* All inline light backgrounds */
html[data-theme="dark"] [style*="background: #ebedf1"],
html[data-theme="dark"] [style*="background-color: #ebedf1"],
html[data-theme="dark"] [style*="background: #f8f9fa"],
html[data-theme="dark"] [style*="background-color: #f8f9fa"] {
    background: #0a0a0a !important;
    background-color: #0a0a0a !important;
}


/* ====================================
   Specs Comparison Section - Dark Mode
   ==================================== */

html[data-theme="dark"] .specs-comparison {
    background: #000000 !important;
}

html[data-theme="dark"] .specs-header {
    background: linear-gradient(145deg, #0d0d0d, #080808) !important;
}

html[data-theme="dark"] .spec-variant {
    background: linear-gradient(145deg, #0d0d0d, #080808) !important;
    border-color: #2a2a2a !important;
}

html[data-theme="dark"] .spec-variant h3 {
    color: #ffffff !important;
}

html[data-theme="dark"] .specs-content {
    background: #000000 !important;
}

html[data-theme="dark"] .spec-category {
    background: linear-gradient(145deg, #0d0d0d, #080808) !important;
    border-color: #2a2a2a !important;
}

html[data-theme="dark"] .spec-category h4 {
    color: #ffffff !important;
    background: #0a0a0a !important;
    border-color: #2a2a2a !important;
}

html[data-theme="dark"] .spec-row {
    border-color: #2a2a2a !important;
}

html[data-theme="dark"] .spec-item {
    background: transparent !important;
    border-color: #2a2a2a !important;
}

html[data-theme="dark"] .spec-label {
    color: #d2d2d2 !important;
}

html[data-theme="dark"] .spec-value {
    color: #ffffff !important;
}

html[data-theme="dark"] .spec-row:nth-child(even) .spec-item {
    background: rgba(255, 255, 255, 0.02) !important;
}


/* ====================================
   Riddara Page - Button Text Color Fix
   ==================================== */

/* Stat buttons - white background needs black text */
.stat-btn {
    color: #000000 !important;
}

.stat-btn i {
    color: #000000 !important;
}

.stat-btn:hover {
    color: #007ec6 !important;
}

/* Dark mode - keep black text on white buttons */
html[data-theme="dark"] .stat-btn {
    color: #000000 !important;
}

html[data-theme="dark"] .stat-btn i {
    color: #000000 !important;
}

html[data-theme="dark"] .stat-btn:hover {
    color: #007ec6 !important;
}


/* ====================================
   CRITICAL FIX: Prevent Horizontal Scroll on Mobile
   ==================================== */

/* Mobile specific fixes only */
@media (max-width: 768px) {
    /* Fix video section on mobile */
    .featured-videos .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .full-width-video .row {
        flex-direction: column !important;
    }
    
    .full-width-video .col-lg-8,
    .full-width-video .col-lg-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .video-info-side {
        padding: 20px !important;
    }
}








/* ====================================
   Show vertical scrollbar on RIGHT only (RTL)
   ==================================== */

/* Force LTR direction for scrollbar positioning */
html {
    overflow-y: auto;
    overflow-x: hidden;
    direction: ltr !important;
}

body {
    direction: rtl !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Show scrollbar in Firefox - thin and smooth */
html, body {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
}

/* Custom scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    width: 8px;
    height: 0;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* Smooth scrolling removed for better performance */
html {
    scroll-behavior: auto;
}

/* Ensure proper width */
html, body {
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Ensure all containers stay within bounds */
.container,
.container-fluid {
    max-width: 100%;
}

/* Mobile specific - force proper width */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        position: relative;
    }
    
    img, video, svg {
        max-width: 100%;
        height: auto;
    }
}


/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 90px; /* فوق زر الواتساب */
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* مخفي افتراضياً */
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* RTL Support */
[dir="rtl"] .back-to-top {
    left: auto;
    right: 20px;
}

/* Dark Mode */
[data-theme="dark"] .back-to-top {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

[data-theme="dark"] .back-to-top:hover {
    background: linear-gradient(135deg, #357abd, #2868a8);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
        left: 15px;
        font-size: 18px;
    }
    
    [dir="rtl"] .back-to-top {
        left: auto;
        right: 15px;
    }
}
}


/* Dark Mode Overrides for About Page */
[data-theme="dark"] h2[style*="color: var(--primary-black"] {
    color: var(--text-primary) !important;
}

[data-theme="dark"] p[style*="color: var(--text-secondary"] {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] strong[style*="color: var(--primary-black"] {
    color: var(--text-primary) !important;
}

[data-theme="dark"] div[style*="background: white"] {
    background: var(--card-bg) !important;
}

[data-theme="dark"] span[style*="color: var(--text-secondary"] {
    color: var(--text-secondary) !important;
}


/* About Content Section */
.about-content-section {
    background: linear-gradient(135deg, #ffffff 0%, #ebedf1 100%);
}

[data-theme="dark"] .about-content-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}


/* MVV Section */
.mvv-section {
    background: var(--primary-light, #ebedf1);
}

[data-theme="dark"] .mvv-section {
    background: var(--bg-secondary);
}

.mvv-card {
    background: white;
}

[data-theme="dark"] .mvv-card {
    background: var(--card-bg) !important;
}
