/* --- Reset & Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    line-height: 1.3;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

/* --- Global Variables --- */
:root {
    --primary-color: #008080; /* Teal - Calming & Professional */
    --secondary-color: #006666; /* Darker Teal */
    --action-color: #e07a5f; /* Soft Coral/Orange - Warm & Inviting */
    --bg-light: #f4f9f9; /* Very light mint/grey background */
    --text-dark: #2c3e50; /* Dark Blue-Grey for text */
    --text-muted: #5d6d7e;
    --white: #ffffff;
    --border-color: #e0e6ed;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Softer, modern shadow */
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 4rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}


/* --- Header & Navigation --- */
header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.logo img {
    height: 50px;
    margin-inline-end: 10px;
}

#nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

#nav-menu ul {
    display: flex;
    gap: 25px;
}

#nav-menu ul li a {
    font-weight: 500;
    color: var(--text-dark); /* Darker text for better readability */
    padding: 5px 0;
    position: relative;
}

#nav-menu ul li a:hover,
#nav-menu ul li a.active {
    color: var(--primary-color);
}

#nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

#nav-menu ul li a:hover::after,
#nav-menu ul li a.active::after {
    width: 100%;
}


.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    position: relative;
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}
.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* --- Language Switcher --- */
.language-switcher select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: var(--white);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.language-switcher select:hover,
.language-switcher select:focus {
    border-color: var(--primary-color);
}

/* --- Buttons --- */
.cta-button {
    display: inline-block;
    background: var(--action-color); /* Use the warm accent color for buttons */
    color: var(--white) !important;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(224, 122, 95, 0.3);
}

.cta-button:hover {
    background: #d35400; /* Darker orange on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(224, 122, 95, 0.4);
}

/* --- Hero Section --- */
#hero {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 3rem 0;
}

#hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
}

#hero .subheading {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Intro Section --- */
#intro {
    text-align: center;
    background: var(--white);
     padding: 2rem 0;
}

#intro h2 {
    margin-bottom: 1.5rem;
}

#intro p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- How It Works (General Steps) --- */
#how-it-works {
    background: var(--bg-light);
    border-radius: 15px;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

#home-packs {
    background: var(--bg-light);
    border-radius: 15px;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

#approaches {
    background: var(--bg-light);
    border-radius: 15px;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

#contact-us {
    background: var(--bg-light);
    border-radius: 15px;
    margin-bottom: 4rem;
    padding: 3rem;
}

#testimonials {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

#how-it-works h2 {
    margin-bottom: 3rem;
}

.steps {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem;
    margin: 0 -1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
    justify-content: center;
}

.steps::-webkit-scrollbar { height: 8px; }
.steps::-webkit-scrollbar-track { background: var(--border-color); border-radius: 4px; }
.steps::-webkit-scrollbar-thumb { background-color: var(--primary-color); border-radius: 4px; }

.step {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    text-align: center;
    flex: 0 0 320px;
    min-width: 320px;
}

.step:hover {
    transform: translateY(-8px);
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* --- Help With / Expertise Section --- */
#help-with {
    text-align: center;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* --- Flip Cards (Original Style for index.php) --- */
.flip-card { background-color: transparent; width: 100%; max-width: 260px; margin: 0 auto; height: 250px; perspective: 1000px; }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.6s; transform-style: preserve-3d; box-shadow: var(--shadow); border-radius: 15px; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; }
.flip-card-front { background-color: var(--white); color: var(--text-dark); }
.flip-card-front i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }
.flip-card-back { background-color: var(--primary-color); color: var(--white); transform: rotateY(180deg); }
.flip-card-back p { font-size: 0.9rem; }
.flip-card-back h3 { color: var(--white); margin-bottom: 0.5rem; }

.flip-indicator {
    position: absolute;
    bottom: 20px;
    font-size: 1.2rem !important;
    color: var(--text-muted) !important;
    opacity: 0.6;
    margin-bottom: 0 !important;
}

/* --- Expertise Cards (Simple Style for index_ar.php / index_en.php) --- */
.expertise-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.expertise-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.expertise-card:hover i {
    color: var(--action-color);
}

