/**
 * تصميم جديد للصفحة الرئيسية - مستشفى الحياة
 * Modern Home Page Design - Hayat Hospital
 */

/* ===== home-redesign.css =====
 * Variables are defined in custom.css — no duplication here.
 * This file only contains component-level styles for the homepage
 * and shared page sections.
 * ========================== */

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }

/* ===== Hero Section - Modern Design ===== */
.hero-modern {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: #000; /* Black background for pure video */
    overflow: hidden;
}

/* Video Background */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* No shading for maximum video clarity */
    z-index: 1;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-modern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--white));
    z-index: 1;
}

.hero-content-modern {
    position: relative;
    z-index: 2;
    color: var(--white);
    animation: fadeInUp 0.8s ease;
}

.hero-content-modern h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    text-shadow: 2px 4px 12px rgba(0,0,0,0.2);
}

.hero-content-modern .subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-item .number {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    display: block;
    margin-bottom: 0.3rem;
}

.hero-stat-item .label {
    font-size: 0.88rem;
    opacity: 0.9;
}

/* ===== Appointment Card - Floating Design ===== */
.appointment-card-modern {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: relative;
    z-index: 3;
    animation: fadeInRight 0.8s ease;
}

.appointment-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 20px 20px 0 0;
}

.appointment-card-modern h3 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.appointment-card-modern h3 i {
    color: var(--primary);
    margin-left: 0.5rem;
}

/* ===== Modern Buttons ===== */
.btn-modern {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    justify-content: center;
    min-height: 46px;
}

.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff !important;
    border: 2px solid var(--primary-dark);
    box-shadow: 0 4px 15px rgba(28, 180, 190, 0.3);
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(28, 180, 190, 0.4);
    color: #ffffff !important;
    background: linear-gradient(135deg, #065a63 0%, #0891a0 100%);
    border-color: #065a63;
}

.btn-modern-light {
    background: var(--white);
    color: #065a63 !important;
    border: 2px solid #d7eef0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-modern-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: #065a63 !important;
    background: #e8f8f9;
    border-color: #1cb4be;
}

.btn-modern-outline {
    background: #ffffff;
    color: #065a63 !important;
    border: 2px solid #0891a0;
}

.btn-modern-outline:hover {
    background: #065a63;
    color: #ffffff !important;
    border-color: #065a63;
    transform: translateY(-2px);
}

/* ===== Section Styles ===== */
.section-modern {
    padding: 100px 0;
    position: relative;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 3.5rem;
    animation: fadeInUp 0.6s ease;
}

.section-header-modern .badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: linear-gradient(135deg, rgba(28, 180, 190, 0.1) 0%, rgba(109, 219, 227, 0.1) 100%);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header-modern h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

.section-header-modern p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Unified Medical Card ===== */
.medical-card {
    background: var(--white);
    border-radius: 24px;
    padding: 45px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    border: 1px solid rgba(28, 180, 190, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
}

.medical-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(28, 180, 190, 0.15);
    border-color: var(--primary-light);
}

.medical-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.medical-card:hover::after {
    transform: scaleX(1);
}

.medical-icon-wrapper {
    width: 110px;
    height: 110px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(28, 180, 190, 0.08) 0%, rgba(109, 219, 227, 0.12) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
    position: relative;
}

.medical-card:hover .medical-icon-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: rotate(5deg) scale(1.05);
}

.medical-icon-wrapper i {
    font-size: 50px;
    color: var(--primary);
    transition: all 0.4s;
}

.medical-icon-wrapper img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    transition: all 0.4s;
}

.medical-card:hover .medical-icon-wrapper i,
.medical-card:hover .medical-icon-wrapper img {
    color: white;
    filter: brightness(0) invert(1);
}

.medical-card h4 {
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 18px;
    font-size: 1.25rem;
    transition: color 0.3s;
}

.medical-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ===== Visual Services Grid - New Interface ===== */
.service-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

