/* 
  Dr. Tarek Roshdy - Medical Website
  Optimized for SEO, Mobile, and Performance
  Primary: #0a3c77 | Accent: #d4af37
*/

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    --primary: #0a3c77;
    --primary-dark: #072b55;
    --primary-light: #1a569e;
    --accent: #d4af37;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
    --whatsapp: #25d366;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f1d377 50%, #d4af37 100%);
    --navy-gradient: linear-gradient(135deg, #0a3c77 0%, #1a569e 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
    direction: rtl;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary);
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: var(--white);
    border-color: var(--whatsapp);
}

.btn-whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent) !important;
    color: var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== PREMIUM UTILITIES ===== */
.hero-title-framed {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.hero-title-framed .name-box {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.hero-title-framed .title-box {
    display: inline-block;
    padding: 10px 25px;
    background: var(--navy-gradient);
    color: white;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title-framed .location-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 2px solid var(--accent);
    color: var(--primary);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .hero-title-framed {
        align-items: center;
        text-align: center;
    }

    .hero-title-framed .name-box {
        font-size: 2.2rem;
    }

    .hero-title-framed .title-box {
        font-size: 1.1rem;
        padding: 8px 20px;
    }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

.gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ===== ANIMATIONS ===== */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.pulse-animation {
    animation: pulse-gold 2s infinite;
}

/* ===== HEADER ===== */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo img {
    height: 50px;
}

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

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: var(--transition);
}

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

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

html[dir="ltr"] .nav-links a::after {
    right: auto;
    left: 0;
}

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

/* Language Switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--primary);
    border: none;
    padding: 5px 10px;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
}

.lang-switch:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-1px);
}

.lang-switch i {
    font-size: 0.9rem;
}

/* Navigation Dropdown */
.nav-links li {
    position: relative;
    display: block;
}

.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
    font-size: 0.8rem;
    vertical-align: middle;
}

html[dir="ltr"] .dropdown-toggle::after {
    margin-right: 0;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    border-top: 3px solid var(--primary);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html[dir="ltr"] .dropdown-menu {
    right: auto;
    left: 0;
}

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

.dropdown-menu li {
    width: 100%;
    margin: 0 !important;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: rgba(10, 60, 119, 0.05);
    color: var(--primary);
    padding-right: 28px !important;
}

html[dir="ltr"] .dropdown-menu a:hover {
    padding-right: 20px !important;
    padding-left: 25px !important;
}

.dropdown-menu a::after {
    display: none !important;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Mobile Adjustments for Dropdown */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        transition: 0.4s ease;
        padding: 20px 0;
        overflow-y: auto;
        display: block;
        /* Change from flex to block for scrolling */
    }

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

    .nav-links li {
        width: 100%;
        text-align: right;
    }

    html[dir="ltr"] .nav-links li {
        text-align: left;
    }

    .nav-links a {
        padding: 15px 25px;
        display: block;
        border-bottom: 1px solid #eee;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #fafafa;
        padding: 0;
        display: none;
        /* Hidden by default on mobile, toggled by JS */
        min-width: 100%;
        border-top: none;
    }

    .nav-links li.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding-right: 45px !important;
    }

    html[dir="ltr"] .dropdown-menu a {
        padding-left: 45px !important;
    }

    .mobile-toggle {
        display: block;
    }
}

/* ===== HERO ===== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(10, 60, 119, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--primary-light);
    font-weight: 700;
    margin-bottom: 15px !important;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-height: 500px;
    object-fit: cover;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Floating Action Bar (Mobile Only) */
.mobile-action-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(10, 60, 119, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    grid-template-columns: repeat(3, 1fr);
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .mobile-action-bar {
        display: grid;
    }
}

