/* Language Toggle */
.language-toggle {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 2rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #3498db;
    background: transparent;
    color: #3498db;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-btn:hover,
.lang-btn.active {
    background: #3498db;
    color: white;
}

/* RTL Support */
body.arabic {
    direction: rtl;
    text-align: right;
}

body.arabic .nav {
    flex-direction: row-reverse;
}

body.arabic .hero-content {
    flex-direction: row-reverse;
}

body.arabic .services-grid {
    direction: rtl;
}

body.arabic .contact-content {
    flex-direction: row-reverse;
}

body.arabic .footer-content {
    flex-direction: row-reverse;
}

/* Arabic Font and Text Styling */
.lang-ar {
    font-family: 'Inter', 'Arial', 'Tahoma', sans-serif;
    line-height: 1.8;
    text-align: right;
    direction: rtl;
}

.lang-ar h1, .lang-ar h2, .lang-ar h3, .lang-ar h4 {
    font-weight: 600;
    letter-spacing: -0.5px;
}

.lang-ar p {
    font-size: 1.05em;
    line-height: 1.9;
}

/* Arabic Navigation */
body.arabic .nav-menu {
    margin-right: auto;
    margin-left: 0;
}

body.arabic .language-toggle {
    margin-left: 0;
    margin-right: 2rem;
}

/* Arabic Hero Section */
body.arabic .hero-text {
    text-align: right;
    padding-right: 0;
    padding-left: 2rem;
}

body.arabic .hero-buttons {
    flex-direction: row-reverse;
}

body.arabic .hero-buttons .btn {
    margin-right: 0;
    margin-left: 1rem;
}

/* Arabic About Section */
body.arabic .credentials ul li {
    text-align: right;
    direction: rtl;
}

body.arabic .credentials ul li i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Arabic Services Section */
body.arabic .service-card ul li {
    text-align: right;
    direction: rtl;
}

body.arabic .service-card ul li:before {
    content: "•";
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Arabic Reviews Section */
body.arabic .review-card {
    direction: rtl;
    text-align: right;
}

body.arabic .review-content {
    text-align: right;
}

body.arabic .review-rating {
    direction: rtl;
}

/* Arabic Contact Section */
body.arabic .contact-item {
    direction: rtl;
    text-align: right;
}

body.arabic .contact-item i {
    margin-right: 0;
    margin-left: 1rem;
}

body.arabic .contact-item a {
    flex-direction: row-reverse;
    text-align: right;
    direction: rtl;
}

body.arabic .contact-item a i {
    margin-left: 0;
    margin-right: 0.3rem;
}

body.arabic .form-group input,
body.arabic .form-group textarea {
    direction: rtl;
    text-align: right;
}

/* Arabic Footer */
body.arabic .footer-links ul li {
    text-align: right;
    direction: rtl;
}

/* Arabic Typography Improvements */
.lang-ar .hero-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.lang-ar .section-title {
    font-size: 2rem;
    font-weight: 600;
}

.lang-ar .service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.lang-ar .review-text {
    font-size: 1rem;
    line-height: 1.8;
}

/* Arabic Button Text */
.lang-ar .btn {
    font-weight: 500;
    letter-spacing: normal;
}

/* Arabic Mobile Navigation */
@media (max-width: 768px) {
    body.arabic .nav-menu {
        text-align: right;
        direction: rtl;
    }
    
    body.arabic .language-toggle {
        margin-right: auto;
        margin-left: 1rem;
    }
    
    body.arabic .hero-text {
        padding-left: 0;
        padding-right: 0;
    }
    
    body.arabic .hero-buttons {
        flex-direction: column;
        align-items: flex-end;
    }
}
    text-align: right;
    padding-right: 2.5rem;
    padding-left: 0;
}

body.arabic .credentials ul li i {
    right: 0;
    left: auto;
}

/* Arabic Services */
body.arabic .service-card ul li {
    text-align: right;
    padding-right: 1.5rem;
    padding-left: 0;
}

body.arabic .service-card ul li:before {
    right: 0;
    left: auto;
    content: "• ";
}

/* Arabic Contact */
body.arabic .contact-item {
    text-align: right;
    padding-right: 3rem;
    padding-left: 0;
}

body.arabic .contact-item i {
    right: 0;
    left: auto;
}

/* Arabic Form */
body.arabic input,
body.arabic textarea {
    text-align: right;
    direction: rtl;
}

body.arabic input::placeholder,
body.arabic textarea::placeholder {
    text-align: right;
}

/* Hide Arabic by default */
.lang-ar {
    display: none;
}

/* Show Arabic when Arabic is active */
body.arabic .lang-ar {
    display: block !important;
}

body.arabic .lang-en {
    display: none !important;
}

/* Arabic button active state */
body.arabic #lang-ar {
    background: #3498db;
    color: white;
}

