/*
Theme Name: Pepa
Description: A professional WordPress theme for veterinary radiology consultation services, similar to neshatvet.com
Version: 1.0.0
Author: Milad Rahimi
Text Domain: vet-radiology
*/

@font-face {
    font-family: Vazirmatn;
    src: url("./fonts/Vazirmatn-Thin.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url("./fonts/Vazirmatn-ExtraLight.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url("./fonts/Vazirmatn-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url("./fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url("./fonts/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url("./fonts/Vazirmatn-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url("./fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url("./fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url("./fonts/Vazirmatn-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --primary-color: #2C5282;
    --secondary-color: #4FD1C7;
    --accent-color: #ED8936;
    --text-dark: #2D3748;
    --text-light: #718096;
    --bg-light: #F7FAFC;
    --border-color: #E2E8F0;
    --white: #ffffff;
    --success-color: #38A169;
    --warning-color: #ED8936;
    --danger-color: #E53E3E;
    --info-color: #4FD1C7;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn" !important;
    line-height: 1.6;
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2A4A72;
    text-decoration: none;
}

/* Header and Navigation */
.navbar {
    background: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}


.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
    left: 10%;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2A4A72 100%);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2A4A72 0%, #1A365D 100%);
    border-color: #2A4A72;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 82, 130, 0.3);
    color: var(--white);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #38B2AC 100%);
    border-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #38B2AC 0%, #2C7A7B 100%);
    border-color: #38B2AC;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 209, 199, 0.3);
    color: var(--white);
}

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

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

.btn-outline-secondary {
    border-color: var(--text-light);
    color: black;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--text-light);
    border-color: var(--text-light);
    color: var(--white);
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.card-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, #EDF2F7 100%);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    border-radius: 15px 15px 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}

/* Hero Slider */
.hero-slider {
    height: 500px;
    overflow: hidden;
    position: relative;
}

.hero-slider .carousel-item {
    height: 500px;
    position: relative;
}

.hero-slider .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(44, 82, 130, 0.9);
    border-radius: 15px;
    padding: 2rem;
    bottom: 50px;
    right: 50px;
    left: auto;
    text-align: right;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.carousel-caption h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.carousel-caption p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* Section Titles */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    font-size: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, #38B2AC 100%);
    border-radius: 2px;
}

/* Expert Cards */
.expert-card .card-img-top {
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Service Cards */
.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.service-card .card-body {
    text-align: center;
}

/* Hospital Section */
.hospital-list {
    background: linear-gradient(135deg, var(--bg-light) 0%, #EDF2F7 100%);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.hospital-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    transition: background 0.3s ease;
}

.hospital-item:last-child {
    border-bottom: none;
}

.hospital-item:hover {
    background: rgba(79, 209, 199, 0.05);
    border-radius: 10px;
    padding: 1.5rem 1rem;
}

/* FAQ Section */
.faq-accordion .accordion-button {
    background: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 10px !important;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2A4A72 100%);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(44, 82, 130, 0.2);
}

.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(79, 209, 199, 0.25);
}

.faq-accordion .accordion-body {
    border-radius: 0 0 10px 10px;
    background: #FAFAFA;
    border: 1px solid var(--border-color);
    border-top: none;
}

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

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 209, 199, 0.25);
    outline: none;
}

.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.2rem rgba(56, 161, 105, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(229, 62, 62, 0.25);
}

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

.form-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Modals */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2A4A72 100%);
    color: var(--white);
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 2rem;
}

/* Tables */
.table {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table thead th {
    background: linear-gradient(135deg, var(--bg-light) 0%, #EDF2F7 100%);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #F1F5F9;
}

.table tbody tr:hover {
    background: rgba(79, 209, 199, 0.05);
}

/* Badges */
.badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.8rem;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #DD6B20 100%) !important;
    color: var(--white);
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #2F855A 100%) !important;
    color: var(--white);
}

.badge.bg-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #38B2AC 100%) !important;
    color: var(--white);
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #C53030 100%) !important;
    color: var(--white);
}

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

.alert-info {
    background: linear-gradient(135deg, rgba(79, 209, 199, 0.1) 0%, rgba(56, 178, 172, 0.1) 100%);
    color: #2C7A7B;
    border-left: 4px solid var(--info-color);
}

.alert-success {
    background: linear-gradient(135deg, rgba(56, 161, 105, 0.1) 0%, rgba(47, 133, 90, 0.1) 100%);
    color: #22543D;
    border-left: 4px solid var(--success-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.1) 0%, rgba(221, 107, 32, 0.1) 100%);
    color: #7B341E;
    border-left: 4px solid var(--warning-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.1) 0%, rgba(197, 48, 48, 0.1) 100%);
    color: #742A2A;
    border-left: 4px solid var(--danger-color);
}

/* Breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, var(--bg-light) 0%, #EDF2F7 100%);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.breadcrumb-item {
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "◀";
    float: right;
    color: var(--text-light);
    margin: 0 0.5rem;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1A202C 100%);
    color: #E2E8F0;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

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

.footer .list-unstyled li {
    margin-bottom: 0.75rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(79, 209, 199, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* WhatsApp Widget */
#whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#whatsapp-widget .btn {
    width: 60px;
    height: 60px;
    border-radius: 50% !important;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.5);
    }
    100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    }
}

/* Profile Page Styles */
.profile-stats {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #38B2AC 100%);
    color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-stats h3 {
    color: var(--white);
    margin-bottom: 0;
}

.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-radius: 10px 10px 0 0;
    margin-left: 0.25rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: whitesmoke;
    background: rgba(79, 209, 199, 0.1);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: var(--white);
    border-bottom: 3px solid var(--secondary-color);
    font-weight: 600;
}

/* File Upload Previews */
.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.preview-item {
    text-align: center;
}

.preview-item img {
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.file-icon {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Message Container */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    z-index: 9999;
    max-width: 500px;
    margin: 0 auto;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
}

#backToTop:hover {
    background: #2A4A72;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 400px;
    }

    .hero-slider .carousel-item {
        height: 400px;
    }

    .carousel-caption {
        right: 20px;
        bottom: 30px;
        left: 20px;
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .navbar-collapse {
        background: var(--white);
        margin-top: 1rem;
        border-radius: 10px;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-link::after {
        display: none;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }

    .hero-slider {
        height: 300px;
    }

    .hero-slider .carousel-item {
        height: 300px;
    }

    .carousel-caption {
        right: 15px;
        bottom: 20px;
        left: 15px;
        padding: 1rem;
    }

    .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .card-body {
        padding: 1rem;
    }

    .hospital-list {
        padding: 1rem;
    }

    .hospital-item {
        padding: 1rem 0;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .table-responsive {
        font-size: 0.9rem;
    }

    .profile-stats {
        padding: 1.5rem;
        text-align: center;
    }

    .message-container {
        right: 10px;
        left: 10px;
    }

    #whatsapp-widget {
        bottom: 15px;
        right: 15px;
    }

    #backToTop {
        bottom: 70px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }


    #navbarNav > div > a.nav-link.btn.btn-primary {
        margin-left: 0 !important;
        margin-bottom: 3px;
    }

    .card {
        margin-bottom: 1rem;
    }

    .expert-card .card-img-top,
    .service-card .card-img-top {
        height: 180px;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .breadcrumb {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }

    .footer .row > div {
        margin-bottom: 2rem;
    }
}

@media (max-width: 500px) {
    .expert-card .card-img-top {
        object-fit: contain !important
    }
}


/* Print Styles */
@media print {
    .navbar,
    .footer,
    #whatsapp-widget,
    #backToTop,
    .btn,
    .modal {
        display: none !important;
    }

    .container {
        max-width: 100% !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .card-body {
        padding: 1rem !important;
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }

    .table {
        box-shadow: none !important;
    }

    .table thead th {
        background: #f8f9fa !important;
        color: #000 !important;
    }
}

/* 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 for better accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }

    .btn-primary {
        background: #000;
        border-color: #000;
    }

    .btn-primary:hover {
        background: #333;
        border-color: #333;
    }
}

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

    .carousel {
        transition: none;
    }

    #whatsapp-widget .btn {
        animation: none;
    }
}

/* Custom Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.border-secondary-custom {
    border-color: var(--secondary-color) !important;
}

.custom-input-right-radius {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.custom-button-radius {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.accordion-button::after {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.article-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

/* استایل indicators برای کاروسل */
#articlesCarousel .carousel-indicators {
    gap: 10px;
}

#articlesCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #007bff;
    background-color: transparent;
    opacity: 0.5;
    transition: all 0.3s ease;
}

#articlesCarousel .carousel-indicators button.active {
    background-color: #007bff;
    opacity: 1;
    transform: scale(1.2);
}

/* استایل کنترل‌های کاروسل */
#articlesCarousel .carousel-control-prev,
#articlesCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 123, 255, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

#articlesCarousel .carousel-control-prev {
    left: -25px;
}

#articlesCarousel .carousel-control-next {
    right: -25px;
}

#articlesCarousel .carousel-control-prev:hover,
#articlesCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: #007bff;
    transform: translateY(-50%) scale(1.1);
}

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

/* انیمیشن نرم برای تغییر اسلاید */
#articlesCarousel .carousel-item {
    transition: transform 0.8s ease-in-out;
}

