/* ==========================================================
   Bahonar Hospital
   Home Page Styles - Luxury Safe Version
========================================================== */

/* ==========================================================
   LAYOUT FIXES
========================================================== */

.home-page .container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.hero-content .container,
.quick-section .container,
.about-section .container,
.departments-section .container,
.services-section .container,
.doctors-section .container,
.news-section .container,
.statistics-section .container,
.cta-section .container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.quick-grid,
.about-grid,
.departments-grid,
.services-grid,
.doctors-grid,
.news-grid,
.statistics-grid {
    width: 100%;
    margin-inline: auto;
}

/* ==========================================================
   SHARED LUXURY TOUCHES
========================================================== */

.about-section,
.departments-section,
.services-section,
.doctors-section,
.news-section,
.statistics-section,
.cta-section {
    position: relative;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #0b3a5a;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 15px;
    box-shadow: 0 10px 24px rgba(11, 58, 90, 0.08);
}

.section-heading h2 {
    margin-bottom: 14px;
    color: #0f172a;
}

.section-heading p {
    color: var(--color-muted);
    line-height: 2;
    max-width: 760px;
    margin: 0 auto;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 40px 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.empty-state h3 {
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--color-muted);
    line-height: 1.9;
}

/* ==========================================================
   HERO
========================================================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 680px;
    overflow: hidden;
    background: #081a2b;
}

.hero-slider,
.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 680px;
}

.carousel-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide {
    width: 100%;
    height: 100%;
    min-height: 680px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(125, 211, 252, 0.16), transparent 24%),
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.14), transparent 28%);
    pointer-events: none;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(4, 30, 55, 0.92) 0%,
        rgba(4, 30, 55, 0.70) 45%,
        rgba(4, 30, 55, 0.28) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 680px;
    color: #fff;
}

.hero-text h1 {
    color: #fff;
    font-size: 56px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 24px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.hero-text p {
    color: #e2e8f0;
    font-size: 19px;
    line-height: 2;
    margin-bottom: 35px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================
   QUICK ACCESS
========================================================== */

.quick-section {
    margin-top: -85px;
    position: relative;
    z-index: 10;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.quick-card {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 28px;
    padding: 34px 22px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.10),
        0 2px 10px rgba(15, 23, 42, 0.04);
    height: 100%;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.quick-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 45%);
    pointer-events: none;
}

.quick-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 28px 56px rgba(15, 23, 42, 0.14),
        0 10px 25px rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.18);
}

.quick-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 12px 24px rgba(14, 165, 233, 0.12);
}

.quick-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #0f172a;
}

.quick-card p {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.9;
    margin: 0;
}

/* ==========================================================
   ABOUT SECTION STYLES
========================================================== */

.about-section {
    padding-block: 110px;
    background:
        radial-gradient(circle at 10% 10%, rgba(14, 165, 233, 0.06), transparent 20%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 70px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(15, 23, 42, 0.10),
        0 10px 24px rgba(14, 165, 233, 0.06);
}

.about-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 34px;
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-image-placeholder {
    height: 500px;
    background: linear-gradient(135deg, #0f6cbd, #0b3a5a);
    border-radius: 30px;
}

.about-content {
    position: relative;
}

.about-content h2 {
    margin-bottom: 22px;
    font-weight: 800;
    color: #0f172a;
}

.about-content .lead {
    font-size: 17px;
    line-height: 2.1;
    color: #334155;
    text-align: justify;
}

.about-list {
    margin-top: 30px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
}

.about-list span {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    color: #0ea5e9; /* یا var(--color-primary) */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.about-cta {
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image img, 
    .about-image-placeholder {
        height: 400px;
    }
}


/* ==========================================================
   SHARED CARD STYLES
========================================================== */

.department-link,
.service-link,
.doctor-link,
.news-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    width: 100%;
}

.department-card,
.service-card,
.doctor-card,
.news-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.department-image,
.service-image,
.doctor-image,
.news-image {
    flex-shrink: 0;
}

.department-content,
.service-content,
.doctor-content,
.news-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.department-content p,
.service-content p,
.news-content p,
.doctor-degree {
    margin: 0;
}

.department-placeholder,
.service-placeholder,
.doctor-placeholder,
.news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    color: #94a3b8;
}