.expertise-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.expertise-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* --- Consultation Process --- */
#consultation-process {
    background-color: var(--white);
}

.process-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
}

.process-left {
    flex: 1 1 55%;
}

.process-right {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-steps {
    position: relative;
    margin-inline-start: 1.5rem;
    border-inline-start: 3px solid var(--border-color);
    padding-inline-start: 2.5rem;
}

.process-step {
    position: relative;
    margin-bottom: 2.5rem;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-badge {
    position: absolute;
    inset-inline-start: -2.2rem; /* Logical property for Left/Right handling */
    top: 0;
    width: 2.5rem; height: 2.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    border: 4px solid var(--white);
}

.step-content {
    padding-inline-start: 1.5rem;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.step-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.info-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.info-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 700;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: #444;
    font-size: 1rem;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-list li i {
    color: var(--primary-color);
    margin-top: 0.3rem;
    width: 20px;
    text-align: center;
}

.process-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    object-fit: cover;
    aspect-ratio: 16/10;
}


/* --- Contact Us --- */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-main-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.contact-left-column,
.contact-right-column {
    flex: 1 1 45%;
}

.contact-left-column h3,
.contact-right-column h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    
}

.contact-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.card-content h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
}

.card-content p {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
}

.card-button {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--action-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease;
}
.contact-card:hover .card-button {
    background-color: #d35400;
}

.card-link {
    display: block;
    margin-top: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
}



.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row input {
    width: 50%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
}

.contact-form .cta-button {
    width: 100%;
}


/* --- Latest Articles --- */
#latest-articles {
    background: var(--white);
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.article-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.read-more i {
    transition: transform 0.3s ease;
}
.article-card:hover .read-more i {
    transform: translateX(5px);
}

[dir="rtl"] .read-more i { transform: rotate(180deg); }
[dir="rtl"] .article-card:hover .read-more i {
    transform: translateX(-5px) rotate(180deg);
}

/* --- Therapists --- */
#home-therapists .therapist-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

#therapists-page .therapist-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.therapist-image-container {
    overflow: hidden;
    /* Radius handled by card overflow */
}

.therapist-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex; flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}
.therapist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

#home-therapists .therapist-card {
    text-align: center;
}

#home-therapists .therapist-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 1.5rem auto 1rem;
    border: 4px solid var(--white);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

#therapists-page .therapist-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 280px;
}

#therapists-page .therapist-image-container {
    width: 35%;
    min-width: 250px;
    flex-shrink: 0;
}

#therapists-page .therapist-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

#therapists-page .therapist-card:hover img {
    transform: scale(1.05);
}

.therapist-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.therapist-info h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.therapist-info h4 { font-size: 1rem; color: var(--primary-color); font-weight: 500; margin-bottom: 1rem; }
.therapist-expertise {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em; /* approx 2 lines */
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.therapist-expertise-list {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.therapist-mail {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.therapist-mail i {
    color: var(--action-color);
    margin-top: 4px;
}
.therapist-info p { margin-bottom: 1rem; font-size: 0.9rem; }
.session-details { 
    margin-bottom: 1.5rem; 
    font-weight: 600; 
    background-color: var(--bg-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.session-price {
    font-size: 1.2rem;
    color: var(--action-color);
}
.therapist-info .cta-button { margin-top: auto; }


/* --- Packs --- */
#home-packs .pack-list,
#packs-page .therapist-list { /* Re-use layout */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.pack-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    text-align: center;
}
.pack-card:hover {
    transform: translateY(-8px);
}

.pack-card .therapist-info {
    padding: 0; /* Override padding from therapist-card */
}

.pack-pricing {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    font-size: 1.1rem;
}

.discounted-price {
    color: var(--action-color);
    font-size: 1.8rem;
    font-weight: bold;
}

.pack-saving {
    color: #28a745;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.pack-description {
    margin-bottom: 1.5rem;
}

/* RTL Support for Therapists Page */
[dir="rtl"] #therapists-page .therapist-card {
    text-align: right;
}
[dir="rtl"] .therapist-mail {
    gap: 10px;
}

/* Mobile Responsiveness for Therapists Page */
@media (max-width: 768px) {
    #therapists-page .therapist-list {
        grid-template-columns: 1fr;
    }

    #therapists-page .therapist-card {
        flex-direction: column;
        min-height: auto;
    }

    #therapists-page .therapist-image-container {
        width: 100%;
        height: 280px;
    }

    #therapists-page .therapist-card img {
        height: 100%;
        width: 100%;
        border-radius: 15px 15px 0 0;
    }

    #therapists-page .session-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
    }

    /* RTL Support for Mobile Therapists Page */
    [dir="rtl"] #therapists-page .session-details {
        align-items: flex-start;
        text-align: right;
    }
}

