/* ========================================
   MetaMatab - Main Stylesheet
   ======================================== */

/* Base Styles */
* {
    font-family: 'IRANYekan', sans-serif;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    direction: rtl;
    background-color: #f9fafb;
    overflow-x: hidden;
    max-width: 100vw;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background-image: url('../img/background.webp');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    min-height: 90vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
    padding-bottom: 0;
}

/* Doctor Container with Patterns */
.doctor-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.doctor-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 1200px;
    background-image: url('../img/radial-back.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 1;
}

.doctor-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    background-image: url('../img/pattern.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.9;
}

.hero-section .doctor-image {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    height: 85vh;
    width: auto;
    object-fit: contain;
    object-position: center bottom;
    transform-origin: center bottom;
}

.doctor-container-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: -120px;
}

/* ========================================
   Stat Cards
   ======================================== */
.stat-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.stat-card.gradient {
    background: linear-gradient(135deg, #00CED5 0%, #4DD9D9 50%, #8DE5B5 75%, #FFB700 100%);
}

.stat-card.gradient .stat-title {
    color: rgba(255, 255, 255, 0.9);
}

.stat-card.gradient .stat-value {
    color: white;
}

.stat-card.gradient .stat-icon {
    background: rgba(255, 255, 255, 0.25);
}

.stat-card.gradient .stat-icon svg {
    color: white;
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card .stat-title {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 2px;
}

.stat-card .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
}

/* ========================================
   Search Box
   ======================================== */
.search-box {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: white;
}

/* ========================================
   Navigation
   ======================================== */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    padding: 10px 20px;
    color: #6b7280;
}

.nav-link:hover {
    color: #00CED5;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: 50%;
    transform: translateX(50%) scaleX(0);
    width: 40px;
    height: 5px;
    background: linear-gradient(90deg, #00CED5 0%, #FFB700 100%);
    border-radius: 20px 20px 0 0;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(50%) scaleX(1);
}

.nav-link.active {
    color: #1f2937;
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: 50%;
    transform: translateX(50%);
    width: 40px;
    height: 5px;
    background: linear-gradient(90deg, #00CED5 0%, #FFB700 100%);
    border-radius: 20px 20px 0 0;
    animation: curveIn 0.3s ease-out;
}

@keyframes curveIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 40px;
        opacity: 1;
    }
}

/* ========================================
   Buttons
   ======================================== */

/* Primary Button - Gradient */
.btn-primary {
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    border-radius: 12px;
    padding: 12px 24px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 206, 213, 0.35);
}

/* Secondary Button - Outlined */
.btn-secondary {
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 24px;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: #00CED5;
    color: #00CED5;
}

/* Search Button */
.btn-search {
    background: linear-gradient(135deg, #FFB700 0%, #E5A500 100%);
    border-radius: 12px;
    padding: 13px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 183, 0, 0.4);
}

/* Icon Button */
.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-icon:hover {
    border-color: #00CED5;
    color: #00CED5;
}

/* ========================================
   Form Elements
   ======================================== */
.form-select,
.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background-color: #f9fafb;
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-select:focus,
.form-input:focus {
    border-color: #00CED5;
    box-shadow: 0 0 0 3px rgba(0, 206, 213, 0.15);
}

.form-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 4px;
}

/* ========================================
   Animations
   ======================================== */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   Categories Section
   ======================================== */
.categories-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.section-title {
    background: linear-gradient(90deg, #00CED5 0%, #FFB700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 900;
}

.categories-grid {
    margin: 0 auto;
    overflow: hidden;
}

.categories-swiper {
    overflow: hidden;
    width: 100%;
}

/* Desktop: categories as flex grid (Swiper disabled via breakpoint) */
@media (min-width: 769px) {
    .categories-swiper .swiper-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 16px !important;
        transform: none !important;
    }
    .categories-swiper .swiper-slide {
        width: 175px !important;
        flex-shrink: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .categories-swiper-pagination {
        display: none !important;
    }
}

/* Mobile: Swiper active - let Swiper control layout */
@media (max-width: 768px) {
    .categories-grid .category-card {
        width: 100%;
        height: 140px;
    }
    .categories-swiper-pagination {
        text-align: center;
        margin-top: 16px;
    }
    .categories-swiper-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: #ccc;
        opacity: 1;
        margin: 0 4px;
        border-radius: 50%;
        display: inline-block;
    }
    .categories-swiper-pagination .swiper-pagination-bullet-active {
        background: #00CED5;
    }
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 20px 28px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid #DCDCDC;
    box-shadow: none;
    width: 175px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #00CED5 0%, #4DD9D9 30%, #8DE5B5 60%, #FFB700 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 14px;
    z-index: 0;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 206, 213, 0.25);
    border-color: transparent;
}

.category-card .card-content {
    position: relative;
    z-index: 1;
}

.category-card .icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.category-card .icon-wrapper img {
    max-width: 55px;
    max-height: 55px;
    transition: all 0.4s ease;
}

.category-card:hover .icon-wrapper img {
    filter: brightness(0) invert(1);
}

.category-card .card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 6px;
    transition: color 0.4s ease;
}

.category-card:hover .card-title {
    color: white;
}

.category-card .card-count {
    font-size: 1.25rem;
    font-weight: 800;
    color: #DCDCDC;
    transition: color 0.4s ease;
}

.category-card:hover .card-count {
    color: white;
}

/* Category Card Bubbles */
.category-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 0;
    animation: bubbleFloat linear forwards;
}

@keyframes bubbleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    15% {
        opacity: 1;
    }
    80% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) scale(1);
    }
}

/* ========================================
   Packages Section
   ======================================== */
.packages-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.packages-grid {
    margin: 0 auto;
    padding-top: 15px;
    position: relative;
}

.packages-swiper {
    overflow: hidden;
    padding: 15px 0 8px;
    width: 100%;
    position: relative;
}

/* Pagination — all viewports */
.packages-swiper-pagination {
    text-align: center;
    margin-top: 20px;
}
.packages-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    margin: 0 4px;
    border-radius: 50%;
    display: inline-block;
}
.packages-swiper-pagination .swiper-pagination-bullet-active {
    background: #00CED5;
}

/* Navigation arrows — themed to match testimonials nav */
.packages-grid .packages-swiper-button-prev,
.packages-grid .packages-swiper-button-next {
    position: absolute;
    top: calc(50% - 18px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    z-index: 10;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
}
.packages-grid .packages-swiper-button-next {
    background: linear-gradient(135deg, #0A0D0D 26%, #00CED5 100%);
    color: #ffffff;
}
.packages-grid .packages-swiper-button-prev {
    background: #E5E7EB;
    color: #6B7280;
}
.packages-grid .packages-swiper-button-prev svg,
.packages-grid .packages-swiper-button-next svg {
    width: 20px;
    height: 20px;
}
.packages-grid .packages-swiper-button-prev:hover,
.packages-grid .packages-swiper-button-next:hover {
    transform: translateY(-50%) scale(1.05);
}
.packages-grid .packages-swiper-button-prev:focus-visible,
.packages-grid .packages-swiper-button-next:focus-visible {
    outline: 2px solid #00CED5;
    outline-offset: 2px;
}
.packages-grid .packages-swiper-button-prev.swiper-button-disabled,
.packages-grid .packages-swiper-button-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
/* LTR positioning */
.packages-grid .packages-swiper-button-prev { left: -22px; right: auto; }
.packages-grid .packages-swiper-button-next { right: -22px; left: auto; }
/* RTL: keep prev on the leading edge (right) and next on the trailing edge (left) */
[dir="rtl"] .packages-grid .packages-swiper-button-prev { left: auto; right: -22px; }
[dir="rtl"] .packages-grid .packages-swiper-button-next { right: auto; left: -22px; }

@media (max-width: 768px) {
    .packages-grid .packages-swiper-button-prev,
    .packages-grid .packages-swiper-button-next {
        display: none;
    }
}

.packages-swiper .swiper-slide {
    height: auto;
}

.package-card {
    background: white;
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.package-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #00CED5 0%, #4DD9D9 25%, #8DE5B5 50%, #C9E88A 75%, #FFB700 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.package-card:hover::before {
    opacity: 1;
}

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

.package-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.12), rgba(255, 183, 0, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.package-card:hover .package-icon {
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.22), rgba(255, 183, 0, 0.22));
}

.package-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
}

.package-icon svg {
    width: 44px;
    height: 44px;
    color: #00CED5;
}

.package-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #212121;
    margin-bottom: 8px;
}

.package-description {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.package-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    text-decoration: none;
}

.package-details-btn svg {
    transition: all 0.3s ease;
}

