:root {
    --primary-color: #4759A2;
    /* Teal/Medical Blue */
    --secondary-color: #140C81;
    /* Dark  /Grey */
    --third-color: #4759A2;
    /* Dark Blue/Grey */
    --accent-color: #8E0C31;
    /* Light Green for freshness */
    --light-bg: #b0d6db;
    --text-color: #000000;

}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--secondary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Navbar */
.navbar-brand img {
    max-height: 70px;
    width: auto;
}

.nav-link {
    color: var(--secondary-color) !important;
    font-weight: 600;
    margin-left: 15px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    right: 0;
    left: auto;
}

.dropdown-item {
    text-align: right;
    padding: 10px 20px;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(45, 62, 80, 0.7), rgba(45, 62, 80, 0.7)), url('../img/hero-clinic.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Services Cards */
.service-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* General Layout */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title span {
    color: #4A91B5;
    /*var(--primary-color);*/
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #070F12 !important;
    color: #ffffff !important;
}

footer p,
footer h5,
footer a,
footer li,
footer * {
    color: #ffffff !important;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
    height: 85vh;
    min-height: 500px;
    max-height: 800px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fixed: was incorrectly nested inside .slide {} — now a proper top-level rule */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 12, 129, 0.52);
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    padding: 0 20px;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.btn-gold {
    background-color: #D4AF37;
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Dot Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background-color: #D4AF37;
    width: 30px;
    border-radius: 6px;
}

/* Prev / Next Arrow Buttons */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    font-size: 1.1rem;
    backdrop-filter: blur(4px);
}

.slider-arrow:hover {
    background: rgba(212, 175, 55, 0.8);
    border-color: #D4AF37;
}

.slider-arrow.prev {
    right: 20px;
}

.slider-arrow.next {
    left: 20px;
}

html[dir="ltr"] .slider-arrow.prev {
    right: auto;
    left: 20px;
}

html[dir="ltr"] .slider-arrow.next {
    left: auto;
    right: 20px;
}

/* Mobile / Tablet Responsive Rules */
@media (max-width: 992px) {
    .hero-slider {
        height: 75vh;
        min-height: 420px;
    }

    .slide-content h1 {
        font-size: 2.1rem;
    }

    .slide-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 65vh;
        min-height: 360px;
    }

    .slide-content h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .btn-gold {
        padding: 9px 22px;
        font-size: 0.9rem;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .slider-controls {
        bottom: 18px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 80px 0;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 60vh;
        min-height: 300px;
    }

    .slide-content h1 {
        font-size: 1.3rem;
    }

    .slide-content p {
        display: none;
        /* Hide description on very small screens for clarity */
    }

    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

/* RTL Adjustments for LTR mode if needed */
html[dir="ltr"] .nav-link {
    margin-right: 15px;
    margin-left: 0;
}

html[dir="ltr"] .dropdown-menu {
    left: 0;
    right: auto;
}

html[dir="ltr"] .dropdown-item {
    text-align: left;
}