:root {
    --primary-color: #715c3d;
    --primary-dark: #5a4930;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Custom Colors */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-primary-dark-custom {
    background-color: var(--primary-dark) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary-custom {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, rgba(113, 92, 61, 0.08) 0%, rgba(255, 255, 255, 1) 100%);
    position: relative;
    overflow: hidden;
}

/* Page Headers with Background Images */
.page-header {
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    padding: 100px 0;
    margin-top: 76px;
    /* Navbar height compensation */
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.6);
    /* Overlay for text readability */
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.hero-about {
    background-image: url('https://images.unsplash.com/photo-1551076805-e1869033e561?q=80&w=1920&auto=format&fit=crop');
    /* Doctor/Medical Hands */
}

.hero-services {
    background-image: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?q=80&w=1920&auto=format&fit=crop');
    /* Therapy session/Chairs */
}

.hero-resources {
    background-image: url('https://images.unsplash.com/photo-1506784983877-45594efa4cbe?q=80&w=1920&auto=format&fit=crop');
    /* Calm Nature/Focus */
}

.hero-contact {
    background-image: url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?q=80&w=1920&auto=format&fit=crop');
    /* Office desk/Professional */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(113, 92, 61, 0.1), transparent 70%);
    z-index: -1;
}

/* Navbar */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.3s ease;
}

.navbar.shadow-md {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-family: var(--font-heading);
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Cards & Sections */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 10px;
    border-radius: 2px;
}

.service-card {
    background: var(--white);
    border: none;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(113, 92, 61, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Footer */
footer a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

footer a:hover {
    color: var(--white);
}

/* --- Translation & RTL Styles --- */

/* Hide Google Translate Top Banner */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

/* Hide the widget itself just in case */
#google_translate_element {
    display: none !important;
}

/* Hide Google Tooltips */
.goog-tooltip {
    display: none !important;
}

.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* RTL Adjustments */
html[lang="ar"] {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .navbar-nav {
    padding-right: 0;
    margin-right: auto;
    margin-left: 0;
}

html[lang="ar"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[lang="ar"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

html[lang="ar"] .ms-lg-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

html[lang="ar"] .text-end {
    text-align: left !important;
}

html[lang="ar"] .text-start {
    text-align: right !important;
}

/* Fix icon spacing in RTL */
html[lang="ar"] .fa-solid,
html[lang="ar"] .fas,
html[lang="ar"] .fab {
    margin-left: 0.5rem;
    margin-right: 0;
}

html[lang="ar"] .form-select {
    background-position: left 1rem center;
}

/* Language Dropdown Styles */
.lang-link {
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.lang-link:hover {
    background-color: rgba(113, 92, 61, 0.05);
    color: var(--primary-color);
}

#langDropdown::after {
    margin-left: 0.5rem;
}

html[lang="ar"] #langDropdown::after {
    margin-left: 0;
    margin-right: 0.5rem;
}

html[lang="ar"] #langDropdown img {
    margin-left: 0.5rem;
    margin-right: 0 !important;
}