.package-details-btn:hover {
    border-color: #00CED5;
    color: #00CED5;
}

.package-card:hover .package-details-btn {
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    color: white;
    border-color: transparent;
}

/* ========================================
   Doctors Section
   ======================================== */
.doctors-section {
    padding: 80px 0;
    background-color: white;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #0A0D0D 26%, #00CED5 100%);
    color: white;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 206, 213, 0.3);
}

.doctors-swiper {
    overflow: hidden;
}

.doctors-swiper .swiper-slide {
    height: auto;
}

@media (max-width: 640px) {
    .view-all-btn {
        display: none;
    }
}

.doctor-card {
    background: white;
    border-radius: 16px;
    padding: 14px;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;
}

.doctor-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(90deg, #00CED5 0%, #4DD9D9 25%, #8DE5B5 50%, #C9E88A 75%, #FFB700 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.doctor-card:hover::before {
    opacity: 1;
}

.doctor-card:hover {
    box-shadow: 0 10px 30px rgba(0, 206, 213, 0.1);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-direction: row-reverse;
}

.card-rating svg {
    width: 18px;
    height: 18px;
    color: #FFB700;
}

.card-rating span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #212121;
}

.card-info-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.doctor-card .card-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doctor-info {
    flex: 1;
}

.doctor-name {
    font-size: 1rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 4px;
}

.doctor-specialty {
    font-size: 0.85rem;
    color: #00CED5;
    font-weight: 600;
    margin-bottom: 8px;
}

.doctor-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 0.85rem;
}

.doctor-location svg {
    width: 18px;
    height: 18px;
    color: #9ca3af;
}

.doctor-image {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    flex-direction: row-reverse;
}

.card-arrow-btn {
    width: auto;
    height: 44px;
    padding: 0 20px;
    gap: 10px;
    border-radius: 12px;
    background: #e5e7eb;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-decoration: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.card-arrow-btn span {
    color: inherit;
    white-space: nowrap;
}

.card-arrow-btn svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.doctor-card:hover .card-arrow-btn {
    background: linear-gradient(135deg, #0A0D0D 26%, #00CED5 100%);
    color: white;
}

.doctor-card:hover .card-arrow-btn svg {
    color: white;
}

/* Pagination Dots */
.doctors-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.doctors-pagination .dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.doctors-pagination .dot.active {
    width: 32px;
    background: linear-gradient(90deg, #00CED5 0%, #FFB700 100%);
    opacity: 1;
}

/* ========================================
   Top Doctors Section (پزشکان برتر)
   ======================================== */
.top-doctors-section {
    padding: 80px 0 60px;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
}


/* Header Row - single line */
.top-docs-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap: 24px;
    margin-bottom: 32px;
}

/* Title */
.top-docs-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, #00CED5 0%, #FFB700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

/* Tabs */
.top-docs-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.top-docs-tab {
    padding: 10px 22px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.top-docs-tab:hover {
    border-color: #00CED5;
    color: #00CED5;
}

.top-docs-tab.active {
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    color: white;
    border: none;
}

/* Navigation Buttons */
.top-docs-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.top-docs-nav-btn svg {
    width: 20px;
    height: 20px;
}

.top-docs-prev-btn {
        background: #E5E7EB;
}

.top-docs-prev-btn svg {
    color: #6B7280;
}

.top-docs-next-btn {
        background: linear-gradient(135deg, #0A0D0D 26%, #00CED5 100%);

     color: white;

}

.top-docs-next-btn svg {
    color: #fff;
}

.top-docs-nav-btn:hover {
    transform: scale(1.05);
}

/* Slider Wrapper */
.top-doctors-slider-wrapper {
    position: relative;
    z-index: 1;
}

/* Background Wave Shape */
.top-docs-bg-shape {
    position: absolute;
    bottom: -50%;
    left: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

.top-doctors-swiper {
    overflow: visible !important;
    padding-bottom: 10px;
}

.top-doctors-swiper .swiper-slide {
    height: auto;
}

/* Doctor Card */
.top-doctor-card {
    background: white;
    border-radius: 20px;
    padding: 20px 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

/* Card bottom gradient bar */
.top-doctor-card-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #00CED5 0%, #4DD9D9 25%, #8DE5B5 50%, #C9E88A 75%, #FFB700 100%);
    border-radius: 0 0 20px 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.top-doctor-card:hover .top-doctor-card-bg {
    opacity: 0;
}

/* Hover border effect */
.top-doctor-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #00CED5 0%, #4DD9D9 25%, #8DE5B5 50%, #C9E88A 75%, #FFB700 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.top-doctor-card:hover::before {
    opacity: 1;
}

.top-doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 206, 213, 0.15);
}

/* Doctor Image */
.top-doctor-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 14px;
    border: 3px solid #f3f4f6;
    transition: border-color 0.4s ease;
    flex-shrink: 0;
}

.top-doctor-card:hover .top-doctor-img {
    border-color: #00CED5;
}

.top-doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Doctor Name */
.top-doctor-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #212121;
    margin-bottom: 6px;
}

/* Doctor Specialty */
.top-doctor-specialty {
    font-size: 0.85rem;
    font-weight: 600;
    color: #00CED5;
    margin-bottom: 14px;
}

/* Doctor Meta Info */
.top-doctor-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 16px;
}

.top-doctor-meta-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6b7280;
    font-size: 0.8rem;
    flex-direction: row-reverse;
}

.top-doctor-meta-item svg {
    color: #9ca3af;
    flex-shrink: 0;
}

/* Doctor Footer (Rating + Button) */
.top-doctor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    flex-direction: row-reverse;
}

/* Rating */
.top-doctor-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-direction: row-reverse;
}

.top-doctor-rating svg {
    width: 20px;
    height: 20px;
    color: #FFB700;
}

.top-doctor-rating span {
    font-size: 1rem;
    font-weight: 700;
    color: #212121;
}

/* Reserve Button */
.top-doctor-reserve-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.top-doctor-reserve-btn svg {
    transition: all 0.3s ease;
}

.top-doctor-reserve-btn:hover {
    border-color: #00CED5;
    color: #00CED5;
}

.top-doctor-card:hover .top-doctor-reserve-btn {
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    color: white;
    border: none;
}

/* Pagination */
.top-doctors-pagination {
    display: flex;
    justify-content: center;
    padding-top: 30px;
    position: relative;
    z-index: 1;
}

.top-docs-swiper-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.top-docs-swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 6px;
    border-radius: 4px;
    background: #e5e7eb;
    opacity: 1;
    transition: all 0.3s ease;
}