/* --- Testimonials --- */

.testimonial-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem;
    margin: 0 -1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}
.testimonial-grid::-webkit-scrollbar { height: 8px; }
.testimonial-grid::-webkit-scrollbar-track { background: var(--border-color); border-radius: 4px; }
.testimonial-grid::-webkit-scrollbar-thumb { background-color: var(--primary-color); border-radius: 4px; }


.testimonial-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 0 0 320px;
    min-width: 320px;
    text-align: center;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1.1rem;
}
/* Terms and Confidentiality Section */
#terms-confidentiality {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.terms-card {
    background-color: var(--bg-light);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.terms-card h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #1f2937;
}

.terms-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.term-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #374151;
}

.term-block p {
    color: #4b5563;
    line-height: 1.625;
}

.stars {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* --- FAQ --- */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: start;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 0;
    overflow: hidden;
    color: var(--text-muted);
    line-height: 1.7;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    /* max-height is handled by JS */
}
.faq-question::after {
    content: '\f078'; /* Font Awesome down arrow */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}


/* --- Footer --- */
footer {
    background: #222;
    color: #ecf0f1;
    padding: 3rem 0;
    text-align: center;
    margin-top: auto;
}

footer a {
    color: #ccc;
}

footer a:hover {
    color: var(--white);
}

.social-media {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-media a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
}

.social-media a:hover {
    background: var(--primary-color);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    inset-inline-end: 20px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1);
}

/* --- Mobile Navigation --- */
@media (max-width: 992px) {
    h2 { font-size: 2rem; }
    
    .nav-toggle {
        display: block;
    }

    #nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        transition: transform 0.3s ease-in-out;
        align-items: stretch;
    }

    #nav-menu.active {
        transform: translateY(0);
    }

    #nav-menu ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .nav-cta {
        margin: 0 auto;
        display: block;
        width: fit-content;
    }

    .language-switcher {
        text-align: center;
        margin-top: 15px;
    }
    
    .process-left,
    .process-right {
        flex-basis: 100%;
    }
    .process-container {
        gap: 3rem;
    }
    
    .contact-left-column,
    .contact-right-column {
        flex-basis: 100%;
    }
    .contact-main-layout {
        gap: 3rem;
    }

    .steps {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
    }
    .form-row input {
        width: 100%;
    }
}

/* Footer specific styles */
footer {
    background-color: #222;
    color: #ecf0f1;
    padding: 60px 0 20px;
    margin-top: 50px;
    font-family: 'Poppins', sans-serif;
}
footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}
footer .footer-column {
    flex: 1;
    min-width: 250px;
}
footer h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
}
footer p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #bdc3c7;
}
footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer ul li {
    margin-bottom: 10px;
    font-size: 0.85rem;
}
footer ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer ul li a:hover {
    color: #3498db;
    padding-left: 5px;
}
footer .social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}
footer .social-links a:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}
footer .contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #bdc3c7;
}
footer .contact-info i {
    color: #3498db;
    margin-top: 5px;
}
footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #95a5a6;
}
footer .footer-bottom a {
    color: #95a5a6;
    text-decoration: none;
    margin: 0 10px;
}
footer .footer-bottom a:hover {
    color: #fff;
}
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* --- Services Page Styles --- */
.service-section {
    margin-bottom: 5rem;
    text-align: center;
}

