
/* General */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    text-align: right;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nunito-sans-bold {
    font-family: "Nunito Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700; /* مثال: 400 = عادي، 700 = بولد */
    font-style: normal;
    font-variation-settings:
      "wdth" 100,
      "YTLC" 500;
}


/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.8);
    font-weight: bold;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: rgba(0, 0, 0, 0.9);
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    width: 100%;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.hero-content {
    flex: 1;
    padding: 20px;
    min-width: 0;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    transition: color 0.3s ease;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h5 {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-content p {
    margin: 20px 0;
    color: rgba(0, 0, 0, 0.6);
    word-wrap: break-word;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
}

.hero-image {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

/* Sections */
.section {
    padding: 60px 20px;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

.section h2 {
    text-align: center;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
    word-wrap: break-word;
    transition: color 0.3s ease;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Doctor Cards */
.doctors {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.doctor-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    flex: 1 1 250px;
    min-width: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.doctor-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.doctor-card img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* Testimonials */
.testimonials blockquote {
    margin: 15px auto;
    font-style: italic;
    color: rgba(0, 0, 0, 0.6);
    max-width: 600px;
    border-right: 3px solid rgba(0, 0, 0, 0.5);
    padding-right: 10px;
    word-wrap: break-word;
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* Reservation Form */
.reservation form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.reservation input {
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    color: rgba(0, 0, 0, 0.8);
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.reservation input:focus {
    border-color: rgba(0, 0, 0, 0.5);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.reservation button {
    padding: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.reservation button:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.footer iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 10px;
    margin: 20px 0;
}

.footer .socials a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer .socials a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Tool Cards */
.tool-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.tool-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    flex: 1 1 250px;
    min-width: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 1px solid #e9ecef;
}

.tool-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.tool-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

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

.tool-card h3 {
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.tool-card p {
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* About Card */
.about-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.about-card img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    flex-shrink: 0;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.about-text p {
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.6;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

/* Testimonial Cards */
.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.testimonial-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    flex: 1 1 300px;
    min-width: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 1px solid #e9ecef;
}

.testimonial-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.testimonial-card p {
    color: rgba(0, 0, 0, 0.6);
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.testimonial-card h4 {
    color: rgba(0, 0, 0, 0.8);
    margin: 0;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.contact-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    flex: 1 1 250px;
    min-width: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 1px solid #e9ecef;
}

.contact-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.contact-card h3 {
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.contact-card p {
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.menu-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.menu-btn.active {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
        position: relative;
    }

    .menu-btn {
        display: block;
        order: 3;
    }

    .logo {
        order: 1;
        font-size: 1.2rem;
    }

    .logo img {
        width: 35px;
        height: 35px;
        margin-left: 10px;
    }

    .bg-medical {
        padding-right: 30px;
        padding-left: 20px;
    }

    .bg-medical > div {
        max-width: 100%;
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
    }

    .nav-links.show {
        max-height: 500px;
    }

    .nav-links li {
        border-bottom: 1px solid #e9ecef;
    }

    .nav-links li:first-child {
        border-top: 1px solid #e9ecef;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        color: rgba(0, 0, 0, 0.8);
    }

    .nav-links a:hover {
        background: #f8f9fa;
        color: rgba(0, 0, 0, 0.9);
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 40px 15px;
    }

    .doctors, .tools, .testimonials, .contact {
        flex-direction: column;
    }

    .about-card {
        flex-direction: column;
        text-align: center;
    }

    .about-card img {
        width: 150px;
    }

    .benefit-card {
        margin-bottom: 20px;
    }

    .benefit-card img {
        height: 150px !important;
    }

    .reservation .row {
        flex-direction: column-reverse;
    }

    .reservation .col-md-6 {
        margin-bottom: 20px;
    }

    .reservation img {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    .testimonial-cards {
        flex-direction: column;
    }

    .testimonial-card {
        margin-bottom: 20px;
    }

    .contact-cards {
        flex-direction: column;
    }

    .contact-card {
        margin-bottom: 20px;
    }

    .bg-medical h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .bg-medical h5 {
        font-size: 1.1rem;
    }
    
    .bg-medical p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .doctor-card, .tool-card, .testimonial-card, .contact-card {
        flex: 1 1 100%;
    }

    .footer .socials a {
        display: block;
        margin: 10px 0;
    }

    .navbar {
        padding: 8px 10px;
    }

    .logo {
        font-size: 1rem;
    }

    .logo img {
        width: 30px;
        height: 30px;
        margin-left: 8px;
    }

    .bg-medical {
        padding-right: 20px;
        padding-left: 15px;
    }

    .bg-medical > div {
        max-width: 100%;
        margin-left: auto;
    }

    .benefit-card img {
        height: 120px !important;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    .bg-medical h1 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .bg-medical h5 {
        font-size: 1rem;
    }
    
    .bg-medical p {
        font-size: 0.9rem;
    }
}

/* RTL Support */
[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .nav-links {
    text-align: right;
}

/* Dropdown Menu */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* Bootstrap Card Overrides */
.benefit-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    align-items: center;
}

/* Mobile Menu Fix */
@media (max-width: 768px) {
    .navbar {
        position: relative;
        padding: 10px 15px;
    }

    .navbar-container {
        position: relative;
        padding: 0 15px;
    }

    .menu-btn {
        display: block;
        order: 3;
        z-index: 1001;
    }

    .logo {
        order: 1;
        font-size: 1.2rem;
        z-index: 1001;
    }

    .theme-toggle {
        order: 4;
        z-index: 1001;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
        border-top: 1px solid #e9ecef;
    }

    .nav-links.show {
        max-height: 600px;
    }

    .nav-links li {
        border-bottom: 1px solid #e9ecef;
        width: 100%;
    }

    .nav-links li:first-child {
        border-top: 1px solid #e9ecef;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        color: rgba(0, 0, 0, 0.8);
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links a:hover {
        background: #f8f9fa;
        color: rgba(0, 0, 0, 0.9);
    }

    /* Dropdown menu in mobile */
    .dropdown-menu {
        position: static !important;
        background: #f8f9fa !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        transform: none !important;
    }

    .dropdown-item {
        padding: 10px 30px !important;
        color: rgba(0, 0, 0, 0.6) !important;
        border-bottom: 1px solid #e9ecef !important;
    }

    .dropdown-item:hover {
        background: #e9ecef !important;
        color: rgba(0, 0, 0, 0.9) !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 8px 10px;
    }

    .navbar-container {
        padding: 0 10px;
    }

    .logo {
        font-size: 1rem;
    }

    .logo img {
        width: 30px;
        height: 30px;
        margin-left: 8px;
    }

    .nav-links a {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .dropdown-item {
        padding: 8px 25px !important;
        font-size: 0.85rem !important;
    }

    .bg-medical h1 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .bg-medical h5 {
        font-size: 1rem;
    }
    
    .bg-medical p {
        font-size: 0.9rem;
    }
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #333333;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.theme-toggle:hover {
    background: #f8f9fa;
}

/* Bootstrap Grid System */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    box-sizing: border-box;
}

.col-md-4, .col-md-6, .col-md-8 {
    padding: 0 15px;
    box-sizing: border-box;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

@media (max-width: 768px) {
    .col-md-4, .col-md-6, .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .row {
        margin: 0;
    }

    .container {
        padding: 0 10px;
    }
}

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

    .col-md-4, .col-md-6, .col-md-8 {
        padding: 0 5px;
    }
}

/* Image Responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Benefit Cards */
.benefit-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.benefit-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.benefit-card .card-body {
    padding: 20px;
    background: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease;
}

.benefit-card .card-title {
    color: rgba(0, 0, 0, 0.8);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.benefit-card .card-text {
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.6;
    flex: 1;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Reservation Image */
.reservation-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.reservation-image:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .reservation .row {
        flex-direction: column-reverse;
    }

    .reservation .col-md-6 {
        margin-bottom: 20px;
    }

    .reservation-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }

    .reservation h2 {
        text-align: center;
        margin-bottom: 20px;
    }

    .reservation form {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .reservation-image {
        max-width: 250px;
    }

    .reservation input,
    .reservation button {
        font-size: 16px;
        padding: 15px;
    }
}

/* Question Sections Responsive */
@media (max-width: 768px) {
    .questions-nav {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .questions-nav .nav-item {
        width: 100%;
        text-align: center;
    }

    .question-section {
        padding: 30px 15px;
    }

    .question-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .question-section .row {
        flex-direction: column;
    }

    .question-section .col-md-4,
    .question-section .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .question-section img {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    .question-section ul li {
        margin-bottom: 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .questions-nav .nav-item {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .question-section h2 {
        font-size: 1.3rem;
    }

    .question-section ul li {
        font-size: 0.85rem;
    }

    .question-section img {
        max-width: 250px;
    }

    .question-section {
        padding: 20px 10px;
    }
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

/* Theme Toggle */

/* Dark Section Override */
.bg-dark {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)) !important;
    color: #ffffff !important;
}

.bg-dark h2 {
    color: #ffffff !important;
}

.bg-dark .benefit-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
}

.bg-dark .benefit-card:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.bg-dark .benefit-card .card-title {
    color: rgba(0, 0, 0, 0.8) !important;
}

.bg-dark .benefit-card .card-text {
    color: rgba(0, 0, 0, 0.6) !important;
}

/* Medical Background Override */
body.dark-theme .bg-medical {
    background-image: url('../image/doctora.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    position: relative !important;
}

.bg-medical .container {
    position: relative;
    z-index: 2;
}

.bg-medical h1 {
  color: #d4af37 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.bg-medical h5,
.bg-medical p {
  color: rgba(0,0,0,0.8) !important;
  text-shadow: none !important;
}
body.dark-theme .bg-medical h1 {
  color: #222 !important;
}
body.dark-theme .bg-medical h5,
body.dark-theme .bg-medical p {
  color: #d4af37 !important;
}

.bg-medical .btn {
    background: #ffffff !important;
    color: rgba(0, 0, 0, 0.8) !important;
}

.bg-medical .btn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: rgba(0, 0, 0, 0.8) !important;
}

/* Section Improvements */
.section {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

.question-section {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.question-section:nth-child(even) {
    background: #f8f9fa;
}

.question-section h2 {
    text-align: center;
    color: rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 30px;
}

/* Card Improvements */
.doctor-card,
.tool-card,
.testimonial-card,
.contact-card,
.about-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover,
.tool-card:hover,
.testimonial-card:hover,
.contact-card:hover,
.about-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Form Improvements */
.reservation input {
    background: #ffffff;
    border: 1px solid #ddd;
    color: rgba(0, 0, 0, 0.8);
}

.reservation input:focus {
    border-color: rgba(0, 0, 0, 0.5);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.reservation button {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border: none;
    font-weight: 500;
}

.reservation button:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Footer Improvements */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

.footer .socials a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer .socials a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Gallery Improvements */
.gallery img {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Dark Theme */
body.dark-theme {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-theme .navbar {
    background: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-theme .logo {
    color: #ffffff;
}

body.dark-theme .logo img {
    border: 2px solid rgba(255, 255, 255, 0.2);
}

body.dark-theme .nav-links a {
    color: #ffffff;
}

body.dark-theme .nav-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-theme .hero-section {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
}

body.dark-theme .hero-content h1 {
    color: #ffffff;
}

body.dark-theme .hero-content p {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-theme .btn {
    background: #ffffff;
    color: #1a1a1a;
}

body.dark-theme .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
}

body.dark-theme .section {
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
}

body.dark-theme .section:nth-child(even) {
    background: #1a1a1a;
}

body.dark-theme .section h2 {
    color: #ffffff;
}

body.dark-theme .doctor-card,
body.dark-theme .tool-card,
body.dark-theme .testimonial-card,
body.dark-theme .contact-card,
body.dark-theme .about-card {
    background: #2d2d2d;
    border: 1px solid #404040;
    color: #ffffff;
}

body.dark-theme .doctor-card:hover,
body.dark-theme .tool-card:hover,
body.dark-theme .testimonial-card:hover,
body.dark-theme .contact-card:hover,
body.dark-theme .about-card:hover {
    background: #333333;
}

body.dark-theme .tool-card h3,
body.dark-theme .testimonial-card h4,
body.dark-theme .contact-card h3,
body.dark-theme .about-text h3 {
    color: #ffffff;
}

body.dark-theme .tool-card p,
body.dark-theme .testimonial-card p,
body.dark-theme .contact-card p,
body.dark-theme .about-text p {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-theme .testimonials blockquote {
    color: rgba(255, 255, 255, 0.8);
    border-right: 3px solid #ffffff;
}

body.dark-theme .reservation input {
    background: #2d2d2d;
    border: 1px solid #404040;
    color: #ffffff;
}

body.dark-theme .reservation input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
}

body.dark-theme .reservation button {
    background: #ffffff;
    color: #1a1a1a;
}

body.dark-theme .reservation button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
}

body.dark-theme .footer {
    background: #1a1a1a;
}

body.dark-theme .footer .socials a:hover {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-theme .benefit-card {
    background: #2d2d2d;
    border: 1px solid #404040;
}

body.dark-theme .benefit-card:hover {
    background: #333333;
}

body.dark-theme .benefit-card .card-title {
    color: #ffffff;
}

body.dark-theme .benefit-card .card-text {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-theme .question-section {
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
}

body.dark-theme .question-section:nth-child(even) {
    background: #1a1a1a;
}

body.dark-theme .question-section h2 {
    color: #ffffff !important;
}

body.dark-theme .question-section ul li {
    color: rgba(255, 255, 255, 0.8);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.dark-theme .theme-toggle {
    color: #ffffff;
}

body.dark-theme .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu in Dark Theme */
body.dark-theme .nav-links {
    background: #2d2d2d;
    border-top: 1px solid #404040;
}

body.dark-theme .nav-links li {
    border-bottom: 1px solid #404040;
}

body.dark-theme .nav-links li:first-child {
    border-top: 1px solid #404040;
}

body.dark-theme .nav-links a:hover {
    background: #404040;
    color: #ffffff;
}

body.dark-theme .dropdown-menu {
    background: #404040 !important;
}

body.dark-theme .dropdown-item {
    color: #ffffff !important;
    border-bottom: 1px solid #555555 !important;
}

body.dark-theme .dropdown-item:hover {
    background: #555555 !important;
    color: #ffffff !important;
}

/* Dark Section Override for Dark Theme */
body.dark-theme .bg-dark {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d) !important;
    color: #ffffff !important;
}

body.dark-theme .bg-dark h2 {
    color: #ffffff !important;
}

body.dark-theme .bg-dark .benefit-card {
    background: rgba(45, 45, 45, 0.95) !important;
    border: 1px solid rgba(64, 64, 64, 0.2) !important;
}

body.dark-theme .bg-dark .benefit-card:hover {
    background: rgba(51, 51, 51, 1) !important;
}

body.dark-theme .bg-dark .benefit-card .card-title {
    color: #ffffff !important;
}

body.dark-theme .bg-dark .benefit-card .card-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Medical Background Override for Dark Theme */
body.dark-theme .bg-medical {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d) !important;
    color: #ffffff !important;
}

body.dark-theme .bg-medical h1 {
    color: #ffffff !important;
}

body.dark-theme .bg-medical h5 {
    color: #d4af37 !important;
}

body.dark-theme .bg-medical p {
    color: #d4af37 !important;
}

body.dark-theme .bg-medical .btn {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

body.dark-theme .bg-medical .btn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1a1a1a !important;
}

@media (max-width: 768px) {
    .navbar-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
    }
    .menu-btn {
        order: 2;
        margin-left: 10px;
        margin-right: 0;
    }
    .theme-toggle {
        order: 3;
        margin-left: 0;
        margin-right: 0;
    }
    .logo {
        order: 1;
    }
}

@media (max-width: 480px) {
    .menu-btn, .theme-toggle {
        font-size: 1.3rem;
        padding: 5px 8px;
    }
    .menu-btn {
        margin-left: 8px;
    }
}

@media (max-width: 768px) {
  .menu-btn {
    display: block !important;
  }
}

body.dark-theme .bg-medical h1 {
    color: #222 !important;
}

body.dark-theme .bg-medical h5 {
    color: #d4af37 !important;
}

body.dark-theme .bg-medical p {
    color: #d4af37 !important;
}

/* Hero Section Responsive */
@media (max-width: 768px) {
  .bg-medical {
    background-attachment: scroll !important;
    background-size: contain !important;
    background-position: center !important;
  }
  
  .bg-medical .row {
    flex-direction: column;
  }
  
  .bg-medical .col-md-12 {
    text-align: inherit !important;
    padding-left: inherit !important;
    display: inherit;
    flex-direction: inherit;
    align-items: inherit;
    justify-content: inherit;
    min-height: inherit;
  }
  
  .bg-medical h1 {
    font-size: 1.8rem !important;
    line-height: 1.3;
  }
  
  .bg-medical h5 {
    font-size: 1rem !important;
  }
  
  .bg-medical p {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 480px) {
  .bg-medical {
    background-size: contain !important;
    background-position: center !important;
  }
  
  .bg-medical h1 {
    font-size: 1.5rem !important;
    line-height: 1.4;
  }
  
  .bg-medical h5 {
    font-size: 0.9rem !important;
  }
  
  .bg-medical p {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    background: rgba(255,255,255,0.85) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    border-bottom: 1px solid #e9ecef;
  }
}

/* فاصل واضح بين الباكجراوند والسكشن التالي */
.bg-medical {
  position: relative;
}
.bg-medical::after {
  display: none !important;
}
@media (max-width: 768px) {
  .bg-medical::after {
    height: 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 90%);
  }
}

/* لون نص الهيرو سكشن أبيض أو واضح */
.bg-medical h1,
.bg-medical h5,
.bg-medical p {
  color: #d4af37 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* لون اللوجو ذهبي */
.logo {
  color: #d4af37 !important;
}

body.dark-theme .logo {
  color: #ffd700 !important;
}

/* إزالة أي override في الشاشات الصغيرة */
@media (max-width: 768px) {
  .bg-medical {
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important;
  }
}

@media (max-width: 480px) {
  .bg-medical {
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important;
  }
}

body.dark-theme .footer h3 {
    color: #d4af37 !important;
}

.hero-logo-dark {
  display: none !important;
}
body.dark-theme .hero-logo-dark {
  display: block !important;
}

/* body.dark-theme .bg-medical .col-md-12 {
  /* No overrides, use default and media query rules */
 */

.bg-medical {
  background-image: url('../image/doctora.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  position: relative !important;
}
body.dark-theme .bg-medical {
  background-image: url('../image/doctora.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Dark theme styles for hero section text */
body.dark-theme .bg-medical h5 {
    color: #d4af37 !important;
}

body.dark-theme .bg-medical p {
    color: #d4af37 !important;
}

/* Hero text classes for dark theme */
body.dark-theme .hero-h5 {
    color: #d4af37 !important;
}

body.dark-theme .hero-p {
    color: #d4af37 !important;
}