.top-docs-swiper-pagination .swiper-pagination-bullet-active {
    width: 32px;
    background: linear-gradient(90deg, #00CED5 0%, #FFB700 100%);
}

/* Responsive */
@media (max-width: 1024px) {
    .top-docs-tabs {
        gap: 8px;
    }

    .top-docs-tab {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    .top-doctors-geo-shape {
        width: 280px;
        height: 280px;
        top: -40px;
        right: -60px;
    }
}

@media (max-width: 768px) {
    .top-docs-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .top-docs-header-row > div:last-child {
        order: -1;
    }

    .top-docs-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .top-docs-tabs::-webkit-scrollbar {
        display: none;
    }

    .top-doctors-geo-shape {
        width: 200px;
        height: 200px;
        top: -30px;
        right: -40px;
    }

    .top-docs-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-section {
    padding: 80px 0;
    background-color: white;
    overflow: hidden;
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.testimonials-nav {
    display: flex;
    gap: 12px;
}

.testimonials-nav button {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.testimonials-nav button svg {
    width: 20px;
    height: 20px;
    color: white;
}

.testimonials-nav .next-btn {
    background: linear-gradient(135deg, #0A0D0D 26%, #00CED5 100%);
}

.testimonials-nav .prev-btn {
    background: #E5E7EB;
}

.testimonials-nav .prev-btn svg {
    color: #6B7280;
}

.testimonials-nav button:hover {
    transform: scale(1.05);
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border-radius: 16px;
    border: 2px solid #E5E7EB;
    overflow: hidden;
    transition: all 0.4s ease;
}

.testimonial-card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row-reverse;
    border-bottom: 1px solid #F3F4F6;
    background-color: #F3F4F6;
    transition: all 0.4s ease;
}

.testimonial-card:hover .testimonial-card-header,
.testimonial-card.active .testimonial-card-header {
    background: linear-gradient(135deg, #00CED5 0%, #4DD9D9 30%, #8DE5B5 60%, #FFB700 100%);
    border-bottom-color: transparent;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.user-avatar svg {
    width: 28px;
    height: 28px;
    color: #9CA3AF;
    transition: all 0.4s ease;
}

.testimonial-card:hover .user-avatar,
.testimonial-card.active .user-avatar {
    background: rgba(255, 255, 255, 0.25);
}

.testimonial-card:hover .user-avatar svg,
.testimonial-card.active .user-avatar svg {
    color: white;
}

.user-info {
    text-align: right;
    flex: 1;
}

.user-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 4px;
    transition: color 0.4s ease;
}

.testimonial-card:hover .user-name,
.testimonial-card.active .user-name {
    color: white;
}

.user-role {
    font-size: 0.85rem;
    color: #6B7280;
    transition: color 0.4s ease;
}

.testimonial-card:hover .user-role,
.testimonial-card.active .user-role {
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-card-body {
    padding: 20px;
}

.testimonial-text {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 20px;
}

.testimonial-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px;
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.testimonial-rating svg {
    width: 22px;
    height: 22px;
    color: #DCDCDC;
}

.testimonial-rating span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #DCDCDC;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.testimonial-btn {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.1) 0%, rgba(255, 183, 0, 0.1) 100%);
    color: #00CED5;
}

.testimonial-btn:hover {
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.2) 0%, rgba(255, 183, 0, 0.2) 100%);
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.testimonial-rating svg {
    width: 22px;
    height: 22px;
    color: #FFB700;
}

.testimonial-rating span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212121;
}

/* Swiper Custom Styles */
.testimonials-swiper {
    overflow: visible !important;
}

.testimonials-swiper .swiper-slide {
    height: auto;
}

/* ========================================
   Footer Section
   ======================================== */
.footer {
    background-color: #f5f5f5;
    position: relative;
}

.footer-gradient-line {
    height: 4px;
    background: linear-gradient(90deg, #00CED5 0%, #4DD9D9 25%, #8DE5B5 50%, #C9E88A 75%, #FFB700 100%);
}

.footer-content {
    padding: 50px 0 30px;
}

.footer-logo img {
    max-height: 80px;
}

.footer-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: justify;
}

.footer-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #212121;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #212121;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links li a:hover::before {
    opacity: 1;
}

.footer-links li a:hover {
    color: #00CED5;
}

.contact-item {
    background: white;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item .icon img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.contact-item .info {
    text-align: right;
    flex: 1;
}

.contact-item .info .title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212121;
    margin-bottom: 2px;
}

.contact-item .info .subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
}

.social-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212121;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 60px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links a img {
    width: 28px;
    height: 28px;
}

.social-links a svg path {
    transition: fill 0.3s ease;
}

.social-links a:hover svg path {
    fill: url(#social-gradient);
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00CED5 0%, #4DD9D9 50%, #FFB700 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 206, 213, 0.3);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 206, 213, 0.4);
}

.scroll-top-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #00CED5;
    font-weight: 600;
}

/* ========================================
   Events & News Section
   ======================================== */
.events-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.events-grid {
    display: flex;
    gap: 24px;
    flex-direction: row-reverse;
}

/* ---- Featured Slider Column (Right) ---- */
.events-featured-column {
    width: 50%;
    flex-shrink: 0;
    position: relative;
}

.events-swiper {
    overflow: hidden !important;
    border-radius: 16px;
}

.event-featured-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-featured-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
        padding: 15px;
    background: transparent;
}

.event-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.4rem;
}

.event-featured-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-featured-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 10px;
    line-height: 1.8;
}

.event-featured-desc {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 16px;
}

.event-featured-separator {
    border-bottom: 2px dashed #e5e7eb;
    margin-bottom: 16px;
}

.event-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    margin-top: auto;
}

.event-arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #e5e7eb;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.event-arrow-btn svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.event-featured-card:hover .event-arrow-btn {
    background: linear-gradient(135deg, #0A0D0D 26%, #00CED5 100%);
}

.event-featured-card:hover .event-arrow-btn svg {
    color: white;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.9rem;
}

.event-date svg {
    width: 20px;
    height: 20px;
    color: #9ca3af;
}

/* Swiper Pagination (Curved Bottom) */
.events-pagination-wrapper {
    background: transparent;
    border-radius: 0 0 16px 16px;
    padding: 16px 0;
    display: flex;
    justify-content: center;
    margin-top: -2px;
}

.events-swiper-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.events-swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 6px;
    border-radius: 4px;
    background: #e5e7eb;
    opacity: 1;
    transition: all 0.3s ease;
}

.events-swiper-pagination .swiper-pagination-bullet-active {
    width: 32px;
    background: linear-gradient(90deg, #00CED5 0%, #FFB700 100%);
}

/* ---- Static Cards Column (Left) ---- */
.events-static-column {
    width: 50%;
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
}

/* Small Event Card - Vertical Stack (image on top) */
.event-small-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
}

.event-small-card:hover {
    box-shadow: 0 14px 36px rgba(0, 206, 213, 0.15);
    transform: translateY(-3px);
    border-color: rgba(0, 206, 213, 0.25);
}

.event-small-image {
    width: 100%;
    flex: 0 0 auto;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    padding: 10px;
    background: transparent;
    position: relative;
}

.event-small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 12px;
    display: block;
}

.event-small-card:hover .event-small-image img {
    transform: scale(1.06);
}

