/*
Theme Name: Didar Therapy
Author: Nima
Description: قالب اختصاصی پلتفرم روانشناسی دیدار
Version: 1.0
*/

/* تنظیمات پایه و متغیرهای رنگی */
:root {
    --bg-color: #fbfbf9;
    --hero-bg: #f3eedc;
    --primary-green: #83967d;
    --dark-green: #4f5d4e;
    --text-dark: #222222;
    --text-gray: #555555;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* دکمه‌های اصلی */
.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--dark-green);
}

/* =========================================
   استایل‌های یکپارچه و مدرن هدر (Header)
   ========================================= */
header {
    position: sticky; 
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 4px 5% !important; 
    min-height: 55px; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

header .logo,
header img.custom-logo {
    max-width: 75px !important; 
    height: auto !important;
    transition: transform 0.3s ease;
}

header img.custom-logo:hover {
    transform: scale(1.03);
}

header nav ul {
    display: flex;
    gap: 35px; 
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
}

header nav ul li a {
    text-decoration: none;
    color: #444; 
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 4px 0 !important; 
    transition: color 0.3s ease;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #608d74; 
    transition: width 0.3s ease;
    border-radius: 2px;
}

header nav ul li a:hover {
    color: #608d74;
}

header nav ul li a:hover::after {
    width: 100%;
}

header .btn-primary {
    background-color: #7b9c86; 
    color: white;
    padding: 8px 20px !important; 
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin: 0 !important; 
    transition: all 0.3s ease; 
}

header .btn-primary:hover {
    background-color: #608d74;
    transform: translateY(-3px); 
    box-shadow: 0 6px 15px rgba(96, 141, 116, 0.35);
}

/* مخفی کردن دکمه همبرگری در حالت دسکتاپ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #608d74;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0; 
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* بخش معرفی (Hero Section) */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--hero-bg);
    margin: 20px 5%;
    padding: 60px 8%;
    border-radius: 24px;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.hero-content p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.hero-image-placeholder {
    flex: 1;
    background-color: #dce3d5;
    height: 300px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-green);
}

/* بخش مسیرهای درمانی (Services) */
.services-section {
    text-align: center;
    padding: 60px 5%;
}

.services-section h2 {
    margin-bottom: 40px;
    font-size: 24px;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* باکس مسیرهای درمانی */
/* تنظیمات کانتینر اصلی */
.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* استایل پایه کارت‌ها */
.service-card {
    background-color: rgba(131, 150, 125, 0.08); 
    border: 1px solid rgba(131, 150, 125, 0.15);
    border-radius: 18px;
    padding: 40px 30px;
    width: 30%;
    min-width: 290px;
    height: 270px; /* ارتفاع ثابت کلیدی است تا هنگام انیمیشن، کارت پرش نداشته باشد */
    text-align: center;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

/* افکت کلی کارت هنگام هاور ماوس یا لمس در موبایل */
.service-card:hover, .service-card.is-active {
    transform: translateY(-8px);
    background-color: var(--white);
    box-shadow: 0 15px 40px rgba(131, 150, 125, 0.15);
    border-color: var(--primary-green);
}

.service-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
    transition: color 0.4s ease;
}

.service-card:hover .service-title, 
.service-card.is-active .service-title {
    color: var(--primary-green); /* رنگی شدن تیتر هنگام هاور */
}

/* بخش نگهدارنده متن‌ها برای اجرای انیمیشن */
.service-content-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
}

/* استایل متن کوتاه پیش‌فرض */
.service-short-desc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

/* استایل لیست جزئیات (در ابتدا مخفی و پایین‌تر قرار دارد) */
.service-details-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
    opacity: 0;
    transform: translateY(20px); 
    transition: all 0.4s ease;
    pointer-events: none; 
}

.service-details-list li {
    font-size: 13.5px;
    color: var(--text-dark);
    margin-bottom: 12px;
    position: relative;
    padding-right: 18px;
    line-height: 1.5;
}

