/* Variables */
:root {
    --primary: #162e2d;
    --secondary: #0a102b;
    --gold: #D4AF37;
    --gold-light: #F4CD68;
    --gold-dark: #B4941F;
    --text-dark: #2c3e50;
    --text-light: #95a5a6;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    padding-top: 80px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

@supports not (backdrop-filter: blur(10px)) {
    header {
        background: rgba(255, 255, 255, 0.98);
    }
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    margin-left: auto;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: 2.5rem;
}

.appointment-btn {
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.appointment-btn:hover {
    background: var(--gold-dark);
}

.language-switcher {
    position: relative;
    margin-right: 1rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.flag-icon {
    height: 20px;
    border-radius: 3px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    display: none;
    min-width: 150px;
    z-index: 1000 !important;
}

.language-switcher:hover .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
    background: var(--gray-100);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    transition: var(--transition);
    z-index: 1002 !important;
}

.mobile-menu-btn:hover {
    color: var(--gold);
}

.mobile-menu-btn.active {
    color: var(--gold);
}

.mobile-menu-btn i {
    pointer-events: none;
}

/* RTL Header Styles */
.rtl .nav-links {
    margin-right: auto;
    margin-left: 0;
    gap: 3rem;
}

.rtl .nav-buttons {
    margin-right: 2.5rem;
    margin-left: 0;
    gap: 2rem;
}

.rtl .nav-links a {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    padding: 0.5rem;
}

.rtl .appointment-btn {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    white-space: nowrap;
    flex-direction: row-reverse;
}

.rtl .language-switcher {
    margin-right: 0;
    margin-left: 1rem;
}

.rtl .lang-btn {
    font-family: 'Cairo', sans-serif;
    padding: 0.5rem 1rem;
    flex-direction: row-reverse;
}

.rtl .lang-dropdown {
    left: 0;
    right: auto;
    text-align: right;
}

.rtl .lang-dropdown a {
    font-family: 'Cairo', sans-serif;
    padding: 0.8rem 1rem;
    flex-direction: row-reverse;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    header {
        height: 70px;
        padding: 0;
    }

    nav {
        width: 100%;
        padding: 0;
    }

    nav .container {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0 15px;
        height: 70px;
    }

    .logo {
        order: 1;
    }

    .logo-img {
        height: 40px;
    }

    .mobile-menu-btn {
        display: flex !important;
        order: 3;
        margin-left: auto;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 50%;
        background: transparent;
        color: var(--text-dark) !important;
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        z-index: 1010;
    }

    .nav-buttons {
        order: 2;
        margin-left: 0;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 2rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }

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

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        text-align: center;
    }

    /* RTL Mobile Menu */
    .rtl .nav-links {
        right: auto;
        left: -100%;
        text-align: right;
    }

    .rtl .nav-links.active {
        right: auto;
        left: 0;
    }

    .rtl .mobile-menu-btn {
        margin-left: 0;
        margin-right: 1rem;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 576px) {
    .nav-links {
        padding: 1.5rem;
    }
}

/* Hero Section */
.about-hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../Images/DR.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-content p {
    font-size: 1.5rem;
    opacity: 0.9;
    opacity: 0;
    transform: translateY(30px);
}

/* Introduction Section */
.intro-section {
    padding: 6rem 0;
    background: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-image {
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
}

.intro-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--gold);
    color: var(--white);
    padding: 2rem;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.intro-content {
    opacity: 0;
    transform: translateX(30px);
}

.intro-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.intro-content .lead {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
}

/* Education Timeline */
.education-section {
    padding: 6rem 0;
    background: var(--gray-100);
}

.section-title {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--primary);
    opacity: 0;
    transform: translateY(30px);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--gold);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 50%;
    opacity: 0;
    transform: translateX(-30px);
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    transform: translateX(30px);
}

.timeline-icon {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 5px 10px rgba(212, 175, 55, 0.3);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -60px;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-year {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.timeline-details {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Expertise Section */
.expertise-section {
    padding: 6rem 0;
    background: var(--white);
}

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

.expertise-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.expertise-icon {
    width: 80px;
    height: 80px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.expertise-icon i {
    font-size: 2rem;
    color: var(--white);
}

.expertise-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.expertise-card p {
    color: var(--text-light);
}

/* Certifications Section */
.certifications-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--gray-100) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.certificates-showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.certificates-slider {
    width: 100%;
    height: 500px;
    padding: 2rem 0;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.certificate-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: var(--white);
    transition: var(--transition);
    width: 100%;
    height: 400px;
}

.certificate-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Navigation buttons */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    color: var(--primary);
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--gold);
}

.swiper-button-next:hover:after,
.swiper-button-prev:hover:after {
    color: var(--white);
}

/* Pagination */
.swiper-pagination {
    position: relative;
    margin-top: 2rem;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--gray-300);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--gold);
    width: 20px;
    border-radius: 5px;
}