.event-small-content {
    flex: 1;
    padding: 6px 18px 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.event-small-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0A0D0D;
    margin-bottom: 8px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-small-desc {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-small-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}

.event-small-footer .event-date {
    font-size: 0.78rem;
    color: #6b7280;
    gap: 6px;
}

.event-small-footer .event-date svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.event-small-arrow {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.event-small-arrow svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.event-small-card:hover .event-small-arrow {
    background: linear-gradient(135deg, #0A0D0D 26%, #00CED5 100%);
}

.event-small-card:hover .event-small-arrow svg {
    color: #ffffff;
}

@media (max-width: 640px) {
    .events-static-column {
        flex-direction: column;
    }

    .event-small-image {
        aspect-ratio: 16 / 9;
    }
}

/* Events Responsive */
@media (max-width: 1024px) {
    .events-grid {
        flex-direction: column;
    }

    .events-featured-column,
    .events-static-column {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .event-small-image {
        height: 160px;
    }

    .event-featured-image {
        height: 200px;
    }
}

/* ========================================
   Utilities
   ======================================== */
.text-primary {
    color: #00CED5;
}

.text-secondary {
    color: #FFB700;
}

.bg-primary {
    background-color: #00CED5;
}

.bg-secondary {
    background-color: #FFB700;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .doctor-container {
        overflow: visible;
    }

    .doctor-container::before {
        width: 400px;
        height: 400px;
    }

    .doctor-container::after {
        width: 350px;
        height: 350px;
    }

    .hero-section .doctor-image {
        height: 50vh;
    }

    .stat-card {
        padding: 8px 12px;
        z-index: 10;
    }

    .stat-card .stat-icon {
        width: 32px;
        height: 32px;
    }

    .stat-card .stat-icon svg {
        width: 18px;
        height: 18px;
    }

    .stat-card .stat-value {
        font-size: 0.75rem;
    }

    .stat-card .stat-title {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .doctor-container::before {
        width: 280px;
        height: 280px;
    }

    .doctor-container::after {
        width: 240px;
        height: 240px;
    }

    .hero-section {
        min-height: auto;
        padding-bottom: 20px;
    }

    .hero-section .doctor-image {
        height: 40vh;
    }

    .stat-card {
        padding: 6px 8px;
    }

    .stat-card .stat-icon {
        width: 28px;
        height: 28px;
    }

    .stat-card .stat-icon svg {
        width: 16px;
        height: 16px;
    }

    .stat-card .stat-value {
        font-size: 0.7rem;
    }

    .stat-card .stat-title {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .hero-section .doctor-image {
        height: 35vh;
    }

    .doctor-container::before {
        width: 220px;
        height: 220px;
    }

    .doctor-container::after {
        width: 180px;
        height: 180px;
    }

    .stat-card {
        padding: 5px 7px;
    }

    .stat-card .stat-value {
        font-size: 0.65rem;
    }

    .stat-card .stat-title {
        font-size: 0.6rem;
    }

    .stat-card .stat-icon {
        width: 24px;
        height: 24px;
    }

    .stat-card .stat-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* ========================================
   Reserve Page Styles
   ======================================== */

/* Base Card */
.reserve-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: visible;
}

.reserve-card::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 25%;
    width: 50%;
    height: 6px;
    background: linear-gradient(90deg, #00CED5 0%, #4DD9D9 25%, #8DE5B5 50%, #C9E88A 75%, #FFB700 100%);
    border-radius: 16px 16px 0 0;
}

/* Section Box (About, Tariffs) */
.reserve-section-box {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.reserve-section-header {
    background: #ffffff;
    padding: 18px 28px;
    padding-bottom: 0;
    border-bottom: 1px solid #80808045;
    text-align: right;
}

/* Reserve Page H3 */
.reserve-section-header h3,
.reserve-card h3 {
    display: inline-block;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
}

/* Gradient underline for section header titles */
.reserve-section-header h3 {
    position: relative;
    padding-bottom: 14px;
}

.reserve-section-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #00CED5 0%, #4DD9D9 25%, #8DE5B5 50%, #C9E88A 75%, #FFB700 100%);
    border-radius: 16px 16px 0 0;
}

/* Center h3 inside sidebar cards */
aside .reserve-card h3 {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Day Slider */
.day-slider-wrapper {
    position: relative;
}

.day-cards-swiper {
    overflow: hidden !important;
}

.day-cards-swiper .swiper-slide {
    height: auto;
}

.day-slider-nav-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.day-slider-nav-btn:hover {
    border-color: #00CED5;
    color: #00CED5;
}

.day-slider-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

.day-slider-nav-btn.swiper-button-disabled:hover {
    border-color: #e5e7eb;
    color: #6b7280;
}

/* Day Cards */
.day-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.day-card:hover {
    border-color: transparent;
    background: linear-gradient(to bottom, rgba(0, 206, 213, 0.06) 0%, rgba(255, 183, 0, 0.08) 50%, #f3f4f6 50%, #f3f4f6 100%) padding-box,
                linear-gradient(135deg, #00CED5 0%, #4DD9D9 30%, #8DE5B5 60%, #FFB700 100%) border-box;
    border: 2px solid transparent;
}

.day-card:hover .day-name {
    color: #fff;
    font-weight: 800;
}

.day-card.active {
    border-color: transparent;
    background: linear-gradient(to bottom, rgba(0, 206, 213, 0.06) 0%, rgba(255, 183, 0, 0.08) 50%, #f3f4f6 50%, #f3f4f6 100%) padding-box,
                linear-gradient(135deg, #00CED5 0%, #4DD9D9 30%, #8DE5B5 60%, #FFB700 100%) border-box;
    border: 2px solid transparent;
}
.day-card.active .day-name{
    color: #fff;

} 
.day-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
}

.day-card.active .day-name {
    font-weight: 800;
}

.day-date {
    font-size: 0.8rem;
    color: #000;
    font-size: 1.2rem;
}

/* Time Slots */
.time-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.time-slot:hover {
    position: relative;
    border-color: transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #00CED5 0%, #4DD9D9 30%, #8DE5B5 60%, #FFB700 100%) border-box;
    border: 2px solid transparent;
}

.time-slot:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.1) 0%, rgba(255, 183, 0, 0.1) 100%);
    pointer-events: none;
}

.time-slot:hover > * {
    position: relative;
    z-index: 1;
}

.time-slot:hover .time-from,
.time-slot:hover .time-to {
    color: #00CED5;
    font-weight: 700;
}

.time-slot:hover .time-separator {
    color: #FFB700;
}

.time-slot.active {
    position: relative;
    border-color: transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #00CED5 0%, #4DD9D9 30%, #8DE5B5 60%, #FFB700 100%) border-box;
    border: 2px solid transparent;
}

.time-slot.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.1) 0%, rgba(255, 183, 0, 0.1) 100%);
    pointer-events: none;
}

.time-slot.active > * {
    position: relative;
    z-index: 1;
}

.time-slot.active .time-from,
.time-slot.active .time-to {
    color: #00CED5;
    font-weight: 700;
}

.time-slot.active .time-separator {
    color: #FFB700;
}

.time-from,
.time-to {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.time-separator {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Confirm Button */
.reserve-confirm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 28px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, #0A0D0D 26%, #00CED5 100%);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.reserve-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 206, 213, 0.3);
}

/* Get Appointment Button (Sidebar) */
.reserve-get-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, #00CED5 0%, #4DD9D9 25%, #8DE5B5 50%, #C9E88A 75%, #FFB700 100%);
    transition: all 0.3s ease;
}

.reserve-get-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 206, 213, 0.35);
}

/* Tariff Rows */
.tariff-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.tariff-row:hover {
    background: #f3f4f6;
}

.tariff-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
}

.tariff-line {
    flex: 1;
    height: 1px;
    border-bottom: 2px dashed #e5e7eb;
}

.tariff-price {
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00CED5, #FFB700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* Service Items */
.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: #f3f4f6;
}

.service-check {
    width: 28px;
    height: 28px;
    min-width: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0A0D0D 26%, #00CED5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Facility Cards */
.facility-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: #f9fafb;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.facility-card:hover {
    position: relative;
    border-color: transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #00CED5 0%, #4DD9D9 30%, #8DE5B5 60%, #FFB700 100%) border-box;
    border: 2px solid transparent;
    box-shadow: 0 8px 20px rgba(0, 206, 213, 0.1);
    transform: translateY(-3px);
}

.facility-card:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.1) 0%, rgba(255, 183, 0, 0.1) 100%);
    pointer-events: none;
}

.facility-card:hover > * {
    position: relative;
    z-index: 1;
}

.facility-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.facility-icon svg {
    stroke: url(#facilityGradient);
}

.facility-card:hover .facility-icon {
    background: linear-gradient(135deg, #00CED5 0%, #4DD9D9 50%, #FFB700 100%);
}

.facility-card:hover .facility-icon svg {
    stroke: white;
}

.facility-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
}

/* Map Buttons */
.map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    border: none;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-btn-waze {
    background: linear-gradient(135deg, #0A0D0D 26%, #00CED5 100%);
}

.map-btn-waze:hover {
    background: linear-gradient(135deg, #0A0D0D 16%, #00CED5 100%);
}

.map-btn-google {
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
}

.map-btn-google:hover {
    background: linear-gradient(135deg, #00b8bf 0%, #E5A500 100%);
}

/* Comment Thread */
.comment-thread {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 20px;
}

.comment-thread .comment-card {
    width: 100%;
}

.comment-connector {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    height: 60%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.comment-connector img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Comment Cards */
.comment-card {
    display: flex;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, white 50%, rgba(0, 206, 213, 0.04) 75%, rgba(255, 183, 0, 0.06) 100%);
}

.comment-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.comment-border-right {
    display: none;
}

.comment-card.admin {
    position: relative;
    border-color: transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #00CED5 0%, #4DD9D9 30%, #8DE5B5 60%, #FFB700 100%) border-box;
    border: 2px solid transparent;
}

.comment-card.admin::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.1) 0%, rgba(255, 183, 0, 0.1) 100%);
    pointer-events: none;
}

.comment-card.admin > * {
    position: relative;
    z-index: 1;
}

.comment-card.admin .comment-border-right {
    display: none;
}

.comment-admin-avatar {
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
}

.comment-content {
    flex: 1;
    padding: 20px;
}

.comment-reply-btn {
    display: inline-flex;
    padding: 8px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    transition: all 0.3s ease;
    float: left;
}

.comment-reply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 206, 213, 0.35);
}

/* Comment Form */
.comment-input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.comment-input-group:focus-within {
    border-color: #00CED5;
    box-shadow: 0 0 0 3px rgba(0, 206, 213, 0.1);
}

.comment-input-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #f9fafb;
    color: #6b7280;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    border-left: 1.5px solid #e5e7eb;
}

.comment-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: #374151;
    background: transparent;
}

.comment-input::placeholder {
    color: #d1d5db;
}

.comment-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 3px dashed #e5e7eb;
    border-radius: 16px;
    outline: none;
    font-size: 0.9rem;
    color: #374151;
    background: white;
    resize: vertical;
    min-height: 140px;
    transition: all 0.3s ease;
}

.comment-textarea:focus {
    border-color: #00CED5;
}

.comment-textarea::placeholder {
    color: #d1d5db;
}

/* ========================================
   Doctors Listing Page
   ======================================== */

/* Hero / Breadcrumb */
.doctors-hero {
    background-image: url('../img/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
    border-bottom: 1px solid #e5e7eb;
}

.doctors-hero-content {
    text-align: center;
}

.doctors-hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 12px;
}

.doctors-hero-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 16px;
}

.doctors-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #9ca3af;
}

.doctors-breadcrumb a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.doctors-breadcrumb a:hover {
    color: #00B5BB;
}

.doctors-breadcrumb .current {
    color: #6b7280;
    font-weight: 600;
}

/* Listing Section */
.doctors-listing-section {
    padding: 40px 0 80px;
}

.doctors-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar */
.doctors-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.filter-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.filter-title {
    font-size: 1rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-title svg {
    width: 20px;
    height: 20px;
    color: #00CED5;
}

/* Search Input */
.filter-search {
    position: relative;
}

.filter-search-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: 'IRANYekan', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
    background: #f9fafb;
}