/* بهبود نمایش در موبایل */
@media (max-width: 767.98px) {
    #articlesCarousel {
        margin: 0 -15px;
        padding: 0 15px;
    }

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

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

    .article-card .card-body {
        padding: 1.5rem;
    }
}

/* حالت تاریک برای کنترل‌ها در صورت نیاز */
@media (prefers-color-scheme: dark) {
    #articlesCarousel .carousel-control-prev,
    #articlesCarousel .carousel-control-next {
        background-color: rgba(108, 117, 125, 0.8);
    }

    #articlesCarousel .carousel-control-prev:hover,
    #articlesCarousel .carousel-control-next:hover {
        background-color: #6c757d;
    }
}


/* استایل‌های کاروسل خدمات */
.service-card {
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

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

/* استایل indicators برای کاروسل خدمات */
#servicesCarousel .carousel-indicators {
    gap: 8px;
    margin-bottom: 2rem;
}

#servicesCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #28a745;
    background-color: transparent;
    opacity: 0.4;
    transition: all 0.3s ease;
}

#servicesCarousel .carousel-indicators button.active {
    background-color: #28a745;
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

/* استایل کنترل‌های کاروسل */
#servicesCarousel .carousel-control-prev,
#servicesCarousel .carousel-control-next {
    width: 55px;
    height: 55px;
    background-color: rgba(40, 167, 69, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    border: 3px solid rgba(255,255,255,0.8);
}

#servicesCarousel .carousel-control-prev {
    left: -30px;
}

#servicesCarousel .carousel-control-next {
    right: -30px;
}

#servicesCarousel .carousel-control-prev:hover,
#servicesCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: #28a745;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

#servicesCarousel .carousel-control-prev-icon,
#servicesCarousel .carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* انیمیشن‌های خاص */
#servicesCarousel .carousel-item {
    transition: transform 0.8s ease-in-out;
}

#servicesCarousel .service-card .card-body {
    padding: 2rem 1.5rem;
}

/* بهبود نمایش آیکون‌ها */
.service-card .fas {
    transition: all 0.3s ease;
}

.service-card:hover .fas {
    transform: scale(1.1);
    color: #28a745 !important;
}

/* استایل‌های موبایل */
@media (max-width: 991.98px) {
    #servicesCarousel {
        margin: 0 -20px;
        padding: 0 20px;
    }

    #servicesCarousel .carousel-control-prev {
        left: 5px;
        width: 45px;
        height: 45px;
    }

    #servicesCarousel .carousel-control-next {
        right: 5px;
        width: 45px;
        height: 45px;
    }

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

    .service-card .card-body {
        padding: 2rem 1.5rem;
    }

    .service-card .card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 575.98px) {
    #servicesCarousel .carousel-control-prev,
    #servicesCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    #servicesCarousel .carousel-control-prev-icon,
    #servicesCarousel .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }
}

/* بهبود badge ها */
.badge.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.1) !important;
    font-size: 0.9rem;
    font-weight: 500;
}

/* حالت تاریک */
@media (prefers-color-scheme: dark) {
    #servicesCarousel .carousel-control-prev,
    #servicesCarousel .carousel-control-next {
        background-color: rgba(108, 117, 125, 0.9);
        border-color: rgba(255,255,255,0.6);
    }

    #servicesCarousel .carousel-control-prev:hover,
    #servicesCarousel .carousel-control-next:hover {
        background-color: #6c757d;
    }

    #servicesCarousel .carousel-indicators button {
        border-color: #6c757d;
    }

    #servicesCarousel .carousel-indicators button.active {
        background-color: #6c757d;
    }
}

/* Progressive Enhancement */
@supports (backdrop-filter: blur(10px)) {
    #servicesCarousel .carousel-control-prev,
    #servicesCarousel .carousel-control-next {
        backdrop-filter: blur(10px);
        background-color: rgba(40, 167, 69, 0.7);
    }
}

/* Slider responsive images - HERO SLIDER SPECIFIC */
.hero-slider .carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .hero-slider .carousel-item img {
        height: 400px;
    }

    .hero-slider .carousel-caption {
        padding: 1rem;
    }

    .hero-slider .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .hero-slider .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .hero-slider .carousel-item img {
        height: 300px;
    }
}

/* Admin preview improvements for slider meta boxes */
#mobile-image-preview img {
    max-height: 200px;
    object-fit: cover;
}

/* Ensure proper responsive display for slider images */
.hero-slider .d-none.d-md-block {
    display: none !important;
}

.hero-slider .d-md-none {
    display: block !important;
}

@media (min-width: 768px) {
    .hero-slider .d-none.d-md-block {
        display: block !important;
    }

    .hero-slider .d-md-none {
        display: none !important;
    }
}