.doctors-visual-grid .service-visual-card {
    height: 390px;
}

.doctors-visual-grid .service-visual-overlay {
    padding: 32px 22px;
}

.doctors-visual-grid .service-visual-title {
    font-size: 1.2rem;
}

.service-visual-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    display: block;
}

.service-visual-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(28, 180, 190, 0.25);
}

.service-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-visual-card:hover .service-visual-img {
    transform: scale(1.1);
}

.service-visual-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(to top, 
        rgba(6, 90, 99, 0.95) 0%, 
        rgba(8, 145, 160, 0.7) 50%,
        transparent 100%);
    color: white;
    transition: all 0.4s ease;
}

.service-visual-card:hover .service-visual-overlay {
    padding-bottom: 50px;
    background: linear-gradient(to top, 
        rgba(28, 180, 190, 0.95) 0%, 
        rgba(28, 180, 190, 0.8) 50%,
        transparent 100%);
}

.service-visual-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.service-visual-desc {
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    line-height: 1.6;
}

.service-visual-card:hover .service-visual-desc {
    opacity: 1;
    transform: translateY(0);
}

.service-visual-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
    z-index: 2;
}
.service-card-modern, .service-card {
    background: var(--white);
    border-radius: 24px;
    padding: 45px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    border: 1px solid rgba(28, 180, 190, 0.08);
}

.service-icon-modern, .service-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(28, 180, 190, 0.08) 0%, rgba(109, 219, 227, 0.12) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Doctor Card - Modern ===== */
.doctor-card-modern {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.doctor-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-primary);
}

.doctor-image-modern {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.doctor-image-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: var(--transition);
}

.doctor-card-modern:hover .doctor-image-modern::after {
    opacity: 1;
}

.doctor-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.doctor-card-modern:hover .doctor-image-modern img {
    transform: scale(1.08);
}

.doctor-info-modern {
    padding: 1.5rem;
    text-align: center;
}

.doctor-info-modern h5 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.doctor-specialty-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: linear-gradient(135deg, rgba(28, 180, 190, 0.1) 0%, rgba(109, 219, 227, 0.15) 100%);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== Stats Section - Beautiful Modern Design ===== */
.stats-modern {
    background: linear-gradient(135deg, 
        #065a63 0%, 
        #0891a0 50%,
        #1cb4be 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.stats-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(109, 219, 227, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.stats-modern::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.stat-box-modern {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    margin: 0 10px;
}

.stat-box-modern:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-box-modern .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.stat-box-modern:hover .icon-wrapper {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(360deg);
}

.stat-box-modern .icon-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.stat-box-modern i {
    font-size: 2.5rem;
    color: var(--white);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.stat-box-modern .number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    display: block;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #d1f5f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-box-modern .label {
    font-size: 0.85rem;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .stat-box-modern {
        margin: 8px 0;
    }
    
    .stat-box-modern .number {
        font-size: 2rem;
    }
    
    .stat-box-modern .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .stat-box-modern i {
        font-size: 1.8rem;
    }
}

/* ===== News Card - Modern ===== */
.news-card-modern {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.news-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-primary);
}

.news-image-modern {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card-modern:hover .news-image-modern img {
    transform: scale(1.08);
}

.news-date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.news-date-badge .day {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
}

.news-date-badge .month {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.news-content-modern {
    padding: 1.5rem;
}

.news-content-modern h5 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.4;
}

.news-content-modern p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== Testimonial Card - Modern ===== */
.testimonial-card-modern {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.testimonial-card-modern::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--primary-lighter);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
}