.filter-search-input:focus {
    border-color: #00CED5;
    background: white;
}

.filter-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Checkbox Style */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4b5563;
    transition: color 0.2s ease;
}

.filter-checkbox:hover {
    color: #212121;
}

.filter-checkbox input {
    display: none;
}

.filter-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.filter-checkbox input:checked + .checkmark {
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    border-color: transparent;
}

.filter-checkbox input:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Radio Style */
.filter-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4b5563;
    transition: color 0.2s ease;
}

.filter-radio:hover {
    color: #212121;
}

.filter-radio input {
    display: none;
}

.filter-radio .radiomark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.filter-radio input:checked + .radiomark {
    border-color: #00CED5;
}

.filter-radio input:checked + .radiomark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
}

/* Doctors Grid Wrapper */
.doctors-grid-wrapper {
    flex: 1;
    min-width: 0;
}

/* Toolbar */
.doctors-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    background: white;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.results-count {
    font-size: 0.95rem;
    color: #6b7280;
}

.results-number {
    font-weight: 700;
    color: #00CED5;
}

.sort-dropdown select {
    padding: 8px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: 'IRANYekan', sans-serif;
    color: #4b5563;
    outline: none;
    cursor: pointer;
    background: white;
    transition: border-color 0.3s ease;
}

.sort-dropdown select:focus {
    border-color: #00CED5;
}

/* Doctors Grid */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Pagination */
.doctors-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: white;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'IRANYekan', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    border-color: #00CED5;
    color: #00CED5;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    border-color: transparent;
    color: white;
    border: none;
}

.pagination-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive - Doctors Page */
@media (max-width: 1024px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctors-sidebar {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .doctors-grid-wrapper {
  margin: 0 auto;
}

    .doctors-hero-title {
        font-size: 1.5rem;
        font-weight: 900;
    }

    .doctors-layout {
        flex-direction: column;
    }

    .doctors-sidebar {
        width: 100%;
        position: static;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .doctors-toolbar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ========================================
   Mobile Typography System
   ======================================== */
@media (max-width: 768px) {

    /* H2 - Section Titles (unified to 1.5rem) */
    .section-title,
    .top-docs-title {
        font-size: 1.5rem;
        font-weight: 900;
    }

    /* H3 - Block Titles (unified to 1.15rem) */
    .package-name,
    .footer-title {
        font-size: 1rem;
        font-weight: 800;
    }

    .event-featured-title {
        font-size: 1.05rem;
        font-weight: 700;
    }

    /* H4 - Item Titles (unified to 1rem) */
    .doctor-name,
    .top-doctor-name,
    .user-name {
        font-size: 1rem;
        font-weight: 700;
    }

    /* Labels / Card Titles (unified to 0.85rem) */
    .card-title,
    .doctor-specialty,
    .top-doctor-specialty,
    .event-small-title {
        font-size: 0.85rem;
        font-weight: 700;
    }

    /* Section Subtitles (unified to 0.85rem) */
    .categories-section .text-gray-500,
    .packages-section .text-gray-500,
    .doctors-section .text-gray-500,
    .testimonials-section .text-gray-500,
    .top-doctors-section .text-gray-500,
    .events-section .text-gray-500 {
        font-size: 0.85rem;
    }

    /* Body Text (unified to 0.85rem) */
    .testimonial-text,
    .event-featured-desc,
    .package-description,
    .footer-description {
        font-size: 0.8rem;
    }

    /* Small Text (unified to 0.8rem) */
    .user-role,
    .event-date,
    .doctor-location,
    .top-doctor-meta-item,
    .contact-item .info .subtitle {
        font-size: 0.8rem;
    }

    /* Footer Links */
    .footer-links li a {
        font-size: 0.9rem;
    }

    /* ---- Reserve Page ---- */

    /* H2 - Section Titles in reserve page */
    .reserve-card > .flex > h2,
    .reserve-card > .flex > h3 {
        font-size: 1rem !important;
        font-weight: 700 !important;
    }

    /* H3 - Block Titles in reserve sections */
    .reserve-section-header h3,
    .reserve-card h3 {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
    }

    /* H4 - Sub-headings in reserve sections */
    .reserve-section-box h4 {
        font-size: 1rem !important;
        font-weight: 700 !important;
    }

    /* Tariffs */
    .tariff-name {
        font-size: 0.85rem;
        font-weight: 700;
    }
    .tariff-price {
        font-size: 0.85rem;
        font-weight: 800;
    }

    /* Facility titles */
    .facility-title {
        font-size: 0.8rem;
        font-weight: 700;
    }

    /* Social title */
    .social-title {
        font-size: 0.85rem;
        font-weight: 600;
    }

    /* ---- Doctors Listing Page ---- */

    /* Page title - already covered by .doctors-hero-title above */

    /* Page subtitle */
    .doctors-hero-subtitle {
        font-size: 0.85rem;
    }

    /* Breadcrumb */
    .doctors-breadcrumb {
        font-size: 0.8rem;
    }

    /* Filter titles */
    .filter-title {
        font-size: 0.85rem;
        font-weight: 700;
    }

    /* Filter options text */
    .filter-checkbox span,
    .filter-radio span {
        font-size: 0.85rem;
    }

    /* Results count */
    .results-count {
        font-size: 0.85rem;
    }
}

/* ========================================
   Dashboard / User Panel
   ======================================== */

/* Sidebar Navigation */
.dashboard-sidebar-nav {
    padding: 8px 0;
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.dashboard-nav-item:hover {
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.06) 0%, rgba(255, 183, 0, 0.06) 100%);
    color: #00CED5;
}

.dashboard-nav-item.active {
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.1) 0%, rgba(255, 183, 0, 0.1) 100%);
    color: #00CED5;
}

.dashboard-nav-item.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, #00CED5 0%, #FFB700 100%);
    border-radius: 0 4px 4px 0;
}

.dashboard-nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dashboard-nav-item:hover .dashboard-nav-icon,
.dashboard-nav-item.active .dashboard-nav-icon {
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    color: white;
}

.dashboard-nav-item:hover .dashboard-nav-icon svg,
.dashboard-nav-item.active .dashboard-nav-icon svg {
    color: white;
}

.dashboard-nav-icon.logout {
    background: #fef2f2;
}

.dashboard-nav-item:hover .dashboard-nav-icon.logout {
    background: #ef4444;
}

.dashboard-nav-badge {
    margin-right: auto;
    margin-left: 0;
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}

/* Welcome Banner */
.dashboard-welcome-banner {
    background: white;
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.dashboard-welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00CED5 0%, #4DD9D9 25%, #8DE5B5 50%, #C9E88A 75%, #FFB700 100%);
}

/* Stat Cards */
.dashboard-stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.dashboard-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.dashboard-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Appointment Cards */
.dashboard-appointment-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.dashboard-appointment-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.dashboard-appointment-card.past {
    opacity: 0.8;
}

.dashboard-appointment-card.past:hover {
    opacity: 1;
}

/* Status Badges */
.dashboard-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-confirmed {
    background: #ecfdf5;
    color: #059669;
}

.status-pending {
    background: #fffbeb;
    color: #d97706;
}

.status-completed {
    background: #eff6ff;
    color: #2563eb;
}

.status-cancelled {
    background: #fef2f2;
    color: #dc2626;
}

/* Action Buttons */
.dashboard-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: white;
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dashboard-action-btn:hover {
    border-color: #00CED5;
    color: #00CED5;
}

.dashboard-action-btn.primary {
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    color: white;
    border-color: transparent;
    border: none;
}

.dashboard-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 206, 213, 0.3);
}

.dashboard-action-btn.cancel {
    border-color: #fecaca;
    color: #ef4444;
}

.dashboard-action-btn.cancel:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

/* Favorite Card */
.dashboard-fav-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.dashboard-fav-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

/* Message Card */
.dashboard-message-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.dashboard-message-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.dashboard-message-card.unread {
    border-right: 4px solid #00CED5;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.03) 0%, rgba(255, 183, 0, 0.03) 100%);
}

/* Toggle Switch */
.dashboard-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.dashboard-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dashboard-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    border-radius: 26px;
    transition: 0.3s;
}

.dashboard-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    right: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-toggle input:checked + .dashboard-toggle-slider {
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
}

.dashboard-toggle input:checked + .dashboard-toggle-slider::before {
    transform: translateX(-24px);
}