.service-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.service-section > p {
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left; /* Align text to left for better readability */
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

.feature-item h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-item h3 i {
    font-size: 1.6rem;
    background: var(--bg-light);
    padding: 10px;
    border-radius: 10px;
}

.feature-item p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-item p i {
    color: var(--action-color);
    margin-top: 5px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.alternate-bg {
    background-color: var(--bg-light);
    padding: 4rem 2rem;
    border-radius: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.03);
}

.styled-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 2rem auto;
    text-align: left;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.styled-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.styled-list li::before {
    content: '\f00c'; /* FontAwesome check icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* --- RTL Support for Services --- */
[dir="rtl"] .feature-item {
    text-align: right;
}

[dir="rtl"] .styled-list {
    text-align: right;
}

[dir="rtl"] .styled-list li {
    padding-left: 0;
    padding-right: 35px;
}

[dir="rtl"] .styled-list li::before {
    left: auto;
    right: 0;
}

/* --- Single Article Page --- */
#single-article {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.article-content {
    max-width: 800px; /* Optimal width for reading */
    margin: 0 auto;
}

.article-content h1 {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-body h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: start; /* Override global center alignment */
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.article-body h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-inline-start: 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background-color: var(--bg-light);
    border-inline-start: 5px solid var(--primary-color);
    font-style: italic;
    color: var(--text-muted);
}

.article-body blockquote p {
    margin-bottom: 0;
}

.article-body a {
    color: var(--action-color);
    text-decoration: underline;
    font-weight: 500;
}

.article-body a:hover {
    color: #d35400;
}

/* --- Static Content (Privacy, Terms) --- */
.static-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.static-content h2 {
    text-align: left;
    margin-top: 2rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.static-content ul {
    list-style: disc;
    padding-inline-start: 20px;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.static-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

[dir="rtl"] .static-content h2 {
    text-align: right;
}

/* --- Contact Page Styling --- */
.contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info-side {
    flex: 1;
    min-width: 300px;
}

.contact-info-side h2 {
    text-align: left;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-availability {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.contact-form-side {
    flex: 1.5;
    min-width: 300px;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.contact-detail-item:hover {
    transform: translateY(-5px);
}

.contact-detail-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: var(--white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.contact-detail-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--text-dark);
}

.contact-detail-item p {
    color: var(--text-muted);
    margin: 0;
}

.contact-socials {
    margin-top: 2.5rem;
}

.contact-socials h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: left;
}

.contact-social-icons {
    display: flex;
    gap: 1rem;
}

.contact-social-icons a {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.contact-social-icons a:hover {
    background: var(--action-color);
}

/* RTL Adjustments for Contact */
[dir="rtl"] .contact-info-side h2,
[dir="rtl"] .contact-socials h3 {
    text-align: right;
}

/* --- Tests Page --- */
.test-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.test-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.test-card:hover {
    transform: translateY(-5px);
}

.test-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.test-card-content {
    padding: 1.5rem;
    text-align: center;
}

.test-card-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.test-card-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* --- Single Test Form --- */
.test-form {
    max-width: 800px;
    margin: 0 auto;
}

.question-block {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.question-block h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.option-label:hover {
    background: var(--bg-light);
}

.test-result-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.score-circle {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 2rem auto;
}

.disclaimer-box {
    background: #fff3cd;
    color: #856404;
    padding: 1rem;
    border-radius: 8px;
    margin: 2rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-button.secondary {
    background: var(--text-muted);
}

.test-header-image {
    width: 100%;
    max-width: 800px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin: 2rem auto 0;
    display: block;
    box-shadow: var(--shadow);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    margin-right: 1rem;
}

.cookie-banner a {
    color: var(--action-color);
    text-decoration: underline;
}

.cookie-banner .cta-button {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .cookie-banner p {
        margin-right: 0;
    }
}

/* --- PWA Install Banner --- */
.install-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    width: 90%;
    max-width: 400px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.install-banner.show {
    transform: translateX(-50%) translateY(0);
}

.install-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.install-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.install-text h4 { margin: 0 0 5px 0; font-size: 1rem; color: var(--text-dark); }
.install-text p { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.3; }

.install-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dismiss-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}