/* Base and Reset Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base Colors */
:root {
    --primary-color: #5A7345; /* A deep, earthy green for branding and key actions. */
    --secondary-color: #2F332C; /* A very dark, almost black, green for main text, providing strong contrast. */
    --accent-color: #a1ce7c; /* A lighter, fresh green for accents and secondary elements. */
    --text-color: #2F332C;
    --light-text-color: #ffffff;
    --light-bg: #eef1ff; /* A soft, light off-white for main backgrounds. */
    --card-bg: #ffffff; /* Pure white for content cards and containers. */
    --dark-bg: #343a40; /* A dark gray for footers or a dark mode option. */
}


body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    background-color: var(--light-bg);
    color: var(--text-color);
    direction: rtl;
    overflow-x: hidden;
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'El Messiri', sans-serif;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* --- Header & Navigation --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: var(--card-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .logo-image {
    height: 60px;
    width: auto;
    display: block;
}

.nav-menu {
    transition: transform 0.4s ease;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.cta-header-button {
    background-color: var(--primary-color);
    color: var(--light-text-color) !important;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(90, 115, 69, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-header-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(90, 115, 69, 0.5);
}

/* Hamburger Menu for Mobile */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 101;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Rest of the provided code */

.page-wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    padding: 50px 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.sidebar {
    background-color: var(--card-background);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-basis: 350px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.therapist-image-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 25px;
    border: 5px solid var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.therapist-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.therapist-info-heading {
    margin-bottom: 25px;
}

.therapist-info-heading h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.therapist-info-heading h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
}

.cta-profile-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(90, 115, 69, 0.4);
}

.cta-profile-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(47, 51, 44, 0.4);
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-block {
    background-color: var(--card-background);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: right;
}

.info-block h2 {
    font-size: 1.8rem;
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.info-block h2 i {
    background-color: rgba(90, 115, 69, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.info-block p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.info-block ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: grid;
    gap: 15px;
}

.info-block ul li {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.info-block ul li i {
    color: var(--accent-color);
    background-color: rgba(161, 206, 124, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 3px;
}

.info-block ul li strong {
    color: var(--secondary-color);
}


/* --- Responsive Media Queries --- */

/* Mobile Phones (Portrait) */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .cta-header-button {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        /* Replaced the previous side-slide with a drop-down animation */
        position: fixed;
        top: 70px; /* Position it below the header */
        right: 0;
        width: 100%;
        max-height: 0; /* Initially hidden */
        overflow: hidden;
        background-color: var(--card-bg);
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
        z-index: 99;
        transition: max-height 0.6s cubic-bezier(0.5, 0, 0.3, 1);
        text-align: center;
    }

    .nav-menu.active {
        /* When 'active' class is added, expand the menu */
        max-height: 500px; /* A large enough value to accommodate all links */
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 20px; /* Adjusted gap for drop-down */
        padding: 20px 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
    
    .nav-menu.active .nav-links a {
        opacity: 1; /* Fade in links when menu is active */
    }
    
    .page-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 30px 20px;
    }
    
    .info-block {
        padding: 25px;
    }
    
    .info-block h2 {
        font-size: 1.5rem;
    }
}

/* Tablets and small desktops */
@media (min-width: 769px) and (max-width: 1024px) {
    .header {
        padding: 20px 30px;
    }

    .nav-links {
        gap: 25px;
    }
    
    .page-wrapper {
        padding: 40px 20px;
    }
    
    .sidebar {
        flex-basis: 300px;
    }
    
    .info-block h2 {
        font-size: 1.7rem;
    }
}