/* Appointment Slots */
.appointment-slot {
    padding: 12px;
    border-radius: 14px;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.appointment-slot-time {
    font-size: 1rem;
    font-weight: 800;
    color: #374151;
    letter-spacing: 0.5px;
}

.appointment-slot-status {
    font-size: 0.7rem;
    font-weight: 700;
}

.appointment-slot-patient {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 2px;
}

.appointment-slot.reserved {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

.appointment-slot.reserved .appointment-slot-time {
    color: #16a34a;
}

.appointment-slot.reserved .appointment-slot-status {
    color: #16a34a;
}

.appointment-slot.available {
    border-color: rgba(0, 206, 213, 0.3);
    background: rgba(0, 206, 213, 0.05);
    border-style: dashed;
}

.appointment-slot.available .appointment-slot-time {
    color: #00CED5;
}

.appointment-slot.available .appointment-slot-status {
    color: #00CED5;
}

.appointment-slot.cancelled {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
    opacity: 0.7;
}

.appointment-slot.cancelled .appointment-slot-time {
    color: #ef4444;
    text-decoration: line-through;
}

.appointment-slot.cancelled .appointment-slot-status {
    color: #ef4444;
}

/* Appointment Filter Buttons */
.appointment-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: white;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'IRANYekan', sans-serif;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.appointment-filter-btn:hover {
    border-color: #00CED5;
    color: #00CED5;
}

.appointment-filter-btn.active {
    border-color: #00CED5;
    background: rgba(0, 206, 213, 0.1);
    color: #00CED5;
}

/* Dashboard Responsive */
@media (max-width: 768px) {
    .dashboard-stat-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .dashboard-appointment-card .flex-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-appointment-card > .flex.items-center.justify-between {
        flex-direction: column;
        gap: 12px;
    }

    .dashboard-status-badge {
        width: 100%;
        justify-content: center;
    }

    .dashboard-appointment-card > .flex.items-center.justify-between > .flex.items-center {
        width: 100%;
        justify-content: center;
    }

    .dashboard-appointment-card > .flex.items-center.justify-between > .flex.items-center .dashboard-action-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ========================================
   Login Modal
   ======================================== */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 16px;
    overflow-y: auto;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    margin: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.login-modal-overlay.active .login-modal {
    transform: translateY(0) scale(1);
}

.login-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 6px;
    background: linear-gradient(90deg, #00CED5 0%, #4DD9D9 25%, #8DE5B5 50%, #C9E88A 75%, #FFB700 100%);
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.login-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.login-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.login-modal-header {
    text-align: center;
    padding: 32px 24px 20px;
}

.login-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.1) 0%, rgba(255, 183, 0, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #00CED5;
}

.login-modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #212121;
    margin-bottom: 6px;
}

.login-modal-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

.login-modal-body {
    padding: 0 24px 32px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.login-input-group {
    margin-bottom: 20px;
}

.login-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrapper input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    font-size: 1rem;
    font-family: 'IRANYekan', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    background: #f9fafb;
    text-align: left;
    letter-spacing: 1px;
}

.login-input-wrapper input:focus {
    border-color: #00CED5;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 206, 213, 0.1);
}

.login-input-wrapper input::placeholder {
    color: #d1d5db;
    letter-spacing: 0;
}

.login-input-icon {
    position: absolute;
    right: 14px;
    color: #9ca3af;
    display: flex;
    pointer-events: none;
}

.login-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'IRANYekan', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 206, 213, 0.35);
}

#loginStep3 .login-input-wrapper input {
    text-align: right;
    letter-spacing: 0;
}

.login-terms-note {
    margin-top: 12px;
    font-size: 0.78rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
}

#doctorStep3 .login-modal-header {
    padding: 20px 24px 12px;
}

#doctorStep3 .login-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 10px;
}

#doctorStep3 .login-modal-icon svg {
    height: 1.5rem;
    width: 1.5rem;
}

#doctorStep3 .login-modal-title {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

#doctorStep3 .login-modal-subtitle {
    font-size: 0.82rem;
}

#doctorStep3 .login-modal-body {
    padding: 0 24px 20px;
}

#doctorStep3 .login-input-group {
    margin-bottom: 12px;
}

#doctorStep3 .login-input-group label {
    margin-bottom: 6px;
    font-size: 0.8rem;
}

#doctorStep3 .login-input-wrapper input,
#doctorStep3 .login-input-wrapper select {
    padding-top: 11px;
    padding-bottom: 11px;
}

#doctorStep3 .login-submit-btn {
    padding: 12px;
    margin-top: 6px;
}

.login-input-wrapper select {
    width: 100%;
    padding: 14px 48px 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #212121;
    background: #f9fafb;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
    cursor: pointer;
    font-family: 'IRANYekan', sans-serif;
}

.login-input-wrapper select:focus {
    border-color: #00CED5;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 206, 213, 0.1);
}

.login-input-wrapper select option[value=""] {
    color: #d1d5db;
}

/* Login Steps */
.login-step {
    display: none;
}

.login-step.active {
    display: block;
    animation: loginStepIn 0.3s ease;
}

@keyframes loginStepIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* OTP Inputs */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.otp-input {
    width: 56px;
    height: 56px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'IRANYekan', sans-serif;
    color: #212121;
    background: #f9fafb;
    outline: none;
    transition: all 0.3s ease;
    caret-color: #00CED5;
}

.otp-input:focus {
    border-color: #00CED5;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 206, 213, 0.1);
}

.otp-input.filled {
    border-color: #00CED5;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.05) 0%, rgba(255, 183, 0, 0.05) 100%);
}

/* Login Error Message */
.login-error-msg {
    background: #fef2f2;
    color: #dc2626;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin: 0 24px 12px;
    border: 1px solid #fecaca;
}

.login-success-msg {
    background: #ecfdf5;
    color: #047857;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 14px;
    border: 1px solid #a7f3d0;
}

/* OTP Footer */
.otp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.otp-resend-btn {
    border: none;
    background: none;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'IRANYekan', sans-serif;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.otp-resend-btn.enabled {
    color: #00CED5;
    cursor: pointer;
}

.otp-resend-btn.enabled:hover {
    color: #00B5BB;
}

.otp-edit-phone {
    border: none;
    background: none;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'IRANYekan', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.otp-edit-phone:hover {
    color: #374151;
}

/* Appointment Detail Modal */
.appt-modal-doctor {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 14px;
    margin-bottom: 20px;
}

.appt-modal-doctor-img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #00CED5 0%, #FFB700 100%) border-box;
}

.appt-modal-doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appt-modal-doctor-info h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #212121;
    margin-bottom: 4px;
}

.appt-modal-doctor-info p {
    font-size: 0.85rem;
    font-weight: 600;
    color: #00CED5;
}

.appt-modal-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 8px;
}

.appt-modal-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.appt-modal-row:last-child {
    border-bottom: none;
}

.appt-modal-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.1) 0%, rgba(255, 183, 0, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #00CED5;
}

.appt-modal-row-icon svg {
    width: 18px;
    height: 18px;
}

.appt-modal-row-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.appt-modal-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

.appt-modal-value {
    font-size: 0.9rem;
    color: #212121;
    font-weight: 700;
}

.appt-modal-code {
    direction: ltr;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #00CED5, #FFB700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
    font-weight: 800;
}

.appt-modal-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.appt-status-confirmed {
    background: #ecfdf5;
    color: #059669;
}

.appt-status-pending {
    background: #fffbeb;
    color: #d97706;
}

.appt-status-completed {
    background: #eff6ff;
    color: #2563eb;
}

.appt-status-cancelled {
    background: #fef2f2;
    color: #dc2626;
}

/* Payment Modal */
.payment-total-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.08) 0%, rgba(255, 183, 0, 0.08) 100%);
    border: 1.5px solid rgba(0, 206, 213, 0.2);
    border-radius: 14px;
    margin-bottom: 16px;
}

.payment-total-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
}

.payment-total-amount {
    font-size: 1.15rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00CED5, #FFB700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.payment-gateway {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 20px;
}

.payment-gateway-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.1) 0%, rgba(255, 183, 0, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #00CED5;
}

.payment-gateway-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.payment-gateway-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #212121;
}

.payment-gateway-desc {
    font-size: 0.78rem;
    font-weight: 500;
    color: #9ca3af;
}

.payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

/* ========================================
   Ticketing / Messages System
   ======================================== */

/* Ticket List Card */
.ticket-card {
    display: block;
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.ticket-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 206, 213, 0.3);
    transform: translateY(-2px);
}

.ticket-card.ticket-closed {
    opacity: 0.7;
}

.ticket-card.ticket-closed:hover {
    opacity: 1;
}

.ticket-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Status - Closed */
.status-closed {
    background: #f3f4f6;
    color: #6b7280;
}