.department-placeholder i,
.service-placeholder i,
.doctor-placeholder i,
.news-placeholder i {
    font-size: 72px;
}

.card-link,
.department-more,
.service-more,
.doctor-more,
.news-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--color-primary);
    font-weight: 800;
    font-size: 14px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.department-card:hover .card-link,
.service-card:hover .card-link,
.doctor-card:hover .card-link,
.news-card:hover .card-link {
    gap: 12px;
    color: #0b5fa8;
}

.card-link i,
.department-more i,
.service-more i,
.doctor-more i,
.news-more i {
    font-size: 13px;
}

/* ==========================================================
   DEPARTMENTS
========================================================== */

.departments-section {
    padding-block: 110px;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.department-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 26px 56px rgba(15, 23, 42, 0.10),
        0 10px 26px rgba(14, 165, 233, 0.07);
    border-color: rgba(14, 165, 233, 0.18);
}

.department-image {
    height: 230px;
    overflow: hidden;
    background: #f1f5f9;
}

.department-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

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

.department-content {
    padding: 28px;
}

.department-content h3 {
    font-size: 21px;
    margin: 0 0 12px;
    line-height: 1.7;
    color: #0f172a;
}

.department-content p {
    color: var(--color-muted);
    line-height: 2;
    font-size: 14px;
}

/* ==========================================================
   SERVICES
========================================================== */

.services-section {
    padding-block: 110px;
    background:
        radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.05), transparent 20%),
        linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.service-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 26px 56px rgba(15, 23, 42, 0.10),
        0 10px 26px rgba(14, 165, 233, 0.07);
    border-color: rgba(14, 165, 233, 0.18);
}

.service-image {
    height: 230px;
    overflow: hidden;
    background: #f1f5f9;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

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

.service-content {
    padding: 28px;
}

.service-content h3 {
    font-size: 21px;
    margin: 0 0 12px;
    line-height: 1.7;
    color: #0f172a;
}

.service-content p {
    color: var(--color-muted);
    line-height: 2;
    font-size: 14px;
}

/* ==========================================================
   DOCTORS
========================================================== */

.doctors-section {
    padding-block: 110px;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.doctor-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 28px 56px rgba(15, 23, 42, 0.11),
        0 10px 30px rgba(14, 165, 233, 0.06);
    border-color: rgba(14, 165, 233, 0.18);
}

.doctor-image {
    height: 320px;
    background: #f1f5f9;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

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

.doctor-placeholder i {
    font-size: 70px;
}

.doctor-content {
    padding: 24px;
    text-align: center;
}

.doctor-content h3 {
    font-size: 20px;
    margin: 0 0 10px;
    line-height: 1.6;
    color: #0f172a;
}

.doctor-specialty {
    display: inline-flex;
    align-self: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eaf4ff, #dbeafe);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 10px;
}

.doctor-degree {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.9;
}

.doctor-experience {
    margin-top: 15px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #334155;
    align-self: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.doctor-experience i {
    color: #f59e0b;
}

.section-more {
    text-align: center;
    margin-top: 45px;
}

/* ==========================================================
   STATISTICS - LUXURY VERSION
========================================================== */

.statistics-section {
    position: relative;
    padding: 120px 0;
    background:radial-gradient(circle at 15% 20%, rgba(125, 211, 252, 0.18), transparent 25%), radial-gradient(circle at 85% 10%, rgba(191, 219, 254, 0.14), transparent 24%), linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    overflow: hidden;
}

.statistics-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to left, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.15;
    pointer-events: none;
}

.statistics-section::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -120px;
    height: 240px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.12), transparent 60%);
    pointer-events: none;
}

.stats-heading {
    position: relative;
    z-index: 1;
}

.statistics-section .eyebrow {
    background: rgba(255, 255, 255, 0.08);
    color: #dbeafe;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.statistics-section .section-heading h2 {
    color: #ffffff;
}

.statistics-section .section-heading p {
    color: rgba(226, 232, 240, 0.82);
}

.statistics-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    justify-content: center;
}

