/* Hero Section Enhancements */
.hero-placeholder {
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
}

.hero-icon {
    z-index: 2;
    position: relative;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
}

.decoration-circle:nth-child(1) {
    width: 200px;
    height: 200px;
    top: -20px;
    left: -20px;
    animation: float 3s ease-in-out infinite;
}

.decoration-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: -15px;
    right: -15px;
    animation: float 4s ease-in-out infinite reverse;
}

.decoration-circle:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 50%;
    left: -30px;
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Hero Stats */
.hero-stats {
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Enhanced Cards */
.hover-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.hover-card:hover .card-overlay {
    opacity: 1;
}

.stretched-link {
    position: relative;
}

.stretched-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .navbar-nav .dropdown-menu {
    left: auto;
    right: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.display-4 {
    font-weight: 700;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Forms */
.form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Navigation */
.navbar {
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1000;
    background-color: #343a40 !important; /* Solid dark background */
    border-bottom: 1px solid #495057;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Search Form in Navbar */
.navbar .search-form {
    max-width: 300px;
    width: 100%;
}

.navbar .search-form .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .search-form .form-control {
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.navbar .search-form .form-control:focus {
    box-shadow: none;
    border-color: rgba(255,255,255,0.5);
}

.navbar .search-form .btn {
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    color: white;
}

.navbar .search-form .btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

/* Hero Slider Section */
.hero-slider-section {
    margin-top: -45px; /* Remove margin since navbar is not fixed */
    position: relative;
    z-index: 1;
}

.hero-slider-section .component-slider {
    margin: 0 0 0 0;
}

.hero-slider-section .slider-container {
    height: 500px; /* Increased height for better visibility */
    border-radius: 0 0 0 0;
    box-shadow: none;
}

/* Dropdown menus - ensure they appear above hero slider */
.navbar .dropdown-menu {
    z-index: 1050 !important;
    position: absolute !important;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-top: 0.5rem;
    background-color: white;
    min-width: 200px;
}

.navbar .dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    color: #333;
    display: block;
    text-decoration: none;
}

.navbar .dropdown-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    text-decoration: none;
}

.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"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.1;
}

/* Featured Content */
.hover-card {
    transition: var(--transition);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Statistics */
.stat-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* Sidebar Search Form */
.sidebar .search-form .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar .search-form .form-control {
    border: 1px solid #dee2e6;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.sidebar .search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.sidebar .search-form .btn {
    border: 1px solid #dee2e6;
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: var(--primary-color);
    color: white;
}

.sidebar .search-form .btn:hover {
    background: var(--secondary-color);
    color: white;
}

.sidebar .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    border: none;
}

.number-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: #343a40;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1rem;
}

.footer p {
    color: #e9ecef; /* Light gray for paragraphs */
}

.footer a {
    color: #adb5bd; /* Light gray for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white; /* White on hover */
    text-decoration: none;
}

.footer .text-muted {
    color: #adb5bd !important; /* Override Bootstrap's text-muted */
}

.footer .social-links a {
    color: #adb5bd;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: white;
}

/* Footer form elements */
.footer .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.footer .form-control::placeholder {
    color: #adb5bd;
}

.footer .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.footer .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.footer .btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }

    .hero-section .display-4 {
        font-size: 2.5rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .sidebar {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #000080;
    }
}

/* General Enhancements */
body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

/* Enhanced Colors */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
}

/* Enhanced Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Enhanced Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Enhanced Typography */
.display-4 {
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
}

/* Back to Top Button */
#backToTop {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }

    .display-4 {
        font-size: 2.25rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .card-img-wrapper {
        height: 180px;
    }

    .hero-placeholder {
        width: 250px;
        height: 250px;
    }

    .stat-card {
        margin-bottom: 1.5rem;
    }

    #backToTop {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .hero-placeholder {
        width: 200px;
        height: 200px;
    }

    .decoration-circle {
        display: none;
    }
}