.service-details-list li::before {
    content: "•";
    color: var(--primary-green);
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    right: 0;
    top: -2px;
}

/* فرمان‌های انیمیشن: جابجایی و محو شدن */
.service-card:hover .service-short-desc, 
.service-card.is-active .service-short-desc {
    opacity: 0;
    transform: translateY(-20px); /* خروج متن اولیه به سمت بالا */
    pointer-events: none;
}

.service-card:hover .service-details-list, 
.service-card.is-active .service-details-list {
    opacity: 1;
    transform: translateY(0); /* ورود لیست امکانات به مرکز */
    pointer-events: auto;
}

/* بخش ویژگی‌ها (Features) */
.features-section {
    text-align: center;
    padding: 40px 5% 80px;
}

.features-section h2 {
    margin-bottom: 50px;
    font-size: 24px;
}

.features-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    text-align: center;
    max-width: 200px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border: 1.5px solid var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.feature-item h4 {
    font-size: 15px;
    font-weight: 500;
}

/* فوتر */
footer {
    background-color: var(--bg-color);
    border-top: 1px solid #eaeaea;
    padding-top: 30px !important; 
    padding-bottom: 20px !important; 
    margin-top: 50px !important; 
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding: 60px 5%;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px !important; 
    color: var(--text-dark);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a, .footer-col p {
    color: var(--text-gray);
    font-size: 14px;
}

.footer-bottom {
    background-color: var(--dark-green);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    font-size: 13px;
}

.social-links a {
    margin-left: 15px;
    color: var(--white);
}

/* افکت شیشه‌ای هدر هنگام اسکرول */
header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background-color: var(--bg-color) !important;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease !important;
    width: 100%;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.70) !important; 
    backdrop-filter: blur(15px) !important; 
    -webkit-backdrop-filter: blur(15px) !important; 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* صفحه بلاگ و مقالات */
.page-header { text-align: center; padding: 40px 0 30px; }
.page-header h1 { font-size: 28px; color: var(--text-dark); }

.blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    padding: 0 5%;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.cat-icon {
    width: 75px;
    height: 75px;
    border-radius: 20px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(96, 141, 116, 0.08); 
    color: #608d74; 
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.category-item span {
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.category-item:hover .cat-icon {
    background-color: #608d74; 
    color: #ffffff; 
    transform: translateY(-8px); 
    box-shadow: 0 10px 25px rgba(96, 141, 116, 0.25);
}

.category-item:hover span {
    color: #608d74; 
}

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 8%; margin-bottom: 80px; }
.blog-card { background-color: transparent; border: 1px solid #dcdcdc; border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 15px; transition: box-shadow 0.3s; }
.blog-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.blog-content { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.blog-content h3 { font-size: 15px; margin-bottom: 8px; line-height: 1.4; }
.blog-content p { font-size: 12px; color: var(--text-gray); margin-bottom: 15px; line-height: 1.5; }
.btn-sm { background-color: var(--dark-green); color: var(--white); padding: 6px 16px; border-radius: 6px; font-size: 12px; font-weight: 500; transition: background-color 0.3s; }
.btn-sm:hover { background-color: var(--primary-green); }
.blog-image-placeholder { width: 90px; height: 110px; background-color: var(--hero-bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--dark-green); flex-shrink: 0; }

/* صفحه ورود */
.login-body { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    background-color: var(--bg-color); 
    padding: 20px; 
}

.login-container { 
    display: flex; 
    background-color: var(--white); 
    border-radius: 24px; 
    max-width: 900px; 
    width: 100%; 
    box-shadow: 0 20px 50px rgba(79, 93, 78, 0.08); 
    overflow: hidden; 
}

.login-form-section { 
    flex: 1; 
    padding: 50px 60px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    background-color: var(--white);
}

.login-logo { 
    font-size: 24px; 
    font-weight: 800; 
    color: var(--dark-green); 
    margin-bottom: 25px; 
    letter-spacing: -0.5px;
}

.login-form-section h2 { 
    font-size: 18px; 
    margin-bottom: 35px; 
    color: var(--text-dark); 
    font-weight: 600;
}

.login-toggle { 
    display: flex; 
    background-color: #f5f5f5; 
    border-radius: 12px; 
    padding: 5px; 
    margin-bottom: 35px; 
    width: 100%; 
    border: 1px solid #eaeaea;
}

.toggle-btn { 
    flex: 1; 
    border: none; 
    background: transparent; 
    padding: 12px; 
    font-family: inherit; 
    font-size: 13px; 
    font-weight: 600; 
    border-radius: 8px; 
    cursor: pointer; 
    color: var(--text-gray); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

.toggle-btn.active { 
    background-color: var(--white); 
    color: var(--dark-green); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
}

.login-form-section form { width: 100%; }

.input-group { 
    position: relative; 
    margin-bottom: 20px; 
}

.input-group input { 
    width: 100%; 
    padding: 15px 15px 15px 45px; 
    border: 1.5px solid #e5e5e5; 
    border-radius: 12px; 
    font-family: inherit; 
    font-size: 14px; 
    outline: none; 
    transition: all 0.3s ease; 
    background-color: #fafafa; 
    color: var(--text-dark);
}

.input-group input:focus { 
    border-color: var(--primary-green); 
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(131, 150, 125, 0.1); 
}

.input-icon { 
    position: absolute; 
    left: 18px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #b0b0b0; 
    font-size: 18px; 
    transition: color 0.3s ease;
}

.input-group input:focus + .input-icon {
    color: var(--primary-green);
}

.btn-login { 
    width: 100%; 
    background-color: var(--primary-green); 
    color: var(--white); 
    border: none; 
    padding: 16px; 
    border-radius: 12px; 
    font-size: 15px; 
    font-family: inherit; 
    font-weight: 600; 
    cursor: pointer; 
    margin-top: 10px; 
    transition: all 0.3s ease; 
    box-shadow: 0 8px 20px rgba(131, 150, 125, 0.3);
}

.btn-login:hover { 
    background-color: var(--dark-green); 
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(79, 93, 78, 0.35);
}

.login-links { 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 15px; 
    margin-top: 25px; 
}

.forgot-pass { font-size: 13px; color: var(--text-gray); transition: color 0.3s ease;}
.forgot-pass:hover { color: var(--primary-green); }

.register-link { 
    font-size: 14px; 
    font-weight: 600; 
    color: var(--text-dark); 
    margin-top: 10px; 
}
.register-link span { color: var(--primary-green); }

.login-illustration { 
    flex: 1.2; 
    padding: 50px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    background: linear-gradient(135deg, var(--hero-bg) 0%, #e8e3cf 100%); 
    border-right: 1px solid rgba(0,0,0,0.03); 
}

.login-illustration h3 { 
    font-size: 22px; 
    margin-bottom: 15px; 
    color: var(--dark-green); 
    font-weight: 700;
}

.login-illustration p { 
    font-size: 14px; 
    color: var(--text-gray); 
    line-height: 1.8; 
    max-width: 80%;
}

/* صفحه رزرو */
.booking-body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background-color: var(--bg-color); padding: 20px; }
.booking-container { display: flex; background-color: var(--hero-bg); border-radius: 24px; max-width: 950px; width: 100%; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04); }
.booking-form-section { flex: 1.2; padding: 40px; display: flex; flex-direction: column; border-left: 2px solid #e2dbca; }
.step-section { margin-bottom: 25px; }
.step-section h3 { font-size: 16px; color: var(--text-dark); margin-bottom: 15px; }
.calendar-wrapper { display: flex; gap: 15px; }
.calendar-ui { background-color: var(--white); border: 1px solid #e0e0e0; border-radius: 12px; padding: 15px; flex: 1.5; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; font-weight: bold; font-size: 14px; margin-bottom: 15px; }
.nav-arrow { cursor: pointer; color: var(--text-gray); }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; color: var(--text-gray); margin-bottom: 10px; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 5px; }
.calendar-days span { display: flex; align-items: center; justify-content: center; height: 28px; font-size: 13px; border-radius: 6px; cursor: pointer; }
.calendar-days span:hover:not(.disabled):not(.active) { background-color: #f0f0f0; }
.calendar-days span.active { background-color: var(--primary-green); color: var(--white); }
.calendar-days span.disabled { color: #ccc; cursor: not-allowed; }
.selected-date-box { background-color: var(--white); border: 1px solid #e0e0e0; border-radius: 12px; padding: 15px; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.selected-date-box .date-icon { font-size: 24px; margin-bottom: 10px; }
.selected-date-box p { font-size: 13px; color: var(--text-dark); }
.time-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.time-btn { background-color: var(--white); border: 1px solid var(--primary-green); color: var(--text-dark); padding: 10px; border-radius: 8px; font-size: 13px; font-family: inherit; cursor: pointer; transition: 0.3s; }
.time-btn:hover:not(.disabled) { background-color: #e8eee5; }
.time-btn.active { background-color: #d8dfd1; font-weight: bold; border-color: var(--dark-green); }
.time-btn.disabled { background-color: #e5e5e5; border-color: #d0d0d0; color: #999; cursor: not-allowed; }
.booking-summary { background-color: #e8e4d3; padding: 15px 20px; border-radius: 8px; font-size: 13px; margin-bottom: 20px; line-height: 1.6; }
.submit-booking { width: 100%; font-size: 15px; padding: 12px; border: none; cursor: pointer; }
.booking-illustration { flex: 1; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.booking-illustration .illustration-placeholder { width: 100%; height: 250px; background-color: #d8dfd1; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 30px; color: var(--dark-green); font-size: 13px; }
.booking-illustration h2 { font-size: 20px; margin-bottom: 15px; color: var(--text-dark); }
.booking-illustration p { font-size: 14px; color: var(--text-gray); line-height: 1.7; }

/* بخش سوالات متداول (FAQ لوکس جدید) */
.faq-section {
    background: linear-gradient(180deg, #fbfbf9 0%, #f4f7f5 100%);
    padding: 90px 5%;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.faq-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 70px;
    align-items: flex-start;
}

.faq-title-col {
    flex: 1;
    position: relative;
    padding-top: 10px;
}

.faq-watermark {
    position: absolute;
    top: -40px;
    right: -20px;
    font-size: 120px;
    font-weight: 900;
    color: rgba(131, 150, 125, 0.08);
    z-index: 1;
    line-height: 1;
    user-select: none;
    letter-spacing: 5px;
}

.faq-vector-box {
    position: relative;
    z-index: 2;
    width: 65px;
    height: 65px;
    background-color: rgba(131, 150, 125, 0.12);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(131, 150, 125, 0.08);
}

.faq-title-col h2 {
    font-size: 26px;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
    font-weight: 700;
}

.faq-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    position: relative;
    z-index: 2;
    line-height: 1.7;
}

.faq-accordion-col {
    flex: 1.5;
    background: var(--white);
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.faq-item {
    border-bottom: 1px solid #f0f2f0;
    padding: 20px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    transition: color 0.3s ease;
}

.faq-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(131, 150, 125, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary-green);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-icon::before {
    content: '+';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
}

.faq-answer p {
    font-size: 13.5px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.8;
}

.faq-item.active .faq-question h3 {
    color: var(--primary-green);
}

.faq-item.active .faq-icon {
    background-color: var(--primary-green);
    color: var(--white);
    transform: rotate(180deg);
}

.faq-item.active .faq-icon::before {
    content: '−';
}

.faq-item.active .faq-answer {
    max-height: 250px;
    margin-top: 12px;
}

/* اکشن‌های هدر و بخش کاربری */
.header-left-actions {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-right: auto !important;
}

.user-auth-header {
    margin: 0 !important;
    display: flex;
    align-items: center;
}

.logged-in-view {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(131, 150, 125, 0.1); 
    padding: 6px 15px;
    border-radius: 20px;
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-green);
    font-size: 13px;
}

.btn-logout {
    font-size: 12px;
    color: #cc0000; 
    text-decoration: none;
    font-weight: 600;
}

.logged-out-view {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-head-login {
    color: var(--dark-green);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 15px;
}

.btn-head-register {
    background-color: var(--primary-green);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
}

header .btn-primary {
    margin: 0 !important;
    white-space: nowrap !important;
}

@media (min-width: 769px) {
    header nav {
        flex-grow: 1 !important;
        display: flex !important;
        justify-content: center !important;
    }
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 768px) {
    header, .navbar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; 
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 5% !important;
        width: 100% !important;
        height: 65px !important; 
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        box-sizing: border-box !important;
        background-color: rgba(255, 255, 255, 0.9) !important; 
        backdrop-filter: blur(12px) !important; 
        -webkit-backdrop-filter: blur(12px) !important; 
    }

    .hamburger {
        order: 1 !important;
        display: flex !important;
        z-index: 100 !important;
        margin: 0 !important;
    }

    .header-left-actions {
        order: 3 !important;
        z-index: 100 !important;
        gap: 8px !important; 
    }
    
    header .btn-primary, .navbar .btn-primary {
        padding: 7px 12px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }
    
    .name-text { 
        display: none; 
    }
    
    .btn-head-login, .btn-head-register { 
        font-size: 12px !important; 
        padding: 6px 10px !important; 
    }

    header .logo, 
    header .custom-logo-link,
    .navbar .logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important; 
        transform: translate(-50%, -50%) !important; 
        margin: 0 !important;
        padding: 0 !important;
        z-index: 50 !important;
        display: block !important;
        line-height: 0 !important;
    }

    header img.custom-logo, 
    header .logo img,
    .navbar img {
        max-width: 60px !important;
        height: auto !important;
        max-height: 50px !important; 
        object-fit: contain !important;
    }
    
    header nav {
        display: none !important;
        position: absolute !important;
        top: 65px !important; 
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05) !important;
        padding: 15px 0 !important;
        border-top: 1px solid rgba(0,0,0,0.05) !important;
        z-index: 99 !important;
    }

    header nav.active {
        display: block !important;
    }

    header nav ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
    }

    .hero-section {
        display: flex !important;
        flex-direction: column !important; 
        text-align: center !important; 
        gap: 30px !important; 
        padding: 20px 5% !important; 
    }

    .hero-content, 
    .hero-image-placeholder {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-content .btn-primary {
        white-space: nowrap !important; 
        display: inline-block !important;
    }

    .login-body {
        padding: 15px;
        align-items: flex-start; 
        padding-top: 8vh;
    }

    .login-container {
        flex-direction: column; 
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(79, 93, 78, 0.08);
    }

    .login-form-section {
        padding: 40px 25px; 
        border-left: none; 
    }

    .login-illustration {
        display: none !important;
    }

    .page-header h1 {
        font-size: 22px !important;
    }

    .blog-grid {
        grid-template-columns: 1fr !important; 
        padding: 0 5% !important; 
        gap: 15px !important; 
        margin-bottom: 40px !important;
    }

    .blog-card {
        padding: 12px !important;
        gap: 12px !important;
    }

    .blog-image-placeholder {
        width: 75px !important;
        height: 90px !important;
    }

    .blog-content h3 {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    .blog-content p {
        font-size: 11px !important;
        margin-bottom: 10px !important;
    }

    .btn-sm {
        padding: 5px 12px !important;
        font-size: 11px !important;
    }

    .faq-section {
        padding: 50px 4%;
    }

    .faq-container {
        flex-direction: column;
        gap: 30px;
    }

    .faq-title-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .faq-watermark {
        right: 50%;
        transform: translateX(50%);
        font-size: 90px;
        top: -15px;
    }

    .faq-vector-box {
        margin-bottom: 15px;
    }

    .faq-title-col h2 {
        font-size: 22px;
    }

    .faq-subtitle {
        font-size: 13px;
        max-width: 90%;
    }

    .faq-accordion-col {
        padding: 15px 20px;
        border-radius: 16px;
    }

    .faq-question h3 {
        font-size: 13.5px;
        padding-left: 10px;
    }

    .faq-answer p {
        font-size: 12.5px;
    }
}
/* =========================================
   استایل‌های بخش دعوت به اقدام (CTA) قبل از فوتر
========================================= */

.cta-section {
    background-color: var(--white);
    padding: 90px 5%;
    text-align: center;
}

.cta-container {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-container h2 {
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.cta-container p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 35px;
}

.cta-btn {
    font-size: 16px !important;
    padding: 14px 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(131, 150, 125, 0.25);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(131, 150, 125, 0.4);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 60px 5%;
    }
    
    .cta-container h2 {
        font-size: 22px;
    }
    
    .cta-container p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 25px;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px !important;
    }
}

/* =========================================
   استایل‌های اختصاصی پلتفرم آزمون روانشناسی
========================================= */
.quiz-container {
    background-color: var(--white);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(131, 150, 125, 0.08);
    max-width: 700px;
    margin: 60px auto;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
}

#quiz-header h2 {
    color: var(--dark-green);
    font-size: 22px;
    margin-bottom: 10px;
}

#quiz-header p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 35px;
}

#question-text {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 30px;
    font-weight: 600;
}

.quiz-option-btn {
    display: block;
    width: 100%;
    padding: 18px;
    margin-bottom: 15px;
    background-color: rgba(131, 150, 125, 0.06);
    border: 1.5px solid rgba(131, 150, 125, 0.15);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
}

.quiz-option-btn:hover {
    background-color: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(131, 150, 125, 0.2);
}

.quiz-result-box {
    background: linear-gradient(135deg, var(--hero-bg) 0%, #e8e3cf 100%);
    padding: 40px;
    border-radius: 16px;
    margin-top: 20px;
}
.quiz-result-box h3 { color: var(--dark-green); font-size: 24px; margin-bottom: 15px; }

/* =========================================
   استایل‌های صفحه ویترین آزمون‌ها
========================================= */
.tests-hub-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 5%;
    text-align: center;
}

.tests-hub-header h2 {
    font-family: 'Vazirmatn', sans-serif !important; /* این خط فونت را اصلاح و یکپارچه می‌کند */
    font-size: 28px;
    color: var(--dark-green);
    margin-bottom: 15px;
    font-weight: 700;
}

.tests-hub-header p {
    color: var(--text-gray);
    margin-bottom: 50px;
    font-size: 15px;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.test-card {
    background-color: var(--white);
    border: 1px solid rgba(131, 150, 125, 0.15);
    border-radius: 20px;
    padding: 40px 25px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.test-card-icon {
    width: 75px;
    height: 75px;
    background-color: rgba(131, 150, 125, 0.1);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.test-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.test-card p {
    font-size: 13.5px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
    flex-grow: 1; 
}

.test-card:hover:not(.disabled) {
    transform: translateY(-8px);
    border-color: var(--primary-green);
    box-shadow: 0 15px 40px rgba(131, 150, 125, 0.15);
}

.test-card:hover:not(.disabled) .test-card-icon {
    background-color: var(--primary-green);
    color: var(--white);
    transform: scale(1.05);
}

.test-start-btn {
    width: 100%;
    text-align: center;
    padding: 12px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
}

.test-card.disabled {
    opacity: 0.7;
    cursor: default;
}

.test-card.disabled .disabled-btn {
    background-color: #e0e0e0 !important;
    color: #888 !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .tests-hub-container {
        margin: 40px auto;
    }
    .tests-grid {
        grid-template-columns: 1fr;
    }
    .test-card {
        padding: 30px 20px;
    }
}
/* =========================================
   استایل‌های زیرمنو (Dropdown) - نسخه نهایی
========================================= */

/* ۱. تنظیمات والد (حذف پدینگ) */
.menu-item-has-children {
    position: relative;
}

/* پل نامرئی (فقط در دسکتاپ) */
@media (min-width: 769px) {
    .menu-item-has-children::after {
        content: '';
        position: absolute;
        bottom: -25px;
        left: 0;
        width: 100%;
        height: 25px;
    }
}
/* ۲. استایل پایه زیرمنو برای دسکتاپ (مخفی بودن در حالت عادی) */
.sub-menu {
    position: absolute;
    top: 150%;
    right: 0;
    background-color: var(--white);
    min-width: 250px; /* کمی عریض‌تر برای جا شدن نام تست‌ها */
    padding: 10px 0;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(131, 150, 125, 0.15);
    border: 1px solid rgba(131, 150, 125, 0.1);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999;
    list-style: none;
    
    /* کدهای کلیدی برای چینش ستونی و لغو ارث‌بری از منوی اصلی */
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    align-items: flex-start !important;
}

/* ۳. ظاهر شدن زیرمنو هنگام رفتن ماوس (فقط دسکتاپ) */
@media (min-width: 769px) {
    .menu-item-has-children:hover .sub-menu {
        visibility: visible;
        opacity: 1;
        top: 100%;
    }
}

/* ۴. استایل آیتم‌های داخل زیرمنو */
.sub-menu li {
    width: 100%;
    margin: 0 !important; /* حذف فاصله‌های جانبی مزاحم */
}

.sub-menu li a {
    display: block;
    padding: 12px 25px !important;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: right; /* تضمین راست‌چین بودن متون */
    white-space: normal; /* اجازه شکستن خط در صورت طولانی بودن نام تست */
    line-height: 1.7; /* فاصله استاندارد و خوانا بین خطوط */
}

/* ۵. افکت هاور روی گزینه‌های داخل زیرمنو */
@media (min-width: 769px) {
    .sub-menu li a:hover {
        background-color: rgba(131, 150, 125, 0.08);
        color: var(--primary-green);
        padding-right: 30px;
    }
}

/* ۶. اصلاح ریسپانسیو زیرمنو برای موبایل (حالت کشویی با لمس) */
@media (max-width: 768px) {
    .sub-menu {
        position: static !important; 
        visibility: hidden !important; 
        opacity: 0 !important;
        max-height: 0; /* ارتفاع صفر برای شروع انیمیشن */
        overflow: hidden;
        box-shadow: none !important;
        border: none !important;
        background-color: rgba(131, 150, 125, 0.05) !important; 
        padding: 0 !important;
        margin-top: 0 !important;
        border-radius: 12px !important;
        min-width: 100% !important;
        transition: all 0.4s ease !important; /* انیمیشن نرم برای باز شدن */
    }
    
    /* کلاسی که با کلیک/لمس کاربر توسط جاوا اسکریپت اضافه می‌شود */
    .sub-menu.open-in-mobile {
        visibility: visible !important; 
        opacity: 1 !important;
        max-height: 400px; /* فضای کافی برای نمایش آیتم‌ها */
        padding: 10px 0 !important;
        margin-top: 10px !important;
    }
    
    .sub-menu li a {
        padding: 10px 20px !important;
        font-size: 13.5px !important;
        color: var(--text-gray) !important;
    }
}
/* =========================================
   استایل‌های نوار پیشرفت آزمون‌ها
========================================= */
.quiz-progress-wrapper {
    margin-bottom: 35px;
    text-align: center;
}

.quiz-progress-bg {
    width: 100%;
    height: 6px; /* ارتفاع مینیمال و ظریف */
    background-color: rgba(131, 150, 125, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.quiz-progress-fill {
    height: 100%;
    background-color: var(--primary-green);
    width: 0%; /* این مقدار توسط جاوا اسکریپت پر می‌شود */
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); /* انیمیشن نرم و جذاب */
}

.quiz-progress-text {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}
/* =========================================
   استایل‌های سیستم نوبت‌دهی اختصاصی
========================================= */

.custom-booking-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(131, 150, 125, 0.08);
    font-family: 'Vazirmatn', sans-serif;
}

.booking-question {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 30px;
}

.booking-options-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.booking-option-card {
    flex: 1;
    min-width: 200px;
    background: rgba(131, 150, 125, 0.05);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-option-icon {
    color: var(--text-gray);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.booking-option-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    transition: all 0.3s ease;
}

/* افکت هاور و حالت انتخاب شده (Active) */
.booking-option-card:hover {
    background: rgba(131, 150, 125, 0.1);
    transform: translateY(-3px);
}

.booking-option-card.selected {
    background: var(--white);
    border-color: var(--primary-green);
    box-shadow: 0 10px 25px rgba(131, 150, 125, 0.15);
}

.booking-option-card.selected .booking-option-icon,
.booking-option-card.selected h4 {
    color: var(--primary-green);
}
/* کدهای اصلاح‌شده برای وسط‌چین کردن و یکپارچگی فونت */
.booking-actions {
    text-align: center; /* دکمه در دسکتاپ و موبایل دقیقاً وسط قرار می‌گیرد */
    width: 100%;
    margin-top: 10px;
}

.booking-btn-next {
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 12px 45px; /* کمی عریض‌تر برای زیباتر شدن دکمه در مرکز */
    font-size: 15px;
    font-family: inherit; /* استفاده مستقیم از فونت اصلی سایت */
    font-weight: inherit; /* هم‌تراز شدن ضخامت با بقیه نوشته‌های سایت */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* حالت‌های غیرفعال و هاور دکمه (این دو بخش را هم جایگزین قبلی‌ها کنید) */
.booking-btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.booking-btn-next:not(:disabled):hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}
/* تنظیمات اختصاصی برای تراکم بهتر روزهای هفته در مرحله دوم */
.days-grid {
    gap: 15px;
}

.days-grid .booking-option-card {
    flex: 1 1 calc(25% - 15px); /* قرارگیری ۴ روز در یک ردیف در دسکتاپ */
    min-width: 100px;
    padding: 15px 10px;
}

.days-grid .booking-option-icon {
    margin-bottom: 8px;
}

.days-grid .booking-option-card h4 {
    font-size: 14px;
}
/* --- استایل اختصاصی باکس ورود آزمون‌ها - هماهنگ با تم دیدارتراپی --- */
.restrict-message-box {
    background-color: #F8F4EA !important; /* رنگ کِرم ملایم مشابه پس‌زمینه سایت */
    border: 1px solid #EAE3D5 !important;
    border-radius: 12px !important;
    padding: 35px 25px !important;
    text-align: center !important;
    max-width: 480px !important;
    margin: 30px auto !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.restrict-message-box h3 {
    color: #333333 !important; /* رنگ تیره و خوانا برای تیتر به جای نارنجی */
    font-size: 22px !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
}

.restrict-message-box p {
    color: #555555 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    margin-bottom: 25px !important;
}

/* استایل دکمه مشابه دکمه‌های "شروع مسیر تراپی" */
.restrict-message-box .login-btn {
    background-color: #7F9C86 !important; /* رنگ سبز ملایم سایت */
    color: #ffffff !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

/* افکت دکمه هنگام رفتن ماوس روی آن */
.restrict-message-box .login-btn:hover {
    background-color: #68826D !important; /* کمی تیره‌تر */
    transform: translateY(-2px) !important;
}