/* Al-Istiqama Medical Centre - Main Stylesheet */

/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2; /* More vibrant blue */
    --secondary-color: #357abd; /* Darker shade for gradients */
    --dark-color: #2c3e50;
    --light-color: #f8f9fa; /* Lighter, cleaner background */
    --white: #ffffff;
    --text-color: #333333;
    --gray: #7f8c8d;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sarala', Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #fdfdfd;
}

body.rtl {
    font-family: 'Abdo Line', Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.rtl .top-bar-content {
    direction: ltr;
}

.top-bar-left a {
    color: var(--white);
    margin-right: 20px;
}

.rtl .top-bar-left a {
    margin-right: 0;
    margin-left: 20px;
}

.top-bar-right {
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 5px 15px;
    border-radius: 4px;
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.lang-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.rtl .header-content {
    direction: ltr;
}

.logo img {
    height: 65px;
    transition: var(--transition);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    font-size: 16px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: 5px 0 25px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.rtl .mobile-menu {
    left: auto;
    right: -100%;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0,0,0,0.3);
}

.mobile-menu.active {
    left: 0;
}

.rtl .mobile-menu.active {
    right: 0;
    left: auto;
}

.mobile-menu-header {
    padding: 25px 20px;
    background-color: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header .mobile-logo {
    height: 50px;
}

.mobile-menu-close {
    background: rgba(0,0,0,0.04);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--dark-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.mobile-nav {
    flex: 1;
    padding: 15px 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin: 5px 15px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--dark-color);
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    transition: var(--transition);
    border: none;
}

.mobile-nav a i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: var(--primary-color);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(74, 144, 226, 0.08);
    color: var(--primary-color);
    transform: translateX(5px);
}

.rtl .mobile-nav a:hover,
.rtl .mobile-nav a.active {
    transform: translateX(-5px);
}

.mobile-nav a:hover i,
.mobile-nav a.active i {
    color: var(--secondary-color);
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.mobile-menu-footer .btn-whatsapp-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.mobile-menu-footer .btn-whatsapp-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.mobile-menu-footer .btn-whatsapp-mobile i {
    font-size: 20px;
}

.mobile-menu-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.mobile-menu-social a {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: var(--transition);
}

.mobile-menu-social a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.btn-link {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-link:hover {
    color: var(--secondary-color);
    gap: 12px; /* Slide arrow effect */
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 700px;
    background-color: var(--primary-color); /* Fallback */
    overflow: hidden;
    margin-top: -1px; /* Fix potential gap */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    width: 100%;
}

.hero-subtitle {
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--warning);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 40px;
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ============================================
   SEARCH SECTION
   ============================================ */
.search-section {
    background: linear-gradient(45deg, var(--success), #2ecc71);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.2);
    position: relative;
    z-index: 10;
    margin-top: -50px; /* Overlap hero */
    border-radius: 8px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.search-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 700;
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    background-color: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 5px;
}

.search-box input {
    flex: 1;
    padding: 15px 30px;
    border: none;
    font-size: 18px;
    outline: none;
    color: var(--text-color);
}

.btn-search {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 35px;
    cursor: pointer;
    border-radius: 50px;
    margin: 0;
    transition: var(--transition);
}

.btn-search:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
}

/* ============================================
   SERVICES
   ============================================ */
.services-preview,
.services-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.service-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
}

.service-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-detail {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    padding: 40px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-detail.reverse {
    flex-direction: row-reverse;
}

.service-detail-icon {
    font-size: 100px;
    color: var(--primary-color);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    min-height: 300px;
}

.service-detail-image {
    flex-shrink: 0;
    width: 400px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail-content h2 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.service-detail-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-preview,
.specialist-section {
    padding: 80px 0;
}

.about-content,
.specialist-profile {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 0 0 400px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text,
.specialist-details {
    flex: 1;
}

.about-text h2,
.specialist-details h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.about-text h3,
.specialist-details h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.specialist-degree,
.specialist-experience,
.detail-box {
    margin-bottom: 20px;
}

.detail-box h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-box i {
    color: var(--primary-color);
}

/* Specialists Grid (Multiple Specialists) */
.specialists-section {
    padding: 80px 0;
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.specialist-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specialist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.specialist-card .specialist-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.specialist-card .specialist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.specialist-card:hover .specialist-image img {
    transform: scale(1.05);
}

.specialist-card .specialist-details {
    padding: 30px;
}

.specialist-card .specialist-details h2 {
    font-size: 26px;
    color: var(--dark-color);
    margin-bottom: 20px;
    text-align: center;
}

.specialist-card .detail-box {
    background: var(--light-color);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.specialist-card .detail-box:last-child {
    margin-bottom: 0;
}

.specialist-card .detail-box h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.specialist-card .detail-box p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray);
    margin: 0;
}

@media (max-width: 768px) {
    .specialists-grid {
        grid-template-columns: 1fr;
    }
    
    .specialist-card .specialist-image {
        height: 250px;
    }
}

/* ============================================
   VIDEOS SECTION
   ============================================ */
.videos-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.video-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card h3 {
    padding: 20px;
    font-size: 20px;
    color: var(--dark-color);
}

.video-card p {
    padding: 0 20px 20px;
    color: var(--gray);
}

/* ============================================
   CONDITIONS SECTION
   ============================================ */
.conditions-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.condition-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.condition-item i {
    color: var(--success);
    font-size: 24px;
}

/* ============================================
   CASES SECTION
   ============================================ */
.cases-section {
    padding: 80px 0;
}

.case-item {
    margin-bottom: 60px;
    padding: 40px;
    background-color: var(--light-color);
    border-radius: 10px;
}

.case-item h2 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 15px;
    text-align: center;
}

.case-description {
    text-align: center;
    color: var(--gray);
    margin-bottom: 30px;
}

.case-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.case-image-wrapper {
    flex: 1;
    max-width: 400px;
}

.case-image-wrapper h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.case-image-wrapper img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.case-divider {
    font-size: 40px;
    color: var(--primary-color);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-preview,
.testimonials-section {
    padding: 100px 0;
    background-color: var(--light-color);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.testimonials-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.testimonial-card,
.testimonial-item {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.testimonial-rating {
    color: var(--warning);
    margin-bottom: 20px;
    font-size: 18px;
}

.testimonial-text {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 16px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 18px;
}

.google-reviews-cta {
    margin-top: 30px;
}

/* ============================================
   FAQS
   ============================================ */
.faqs-section {
    padding: 80px 0;
}

.faqs-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-color);
}

.faq-question:hover {
    background-color: #dfe6e9;
}

.faq-question h3 {
    font-size: 18px;
    color: var(--dark-color);
    margin: 0;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--gray);
    line-height: 1.8;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group input,
.form-group textarea {
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.contact-info-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.contact-info-item i {
    font-size: 22px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.contact-info-item h4 {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.contact-info-item a,
.contact-info-item p {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
}

.contact-info-item a:hover {
    color: var(--primary-color);
}

/* Fix Contact WhatsApp Button */
.contact-info-item.whatsapp-item {
    background: none;
    box-shadow: none;
    padding: 0;
    border: none;
}

.contact-info-item .btn-whatsapp {
    width: 100%;
    height: auto;
    border-radius: 50px;
    padding: 16px 30px;
    gap: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #25D366;
    color: var(--white);
    transition: var(--transition);
}

.contact-info-item .btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    background-color: #128C7E;
}

/* Reset icon style inside whatsapp button */
.contact-info-item .btn-whatsapp i {
    width: auto;
    height: auto;
    background: none;
    color: var(--white);
    font-size: 24px;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

/* Form Button Full Width */
.contact-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 10px;
}

/* ============================================
   MAP
   ============================================ */
.map-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.map-section h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-buttons .btn-whatsapp {
    width: auto;
    height: auto;
    border-radius: 50px;
    padding: 14px 35px;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #25D366;
    color: var(--white);
    transition: var(--transition);
}

.cta-buttons .btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    background-color: #128C7E;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: linear-gradient(180deg, var(--dark-color) 0%, #1a252f 100%);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.rtl .footer-section h3::after {
    left: auto;
    right: 0;
}

.footer-logo img {
    height: 120px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
}

.developer-credit a {
    color: var(--primary-color);
    font-weight: 700;
    margin-left: 5px;
    margin-right: 5px;
}

.developer-credit a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.8;
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 15px;
}

.footer-links a {
    display: inline-block;
    transition: all 0.3s ease;
    color: #bdc3c7;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.rtl .footer-links a:hover {
    transform: translateX(-5px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    color: #bdc3c7;
}

.footer-contact i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 4px;
}

.rtl .footer-contact i {
    margin-right: 0;
    margin-left: 15px;
}

.btn-whatsapp-footer {
    background-color: #25D366;
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
}

.btn-whatsapp-footer:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.footer-bottom {
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    color: #95a5a6;
    font-size: 14px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.no-content {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .ltr .header-content {
        flex-direction: row-reverse;
    }
    
    .ltr .header-actions {
        flex-direction: row-reverse;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .about-content,
    .specialist-profile,
    .service-detail {
        flex-direction: column;
    }
    
    .about-image {
        flex: 1 1 100%;
    }
    
    .case-images {
        flex-direction: column;
    }
    
    .case-divider {
        transform: rotate(90deg);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-header h2,
    .page-header h1 {
        font-size: 28px;
    }
    
    .services-grid,
    .videos-grid,
    .testimonials-grid,
    .testimonials-list,
    .conditions-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-image {
        width: 100%;
        height: 200px;
    }
    
    .service-detail {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-detail.reverse {
        flex-direction: column;
    }

    /* Collapsible Footer on Mobile */
    .footer-content {
        gap: 15px;
    }

    .footer-section {
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 5px;
        margin-bottom: 5px;
    }

    .footer-section:last-child {
        border-bottom: none;
    }
    
    /* First section (Logo) adjustments */
    .footer-section:first-child {
        text-align: center;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .footer-section h3 {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
        padding: 15px 0;
        font-size: 18px;
    }

    /* Override the desktop underline */
    .footer-section h3::after {
        content: '\f107'; /* FontAwesome down arrow */
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: static;
        width: auto;
        height: auto;
        background: none;
        transition: transform 0.3s ease;
    }
    
    .footer-section.active h3::after {
        transform: rotate(180deg);
    }

    /* Hide content by default on mobile */
    .footer-section h3 ~ ul,
    .footer-section h3 ~ p,
    .footer-section h3 ~ a {
        display: none;
        margin-bottom: 15px;
        animation: fadeIn 0.3s ease;
    }

    /* Show content when active */
    .footer-section.active h3 ~ ul,
    .footer-section.active h3 ~ p,
    .footer-section.active h3 ~ a {
        display: block;
    }
    
    /* Special case for whatsapp button to flex properly */
    .footer-section.active .btn-whatsapp-footer {
        display: inline-flex;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* ============================================
   IMAGE MODAL & REVIEWS
   ============================================ */
.testimonial-image,
.testimonial-image-preview {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    max-width: 100%;
}

.testimonial-image:hover,
.testimonial-image-preview:hover {
    transform: scale(1.02);
}

.testimonial-image img,
.testimonial-image-preview img {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: cover;
    object-position: top;
}

/* The Modal (background) */
.image-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); 
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 85vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* The Close Button */
.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}