/* RTL Support Enhancements */
[dir="rtl"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
[dir="rtl"] .ms-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
[dir="rtl"] #backToTop { left: 20px; right: auto; }

/* Mobile Navigation Enhancements */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        padding: 1rem;
        margin-top: 1rem;
        border: 1px solid rgba(0,0,0,0.1);
        border-top: none;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin-bottom: 0.25rem;
        transition: all 0.2s ease;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .navbar-nav .nav-link:hover {
        background-color: rgba(102, 126, 234, 0.2);
        color: var(--primary-color);
        border-color: rgba(102, 126, 234, 0.3);
    }

    /* Hide search form on mobile */
    .navbar .search-form {
        display: none;
    }

    .dropdown-menu {
        border: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border-radius: 8px;
        margin-top: 0.5rem;
        z-index: 1050;
        position: absolute;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        transition: all 0.2s ease;
    }

    .dropdown-item:hover {
        background-color: rgba(102, 126, 234, 0.1);
        color: var(--primary-color);
    }
}

/* Enhanced Mobile Layout */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Card layouts for mobile */
    .card-body {
        padding: 1.25rem 1rem;
    }

    .card-title {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    /* Button groups on mobile */
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-group .btn {
        border-radius: 6px !important;
    }

    /* Form improvements */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }

    .form-select {
        font-size: 16px;
        padding: 0.75rem;
    }

    /* Table responsive improvements */
    .table-responsive {
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    /* Alert improvements */
    .alert {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    /* Badge improvements */
    .badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }

    /* Progress bars */
    .progress {
        height: 8px;
        border-radius: 4px;
    }

    /* Modal improvements */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 12px;
    }

    /* Offcanvas for sidebar on mobile */
    .sidebar-offcanvas {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1050;
        overflow-y: auto;
        padding: 1rem;
    }

    .sidebar-offcanvas.show {
        right: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1049;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 991px) {
    .container {
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .display-4 {
        font-size: 3rem;
    }

    .card-columns {
        column-count: 2;
    }
}

/* Large Desktop Enhancements */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .hero-section {
        padding: 6rem 0;
    }

    .display-4 {
        font-size: 4rem;
    }

    .card-columns {
        column-count: 3;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .hover-card:hover {
        transform: none;
        box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    }

    .btn:hover {
        transform: none;
    }

    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }

    .nav-link {
        padding: 0.75rem 1rem;
    }

    .form-control {
        min-height: 44px;
    }

    /* Better spacing for touch */
    .card {
        margin-bottom: 1rem;
    }

    .list-group-item {
        padding: 1rem;
    }
}

/* Landscape Mobile Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0;
    }

    .display-4 {
        font-size: 2rem;
    }

    .hero-placeholder {
        width: 150px;
        height: 150px;
    }

    .stat-card {
        padding: 1rem 0.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* Print Optimizations */
@media print {
    .container {
        max-width: none;
        padding: 0;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .btn, .navbar, .sidebar, .footer {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a {
        color: black !important;
        text-decoration: underline !important;
    }

    .card-header {
        background: #f8f9fa !important;
        color: black !important;
        border-bottom: 1px solid #ddd;
    }
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Better focus indicators */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Enhanced 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;
}

.slide.active {
    opacity: 1 !important;
    z-index: 2 !important;
    transform: scale(1); /* Normal scale for active slide */
}

/* Hero Slider Styles */
.component-slider {
    margin-bottom: 2rem;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    opacity: 0; /* Hide all slides by default */
    z-index: 1; /* Lower z-index by default */
    transform: scale(1.1); /* Slight zoom out for hidden slides */
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.slide-content h4 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.slide-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.slide-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Slider Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: white;
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-arrow::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
}

.slider-arrow.prev::before {
    border-width: 8px 12px 8px 0;
    border-color: transparent #333 transparent transparent;
}

.slider-arrow.next::before {
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slider-container {
        height: 300px;
    }

    .slide-content h4 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slide-buttons {
        flex-direction: column;
        align-items: center;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }
}

/* Search Form Styles */
.search-form .input-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-form .input-group:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.search-form .form-control {
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.search-form .form-control:focus {
    background-color: #fff;
    box-shadow: none;
    border-color: #007bff;
}

.search-form .btn {
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    transition: all 0.3s ease;
}

.search-form .btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: scale(1.05);
}

.search-form .btn:active {
    transform: scale(0.95);
}

/* Mobile Search Styles */
@media (max-width: 768px) {
    .search-form .input-group {
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .search-form .form-control {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .search-form .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Hide search in navbar on mobile - show only in sidebar */
    .navbar .search-form {
        display: none;
    }

    .sidebar .search-form {
        display: block;
    }
}

/* RTL Support for Search */
[dir="rtl"] .search-form .form-control {
    border-radius: 0 25px 25px 0;
}

[dir="rtl"] .search-form .btn {
    border-radius: 25px 0 0 25px;
}