.testimonial-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-lighter);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-avatar-placeholder {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.testimonial-info h6 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.testimonial-rating {
    color: #ffc107;
    font-size: 0.85rem;
}

.testimonial-text {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    font-style: italic;
}

/* ===== CTA Section - Modern ===== */
.cta-modern {
    background: linear-gradient(135deg, rgba(28, 180, 190, 0.08) 0%, rgba(109, 219, 227, 0.08) 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(28, 180, 190, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-modern::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(109, 219, 227, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-modern h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-modern p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero-content-modern h1 {
        font-size: 2rem;
    }
    
    .section-header-modern h2 {
        font-size: 1.7rem;
    }
    
    .appointment-card-modern {
        margin-top: 2rem;
    }

    .section-modern {
        padding: 4rem 0;
    }

    .doctor-image-modern {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .hero-modern {
        min-height: auto;
        padding: 3.5rem 0;
    }
    
    .hero-content-modern h1 {
        font-size: 1.7rem;
    }
    
    .hero-content-modern .subtitle {
        font-size: 0.95rem;
    }
    
    .section-modern {
        padding: 2.5rem 0;
    }
    
    .section-header-modern {
        margin-bottom: 2.5rem;
    }

    .section-header-modern h2 {
        font-size: 1.45rem;
    }
    
    .appointment-card-modern {
        padding: 1.5rem;
    }
    
    .stat-box-modern .number {
        font-size: 2rem;
    }
    
    .cta-modern h2 {
        font-size: 1.45rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-modern {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .page-header-modern {
        min-height: 240px;
        margin-bottom: 2.5rem;
    }

    .page-header-content h1 {
        font-size: 1.7rem;
    }

    .content-card-modern {
        padding: 1.5rem;
    }

    .content-card-modern h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .hero-content-modern h1 {
        font-size: 1.4rem;
    }
    
    .hero-stats {
        gap: 0.8rem;
    }
    
    .hero-stat-item .number {
        font-size: 1.6rem;
    }
    
    .section-header-modern h2 {
        font-size: 1.25rem;
    }

    .page-header-content h1 {
        font-size: 1.4rem;
    }

    .content-card-modern {
        padding: 1.2rem;
    }

    .feature-box-modern,
    .contact-info-modern {
        padding: 1.4rem;
    }

    .login-card-modern {
        padding: 2rem 1.4rem;
    }

    .login-card-modern h1 {
        font-size: 1.4rem;
    }
}

/* ===== Page Header - Modern Design ===== */
.page-header-modern {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(6, 90, 99, 0.95) 0%, 
        rgba(8, 145, 160, 0.9) 50%,
        rgba(28, 180, 190, 0.85) 100%);
    overflow: hidden;
    margin-bottom: 4rem;
}

.page-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header-modern::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--white));
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem 0;
}

.page-header-content h1 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 12px rgba(0,0,0,0.2);
}

.page-header-content p {
    font-size: 1.05rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.page-header-content .breadcrumb {
    background: rgba(255,255,255,0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    margin-top: 1.5rem;
}

.page-header-content .breadcrumb-item {
    color: rgba(255,255,255,0.8);
}

.page-header-content .breadcrumb-item.active {
    color: var(--white);
}

.page-header-content .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

/* ===== Content Card - Modern ===== */
.content-card-modern {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.content-card-modern:hover {
    box-shadow: var(--shadow-md);
}

.content-card-modern h2 {
    color: var(--primary-dark);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.content-card-modern h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.content-card-modern p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ===== Feature Box - Modern ===== */
.feature-box-modern {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
}

.feature-box-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-primary);
}

.feature-box-modern i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    display: block;
}

.feature-box-modern h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.feature-box-modern p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}

/* ===== Contact Info Box - Modern ===== */
.contact-info-modern {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
}

.contact-info-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-primary);
    border-color: var(--primary-light);
}

.contact-info-modern .icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(135deg, rgba(28, 180, 190, 0.1) 0%, rgba(109, 219, 227, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-info-modern:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scale(1.1);
}

.contact-info-modern .icon-wrapper i {
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.contact-info-modern:hover .icon-wrapper i {
    color: var(--white);
}

.contact-info-modern h5 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.contact-info-modern p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.contact-info-modern a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-modern a:hover {
    color: var(--primary-dark);
}

/* ===== Gallery Item - Modern ===== */
.gallery-item-modern {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
}

.gallery-item-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-primary);
}