/* ---- Ticket Chat Page ---- */

/* Chat Area */
.ticket-chat-area {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 400px;
}

/* Date Divider */
.ticket-date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ticket-date-divider::before,
.ticket-date-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.ticket-date-divider span {
    padding: 4px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    background: white;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
    margin: 0 12px;
}

/* Message Container */
.ticket-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
}

.ticket-message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ticket-message-admin {
    align-self: flex-start;
}

.ticket-message-avatar {
    flex-shrink: 0;
    padding-top: 4px;
}

.ticket-message-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ticket-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-message-user .ticket-message-header {
    flex-direction: row-reverse;
}

.ticket-message-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
}

.ticket-message-time {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Message Bubbles */
.ticket-message-bubble {
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #374151;
    word-break: break-word;
}

.ticket-bubble-user {
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.1) 0%, rgba(255, 183, 0, 0.08) 100%);
    border: 1px solid rgba(0, 206, 213, 0.15);
    border-radius: 16px 4px 16px 16px;
}

.ticket-bubble-admin {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px 16px 16px 16px;
}

/* Attachment */
.ticket-attachment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    max-width: 280px;
}

.ticket-message-user .ticket-attachment {
    margin-right: auto;
}

.ticket-message-admin .ticket-attachment {
    margin-left: auto;
}

.ticket-attachment-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.1) 0%, rgba(255, 183, 0, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #00CED5;
}

.ticket-attachment-download {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ticket-attachment-download:hover {
    border-color: #00CED5;
    color: #00CED5;
}

/* Message Input Area */
.ticket-input-area {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
    border-radius: 0 0 20px 20px;
}

.ticket-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ticket-input-wrapper:focus-within {
    border-color: #00CED5;
    box-shadow: 0 0 0 3px rgba(0, 206, 213, 0.1);
}

.ticket-input {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-family: 'IRANYekan', sans-serif;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
    min-height: 24px;
    max-height: 150px;
    background: transparent;
}

.ticket-input::placeholder {
    color: #9ca3af;
}

.ticket-input-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ticket-input-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.ticket-input-btn:hover {
    background: #f3f4f6;
    color: #00CED5;
}

.ticket-send-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0A0D0D 26%, #00CED5 100%);
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'IRANYekan', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ticket-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 206, 213, 0.3);
}

/* New Ticket Upload Area */
.new-ticket-upload-area {
    border: 2px dashed #e5e7eb;
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
    text-align: center;
}

.new-ticket-upload-area:hover,
.new-ticket-upload-area.drag-over {
    border-color: #00CED5;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.04) 0%, rgba(255, 183, 0, 0.04) 100%);
}

/* Ticket Chat Responsive */
@media (max-width: 768px) {
    .ticket-message {
        max-width: 95%;
    }

    .ticket-chat-area {
        padding: 16px;
        gap: 18px;
    }

    .ticket-message-bubble {
        padding: 12px 14px;
        font-size: 0.82rem;
    }

    .ticket-input-area {
        padding: 14px 16px;
    }

    .ticket-input-wrapper {
        padding: 10px 12px;
    }

    .ticket-send-btn span {
        display: none;
    }

    .ticket-send-btn {
        padding: 8px 12px;
    }
}

/* ========================================
   Alert Modals (Success / Error)
   ======================================== */
.alert-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.alert-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.alert-modal {
    background: white;
    border-radius: 24px;
    padding: 40px 32px 32px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: visible;
}

.alert-modal::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 25%;
    width: 50%;
    height: 6px;
    background: linear-gradient(90deg, #00CED5 0%, #4DD9D9 25%, #8DE5B5 50%, #C9E88A 75%, #FFB700 100%);
    border-radius: 16px 16px 0 0;
}

.alert-modal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 5px;
    background: linear-gradient(90deg, #00CED5 0%, #4DD9D9 25%, #8DE5B5 50%, #C9E88A 75%, #FFB700 100%);
    border-radius: 0 0 16px 16px;
}

.alert-modal-overlay.active .alert-modal {
    transform: scale(1) translateY(0);
}

/* Icon Container */
.alert-modal-icon {
    display: none;
    justify-content: center;
    margin-bottom: 24px;
}

.alert-modal-icon.active {
    display: flex;
}

.alert-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Success Icon */
.alert-icon-success .alert-icon-circle {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.15) 100%);
    border: 3px solid #10b981;
    animation: alertIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.alert-checkmark {
    width: 36px;
    height: 36px;
}

.alert-checkmark-check {
    stroke: #10b981;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.alert-modal-overlay.active .alert-icon-success .alert-checkmark-check {
    animation: alertCheckDraw 0.5s ease 0.5s forwards;
}

/* Error Icon */
.alert-icon-error .alert-icon-circle {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.15) 100%);
    border: 3px solid #ef4444;
    animation: alertIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.alert-cross {
    width: 36px;
    height: 36px;
}

.alert-cross-line {
    stroke: #ef4444;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 28;
    stroke-dashoffset: 28;
}

.alert-modal-overlay.active .alert-icon-error .alert-cross-line:first-child {
    animation: alertCrossDraw 0.35s ease 0.5s forwards;
}

.alert-modal-overlay.active .alert-icon-error .alert-cross-line:last-child {
    animation: alertCrossDraw 0.35s ease 0.65s forwards;
}

/* Title & Message */
.alert-modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #212121;
    margin-bottom: 8px;
    font-family: 'IRANYekan', sans-serif;
}

.alert-modal-message {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 28px;
    font-family: 'IRANYekan', sans-serif;
}

/* Button */
.alert-modal-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'IRANYekan', sans-serif;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert-modal-btn:hover {
    transform: translateY(-2px);
}

/* Success button */
.alert-modal-overlay.alert-success .alert-modal-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.alert-modal-overlay.alert-success .alert-modal-btn:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Error button */
.alert-modal-overlay.alert-error .alert-modal-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.alert-modal-overlay.alert-error .alert-modal-btn:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Animations */
@keyframes alertIconPop {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes alertCheckDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes alertCrossDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* ========================================
   Contact Us Page
   ======================================== */

/* Hero Banner */
.contact-hero {
    background: linear-gradient(135deg, #00CED5 0%, #4DD9D9 30%, #8DE5B5 60%, #FFB700 100%);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

/* Contact Info Cards */
.contact-info-card {
    background: white;
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 206, 213, 0.15);
    border-color: transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #00CED5 0%, #4DD9D9 30%, #8DE5B5 60%, #FFB700 100%) border-box;
}

.contact-info-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.1) 0%, rgba(255, 183, 0, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #00CED5;
    transition: all 0.4s ease;
}

.contact-info-card:hover .contact-info-icon {
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    color: white;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.contact-form-wrapper:hover {
    border-color: transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #00CED5 0%, #4DD9D9 30%, #8DE5B5 60%, #FFB700 100%) border-box;
}

.contact-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.contact-form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid #e5e7eb;
    background-color: #f9fafb;
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-family: 'IRANYekan', sans-serif;
}

.contact-form-input:focus {
    border-color: #00CED5;
    box-shadow: 0 0 0 3px rgba(0, 206, 213, 0.12);
    background-color: white;
}

.contact-form-input::placeholder {
    color: #9ca3af;
}

.contact-submit-btn {
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    border-radius: 14px;
    padding: 14px 36px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 206, 213, 0.35);
}

/* Map */
.contact-map-wrapper {
    background: white;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.contact-map-wrapper:hover {
    border-color: transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #00CED5 0%, #4DD9D9 30%, #8DE5B5 60%, #FFB700 100%) border-box;
}

.contact-map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.contact-map-container iframe {
    display: block;
}

.contact-map-info-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.1) 0%, rgba(255, 183, 0, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00CED5;
}

.contact-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-quick-link:hover {
    border-color: #00CED5;
    color: #00CED5;
    background: rgba(0, 206, 213, 0.05);
}

/* FAQ */
.faq-item {
    background: white;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #00CED5 0%, #4DD9D9 30%, #8DE5B5 60%, #FFB700 100%) border-box;
}

.faq-item.active {
    border-color: transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #00CED5 0%, #4DD9D9 30%, #8DE5B5 60%, #FFB700 100%) border-box;
    box-shadow: 0 4px 20px rgba(0, 206, 213, 0.1);
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    font-family: 'IRANYekan', sans-serif;
    text-align: right;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #00CED5;
}

.faq-arrow {
    transition: transform 0.3s ease;
    color: #9ca3af;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: #00CED5;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 18px;
}

.faq-answer p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.9;
}

/* Social Section */
.contact-social-box {
    background: white;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.contact-social-box:hover {
    border-color: transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #00CED5 0%, #4DD9D9 30%, #8DE5B5 60%, #FFB700 100%) border-box;
}

.contact-social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    min-width: 110px;
}

