/* Base styles */
:root {
    --primary-color: #4B0082; /* Deep Violet */
    --secondary-color: #98FB98; /* Mint Green */
    --cta-color: #DC143C; /* Crimson */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
    direction: rtl;
    background-color: var(--light-bg);
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--cta-color);
    text-decoration: none;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 70px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-content {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
    margin-right: 20px;
}

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

.nav-links li {
    position: relative;
    margin: 0 10px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 700;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    background-color: rgba(75, 0, 130, 0.1);
}

/* Language Switcher */
.language-switch {
    margin-right: 20px;
}

.language-switch a {
    padding: 5px 10px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 700;
    color: var(--primary-color);
}

.language-switch a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Dropdown menu */
.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
    padding: 10px 0;
    border-top: 3px solid var(--primary-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    border-bottom: 1px solid #f1f1f1;
    font-weight: 400;
    color: var(--text-color);
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding-right: 25px; /* Slide effect */
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: var(--primary-color);
}

/* --- Sections --- */

/* Hero section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #fdfbfd 0%, #e6e6fa 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 0;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-btn {
    display: inline-block;
    background-color: var(--cta-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    position: relative;
    z-index: 1;
}

.cta-btn:hover {
    background-color: #b01030;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
    color: var(--white);
}

/* Features section */
.features-section {
    padding: 80px 0;
    background-color: var(--white);
}

.features-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 2.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.feature-card i {
    font-size: 45px;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: rgba(75, 0, 130, 0.1);
    padding: 20px;
    border-radius: 50%;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.3rem;
}

/* Doctor section */
.doctor-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.doctor-content {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.doctor-image img {
    border-radius: 50%;
    max-width: 220px;
    border: 5px solid var(--secondary-color);
}

.doctor-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.doctor-text h4 {
    color: var(--cta-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Regions Section */
.regions-section {
    padding: 80px 0;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.region-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid var(--primary-color);
}

.region-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.region-card h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Contact section */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contact-content {
    display: flex;
    gap: 50px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-item i {
    color: var(--cta-color);
    font-size: 24px;
}

.contact-form input,
.contact-form textarea {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 12px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: #3a006b;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #2c2c2c;
    color: #ddd;
    padding: 60px 0 20px;
}

footer h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

footer a:hover {
    color: var(--secondary-color);
}

.footer-contact i {
    color: var(--cta-color);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #25D366, #128C7E);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

/* WhatsApp Chat Window */
.whatsapp-chat {
    position: fixed;
    bottom: 90px;
    left: 20px;
    z-index: 1001;
    width: 300px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    display: none; /* Hidden by default */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.whatsapp-chat.show {
    opacity: 1;
    transform: translateY(0);
}

.chat-header {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
}

.chat-header h4 {
    margin: 0;
    font-size: 16px;
}

.chat-header p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.close-chat {
    position: absolute;
    top: 10px;
    right: 15px; /* RTL: left side? No, close usually on corner. */
    left: auto;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
}
/* Since direction is RTL, right is actually right. */

.chat-body {
    padding: 20px;
    background-color: #f9f9f9;
    height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-bubble {
    background-color: white;
    padding: 10px 15px;
    border-radius: 15px;
    border-top-right-radius: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    max-width: 80%;
    font-size: 14px;
    align-self: flex-start;
}

.message-bubble.user-message {
    background-color: #dcf8c6;
    border-top-right-radius: 15px;
    border-top-left-radius: 0;
    align-self: flex-end;
}

.chat-footer {
    padding: 10px;
    background-color: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex-grow: 1;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chat-footer .send-btn {
    background-color: #25D366;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-footer .send-btn:hover {
    background-color: #128C7E;
}

/* WhatsApp Float (Anchor version) */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #25D366, #128C7E);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    color: white;
    font-size: 30px;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    color: white;
}

/* Content Pages */
.content-section h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.info-box {
    background-color: #f0f4ff;
    border-right: 5px solid var(--primary-color);
}

.warning-note {
    background-color: #fff5f5;
    border-right: 5px solid var(--cta-color);
    color: #8b0000;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Implement mobile menu JS toggle */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 20px 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .doctor-content, .contact-content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}