.gallery-item-modern img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item-modern:hover img {
    transform: scale(1.1);
}

.gallery-overlay-modern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 1.5rem;
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item-modern:hover .gallery-overlay-modern {
    transform: translateY(0);
}

.gallery-overlay-modern h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

/* ===== Event Card - Modern ===== */
.event-card-modern {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
    margin-bottom: 2rem;
}

.event-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
    border-left-color: var(--primary-light);
}

.event-date-modern {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    min-width: 90px;
    margin-bottom: 1rem;
}

.event-date-modern .day {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.event-date-modern .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.event-card-modern h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.event-card-modern p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.event-meta-modern {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-light);
}

.event-meta-modern i {
    color: var(--primary);
    margin-right: 0.3rem;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .page-header-modern {
        min-height: 250px;
    }
    
    .page-header-content h1 {
        font-size: 2rem;
    }
    
    .page-header-content p {
        font-size: 0.95rem;
    }
    
    .content-card-modern {
        padding: 1.5rem;
    }
    
    .content-card-modern h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-header-content h1 {
        font-size: 1.6rem;
    }
    
    .content-card-modern {
        padding: 1.2rem;
    }
    
    .feature-box-modern,
    .contact-info-modern {
        padding: 1.5rem;
    }
}

/* ===== Login Page - Modern Design ===== */
.login-page-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(6, 90, 99, 0.95) 0%, 
        rgba(8, 145, 160, 0.9) 50%,
        rgba(28, 180, 190, 0.85) 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-page-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.login-wrapper-modern {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
}

.login-card-modern {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 2px solid rgba(109, 219, 227, 0.2);
    animation: fadeInUp 0.6s ease;
}

.login-card-modern .logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card-modern .logo-section img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 15px rgba(28, 180, 190, 0.3));
}

.login-card-modern h1 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-card-modern .subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.login-card-modern .form-group {
    margin-bottom: 1.5rem;
}

.login-card-modern .form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.login-card-modern .form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid rgba(28, 180, 190, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.login-card-modern .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(28, 180, 190, 0.15);
    outline: none;
}

.login-card-modern .btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(28, 180, 190, 0.3);
    margin-top: 1rem;
}

.login-card-modern .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 180, 190, 0.4);
}

.login-card-modern .btn-login:active {
    transform: translateY(0);
}

.login-card-modern .alert {
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.login-card-modern .back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.login-card-modern .back-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.login-card-modern .back-link a:hover {
    color: var(--primary-dark);
}

/* Responsive Login */
@media (max-width: 576px) {
    .login-card-modern {
        padding: 2rem 1.5rem;
    }
    
    .login-card-modern h1 {
        font-size: 1.5rem;
    }
    
    .login-card-modern .logo-section img {
        width: 60px;
        height: 60px;
    }
}

/* ===== Appointment Card Enhanced ===== */
.appointment-card-enhanced {
    background: white;
    border-radius: 25px;
    padding: 45px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
}

.appointment-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

.appointment-logo {
    text-align: center;
    margin-bottom: 25px;
}

.appointment-logo img {
    max-width: 120px;
    height: auto;
}

.appointment-card-enhanced h3 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    font-size: 26px;
}

.welcome-badge {
    background: linear-gradient(135deg, rgba(28, 180, 190, 0.1) 0%, rgba(109, 219, 227, 0.1) 100%);
    border: 2px solid var(--primary-light);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-dark);
}

.form-group-enhanced {
    margin-bottom: 22px;
}

.form-group-enhanced label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 15px;
}

.form-control-enhanced {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-control-enhanced:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(28, 180, 190, 0.1);
}

.btn-appointment-submit {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.btn-appointment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(28, 180, 190, 0.4);
}

/* ===== FAQ Card Compact ===== */
.faq-card-compact {
    background: white;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.faq-card-compact:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(28, 180, 190, 0.2);
    border-color: var(--primary-light);
}