.stat-card {
    position: relative;
    padding: 34px 24px 30px;
    border-radius: 28px;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 20px 50px rgba(2, 8, 23, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        opacity 0.35s ease;
    opacity: 0;
    transform: translateY(28px);
}

.stat-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(125, 211, 252, 0.28);
    box-shadow:
        0 28px 60px rgba(2, 8, 23, 0.38),
        0 0 0 1px rgba(125, 211, 252, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.stat-glow {
    position: absolute;
    top: -40px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.stat-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 24px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(224, 242, 254, 0.16),
        rgba(191, 219, 254, 0.10)
    );
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #7dd3fc;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 10px 30px rgba(14, 165, 233, 0.12);
}

.stat-icon i {
    font-size: 34px;
}

.stat-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
    direction: ltr;
    color: #ffffff;
}

.counter {
    font-size: 50px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1.5px;
    font-variant-numeric: tabular-nums;
}

.stat-suffix {
    font-size: 28px;
    font-weight: 800;
    color: #7dd3fc;
}

.stat-title {
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 14px;
    line-height: 1.95;
    color: rgba(226, 232, 240, 0.78);
    max-width: 220px;
    margin: 0 auto;
}

.stat-card-1 {
    transition-delay: 0.05s;
}

.stat-card-2 {
    transition-delay: 0.12s;
}

.stat-card-3 {
    transition-delay: 0.19s;
}

.stat-card-4 {
    transition-delay: 0.26s;
}

/* ==========================================================
   NEWS
========================================================== */