.contact-social-item:hover {
    border-color: transparent;
    background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #00CED5 0%, #4DD9D9 30%, #8DE5B5 60%, #FFB700 100%) border-box;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 206, 213, 0.15);
}

.contact-social-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.1) 0%, rgba(255, 183, 0, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00CED5;
    transition: all 0.3s ease;
}

.contact-social-item:hover .contact-social-icon {
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    color: white;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .contact-form-wrapper,
    .contact-map-wrapper {
        padding: 24px 20px;
    }

    .contact-social-box {
        padding: 24px 16px;
    }

    .contact-social-item {
        min-width: 90px;
        padding: 16px 18px;
    }

    .faq-question {
        padding: 14px 18px;
        font-size: 0.9rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 18px 14px;
    }
}

/* ========================================
   Blog Pages
   ======================================== */

/* Page Header */
.blog-page-header {
    padding: 40px 0 30px;
    background-color: #f5f5f5;
}

/* Filter Tabs */
.blog-filter-tab {
    padding: 10px 22px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.blog-filter-tab:hover {
    border-color: #00CED5;
    color: #00CED5;
}

.blog-filter-tab.active {
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    color: white;
    border-color: transparent;
    border: none !important;
}

/* Featured Article Card */
.blog-featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;
    transition: all 0.4s ease;
    margin-bottom: 20px;
}

.blog-featured-card:hover {
    box-shadow: 0 15px 40px rgba(0, 206, 213, 0.12);
    transform: translateY(-3px);
}

.blog-featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #00CED5 0%, #4DD9D9 25%, #8DE5B5 50%, #C9E88A 75%, #FFB700 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.blog-featured-card:hover::before {
    opacity: 1;
}

.blog-featured-card {
    position: relative;
}

.blog-featured-image {
    position: relative;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    padding: 15px;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.blog-featured-card:hover .blog-featured-image img {
    transform: scale(1.03);
}

.blog-featured-badge {
    position: absolute;
    top: 28px;
    right: 28px;
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.blog-featured-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-category-badge {
    display: inline-block;
    background: rgba(0, 206, 213, 0.1);
    color: #00CED5;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.blog-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00CED5;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.blog-read-more-btn:hover {
    gap: 10px;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #00CED5 0%, #4DD9D9 25%, #8DE5B5 50%, #C9E88A 75%, #FFB700 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 206, 213, 0.12);
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    padding: 12px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 12px;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-category {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 8px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
}

.blog-card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.blog-card-arrow svg {
    color: #6b7280;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-arrow {
    background: linear-gradient(135deg, #0A0D0D 26%, #00CED5 100%);
}

.blog-card:hover .blog-card-arrow svg {
    color: white;
}

/* Pagination */
.blog-pagination-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: white;
    color: #374151;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-pagination-btn:hover {
    border-color: #00CED5;
    color: #00CED5;
}

.blog-pagination-btn.active {
    background: linear-gradient(135deg, #00CED5 0%, #FFB700 100%);
    color: white;
    border-color: transparent;
    border: none;
}

/* ========================================
   Blog Post Page
   ======================================== */
.blog-post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;
}

.blog-post-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    padding: 15px;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.blog-post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 24px;
}

.blog-post-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Article Body Typography */
.blog-post-body {
    color: #374151;
    font-size: 0.95rem;
    line-height: 2;
    text-align: justify;
}

.blog-post-body h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #212121;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-right: 16px;
    border-right: 4px solid #00CED5;
}

.blog-post-body p {
    margin-bottom: 16px;
}

.blog-post-body blockquote {
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.05) 0%, rgba(255, 183, 0, 0.05) 100%);
    border-right: 4px solid #FFB700;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
    font-style: italic;
    color: #4b5563;
}

/* Tags */
.blog-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: rgba(0, 206, 213, 0.1);
    color: #00CED5;
}

/* Share Buttons */
.blog-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-share-btn:hover {
    border-color: #00CED5;
    color: #00CED5;
}

/* Comments */
.blog-comment-form {
    background: #f9fafb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.blog-comment {
    padding-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.blog-comment:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blog-comment-reply {
    margin-top: 16px;
    margin-right: 48px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
}

/* Sidebar */
.blog-sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;
}

.blog-sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #212121;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
    position: relative;
}

.blog-sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #00CED5 0%, #FFB700 100%);
}

.blog-sidebar-author-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid #e5e7eb;
}

.blog-sidebar-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
}

.blog-sidebar-cat-item:hover {
    background: rgba(0, 206, 213, 0.06);
    color: #00CED5;
}

.blog-sidebar-cat-count {
    background: #f3f4f6;
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    transition: all 0.3s ease;
}

.blog-sidebar-cat-item:hover .blog-sidebar-cat-count {
    background: rgba(0, 206, 213, 0.1);
    color: #00CED5;
}

.blog-sidebar-post {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.blog-sidebar-post:hover {
    background: #f9fafb;
}

.blog-sidebar-post-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-sidebar-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blog Responsive */
@media (max-width: 768px) {
    .blog-featured-image {
        min-height: 220px;
    }

    .blog-featured-content {
        padding: 20px;
    }

    .blog-post-image {
        height: 250px;
    }

    .blog-comment-reply {
        margin-right: 24px;
    }

    .blog-filter-tab {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
}

@media (max-width: 640px) {
    .blog-card-image {
        height: 180px;
    }

    .blog-post-image {
        height: 200px;
    }
}

/* ========================================
   Search Autocomplete Dropdown
   ======================================== */
.search-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    margin-top: 8px;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
}

.search-autocomplete-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: #6b7280;
    font-size: 0.85rem;
}

.search-autocomplete-group-title {
    padding: 10px 16px 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.search-autocomplete-item:hover {
    background: #f3f4f6;
}

.search-autocomplete-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.1), rgba(255, 183, 0, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.search-autocomplete-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.search-autocomplete-item-avatar svg {
    width: 20px;
    height: 20px;
    color: #00CED5;
}

.search-autocomplete-item-info {
    flex: 1;
    min-width: 0;
}

.search-autocomplete-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212121;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-autocomplete-item-meta {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 2px;
}

.search-autocomplete-item-arrow {
    color: #d1d5db;
    flex-shrink: 0;
}

.search-autocomplete-empty {
    padding: 24px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
}

.search-autocomplete-view-all {
    display: block;
    text-align: center;
    padding: 12px;
    color: #00CED5;
    font-weight: 600;
    font-size: 0.85rem;
    border-top: 1px solid #f3f4f6;
    text-decoration: none;
    transition: background 0.2s;
}

.search-autocomplete-view-all:hover {
    background: #f9fafb;
}

/* ========================================
   Search Modal
   ======================================== */
.search-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 60px 16px 16px;
    overflow-y: auto;
}

.search-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    position: relative;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s ease;
    margin: auto;
    flex-shrink: 0;
    overflow: visible;
}

.search-modal-overlay.active .search-modal {
    transform: translateY(0) scale(1);
}

.search-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 6px;
    background: linear-gradient(90deg, #00CED5 0%, #4DD9D9 25%, #8DE5B5 50%, #C9E88A 75%, #FFB700 100%);
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.search-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.search-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.search-modal-header {
    text-align: center;
    padding: 32px 24px 20px;
}

.search-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.1) 0%, rgba(255, 183, 0, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #00CED5;
}

.search-modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #212121;
    margin-bottom: 6px;
}

.search-modal-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

.search-modal-body {
    padding: 0 24px 28px;
}

.search-modal-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-modal-input-icon {
    position: absolute;
    right: 14px;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}

.search-modal-input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 0.95rem;
    font-family: 'IRANYekan', sans-serif;
    color: #212121;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
}

.search-modal-input:focus {
    border-color: #00CED5;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 206, 213, 0.1);
}

.search-modal-input::placeholder {
    color: #9ca3af;
}

.search-modal-results {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
}

.search-modal-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: linear-gradient(135deg, #00CED5 0%, #00B5BB 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'IRANYekan', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 206, 213, 0.3);
}

.search-modal-quick {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.search-modal-quick-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 10px;
}

.search-modal-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-modal-tag {
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-modal-tag:hover {
    background: rgba(0, 206, 213, 0.1);
    color: #00CED5;
}

/* ========================================
   Lab Package Show - Tests List
   ======================================== */
.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
}

.package-features .check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 206, 213, 0.15), rgba(141, 229, 181, 0.15));
    color: #00CED5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.package-features .check-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

@media (max-width: 640px) {
    .package-features {
        grid-template-columns: 1fr;
    }
}
