/* Custom Styles for Revira Industrial */

:root {
    --primary-color: #789c32;
    --secondary-color: #8fb03a;
    --accent-color: #a5c442;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gray-color: #64748b;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #9bb84a, #b3cc5f);
    --gradient-accent: linear-gradient(135deg, #a5c442, #b8d654);
    --gradient-success: linear-gradient(135deg, #10b981, #059669);
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .ms-2 {
    /* margin-left: 0 !important; */
    margin-right: 0.5rem !important;
}

[dir="rtl"] .me-3 {
    /* margin-right: 0 !important; */
    margin-left: 1rem !important;
}

[dir="rtl"] .ms-3 {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

/* Category Dropdown Styles */
.parent-category {
    font-weight: bold !important;
    color: var(--primary-color) !important;
    background-color: var(--light-color) !important;
    transition: all 0.3s ease;
}

.sub-category {
    font-weight: normal;
    padding-left: 20px;
    color: var(--gray-color) !important;
    transition: all 0.3s ease;
}

.sub-category:hover {
    background-color: var(--accent-color) !important;
    color: white !important;
    transform: translateX(5px);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* Typography */
body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 10px var(--shadow-color);
    background: var(--gradient-primary);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

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

/* Subcategory Cards */
.category-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-color);
    background: white;
    animation: alternateBackground 4s ease-in-out infinite;
}

@keyframes alternateBackground {
    0%, 100% {
        background: linear-gradient(135deg, var(--light-color), #ffffff);
    }
    25% {
        background: linear-gradient(135deg, #f8f9fa, #f0f8e8);
    }
    50% {
        background: linear-gradient(135deg, #e8f4f8, #ffffff);
    }
    75% {
        background: linear-gradient(135deg, #fff8f0, #f0f8f0);
    }
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(120, 156, 50, 0.2);
    border-color: var(--accent-color);
    animation: hoverAlternate 2s ease-in-out infinite;
}

@keyframes hoverAlternate {
    0%, 100% {
        background: linear-gradient(135deg, #f0f8f0, #ffffff);
    }
    50% {
        background: linear-gradient(135deg, #f0f8e8, var(--light-color));
    }
}

.category-card:hover .card-title {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.category-card:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-color) !important;
}

.category-card .card-title {
    transition: all 0.3s ease;
}

.category-card i {
    transition: all 0.4s ease;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(120, 156, 50, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Product Cards */
.product-card {
    border: none;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Old carousel styles removed - using modern-slider.css instead */

/* WhatsApp Floating Icon */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.whatsapp-float-btn i {
    font-size: 30px;
}

.whatsapp-float-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

/* Custom tooltip styling */
.whatsapp-float-btn[title]:hover:after {
    content: attr(title);
    position: absolute;
    top: -40px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1001;
}

/* RTL Support for WhatsApp Float */
[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

/* RTL Support for WhatsApp Tooltip */
[dir="rtl"] .whatsapp-float-btn[title]:hover:after {
    right: auto;
    left: 0;
}

/* WhatsApp Notification */
.whatsapp-notification {
    position: absolute;
    top: -60px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1001;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.whatsapp-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* RTL Support for WhatsApp Notification */
[dir="rtl"] .whatsapp-notification {
    right: auto;
    left: 0;
}

/* Carousel styles removed */

/* Mobile carousel styles removed */

/* Mission section specific centering */
html[dir="rtl"] .mission-content {
    text-align: right !important;
}

html[dir="rtl"] .mission-content h3,
html[dir="rtl"] .mission-content p {
    text-align: right !important;
}

html[dir="rtl"] .mission-content .d-flex {
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .mission-content .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

/* RTL carousel controls and transitions removed */

/* Modern Agent Slider Styles */
.agent-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Smooth hover effect for the entire slider */
.agent-slider-wrapper:hover .agent-slider-track {
    animation-play-state: paused;
}

/* Performance optimizations */
.agent-slider-wrapper * {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.agent-slider-container {
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    position: relative;
}

.agent-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
    will-change: transform;
}

.agent-slide-item {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.agent-slide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--bs-primary);
}

.agent-slide-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.agent-slide-link:hover {
    text-decoration: none;
    color: inherit;
}

.agent-slide-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.agent-slide-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.agent-slide-item:hover .agent-slide-image {
    border-color: var(--bs-primary);
}

.agent-slide-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bs-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    font-size: 1.5rem;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.agent-slide-item:hover .agent-slide-placeholder {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
    color: #fff;
}

.agent-slide-info {
    text-align: center;
}

.agent-slide-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bs-dark);
    margin-bottom: 5px;
    line-height: 1.3;
}

.agent-slide-phone {
    font-size: 0.85rem;
    color: var(--bs-secondary);
    margin-bottom: 0;
}

/* Slider Controls */
.agent-slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.agent-slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.agent-slider-btn:hover {
    background: var(--bs-dark);
    transform: scale(1.1);
}

.agent-slider-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.agent-slider-prev {
    left: -22px;
}

.agent-slider-next {
    right: -22px;
}

/* Slider Dots */
.agent-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.agent-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.agent-slider-dot.active {
    background: var(--bs-primary);
    transform: scale(1.2);
}

.agent-slider-dot:hover {
    background: var(--bs-primary);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .agent-slide-item {
        flex-basis: 260px;
    }
}

@media (max-width: 992px) {
    .agent-slide-item {
        flex-basis: 240px;
    }
    
    .agent-slider-prev {
        left: -15px;
    }
    
    .agent-slider-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .agent-slide-item {
        flex-basis: 220px;
    }
    
    .agent-slider-container {
        padding: 20px 15px;
    }
    
    .agent-slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .agent-slider-prev {
        left: -10px;
    }
    
    .agent-slider-next {
        right: -10px;
    }
}

@media (max-width: 576px) {
    .agent-slide-item {
        flex-basis: 200px;
    }
    
    .agent-slide-image,
    .agent-slide-placeholder {
        width: 70px;
        height: 70px;
    }
    
    .agent-slide-name {
        font-size: 0.9rem;
    }
    
    .agent-slide-phone {
        font-size: 0.8rem;
    }
    
    .agent-slider-controls {
        display: none;
    }
}



/* RTL Slide Animation - Smoother */
html[dir="rtl"] .carousel-item.active {
    transition: transform 0.5s ease, opacity 0.5s ease !important;
}

/* Carousel Caption - Perfect centering across all screen sizes */
.carousel-caption {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    max-width: 1200px;
    padding: 20px;
    z-index: 2;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Content - No overlay with perfect centering */
.hero-content {
    background-color: transparent; /* Removed background */
    backdrop-filter: none; /* Removed blur effect */
    -webkit-backdrop-filter: none;
    border-radius: 0; /* Removed radius */
    padding: 20px;
    max-width: 100%;
    width: 100%;
    box-shadow: none; /* Removed shadow */
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Slider Typography - Enhanced for readability and perfect centering */
.hero-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 auto 15px;
    line-height: 1.2;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 3px rgba(0, 0, 0, 0.9); /* Enhanced text shadow for readability */
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.hero-content p {
    font-size: 1.1rem;
    margin: 0 auto 18px;
    line-height: 1.5;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 0, 0, 0.9); /* Enhanced text shadow for readability */
    text-align: center;
    width: 100%;
    max-width: 100%;
}

/* Button Container - Enhanced layout with perfect centering */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px; /* Larger gap for better separation */
    margin-top: 20px; /* More top margin */
    width: 100%;
    text-align: center;
}

/* Buttons - Enhanced for better visibility */
.hero-buttons .btn {
    padding: 12px 24px; /* Larger padding for better touch targets */
    border-radius: 30px; /* More rounded */
    font-size: 1rem; /* Larger font */
    font-weight: 600; /* Bolder weight */
    text-transform: uppercase;
    letter-spacing: 0.5px; /* More letter spacing */
    transition: all 0.3s ease;
    min-width: 150px; /* Larger minimum width */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Default shadow for depth */
}

.hero-buttons .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #4a90e2); /* Gradient background */
    border: none;
    box-shadow: 0 4px 15px rgba(52, 144, 220, 0.4); /* Colored shadow */
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.9); /* Thicker, more visible border */
    background-color: rgba(255, 255, 255, 0.15); /* Slightly more visible */
    color: #fff; /* Ensure text is white */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Text shadow for readability */
}

.hero-buttons .btn:hover {
    transform: translateY(-3px); /* Larger transform */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Stronger shadow */
    opacity: 1; /* Full opacity */
    filter: brightness(1.05); /* Slight brightness increase */
}

/* Carousel Controls - Simplified and smoother */
.carousel-control-prev,
.carousel-control-next {
    width: 40px; /* Smaller size */
    height: 40px;
    background: rgba(0, 0, 0, 0.4); /* More transparent */
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    transition: all 0.3s ease;
    z-index: 5;
    /* Better touch targets */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border: none; /* Remove any borders */
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:active,
.carousel-control-next:active {
    background: rgba(0, 0, 0, 0.6);
    opacity: 0.9;
    transform: translateY(-50%); /* Remove scale effect for smoother experience */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 18px; /* Smaller icons */
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Carousel Indicators - Simplified and minimal */
.carousel-indicators {
    bottom: 15px; /* Closer to bottom */
    z-index: 5;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 30px; /* Shorter indicators */
    height: 3px; /* Thinner indicators */
    background-color: rgba(255, 255, 255, 0.4); /* More transparent */
    border: none;
    margin: 0 3px; /* Closer together */
    border-radius: 1.5px; /* Slightly rounded */
    transition: all 0.2s ease; /* Faster transition */
    opacity: 0.7;
}

.carousel-indicators [data-bs-target].active {
    background-color: rgba(255, 255, 255, 0.9); /* Not fully white */
    transform: none; /* No scale effect for smoother experience */
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
}

/* Slide Animation Effects - Disabled to prevent overlap */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-item.active {
    transform: translateX(0);
    opacity: 1;
}

/* Hero Content Animation - Simplified to prevent overlap */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Hero Buttons Enhancement - Simplified to prevent overlap */
.hero-buttons {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-buttons .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.hero-buttons .btn:hover::before {
    left: 100%;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Parallax Effect */
.carousel-item.parallax {
    background-attachment: fixed;
}

/* Loading Animation */
.hero-slider {
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0); /* Hardware acceleration */
    backface-visibility: hidden;
}

.hero-slider.carousel-loaded {
    opacity: 1;
}

/* Smooth Motion Controls */
.carousel-item.active {
    transform: translateZ(0);
}

.carousel-item:not(.active) {
    transform: translateZ(0);
    background-position: center center !important;
}

/* Enhanced Text Animations */
.carousel-item h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.carousel-item p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

/* Progress Indicator */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--accent-color);
    z-index: 5;
    transition: width 6s linear;
    width: 0;
}

.carousel-item.active .carousel-progress {
    width: 100%;
}

/* Smooth Fade Transitions */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}



/* Enhanced Button Styles */
.hero-buttons .btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-width: 2px;
}

.hero-buttons .btn-primary {
    background: linear-gradient(45deg, var(--accent-color), #4a90e2);
    border: none;
    box-shadow: 0 4px 15px rgba(52, 144, 220, 0.4);
}

.hero-buttons .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Accessibility Improvements */
.carousel-control-prev:focus,
.carousel-control-next:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.carousel-indicators [data-bs-target]:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Performance Optimizations */
.carousel-item {
    will-change: transform;
    backface-visibility: hidden;
}

.hero-content {
    will-change: opacity, transform;
}

/* Tablet Responsive */
@media (max-width: 992px) and (min-width: 769px) {
    .carousel-item {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-content {
        width: 90% !important;
        padding: 25px;
    }
    
    .carousel-item h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .carousel-item p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .hero-buttons .btn {
        font-size: 0.85rem;
        padding: 10px 20px;
        margin: 0 6px;
    }
}

/* Responsive Breakpoints - Extra Large Screens */
@media (min-width: 1400px) {
    .slider-img-container {
        padding-bottom: 35%; /* Even shorter aspect ratio for large screens */
    }
    
    .hero-content {
        padding: 25px;
        max-width: 900px;
        background-color: transparent; /* Removed overlay */
    }
    
    .hero-content h1 {
        font-size: 2.8rem; /* Reduced font size */
        margin-bottom: 15px;
        font-weight: 600; /* Slightly lighter font weight */
        letter-spacing: 0.5px; /* Better letter spacing */
    }
    
    .hero-content p {
        font-size: 1.2rem; /* Reduced font size */
        margin-bottom: 20px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.5; /* Improved line height */
    }
    
    .hero-buttons {
        gap: 15px;
        margin-top: 30px;
    }
    
    .hero-buttons .btn {
        padding: 12px 30px;
        font-size: 1.1rem;
        min-width: 182px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 60px;
        height: 60px;
    }
    
    .carousel-indicators {
        bottom: 30px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 50px;
        height: 5px;
        margin: 0 6px;
    }
}

/* Large Screens */
@media (max-width: 1399px) and (min-width: 992px) {
    .slider-img-container {
        padding-bottom: 38%; /* Reduced aspect ratio */
    }
    
    .hero-content {
        padding: 20px;
        max-width: 750px;
        background-color: transparent; /* Removed overlay */
    }
    
    .hero-content h1 {
        font-size: 2.4rem; /* Reduced font size */
        margin-bottom: 12px;
        font-weight: 600;
        letter-spacing: 0.4px;
    }
    
    .hero-content p {
        font-size: 1.1rem; /* Reduced font size */
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .hero-buttons {
        gap: 12px;
        margin-top: 20px;
    }
    
    .hero-buttons .btn {
        padding: 10px 25px;
        font-size: 1rem;
        min-width: 160px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-indicators {
        bottom: 25px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 45px;
        height: 4px;
        margin: 0 5px;
    }
}

/* Medium Screens */
@media (max-width: 991px) and (min-width: 768px) {
    .slider-img-container {
        padding-bottom: 42%; /* Reduced aspect ratio */
    }
    
    .hero-content {
        padding: 15px;
        max-width: 550px;
        background-color: transparent; /* Removed overlay */
    }
    
    .hero-content h1 {
        font-size: 1.8rem; /* Smaller font */
        margin-bottom: 10px;
        letter-spacing: 0.2px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    .hero-content p {
        font-size: 0.95rem; /* Smaller font */
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-buttons {
        gap: 10px;
        margin-top: 15px;
    }
    
    .hero-buttons .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
        min-width: 140px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 40px;
        height: 4px;
        margin: 0 4px;
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    /* Enhanced mobile carousel behavior */
    .carousel {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        touch-action: pan-y;
    }
    
    .carousel-inner {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        will-change: transform;
    }
    
    .slider-img-container {
        padding-bottom: 55%; /* Reduced aspect ratio */
    }
    
    .slider-img {
        object-position: center;
    }
    
    .carousel-caption {
        width: 92%;
        padding: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-content {
        padding: 15px;
        max-width: 100%;
        width: 100%;
        background-color: transparent; /* Removed background */
        border-radius: 0;
        box-shadow: none; /* Removed shadow */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
        margin: 0 auto 10px;
        letter-spacing: 0.3px;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 3px rgba(0, 0, 0, 0.9); /* Enhanced text shadow for readability */
        line-height: 1.2;
        font-weight: 700;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin: 0 auto 12px;
        line-height: 1.4;
        color: #fff;
        font-weight: 500;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 0, 0, 0.9); /* Enhanced text shadow for readability */
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 6px; /* Smaller gap */
        margin-top: 10px; /* Reduced top margin */
        width: 100%;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 182px; /* Reduced max width */
        padding: 8px 14px; /* Smaller padding */
        font-size: 0.8rem; /* Smaller font */
        min-width: auto;
        letter-spacing: 0.2px; /* Reduced letter spacing */
        font-weight: 600;
        border-radius: 20px; /* Smaller radius */
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); /* Smaller shadow */
    }
    
    .hero-buttons .btn-primary {
        background: linear-gradient(45deg, var(--primary-color), #4a90e2); /* Gradient background */
        border: none;
    }
    
    .hero-buttons .btn-outline-light {
        border: 2px solid rgba(255, 255, 255, 0.9); /* Thicker, more visible border */
        background-color: rgba(255, 255, 255, 0.15); /* Slightly more visible */
    }
    
    /* Create a content container that matches image aspect ratio */
    .carousel-item::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        height: 80%;
        max-width: 100%;
        max-height: 100%;
        z-index: 1;
        pointer-events: none;
    }
    
    .hero-slider {
        overflow: hidden;
        position: relative;
    }
    
    
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0;
        margin: 0;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 44px;
        height: 44px;
        z-index: 10;
        top: 50% !important;
        transform: translateY(-50%) !important;
        opacity: 0.8 !important;
        /* Enhanced touch targets */
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        /* Better touch interaction */
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .carousel-control-prev {
        left: 8px !important;
    }

    .carousel-control-next {
        right: 8px !important;
    }
    
    .carousel-control-prev:hover,
    .carousel-control-next:hover,
    .carousel-control-prev:active,
    .carousel-control-next:active {
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.7) !important;
        transform: translateY(-50%) scale(1.1);
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(1);
    }
    
    /* RTL Mobile Carousel Controls */
    html[dir="rtl"] .carousel-control-prev {
        left: auto !important;
        right: 15px !important;
    }
    
    html[dir="rtl"] .carousel-control-next {
        right: auto !important;
        left: 15px !important;
    }
    
    .carousel-indicators {
        bottom: 15px;
        z-index: 10;
        /* Enhanced mobile indicators */
        padding: 8px 0;
        margin: 0;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 35px;
        height: 4px;
        margin: 0 3px;
        border-radius: 2px;
        background-color: rgba(255, 255, 255, 0.5);
        border: none;
        transition: all 0.3s ease;
        /* Better touch targets */
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .carousel-indicators [data-bs-target].active {
        background-color: rgba(255, 255, 255, 0.9);
        transform: scale(1.1);
    }
    
    .carousel-indicators [data-bs-target]:hover {
        background-color: rgba(255, 255, 255, 0.7);
    }
    
    .hero-buttons {
        margin-top: 8px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
        min-width: 100px;
        max-width: 160px;
        font-size: 0.7rem;
        padding: 8px 16px;
        white-space: normal;
        text-align: center;
        margin: 0;
        /* Enhanced mobile button interaction */
        border-radius: 25px;
        font-weight: 600;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .hero-buttons .btn:hover,
    .hero-buttons .btn:active {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }
    
    .hero-buttons .btn:active {
        transform: translateY(0);
        transition: all 0.1s ease;
    }
    
    .carousel-item h1 {
        font-size: 1.2rem;
        margin-bottom: 6px;
        line-height: 1.0;
    }
    
    .carousel-item p {
        font-size: 0.7rem;
        margin-bottom: 8px;
        line-height: 1.1;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .slider-img-container {
        padding-bottom: 60%; /* Reduced aspect ratio */
    }
    
    .carousel-caption {
        width: 94%;
        padding: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-content {
        padding: 12px;
        max-height: 100%;
        overflow: hidden;
        width: 100%;
        background-color: transparent; /* Removed background */
        border-radius: 0;
        box-shadow: none; /* Removed shadow */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 1.3rem;
        margin: 0 auto 8px;
        letter-spacing: 0.2px;
        line-height: 1.2;
        font-weight: 700;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 3px rgba(0, 0, 0, 0.9); /* Enhanced text shadow for readability */
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content p {
        font-size: 0.8rem;
        margin: 0 auto 10px;
        line-height: 1.3;
        color: #fff;
        font-weight: 500;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 0, 0, 0.9); /* Enhanced text shadow for readability */
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-buttons {
        margin-top: 8px; /* Reduced top margin */
        gap: 5px; /* Smaller gap */
    }
    
    .hero-buttons .btn {
        font-size: 0.7rem; /* Smaller font */
        padding: 6px 12px; /* Smaller padding */
        max-width: 169px; /* Reduced max width */
        border-radius: 18px; /* Smaller radius */
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Smaller shadow */
    }
    
    .hero-buttons .btn-primary {
        background: linear-gradient(45deg, var(--primary-color), #4a90e2); /* Gradient background */
        border: none;
    }
    
    .hero-buttons .btn-outline-light {
        border: 2px solid rgba(255, 255, 255, 0.9); /* Thicker, more visible border */
        background-color: rgba(255, 255, 255, 0.15); /* Slightly more visible */
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 30px;
        height: 3px;
        margin: 0 3px;
    }
    
    .hero-buttons .btn:hover,
    .hero-buttons .btn:active {
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }
    
    .hero-buttons .btn:active {
        transform: translateY(0);
        transition: all 0.1s ease;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    /* RTL Small Mobile Carousel Controls */
    html[dir="rtl"] .carousel-control-prev {
        left: auto !important;
        right: 15px !important;
    }
    
    html[dir="rtl"] .carousel-control-next {
        right: auto !important;
        left: 15px !important;
    }
    
    .carousel-indicators {
        bottom: 10px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        margin: 0 !important;
        justify-content: center !important;
        z-index: 15 !important;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        margin: 0 3px !important;
        opacity: 0.6 !important;
    }
    
    .carousel-indicators .active {
        opacity: 1 !important;
    }
    
    /* Mobile Grid Layout - 2 items per row */
    .row .col-lg-3.col-md-6,
    .row .col-lg-4.col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
    
    /* Alternative approach for Bootstrap grid */
    .container .row .col-lg-3,
    .container .row .col-lg-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* Product and News Cards Mobile Adjustments */
    .product-card,
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    /* Mobile Image Display - Show Full Images */
    .product-img,
    .news-img,
    .category-img,
    .card-img-top {
        object-fit: contain !important;
        background-color: #f8f9fa;
    }
    
    .news-thumb,
    .news-thumb-enhanced {
        object-fit: contain !important;
        background-color: #f8f9fa;
    }
    
    .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    /* Smaller fonts and buttons for agent and news cards */
    .section .card .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .section .card .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Agent specific styles - Standardized to 100px */
    .agent-logo {
        width: 100px !important;
        height: 100px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        object-position: center !important;
        border: 3px solid #e9ecef !important;
        background: #fff !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    .agent-index-logo {
        width: 100px !important;
        height: 100px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        object-position: center !important;
        border: 3px solid #e9ecef !important;
        background: #fff !important;
        display: block !important;
        margin: 0 auto !important;
    }
    


/* Agent logo styles - keeping only agent-logo and agent-index-logo */
/* Extra large screens (1400px and up) */
@media (min-width: 1400px) {
    .agent-logo {
        width: 100px !important;
        height: 100px !important;
    }
    
    .agent-index-logo {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Large screens (992px to 1399px) */
@media (min-width: 992px) and (max-width: 1399px) {
    .agent-logo {
        width: 100px !important;
        height: 100px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
    
    .agent-index-logo {
        width: 100px !important;
        height: 100px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
}

/* Laptop screens (1024px to 1366px) - Specific for laptops */
@media (min-width: 1024px) and (max-width: 1366px) {
    .agent-logo {
        width: 100px !important;
        height: 100px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .agent-index-logo {
        width: 100px !important;
        height: 100px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* Medium screens (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .agent-logo {
        width: 100px !important;
        height: 100px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
    
    .agent-index-logo {
        width: 100px !important;
        height: 100px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
}

/* Small screens (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .agent-logo {
        width: 100px !important;
        height: 100px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
    
    .agent-index-logo {
        width: 100px !important;
        height: 100px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
}

/* Extra small screens (480px to 575px) */
@media (min-width: 480px) and (max-width: 575px) {
    .agent-logo {
        width: 100px !important;
        height: 100px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
    
    .agent-index-logo {
        width: 100px !important;
        height: 100px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
}

/* Very small screens (below 480px) */
@media (max-width: 479px) {
    .agent-logo {
        width: 100px !important;
        height: 100px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
    
    .agent-index-logo {
        width: 100px !important;
        height: 100px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
}
    

    
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    /* Force 2 columns layout for product and news sections */
    .section .row.g-4 {
        display: flex;
        flex-wrap: wrap;
    }
    
    .section .row.g-4 > div {
        flex: 0 0 calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        margin-bottom: 1rem;
    }
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Badges */
.badge {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-color), var(--gray-color));
    color: white;
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Social Media Icons */
.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Statistics */
.counter {
    text-align: center;
    padding: 2rem;
}

.counter h2 {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Team Section */
.team-member {
    text-align: center;
    padding: 2rem;
}

.team-member .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* Certifications */
.certification-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: all 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Revira Logo Loading Animation */
.revira-loading {
    display: inline-block;
    width: 60px;
    height: 60px;
    background-image: url('/images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: reviraRotate 2s linear infinite, reviraPulse 1.5s ease-in-out infinite alternate;
}

.revira-loading-small {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('/images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: reviraRotate 2s linear infinite, reviraPulse 1.5s ease-in-out infinite alternate;
}

.revira-loading-large {
    display: inline-block;
    width: 80px;
    height: 80px;
    background-image: url('/images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: reviraRotate 2s linear infinite, reviraPulse 1.5s ease-in-out infinite alternate;
}

@keyframes reviraRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes reviraPulse {
    0% {
        opacity: 0.7;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Loading Container Styles */
.revira-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.revira-loading-text {
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* Loading Overlay */
.revira-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.revira-loading-overlay .revira-loading {
    width: 100px;
    height: 100px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .counter {
        padding: 1rem;
    }
    
    .team-member {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #0000ff;
        --accent-color: #ff8c00;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Enhanced sidebar elements */
.product-info-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.product-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-info-card .card-header {
    background: var(--primary-color);
    color: white;
    border-radius: 6px 6px 0 0;
    padding: 0.75rem 1rem;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    font-weight: 600;
}

.popular-categories .list-group-item {
    border: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.popular-categories .list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 0.5rem;
}

.popular-categories .list-group-item:last-child {
    border-bottom: none;
}

.popular-categories .badge {
    background-color: var(--primary-color);
}

/* Sidebar filters styling */
.sidebar-filters {
    top: 120px;
    z-index: 100;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* Filter styling for larger size */
@media (min-width: 992px) {
    .col-lg-3 .sidebar-filters {
        font-size: 1rem;
        padding: 1.5rem !important;
    }
    
    .col-lg-3 .sidebar-filters .mb-3:first-child {
        margin-top: 35px;
    }
    
    .col-lg-3 .sidebar-filters .form-control,
    .col-lg-3 .sidebar-filters .form-select {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }
    
    /* Enhanced search input styling */
    .col-lg-3 .sidebar-filters #search {
        border: 2px solid #e9ecef;
        border-radius: 8px;
        background: #f8f9fa;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .col-lg-3 .sidebar-filters #search:focus {
        border-color: var(--primary-color);
        background: white;
        box-shadow: 0 0 0 3px rgba(120, 156, 50, 0.1);
        transform: translateY(-1px);
    }
    
    .col-lg-3 .sidebar-filters #search::placeholder {
        color: #6c757d;
        font-style: italic;
    }
    
    /* Search icon styling for desktop */
    .col-lg-3 .sidebar-filters .search-icon {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
        pointer-events: none;
        z-index: 5;
    }
    
    .col-lg-3 .sidebar-filters .search-input {
        padding-right: 40px;
    }
    
    .col-lg-3 .sidebar-filters .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }
    
    .col-lg-3 .sidebar-filters .mb-3 {
        margin-bottom: 1.2rem !important;
    }
    
    .col-lg-3 .sidebar-filters .mb-3:last-of-type {
        margin-bottom: 0 !important;
    }
    
    .col-lg-3 .sidebar-filters .btn {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .col-lg-3 .sidebar-filters .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .sidebar-filters {
        position: fixed !important;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        z-index: 1050;
        padding: 15px;
        box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        border-radius: 15px 0 0 15px;
    }
    
    .sidebar-filters.show {
        right: 0;
    }
    
    /* Top Filter Button */
    .filter-button-top {
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(120, 156, 50, 0.2);
        z-index: 1010;
        font-size: 1rem;
        transition: all 0.3s ease;
        cursor: pointer;
        overflow: hidden;
        padding: 12px;
        position: relative;
        animation: buttonEntrance 0.5s ease-out forwards;
    }
    
    @keyframes buttonEntrance {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .filter-button-top:hover {
        background: var(--secondary-color);
        transform: translateY(-2px) translateX(3px);
        box-shadow: 0 6px 15px rgba(120, 156, 50, 0.3);
    }
    
    /* Filter Icon Animation */
    .filter-icon {
        display: inline-block;
        transition: all 0.3s ease;
        animation: iconShake 2s ease-in-out infinite;
    }
    
    @keyframes iconShake {
        0%, 100% {
            transform: translateX(0);
        }
        10%, 30%, 50%, 70%, 90% {
            transform: translateX(-2px) rotate(-5deg);
        }
        20%, 40%, 60%, 80% {
            transform: translateX(2px) rotate(5deg);
        }
    }
    
    .filter-button-top:hover .filter-icon {
        transform: translateX(3px) scale(1.2);
        animation-play-state: paused;
    }
    
    /* Filter Pulse Animation */
    .filter-pulse {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 10px;
        height: 10px;
        background-color: #ffcc00;
        border-radius: 50%;
        box-shadow: 0 0 0 rgba(255, 204, 0, 0.4);
        animation: pulse 2s infinite, float 3s ease-in-out infinite;
    }
    
    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.4);
        }
        70% {
            box-shadow: 0 0 0 10px rgba(255, 204, 0, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
        }
    }
    
    @keyframes float {
        0% {
            transform: translateY(0) translateX(0);
        }
        50% {
            transform: translateY(-3px) translateX(3px);
        }
        100% {
            transform: translateY(0) translateX(0);
        }
    }
    
    .mobile-filter-toggle.active {
        background: var(--danger-color);
        transform: rotate(45deg);
    }
    
    /* Mobile Filter Backdrop */
    .mobile-filter-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1049;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-filter-backdrop.show {
        opacity: 1;
        visibility: visible;
    }
    
    /* Hide desktop filter column on mobile */
    .col-lg-3.col-md-4 {
        display: none;
    }
    
    /* Adjust products grid for mobile */
    .col-lg-9.col-md-8 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

.sidebar-filters .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.sidebar-filters .form-control,
.sidebar-filters .form-select {
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.sidebar-filters .form-control:focus,
.sidebar-filters .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(120, 156, 50, 0.25);
}

/* Enhanced Mobile Filter Styling */
@media (max-width: 768px) {
    .sidebar-filters {
        padding-top: 60px;
    }
    
    .sidebar-filters .form-label {
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .sidebar-filters .form-control,
    .sidebar-filters .form-select {
        min-height: 48px;
        font-size: 1rem;
        padding: 12px 16px;
        border-radius: 12px;
        border: 2px solid #e9ecef;
        background: #f8f9fa;
        margin-bottom: 1rem;
    }
    
    /* Enhanced mobile search input */
    .sidebar-filters #search {
        background: white;
        border: 2px solid #dee2e6;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    /* Enhanced Product Cards Mobile Styling */
    .product-card {
        margin-bottom: 0.75rem !important;
        border-radius: 8px;
    }
    
    .product-card .card-body {
        padding: 0.75rem !important;
    }
    
    .product-card .card-title {
        font-size: 0.9rem !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.3;
    }
    

    
    .product-card .btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
        border-radius: 6px;
    }
    
    .product-card .h5,
    .product-card .h6 {
        font-size: 0.85rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .product-card .badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem;
    }
    
    /* Reduce spacing between product cards */
    .row.g-4 {
        --bs-gutter-y: 0.5rem;
        --bs-gutter-x: 0.5rem;
    }
    
    .col-lg-4.col-md-6.mb-4,
    .col-lg-3.col-md-6 {
        margin-bottom: 0.75rem !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
    
    .sidebar-filters #search::placeholder {
        color: #6c757d;
        font-style: italic;
    }
    
    /* Search icon styling for mobile */
    .sidebar-filters .search-icon {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
        pointer-events: none;
        z-index: 5;
        font-size: 1.1rem;
    }
    
    .sidebar-filters .search-input {
        padding-right: 45px;
    }
    
    .sidebar-filters .form-control:focus,
    .sidebar-filters .form-select:focus {
        border-color: var(--primary-color);
        background: white;
        box-shadow: 0 0 0 3px rgba(120, 156, 50, 0.1);
        transform: translateY(-1px);
    }
    
    .sidebar-filters .mb-3 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Mobile Filter Header */
    .sidebar-filters::before {
        content: "\f0b0 Filters";
        font-family: "Font Awesome 5 Free", sans-serif;
        font-weight: 900;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: var(--primary-color);
        color: white;
        padding: 20px 25px;
        font-size: 1.1rem;
        font-weight: 700;
        text-align: center;
        border-radius: 15px 0 0 0;
        margin: -15px -15px 15px -15px;
    }
    
    /* Mobile Filter Close Button */
    .sidebar-filters::after {
        content: "\f00d";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        top: 8px;
        right: 15px;
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        z-index: 1051;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .sidebar-filters::after:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }
}

/* RTL Support for enhanced sidebar */
[dir="rtl"] .product-info-card:hover {
    transform: translateY(-2px);
}

[dir="rtl"] .popular-categories .list-group-item:hover {
    padding-right: 0.5rem;
    padding-left: 0;
}

[dir="rtl"] .pe-4 {
    padding-right: 0 !important;
    padding-left: 1.5rem !important;
}

[dir="rtl"] .ps-4 {
    padding-left: 0 !important;
    padding-right: 1.5rem !important;
}

/* RTL Filter positioning */
[dir="rtl"] .sidebar-filters {
    text-align: right;
}

[dir="rtl"] .sidebar-filters .form-label {
    text-align: right;
}

/* RTL Search icon positioning */
[dir="rtl"] .sidebar-filters .search-icon {
    right: auto;
    left: 16px;
}

[dir="rtl"] .sidebar-filters .search-input {
    padding-right: 12px;
    padding-left: 45px;
}

[dir="rtl"] .col-lg-3 .sidebar-filters .search-icon {
    right: auto;
    left: 12px;
}

[dir="rtl"] .col-lg-3 .sidebar-filters .search-input {
    padding-right: 0.8rem;
    padding-left: 40px;
}

@media (max-width: 768px) {
    [dir="rtl"] .sidebar-filters {
        right: auto;
        left: -100%;
        border-radius: 0 15px 15px 0;
    }
    
    [dir="rtl"] .sidebar-filters.show {
        left: 0;
    }
    
    [dir="rtl"] .filter-column {
        left: 0 !important;
        right: auto !important;
    }
}

/* Additional utility classes for inline styles */
.map-container {
    height: 400px;
    width: 100%;
    border-radius: 8px;
}

.hero-bg {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.category-img {
    height: 250px;
    object-fit: cover;
}

.category-placeholder {
    height: 250px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.product-img {
    height: 220px;
    object-fit: cover;
}

.product-placeholder {
    height: 220px;
    background: linear-gradient(135deg, var(--medium-gray), var(--light-gray));
}

.news-img {
    height: 220px;
    object-fit: cover;
}

.news-placeholder {
    height: 220px;
    background: linear-gradient(135deg, var(--medium-gray), var(--light-gray));
}

.agent-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid #e9ecef;
    background: #fff;
}

.feature-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-placeholder {
    height: 200px;
}

.news-detail-img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

.news-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.news-thumb-enhanced {
    width: 90px;
    height: 70px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-thumb-enhanced:hover {
    transform: scale(1.05);
}

.hover-bg-light {
    transition: background-color 0.3s ease;
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
}

.hover-text-primary {
    transition: color 0.3s ease;
}

.hover-text-primary:hover {
    color: var(--accent-color) !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    max-height: 2.8em;
}

.transition-all {
    transition: all 0.3s ease;
}

.card.border-0.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.card.border-0.shadow-sm:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.card-header.bg-primary,
.card-header.bg-success,
.card-header.bg-warning,
.card-header.bg-info {
    border: none;
    font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-info:hover,
.btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .news-thumb-enhanced {
        width: 70px;
        height: 55px;
    }
    
    .card.border-0.shadow-sm {
        margin-bottom: 1rem !important;
    }
}

.news-index-img {
    height: 200px;
    object-fit: cover;
}

.product-detail-img {
    max-height: 400px;
    object-fit: cover;
}

.product-detail-placeholder {
    height: 400px;
}

.agent-index-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid #e9ecef;
    background: #fff;
} Additional Styles from Blade Template */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2d3748;
    --accent-color: #3182ce;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --danger-color: #e53e3e;
    --light-gray: #f7fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #4a5568;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #ffffff;
}

.rtl {
    direction: rtl;
    text-align: right;
}

.ltr {
    direction: ltr;
    text-align: left;
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

/* Modern Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 45px !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.3rem 0;
    }
    
    .navbar-brand img {
        height: 38px !important;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--light-gray);
    color: var(--accent-color);
}

/* Modern Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

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

/* Modern Cards */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

/* Modern Buttons */
.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #2c5aa0;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

/* Modern Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-gray), #1a1a1a);
    color: white;
    padding: 4rem 0 0;
}

.footer-logo {
    max-height: 60px;
    width: auto;
}

.footer h5, .footer h6 {
    color: white;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    color: #ccc;
}

.contact-item a {
    color: #ccc;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.footer-links .footer-link {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links .footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.footer-bottom {
    background:rgba(var(--bs-dark-rgb), var(--bs-bg-opacity));
    color: wheat;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.footer-bottom-link {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--primary-color);
}

/* Language Switcher */
.language-switcher .dropdown-menu {
    min-width: 140px;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
}

.language-switcher .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}


.language-switcher .dropdown-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* RTL Support for Search Form */
.search-input {
    border-radius: 25px 0 0 25px;
}

.search-btn {
    border-radius: 0 25px 25px 0;
}

[dir="rtl"] .search-input {
    border-radius: 0 25px 25px 0;
}

[dir="rtl"] .search-btn {
    border-radius: 25px 0 0 25px;
}

/* RTL Search Form Layout */


[dir="rtl"] .me-4 {
    margin-right: 0;
    margin-left: 1.5rem;
}

/* RTL Icon Spacing */
[dir="rtl"] .nav-link i {
    margin-left: 0.25rem;
    margin-right: 0;
}

[dir="ltr"] .nav-link i {
    margin-right: 0.25rem;
    margin-left: 0;
}

/* RTL Language Switcher */
[dir="rtl"] .language-switcher .me-2 {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* RTL Navbar Collapse */
[dir="rtl"] .navbar-collapse {
    text-align: right;
}

[dir="rtl"] .navbar-nav {
    margin-left: auto;
    margin-right: 0;
}

/* Modern Sections - Improved spacing and flow */
.section {
    padding: 40px 0; /* Increased padding */
    position: relative;
    z-index: 1;
}

/* Reduce section padding on mobile */
@media (max-width: 768px) {
    .section {
        padding: 30px 0; /* Reduced padding on mobile */
    }
}

@media (max-width: 480px) {
    .section {
        padding: 25px 0; /* Minimum padding on smallest screens */
    }
}

/* First section after slider gets special treatment */
.revira-hero-slider + .section {
    margin-top: -10px; /* Slight overlap for smoother transition */
    padding-top: 50px; /* More top padding */
    background: linear-gradient(180deg, rgba(240,240,240,0.9) 0%, rgba(248,248,248,1) 100%); /* Gradient background */
    border-top-left-radius: 20px; /* Rounded top corners */
    border-top-right-radius: 20px;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
}

/* Reduce space between slider and section on mobile */
@media (max-width: 768px) {
    .revira-hero-slider + .section {
        margin-top: -25px; /* More overlap on mobile */
        padding-top: 35px; /* Less top padding */
        border-top-left-radius: 15px; /* Smaller radius */
        border-top-right-radius: 15px;
    }
}

/* Even more reduction for smallest screens */
@media (max-width: 480px) {
    .revira-hero-slider + .section {
        margin-top: -35px; /* Maximum overlap on small mobile */
        padding-top: 30px; /* Minimum top padding */
        border-top-left-radius: 12px; /* Smallest radius */
        border-top-right-radius: 12px;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile page headers - reduce height and font size */
@media (max-width: 768px) {
    /* Page header sections */
    .text-white.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Main page titles */
    .display-4 {
        font-size: 2rem !important;
    }
    
    /* Page header lead text */
    .text-white .lead {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Section subtitles */
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Even smaller on very small screens */
    .text-white.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .display-4 {
        font-size: 1.75rem !important;
    }
    
    .text-white .lead {
        font-size: 0.95rem !important;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Ultra-compact product cards for very small screens */
    .product-card {
        margin-bottom: 0.5rem !important;
    }
    
    .product-card .card-body {
        padding: 0.6rem !important;
    }
    
    .product-card .card-title {
        font-size: 0.85rem !important;
        margin-bottom: 0.3rem !important;
    }
    

    
    .product-card .btn {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.7rem !important;
    }
    
    /* Ultra-compact agent and news cards for very small screens */
    .section .card .card-title {
        font-size: 0.8rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .section .card .btn {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    
    .section .card .card-body {
        padding: 0.6rem !important;
    }
    
    /* Agent logos even smaller on very small screens */
    .agent-logo,
    .agent-index-logo {
        max-height: 45px !important;
        max-width: 90px !important;
    }
    
    /* Contact info text smaller */
    .contact-info p {
        font-size: 0.75rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .contact-info i {
        font-size: 0.7rem !important;
    }
    
    .product-card .h5,
    .product-card .h6 {
        font-size: 0.8rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .product-card .badge {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem;
    }
    
    /* Tighter grid spacing for very small screens */
    .row.g-4 {
        --bs-gutter-y: 0.4rem;
        --bs-gutter-x: 0.4rem;
    }
    
    .col-lg-4.col-md-6.mb-4,
    .col-lg-3.col-md-6 {
        margin-bottom: 0.5rem !important;
        padding-left: 0.2rem !important;
        padding-right: 0.2rem !important;
    }
}

/* Navigation icons above text */
.navbar-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem 1rem;
}

.navbar-nav .nav-link i {
    margin-bottom: 0.25rem;
    margin-right: 0 !important;
    font-size: 1.1rem;
}

.navbar-nav .dropdown-toggle::after {
    margin-top: 0.25rem;
    margin-left: 0;
}

/* Header positioning below top bar */
header.sticky-top {
    position: fixed !important;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
}

/* Body padding to account for fixed headers */
body {
    padding-top: 120px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    header.sticky-top {
        top: 28px;
    }
    
    body {
        padding-top: 85px;
    }
    
    /* Adjust filter positioning for mobile */
    .sidebar-filters.sticky-top {
        top: 100px !important;
    }
}

/* Top Bar Styles */
.top-bar {
    background-color: #789C32;
    color: white;
    font-size: 14px;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    min-height: 50px;
    display: flex;
    align-items: center;
    width: 100%;
}

.top-bar .container {
    position: relative;
}

.top-bar .row {
    margin: 0;
    width: 100%;
    align-items: center;
    min-height: inherit;
    flex-wrap: nowrap !important;
}

.top-bar .col-md-6 {
    padding: 0 15px;
    display: flex;
    align-items: center;
    min-height: inherit;
    flex: 1;
    min-width: 0;
}

.top-bar .social-icons a {
    color: white;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    padding: 2px 4px;
}

.top-bar .social-icons a:hover {
    color: #ffc107;
    transform: translateY(-2px);
}

/* Hide social icons on mobile screens */
@media (max-width: 991px) {
    .top-bar .social-icons,
    .social-icons,
    .col-md-6 .social-icons,
    .d-flex .social-icons {
        display: none !important;
        visibility: hidden !important;
    }
    
    .social-icons a {
        display: none !important;
    }
}

.top-bar .language-switcher .dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.top-bar .language-switcher .dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Ensure single line layout */
.top-bar .col-md-6:first-child .d-flex {
    flex-wrap: nowrap;
    gap: 10px;
}

.top-bar .col-md-6:first-child span {
    white-space: nowrap;
    font-size: 13px;
}

.top-bar .col-md-6:last-child .d-flex {
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-end;
}

.top-bar .language-switcher {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
}

[dir="rtl"] .top-bar .language-switcher {
    right: auto !important;
    left: 15px !important;
}

.top-bar .social-icons {
    position: absolute !important;
    right: 120px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    display: flex !important;
    gap: 8px;
    padding-right: 15px;
}

[dir="rtl"] .top-bar .social-icons {
    right: auto !important;
    left: 120px !important;
    padding-right: 0;
    padding-left: 15px;
}

/* Mobile responsiveness for top bar */
@media (max-width: 768px) {
    .top-bar {
        padding: 2px 0;
        font-size: 10px;
        min-height: 28px;
    }
    
    .top-bar .row {
        align-items: center;
        min-height: inherit;
        flex-wrap: nowrap !important;
    }
    
    .top-bar .col-md-6 {
        flex: 1;
        min-width: 0;
        padding: 0 8px;
    }
    
    .top-bar .col-md-6:first-child {
        display: flex;
        align-items: center;
        gap: 5px;
        min-height: inherit;
    }
    
    .top-bar .col-md-6:first-child .d-flex {
        gap: 5px;
        flex-wrap: nowrap;
    }
    
    .top-bar .col-md-6:first-child span {
        white-space: nowrap;
        line-height: 1.1;
        font-size: 9px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .top-bar .col-md-6:last-child .d-flex {
         gap: 5px;
         flex-wrap: nowrap;
         justify-content: flex-end;
     }
     
     .top-bar .language-switcher {
            position: absolute !important;
            right: 10px !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            z-index: 10 !important;
        }

     [dir="rtl"] .top-bar .language-switcher {
         right: auto !important;
         left: 10px !important;
     }
     
     .top-bar .social-icons {
         position: absolute !important;
         right: 80px !important;
         top: 50% !important;
         transform: translateY(-50%) !important;
         z-index: 10 !important;
         display: flex !important;
         gap: 5px;
         padding-right: 15px;
     }

     [dir="rtl"] .top-bar .social-icons {
         right: auto !important;
         left: 80px !important;
         padding-right: 0;
         padding-left: 15px;
     }
      
      .top-bar .social-icons a {
          font-size: 12px;
      }
    
    .top-bar .language-switcher .btn {
        font-size: 9px;
        padding: 2px 4px;
        min-width: auto;
        height: 22px;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }
    
    /* Adjust body padding for smaller top bar */
body {
    padding-top: 75px !important;
}

header.sticky-top {
    top: 28px !important;
}
}


.section-top-padding {
    padding-top: 9px;
}