.news-section {
    padding-block: 110px;
    background:
        radial-gradient(circle at 8% 10%, rgba(14, 165, 233, 0.05), transparent 22%),
        linear-gradient(180deg, #f8fafc 0%, #f3f8fd 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.news-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    padding: 0;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 26px 54px rgba(15, 23, 42, 0.10),
        0 10px 25px rgba(14, 165, 233, 0.06);
    border-color: rgba(14, 165, 233, 0.16);
}

.news-image {
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

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

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-card h3,
.news-content h3 {
    font-size: 19px;
    margin: 0 0 12px;
    line-height: 1.8;
    color: #0f172a;
}

.news-content p {
    color: var(--color-muted);
    line-height: 2;
    font-size: 14px;
}

/* ==========================================================
   CTA / APPOINTMENT
========================================================== */

.cta-section {
    padding-block: 95px 110px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.cta-box {
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(125, 211, 252, 0.18), transparent 25%),
        radial-gradient(circle at 85% 10%, rgba(191, 219, 254, 0.14), transparent 24%),
        linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 36px;
    padding: 60px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    box-shadow:
        0 30px 70px rgba(11, 58, 90, 0.18),
        0 10px 30px rgba(14, 165, 233, 0.08);
}

.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to left, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.18;
    pointer-events: none;
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 34px;
    line-height: 1.5;
}

.cta-box p {
    color: #e0f2fe;
    line-height: 2;
    max-width: 720px;
}

/* Specific override for appointment typography conflict */
.appointment-box p,
.cta-box .appointment-box p {
    color: #ffffff;
}

/* Optional extra safety if appointment text lives directly inside CTA */
.cta-box p,
.cta-box .lead,
.cta-box .text-muted {
    color: #e0f2fe;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1200px) {
    .doctors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .statistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-text h1 {
        font-size: 48px;
    }
}

@media (max-width: 1100px) {
    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 992px) {
    .departments-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .doctors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .statistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-section,
    .hero-slider,
    .carousel-inner,
    .hero-slide {
        min-height: 600px;
    }

    .cta-box h2 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .home-page .container,
    .hero-content .container,
    .quick-section .container,
    .about-section .container,
    .departments-section .container,
    .services-section .container,
    .doctors-section .container,
    .news-section .container,
    .statistics-section .container,
    .cta-section .container {
        width: min(100%, calc(100% - 30px));
    }

    .hero-section,
    .hero-slider,
    .carousel-inner,
    .hero-slide {
        min-height: 520px;
    }

    .hero-slide {
        padding: 40px 0;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(4, 30, 55, 0.88) 0%,
            rgba(4, 30, 55, 0.58) 100%
        );
    }

    .hero-text {
        text-align: center;
        margin: 0 auto;
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 34px;
        margin-bottom: 16px;
    }

    .hero-text p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn-ui {
        width: 100%;
        justify-content: center;
    }

    .quick-section {
        margin-top: -40px;
    }

    .about-section,
    .departments-section,
    .services-section,
    .doctors-section,
    .news-section {
        padding-block: 90px;
    }

    .statistics-section {
        padding: 90px 0;
    }

    .stat-card {
        padding: 28px 20px 24px;
    }

    .counter {
        font-size: 42px;
    }

    .stat-suffix {
        font-size: 24px;
    }

    .cta-box {
        padding: 35px;
        flex-direction: column;
        text-align: center;
    }

    .cta-box h2 {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .quick-grid,
    .departments-grid,
    .services-grid,
    .doctors-grid,
    .statistics-grid {
        grid-template-columns: 1fr;
    }

    .departments-grid,
    .services-grid {
        gap: 20px;
    }

    .department-card:hover,
    .service-card:hover,
    .doctor-card:hover,
    .news-card:hover,
    .quick-card:hover,
    .stat-card:hover {
        transform: none;
    }

    .department-image,
    .service-image,
    .news-image {
        height: 220px;
    }

    .doctor-image {
        height: 280px;
    }

    .department-content,
    .service-content,
    .doctor-content,
    .news-content {
        padding: 22px;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .quick-card {
        padding: 28px 18px;
    }
}

@media (max-width: 576px) {
    .statistics-grid {
        grid-template-columns: 1fr;
    }

    .stat-icon {
        width: 74px;
        height: 74px;
    }

    .stat-icon i {
        font-size: 30px;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .cta-box h2 {
        font-size: 24px;
    }
}

/* Insurance Section */
.insurance-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    direction: ltr;
}

.insurance-section .section-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.insurance-section .heading-line {
    display: none;
}

/* Carousel Wrapper */
.insurance-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
}

.insurance-carousel-wrapper::before,
.insurance-carousel-wrapper::after {
    display: none;
}

/* Moving Track - controlled by JS */
.insurance-track {
    display: flex;
    align-items: center;
    gap: 50px;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Each Slide */
.insurance-slide {
    flex: 0 0 200px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card */
.insurance-logo-card {
    width: 100%;
    padding: 15px 25px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.insurance-logo-card img {
    display: block;
    max-width: 100%;
    max-height: 55px;
    margin: 0 auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.insurance-name {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #6c757d;
    font-family: inherit;
    direction: rtl;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

/* Hover */
.insurance-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(13, 110, 253, 0.2);
}

.insurance-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.insurance-logo-card:hover .insurance-name {
    color: var(--color-primary, #0d6efd);
    font-weight: 700;
}

/* Tablet */
@media (max-width: 991.98px) {
    .insurance-section {
        padding: 50px 0;
    }

    .insurance-track {
        gap: 40px;
    }

    .insurance-slide {
        flex: 0 0 180px;
        width: 180px;
    }

    .insurance-logo-card {
        padding: 14px 20px;
    }

    .insurance-logo-card img {
        max-height: 50px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .insurance-section {
        padding: 40px 0;
    }

    .insurance-section .section-heading {
        font-size: 1.6rem;
    }

    .insurance-carousel-wrapper {
        padding: 16px 0;
    }

    .insurance-track {
        gap: 32px;
    }

    .insurance-slide {
        flex: 0 0 170px;
        width: 170px;
    }

    .insurance-logo-card {
        padding: 14px 18px;
        border-radius: 10px;
    }

    .insurance-logo-card img {
        max-height: 48px;
    }

    .insurance-name {
        font-size: 0.8rem;
        margin-top: 8px;
    }
}

/* Small Mobile */
@media (max-width: 479.98px) {
    .insurance-track {
        gap: 24px;
    }

    .insurance-slide {
        flex: 0 0 150px;
        width: 150px;
    }

    .insurance-logo-card {
        padding: 12px 14px;
    }

    .insurance-logo-card img {
        max-height: 42px;
    }
}