body.arabic #lang-en {
    background: transparent;
    color: #3498db;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3498db;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #fff;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #667eea;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    height: auto;
}

/* Prevent image splitting */
.hero-image .profile-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.profile-image {
    width: auto;
    height: auto;
    max-width: 380px;
    max-height: 280px;
    border-radius: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    position: relative;
}

.profile-image:hover {
    transform: none;
    box-shadow: none;
    border-color: none;
}
}

.doctor-photo {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: none;
    border-radius: 0;
    max-width: 100%;
    max-height: 100%;
}

.profile-image:hover .doctor-photo {
    transform: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-image {
        order: -1;
    }
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image .profile-image {
    width: auto;
    height: auto;
    max-width: 280px;
    max-height: 200px;
    border-radius: 0;
    overflow: hidden;
}
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    position: relative;
}

.about-image .profile-image:hover {
    transform: none;
    box-shadow: none;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.credentials {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.credentials h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-card p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    padding-left: 1rem;
    position: relative;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.credentials ul {
    list-style: none;
}

.credentials li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #555;
}

.credentials i {
    color: #3498db;
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-right: 1.5rem;
    width: 30px;
}

.contact-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.contact-item a i {
    font-size: 0.8rem;
    margin: 0;
    color: inherit;
}

.contact-item p {
    color: #666;
    font-size: 0.95rem;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: #f8f9fa;
    opacity: 1 !important;
    visibility: visible !important;
}

.reviews-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    margin-bottom: 4rem !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.review-card:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Removed decorative quote element for clean look */
/* .review-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 4rem;
    color: #667eea;
    opacity: 0.3;
    font-family: Georgia, serif;
} */

.review-photo {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.patient-photo {
    width: 120px;
    height: 80px;
    border-radius: 0;
    object-fit: contain;
    transition: none;
    box-shadow: none;
    margin-bottom: 0.5rem;
    display: block !important;
    visibility: visible !important;
}

.review-card:hover .patient-photo {
    transform: none;
}

.review-rating {
    text-align: center;
    margin-bottom: 1rem;
}

.review-rating i {
    color: #ffc107;
    font-size: 1.1rem;
    margin: 0 2px;
}

.review-text {
    font-style: italic;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    padding: 0 1rem;
}

.review-patient-info {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

.review-patient-info h4 {
    color: #2c3e50;
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.review-patient-info span {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.review-cta {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.review-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.review-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.review-cta .btn {
    background: white;
    color: #667eea;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.review-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .profile-image {
        width: auto;
        height: auto;
        max-width: 280px;
        max-height: 200px;
    }
    
    .doctor-photo {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-width: 100%;
        max-height: 100%;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .patient-photo {
        width: 100px;
        height: 65px;
    }
    
    .review-text {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .profile-image {
        width: 150px;
        height: 110px;
        border-width: 2px;
    }
    
    .hero-image .profile-image {
        max-width: 100px;
        max-height: 75px;
        padding: 2px;
    }
    
    .patient-photo {
        width: 85px;
        height: 55px;
    }
    
    .review-text {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0 0.3rem;
    }
    
    .review-card {
        padding: 1.5rem;
    }
}

/* Hero section specific - smaller doctor image to prevent splitting */
.hero-image .profile-image {
    max-width: 180px;
    max-height: 130px;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    padding: 5px;
    box-shadow: none;
    overflow: visible;
}

.hero-image .doctor-photo {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}
}

/* Mobile responsive for hero doctor image */
@media (max-width: 768px) {
    .hero-image .profile-image {
        max-width: 120px;
        max-height: 90px;
        padding: 3px;
    }
    
    .hero-image .doctor-photo {
        max-width: 100%;
        max-height: 100%;
    }
}
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav {
        padding: 1rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
}