/* Certificate overlay */
.certificate-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem;
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    z-index: 2;
}

.certificate-item:hover .certificate-overlay {
    transform: translateY(0);
}

/* Enhanced Section Styles */
.certifications-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Contact Badge */
.contact-badge-section01 {
    padding: 4rem 0;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.contact-badge-section01::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    z-index: -1;
}

.contact-badge01 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-badge01:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.contact-badge01::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-badge01:hover::before {
    transform: translateX(100%);
}

.contact-badge-content01 {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.contact-badge-icon01 {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-badge-icon01 i {
    font-size: 2.5rem;
    color: var(--gold);
    z-index: 2;
    animation: pulse01 2s infinite;
}

.icon-ring01 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: ringPulse01 2s infinite;
}

.ring-delay01 {
    animation-delay: 0.5s;
}

.contact-info01 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label01 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.contact-number01 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-number01:hover {
    color: var(--gold);
}

.contact-available01 {
    font-size: 0.85rem;
    opacity: 0.7;
}

.contact-badge-actions01 {
    display: flex;
    gap: 1rem;
}

.contact-action-btn01 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.call-btn01 {
    background: var(--gold);
    color: var(--primary);
}

.call-btn01:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
}

.whatsapp-btn01 {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-btn01:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

@keyframes pulse01 {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes ringPulse01 {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Responsive Design for Contact Badge */
@media (max-width: 768px) {
    .contact-badge01 {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .contact-badge-content01 {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-badge-actions01 {
        flex-direction: column;
        width: 100%;
    }

    .contact-action-btn01 {
        justify-content: center;
    }

    .contact-number01 {
        font-size: 1.5rem;
    }
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
}

.footer-top {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: var(--gold);
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--gold);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Animations */
.animate-fade-up {
    animation: fadeUp 1s ease forwards;
}

.animate-fade-right {
    animation: fadeRight 1s ease forwards;
}

.animate-fade-left {
    animation: fadeLeft 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

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

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

/* Responsive Design */
@media (max-width: 1200px) {
    .intro-grid {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        bottom: -20px;
        right: -20px;
        padding: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .intro-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
    }

    .timeline-icon {
        left: 10px !important;
        right: auto !important;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .contact-badge01 {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

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

.rtl .nav-links {
    margin-right: auto;
    margin-left: 0;
    gap: 3rem;
}

.rtl .nav-buttons {
    margin-right: 2.5rem;
    margin-left: 0;
    gap: 2rem;
}

.rtl .nav-links a {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    padding: 0.5rem;
}

.rtl .appointment-btn {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    white-space: nowrap;
    flex-direction: row-reverse;
}

.rtl .language-switcher {
    margin-right: 0;
    margin-left: 1rem;
}

.rtl .lang-btn {
    font-family: 'Cairo', sans-serif;
    padding: 0.5rem 1rem;
    flex-direction: row-reverse;
}

.rtl .lang-dropdown {
    left: 0;
    right: auto;
    text-align: right;
}

.rtl .lang-dropdown a {
    font-family: 'Cairo', sans-serif;
    padding: 0.8rem 1rem;
    flex-direction: row-reverse;
}

/* Adjust animations for RTL */
.rtl .animate-fade-right {
    animation: fadeLeft 1s ease forwards;
}

.rtl .animate-fade-left {
    animation: fadeRight 1s ease forwards;
}

/* Adjust swiper for RTL */
.rtl .swiper-button-next {
    transform: rotate(180deg);
}

.rtl .swiper-button-prev {
    transform: rotate(180deg);
}

/* Other RTL Styles */
.rtl .intro-grid {
    direction: rtl;
}

.rtl .intro-content {
    text-align: right;
}

.rtl .intro-stats {
    direction: rtl;
}

.rtl .timeline-item:nth-child(odd) .timeline-icon {
    left: -60px;
    right: auto;
}

.rtl .timeline-item:nth-child(even) .timeline-icon {
    right: -60px;
    left: auto;
}

.rtl .timeline-item {
    text-align: right;
}

.rtl .expertise-card {
    direction: rtl;
    text-align: right;
}

.rtl .contact-badge01 {
    flex-direction: row-reverse;
}

.rtl .footer-contact {
    direction: rtl;
}

.rtl .footer-social {
    flex-direction: row-reverse;
}

.rtl .footer-links {
    flex-direction: row-reverse;
}

.rtl .contact-item {
    flex-direction: row-reverse;
}

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

.rtl .experience-badge {
    left: -30px;
    right: auto;
}

.rtl .nav-links a::after {
    right: 0;
    left: auto;
}

/* Mobile Responsive RTL Fixes */
@media (max-width: 992px) {
    .rtl .nav-links.menu-open {
        right: 0;
        left: auto;
        text-align: right;
        padding-right: 2rem;
    }
    
    .rtl .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        transition: 0.3s;
        flex-direction: column;
        padding: 2rem;
        z-index: 1000;
    }
}

@media (max-width: 768px) {
    .rtl .footer-contact {
        text-align: right;
    }
    
    .rtl .contact-badge01 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .rtl .contact-item {
        justify-content: center;
    }
}

/* Fix for horizontal scroll */
.footer-section01,
.footer-grid01,
.footer-container01,
.luxury-footer01 {
    max-width: 100vw;
    overflow: hidden;
}

.footer-grid01 {
    padding: 0 15px;
}

@media (max-width: 992px) {
    .footer-grid01 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid01 {
        grid-template-columns: 1fr;
    }

    .map-container01 {
        height: 250px;
    }
}

/* Fix for RTL mobile view */
@media (max-width: 992px) {
    .rtl .timeline-item {
        padding-right: 50px;
        padding-left: 15px;
    }

    .rtl .timeline-icon {
        right: 10px !important;
        left: auto !important;
    }

    .rtl .contact-badge01 {
        flex-direction: column;
    }

    .rtl .contact-badge-content01,
    .rtl .contact-badge-actions01 {
        width: 100%;
    }
}

/* Mobile Responsive Fixes */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        transition: 0.3s;
        flex-direction: column;
        padding: 2rem;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-buttons {
        display: none;
    }

    .language-switcher.desktop-only {
        display: none;
    }

    .mobile-lang-switcher {
        display: block;
    }
}

/* Team Section Styles */
.team-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--gray-100) 0%, #ffffff 100%);
}

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

.doctor-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.doctor-image {
    position: relative;

    height: 10px !important;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: var(--transition);
}

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

.doctor-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 2rem 1.5rem 1rem;
    transition: var(--transition);
}

.doctor-card:hover .doctor-overlay {
    bottom: 0;
}

.doctor-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.doctor-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    transform: translateY(60px);
    opacity: 0;
}

.doctor-card:hover .doctor-social a {
    transform: translateY(0);
    opacity: 1;
}

.doctor-card:hover .doctor-social a:nth-child(1) {
    transition-delay: 0.1s;
}

.doctor-card:hover .doctor-social a:nth-child(2) {
    transition-delay: 0.2s;
}

.doctor-social a:hover {
    background: var(--gold);
    color: var(--white);
}

.doctor-info {
    padding: 2rem;
    text-align: center;
}

.doctor-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.doctor-position {
    font-size: 1rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.doctor-position::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--gold);
}

.doctor-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* RTL Support for Team Section */
.rtl .doctor-info {
    text-align: center;
}

.rtl .doctor-name, 
.rtl .doctor-position, 
.rtl .doctor-description {
    font-family: 'Cairo', sans-serif;
}

/* Responsive styles for Team Section */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 3rem auto 0;
    }
}

@media (max-width: 576px) {
    .doctor-image {
        height: 300px;
    }
    
    .doctor-info {
        padding: 1.5rem;
    }
    
    .doctor-name {
        font-size: 1.5rem;
    }
}

/* Specific adjustment for Dr. Shadafza's image if needed */
.doctor-card:nth-child(2) .doctor-image img {
    object-position: top center;
}

/* Improve image display for doctor profiles */
.shadafza-image img {
    object-position: center 20%;
}

/* Make the shadafza image display fully */
.shadafza-image .doctor-image img {
    object-fit: contain;
    object-position: center;
    background-color: #f9f9f9; /* Light background to fill empty space */
    padding: 10px; /* Add some padding around the image */
}

/* Alternative approach if needed for all doctor images */