.mobile-action-bar a {
    color: white;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mobile-action-bar i {
    font-size: 1.2rem;
    color: var(--accent);
}

.mobile-action-bar a:not(:last-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

html[dir="ltr"] .mobile-action-bar a:not(:last-child) {
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== SECTION TITLE ===== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

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

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* ===== CONDITIONS GRID (Home) ===== */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.condition-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    display: block;
}

.condition-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.condition-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.condition-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.condition-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ===== SERVICES GRID ===== */
.services-preview {
    padding: 80px 0;
    background-color: var(--white);
}

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

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.card-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.card-link:hover {
    color: var(--primary-dark);
}

/* ===== PROCEDURE SECTIONS (Services Page) ===== */
.procedure-section {
    padding: 70px 0;
}

.procedure-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.procedure-icon {
    font-size: 3rem;
    color: var(--primary);
    min-width: 60px;
    text-align: center;
    padding-top: 5px;
}

.procedure-content h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.procedure-content h4 {
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 25px;
    font-size: 1rem;
}

.procedure-details h3 {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.procedure-details p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 10px;
}

/* ===== FAQ SECTIONS ===== */
.faq-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.faq-section>h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.faq-item {
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.faq-item h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* ===== CONDITION SECTIONS (Conditions Page) ===== */
.condition-section {
    padding: 70px 0;
}

.condition-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.condition-header i {
    font-size: 2.5rem;
    color: var(--primary);
}

.condition-header h2 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.condition-body h3 {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.condition-body p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 10px;
}

.symptom-list {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.symptom-list li {
    padding: 6px 0;
    padding-right: 25px;
    position: relative;
    color: var(--text-light);
}

.symptom-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    right: 0;
}

.condition-cta {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== CONTACT ITEMS ===== */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    background: var(--bg-light);
    padding: 12px;
    border-radius: 50%;
    color: var(--primary);
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== LANDING PAGE STYLES (ads) ===== */
.authority-section {
    background-color: #fff;
    padding: 80px 0;
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: start;
}

.bio-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    border-right: 4px solid var(--primary);
}

.bio-card h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.bio-card h4 {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 1rem;
}

.services-list-compact {
    columns: 2;
    list-style: none;
}

.services-list-compact li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 20px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.services-list-compact li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    right: 0;
}

.contact-highlight {
    background-color: var(--primary);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.contact-highlight a {
    color: white;
    text-decoration: underline;
}

.address-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 30px;
    display: inline-block;
    text-align: center;
}

/* ===== PROCEDURE PAGE (Standalone) ===== */
.procedure-page-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.procedure-main h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.procedure-main p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.procedure-list {
    list-style: none;
    padding: 0;
}

.procedure-list li {
    padding: 10px 0;
    padding-right: 28px;
    position: relative;
    color: var(--text-light);
    line-height: 1.7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.procedure-list li:last-child {
    border-bottom: none;
}

.procedure-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    right: 0;
    font-size: 1.1rem;
}

.quick-facts {
    background: var(--primary);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    position: sticky;
    top: 100px;
}

.quick-facts h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.quick-facts h3 i {
    margin-left: 8px;
}

.quick-facts ul {
    list-style: none;
    padding: 0;
}

.quick-facts li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.quick-facts li:last-child {
    border-bottom: none;
}

.quick-facts li strong {
    display: inline-block;
    min-width: 100px;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.step-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.3rem;
    font-weight: 800;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Info Box */
.info-box {
    background: rgba(10, 60, 119, 0.05);
    border-right: 4px solid var(--primary);
    padding: 20px 25px;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-box i {
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.info-box p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.7;
}

/* Timeline */
.timeline {
    position: relative;
    padding-right: 40px;
    margin-top: 25px;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    opacity: 0.2;
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-right: 20px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    right: -40px;
    top: 0;
    width: 34px;
    height: 34px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    z-index: 1;
}

.timeline-content {
    background: var(--white);
    padding: 20px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.result-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.result-icon {
    width: 60px;
    height: 60px;
    background: rgba(10, 60, 119, 0.08);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.result-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.result-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* FAQ List (Procedure Pages) */
.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item-page {
    background: var(--white);
    padding: 25px 30px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.faq-item-page:hover {
    border-color: var(--primary);
}

.faq-item-page h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.faq-item-page p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.8;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.comparison-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.comparison-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.comparison-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .procedure-content {
        flex-direction: column;
    }

    .procedure-icon {
        text-align: right;
    }

    .condition-header {
        flex-wrap: wrap;
    }

    .procedure-page-grid {
        grid-template-columns: 1fr;
    }

    .quick-facts {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        text-align: center;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .conditions-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

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

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

    .condition-cta {
        flex-direction: column;
    }

    .condition-cta .btn {
        text-align: center;
    }

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

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

    .timeline {
        padding-right: 35px;
    }
}

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
    }

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

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

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

    .faq-item-page {
        padding: 20px;
    }

    .timeline {
        padding-right: 30px;
    }

    .timeline-marker {
        right: -35px;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .timeline-content {
        padding: 15px 18px;
    }
}

/* ===== LTR OVERRIDES (English) ===== */
html[dir="ltr"] body {
    direction: ltr;
}

html[dir="ltr"] .procedure-list li {
    padding-right: 0;
    padding-left: 28px;
}

html[dir="ltr"] .procedure-list li::before {
    right: auto;
    left: 0;
}

html[dir="ltr"] .symptom-list li {
    padding-right: 0;
    padding-left: 25px;
}

html[dir="ltr"] .symptom-list li::before {
    right: auto;
    left: 0;
}

html[dir="ltr"] .bio-card {
    border-right: none;
    border-left: 4px solid var(--primary);
}

html[dir="ltr"] .info-box {
    border-right: none;
    border-left: 4px solid var(--primary);
}

html[dir="ltr"] .timeline {
    padding-right: 0;
    padding-left: 40px;
}

html[dir="ltr"] .timeline::before {
    right: auto;
    left: 15px;
}

html[dir="ltr"] .timeline-marker {
    right: auto;
    left: -40px;
}

html[dir="ltr"] .timeline-item {
    padding-right: 0;
    padding-left: 20px;
}

html[dir="ltr"] .footer-links a:hover {
    padding-right: 0;
    padding-left: 5px;
}

html[dir="ltr"] .services-list-compact li {
    padding-right: 0;
    padding-left: 20px;
}

html[dir="ltr"] .services-list-compact li::before {
    right: auto;
    left: 0;
}

html[dir="ltr"] .quick-facts li strong {
    min-width: 100px;
}

@media (max-width: 768px) {
    html[dir="ltr"] .timeline {
        padding-left: 35px;
    }
}

@media (max-width: 480px) {
    html[dir="ltr"] .timeline {
        padding-left: 30px;
    }

    html[dir="ltr"] .timeline-marker {
        left: -35px;
    }
}