.faq-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.faq-icon i {
    font-size: 32px;
    color: white;
}

.faq-question-compact {
    color: var(--primary-dark);
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.faq-answer-compact {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.faq-read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.faq-read-more:hover {
    color: var(--primary-dark);
    gap: 10px;
    text-decoration: none;
}

/* ===== Search Form Modern ===== */
.search-form-modern {
    display: flex;
    align-items: center;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 6px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    width: 200px;
}

.search-input-group:focus-within {
    background: white;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: #1cb4be;
}

.search-input-group input {
    background: transparent;
    border: none;
    color: #e0f7f9;
    padding: 2px 10px;
    width: 100%;
    outline: none;
    font-size: 14px;
}

.search-input-group:focus-within input {
    color: #333;
}

.search-input-group button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.search-input-group:focus-within button {
    color: #1cb4be;
}

.search-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input-group:focus-within input::placeholder {
    color: #999;
}

/* Mobile Search Adjustment in Header */
@media (max-width: 991px) {
    .navbar-collapse .search-form-modern {
        margin: 15px 0;
        display: block;
    }
    .search-input-group {
        width: 100%;
        background: white;
        border-color: #e0e0e0;
    }
    .search-input-group input {
        color: #333;
    }
    .search-input-group button {
        color: #1cb4be;
    }
    .search-input-group input::placeholder {
        color: #999;
    }
}

/* ===== Testimonials Slider - Premium Design ===== */
.testimonial-slider-section {
    background: #fdfdfd;
    overflow: hidden;
    padding: 100px 0;
}

.testimonials-swiper {
    padding: 30px 10px 80px !important;
}

.testimonial-premium-card {
    background: #065a63;
    border-radius: 30px;
    padding: 45px 40px;
    height: 100%;
    position: relative;
    color: white;
    box-shadow: 0 15px 40px rgba(6, 90, 99, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(109, 219, 227, 0.1);
}

.swiper-slide-active .testimonial-premium-card {
    background: linear-gradient(135deg, #065a63 0%, #0891a0 100%);
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(6, 90, 99, 0.25);
}

.testimonial-quote-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 3.5rem;
    color: rgba(109, 219, 227, 0.12);
    line-height: 1;
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.9;
    font-style: italic;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.95);
}

.testimonial-footer-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-avatar-v2, 
.testimonial-avatar-placeholder-v2 {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(109, 219, 227, 0.3);
    flex-shrink: 0;
}

.testimonial-avatar-placeholder-v2 {
    background: rgba(109, 219, 227, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar-placeholder-v2 i {
    font-size: 35px;
    color: #6ddbe3;
}

.testimonial-avatar-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-identity h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: #e0f7f9;
}

.testimonial-identity .rating-stars {
    color: #ffc107;
    font-size: 0.9rem;
}

/* Custom Navigation */
.testimonials-swiper .custom-nav-btn {
    width: 60px !important;
    height: 60px !important;
    background: white;
    color: #0891a0 !important;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.testimonials-swiper .custom-nav-btn:hover {
    background: #1cb4be;
    color: white !important;
    transform: scale(1.1);
}

.testimonials-swiper .custom-nav-btn::after {
    font-size: 24px !important;
    font-weight: bold;
}

.testimonials-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 0.5;
    transition: all 0.3s;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 10px;
    background: #0891a0 !important;
    opacity: 1;
}

/* RTL Specific adjustments */
/* Star Rating Selector */
.star-rating-selector {
    color: #ffd700;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
    margin: 15px 0;
}

.star-rating-selector i {
    margin: 0 4px;
    font-size: 2.2rem;
    transition: all 0.2s;
}

.star-rating-selector i:hover {
    transform: scale(1.2);
}

.star-rating-selector i.zmdi-star {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

#testimonialModal .form-control:focus {
    border-color: #065a63;
    box-shadow: 0 0 0 0.25rem rgba(6, 90, 99, 0.1);
}

.modal-content {
    border-radius: 24px !important;
}

.testimonial-login-hint {
    text-align: center;
    background: rgba(28, 180, 190, 0.05);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px dashed var(--primary-light);
}

.testimonial-login-hint p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

/* ===== Production UI refinement layer ===== */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe {
    max-width: 100%;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(28, 180, 190, 0.42);
    outline-offset: 3px;
}

.hero-modern-section {
    background:
        radial-gradient(circle at 10% 0%, rgba(28, 180, 190, 0.12), transparent 30%),
        #f8fafc;
    padding: 25px 0 34px;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: clamp(340px, 33vw, 500px);
    overflow: hidden;
    border: 2px solid rgba(28, 180, 190, 0.25);
    border-radius: 24px;
    background: #031b1e;
}

.hero-video-element {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bar-below {
    position: relative;
    z-index: 5;
    margin-top: 24px;
    padding: 32px 40px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(109, 219, 227, 0.75);
    border-radius: 24px;
    background: linear-gradient(135deg, #054d55 0%, #087f8c 54%, #0891a0 100%);
}

.hero-bar-below::after {
    content: '';
    position: absolute;
    inset: auto -70px -100px auto;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.hero-bar-below h1 {
    text-wrap: balance;
}

.hero-actions {
    position: relative;
    z-index: 1;
}

@media (max-width: 767.98px) {
    .hero-modern-section {
        padding: 12px 0 24px;
    }

    .hero-modern-section > .container-fluid {
        width: auto;
        max-width: none;
        margin-inline: 0;
        padding-inline: 12px;
    }

    .hero-video-wrapper {
        width: auto;
        height: clamp(250px, 72vw, 340px);
        border-width: 1px;
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14) !important;
    }

    .hero-modern-section > .container {
        width: auto;
        max-width: 100%;
        margin-inline: 0;
        padding-inline: 12px;
    }

    .hero-bar-below {
        width: auto;
        margin-top: 14px;
        padding: 24px 18px;
        border-radius: 18px;
        box-shadow: 0 14px 32px rgba(6, 90, 99, 0.2) !important;
    }

    .hero-bar-below h1 {
        font-size: clamp(1.55rem, 6.5vw, 2rem) !important;
        line-height: 1.45 !important;
        overflow-wrap: anywhere;
    }

    .hero-bar-below p {
        font-size: 0.95rem !important;
    }

    .hero-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 9px !important;
        width: 100%;
    }

    .hero-actions .btn-modern {
        width: 100%;
        max-width: none;
        min-width: 0;
        justify-content: center;
        padding: 12px 16px !important;
    }

    .stats-strip {
        margin-top: 4px;
        padding: 14px;
        border-radius: 18px;
    }

    .stats-strip .row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stats-strip .row > * {
        width: 100%;
        padding: 0;
    }

    .stat-item-box {
        height: 100%;
        min-width: 0;
        padding: 14px 10px;
    }

    .stat-number {
        font-size: 1.35rem;
    }

    .stat-label {
        font-size: 0.78rem;
        overflow-wrap: anywhere;
    }

    .section-modern {
        padding: 3.25rem 0 !important;
    }

    .section-header-modern {
        margin-bottom: 2rem;
    }

    .section-header-modern h2 {
        font-size: clamp(1.5rem, 6vw, 1.85rem);
        text-wrap: balance;
    }

    .service-visual-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .hero-bar-below {
        padding-inline: 16px;
    }

    .stats-strip .row {
        grid-template-columns: 1fr;
    }
}

/* Responsive doctor showcase: eight doctors without overcrowding. */
@media (max-width: 991px) {
    .doctors-visual-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .doctors-visual-grid .service-visual-card {
        height: 350px;
    }
}

@media (max-width: 520px) {
    .doctors-visual-grid {
        grid-template-columns: 1fr;
    }
}


