/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #f4a460;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navigation {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: #333;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.logo a:hover .logo-img {
    transform: scale(1.1);
}

.logo-text {
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-item a {
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: #666;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.8rem;
}

.dropdown-menu {
    display: none;
    list-style: none;
    background: #f5f5f5;
    padding: 0;
}

.dropdown.active .dropdown-menu {
    display: block;
}

@media (min-width: 769px) {
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        min-width: 200px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 0.5rem 0;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.4;
    color: white;
    font-family: 'Georgia', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-roles {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-roles p {
    font-size: 1.1rem;
    color: white;
    margin: 0;
    padding: 0 1rem;
    border-left: 1px solid rgba(255,255,255,0.5);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-roles p:first-child {
    border-left: none;
}

.btn-more {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 12px 35px;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 0;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-more:hover {
    background: white;
    color: #333;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #ff8c00;
}

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

.service-card {
    background: #ffa500;
    padding: 3rem 2rem;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    transition: background 0.3s ease;
    border: 1px solid #ff7f00;
}

.service-card:hover {
    background: #ff9500;
}

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-card h2 {
    color: #2c2c2c;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.service-card p {
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.service-link {
    color: #333;
    text-decoration: underline;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #666;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #ff8c00;
    text-align: center;
    border-top: 1px solid #ff7f00;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c2c2c;
    font-weight: 300;
}

.contact p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-info {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-item {
    font-size: 0.95rem;
    color: #333;
}

.contact-link {
    color: #2c2c2c;
    text-decoration: underline;
}

.contact-link:hover {
    color: #666;
}

.social-links {
    margin-top: 2rem;
}

.social-links h3 {
    margin-bottom: 1rem;
    color: #2c2c2c;
    font-weight: 400;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icons a {
    color: #2c2c2c;
    text-decoration: underline;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #666;
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: #ccc;
    text-align: center;
    padding: 2.5rem 0;
    font-size: 0.85rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #ccc;
    text-decoration: underline;
}

.footer a:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

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

    .mobile-menu-toggle {
        display: flex;
    }


    .hero {
        min-height: 80vh;
    }

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

    .hero-roles {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-roles p {
        border-left: none;
        padding: 0.5rem 0;
        font-size: 1rem;
    }

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

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-img {
        max-width: 150px;
    }

    .esd-resource-grid {
        grid-template-columns: 1fr;
    }

    .esd-resource-card {
        min-height: 0;
    }

    .esd-resource-link {
        height: auto;
    }

    .esd-resource-image {
        height: auto;
    }

    .page-header-img {
        max-width: 100%;
        border-radius: 4px;
    }

    .social-icons {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

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

    .services, .contact {
        padding: 60px 0;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* Page specific styles */
.page-header {
    background: #ff8c00;
    color: #2c2c2c;
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid #ff7f00;
}

.page-header-image {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.page-header-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    font-family: 'Georgia', serif;
}

.content-section {
    padding: 60px 0;
    background: #ff8c00;
}

.content-section:nth-child(even) {
    background: #ffa500;
}

.content-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-image {
    margin: 2rem 0;
    text-align: center;
}

.content-img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
    font-weight: 400;
}

.content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c2c2c;
    font-weight: 400;
}

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #333;
}

.content-section ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    color: #333;
}

.testimonials {
    background: #ff8c00;
    padding: 60px 0;
}

.testimonial {
    background: #ffa500;
    padding: 2rem;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ff7f00;
    margin-bottom: 2rem;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #666;
}

.testimonial cite {
    font-weight: 400;
    color: #2c2c2c;
    font-style: normal;
}

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

.feature-item {
    background: #ffa500;
    padding: 2rem 1.5rem;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ff7f00;
}

.feature-item h4 {
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
}

.feature-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.for-therapists-page-header-image {
    max-width: 100%;
}

.for-therapists-page-header-img {
    width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.for-therapists-feature-list {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.for-therapists-feature-item {
    background: #f5f0e6;
    padding: 3rem 2rem;
    min-height: 100%;
}

.for-therapists-feature-item h4 {
    font-size: 1.5rem;
    line-height: 1.35;
}

.for-therapists-feature-item p {
    font-size: 1.35rem;
    line-height: 1.7;
}

.for-individuals-feature-list .for-therapists-feature-item:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, calc((100% - 2rem) / 2));
}

@media (max-width: 768px) {
    .for-individuals-feature-list .for-therapists-feature-item:nth-child(3) {
        grid-column: auto;
        justify-self: stretch;
        width: auto;
    }
}

.esd-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.esd-resource-card {
    background: #ffffff;
    padding: 0;
    overflow: hidden;
    border: 1px solid #ff7f00;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    min-height: calc(100vh - 180px);
}

.esd-resource-link {
    display: block;
    height: 100%;
}

.esd-resource-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

    .esd-resource-card {
        min-height: 0;
    }

    .esd-resource-link {
        height: auto;
    }

    .esd-resource-image {
        height: auto;
    }
}

/* Language Selector Styles */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.lang-btn {
    background: none;
    border: none;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.lang-btn:hover {
    color: #333;
    background: #f5f5f5;
}

.lang-btn.active {
    color: #2c2c2c;
    font-weight: 600;
    background: #e8e8e8;
}

.lang-separator {
    color: #ccc;
    font-size: 0.8rem;
}

/* RTL Styles */
html[dir="rtl"] body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html[dir="rtl"] .nav-menu {
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .hero-content h1 {
    text-align: right;
}

html[dir="rtl"] .hero-roles {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-roles p {
    border-left: none;
    border-right: 1px solid rgba(255,255,255,0.5);
}

html[dir="rtl"] .hero-roles p:first-child {
    border-right: none;
}

html[dir="rtl"] .page-header .container,
html[dir="rtl"] .content-section .container {
    text-align: right;
}

html[dir="rtl"] .feature-list {
    direction: rtl;
}

html[dir="rtl"] .testimonial p,
html[dir="rtl"] .testimonial cite {
    text-align: right;
}

html[dir="rtl"] .contact-info {
    text-align: right;
}

html[dir="rtl"] .contact-info .contact-item {
    text-align: right;
}

html[dir="rtl"] .social-icons {
    flex-direction: row-reverse;
}

/* Mobile RTL adjustments */
@media (max-width: 768px) {
    html[dir="rtl"] .hero-roles {
        flex-direction: column;
    }
    
    html[dir="rtl"] .hero-roles p {
        border-right: none;
        border-left: none;
    }
    
    html[dir="rtl"] .language-selector {
        margin-right: 0;
        margin-left: 1rem;
    }
    
    html[dir="rtl"] .nav-container {
        flex-direction: row-reverse;
    }
}

/* Language selector for mobile */
@media (max-width: 768px) {
    .language-selector {
        margin-right: auto;
        margin-left: 0.5rem;
    }
    
    .lang-btn {
        font-size: 0.85rem;
        padding: 0.25rem 0.4rem;
    }
}
