/*
Theme Name: PARSETUR Boutique Theme
Theme URI: https://parsetur.com
Author: PARSETUR
Description: Premium, modern, boutique Istanbul travel theme.
Version: 3.0.0
Text Domain: parsetur
*/

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
  --bg-pure: #FFFFFF;
  --bg-light: #FAFAFA;
  --text-dark: #111827;
  --text-muted: #4B5563;
  --primary-blue: #2563eb;
  --whatsapp-green: #25D366;
  --whatsapp-hover: #1eb856;
  --card-radius: 24px;
  --btn-radius: 14px;
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
  --font-main: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-pure);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ==========================================
   مدیریت هوشمند جهت کلی صفحه (RTL / LTR)
   ========================================== */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================
   Header & Navigation Styling
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  width: 100%;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.brand-logo-left {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: -3px;
}

/* منوی اصلی و کشویی */
.site-main-menu {
  margin: 0 auto;
}

.main-nav-ul {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 20px !important;
  align-items: center !important;
}

.main-nav-ul > li {
  position: relative !important;
}

.main-nav-ul li a {
  text-decoration: none !important;
  color: #374151 !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  padding: 8px 12px !important;
  display: block !important;
  transition: all 0.2s ease !important;
  border-radius: 8px !important;
}

.main-nav-ul li a:hover {
  color: var(--primary-blue) !important;
  background: #f3f4f6 !important;
}

/* زیرمنوی کشویی متناسب با RTL / LTR */
.main-nav-ul .sub-menu {
  position: absolute !important;
  top: 100% !important;
  background: #ffffff !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  border-radius: 12px !important;
  list-style: none !important;
  padding: 8px 0 !important;
  min-width: 200px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(10px) !important;
  transition: all 0.2s ease-in-out !important;
  z-index: 10000 !important;
  border: 1px solid #e5e7eb !important;
}

html[dir="rtl"] .main-nav-ul .sub-menu {
  right: 0 !important;
  left: auto !important;
}

html[dir="ltr"] .main-nav-ul .sub-menu {
  left: 0 !important;
  right: auto !important;
}

.main-nav-ul > li:hover .sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.main-nav-ul .sub-menu li {
  width: 100% !important;
}

.main-nav-ul .sub-menu li a {
  padding: 10px 16px !important;
  font-size: 0.85rem !important;
  color: #4b5563 !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
}

html[dir="rtl"] .main-nav-ul .sub-menu li a {
  text-align: right !important;
}

html[dir="ltr"] .main-nav-ul .sub-menu li a {
  text-align: left !important;
}

.main-nav-ul .sub-menu li a:hover {
  background: #eff6ff !important;
  color: var(--primary-blue) !important;
}

/* دکمه‌های سمت راست هدر */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #f3f4f6;
  padding: 6px 12px;
  border-radius: 20px;
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: #FFFFFF !important;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 140px 24px 120px;
  color: #FFFFFF;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 800px;
  margin-bottom: 50px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
  font-weight: 400;
}

.hero-nav-wrapper {
  width: 100%;
  max-width: 720px;
}

.hero-navbar {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.nav-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 40px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-tab:hover, .nav-tab.active {
  background-color: #FFFFFF;
  color: var(--text-dark);
}

/* Single Post Styles */
.single-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

html[dir="rtl"] .single-container,
html[dir="rtl"] .entry-content,
html[dir="rtl"] .single-main-text {
  text-align: right;
  direction: rtl;
}

html[dir="ltr"] .single-container,
html[dir="ltr"] .entry-content,
html[dir="ltr"] .single-main-text {
  text-align: left;
  direction: ltr;
}

.entry-content {
  line-height: 1.8;
  color: #374151;
  font-size: 1rem;
}

html[dir="ltr"] .entry-content ul,
html[dir="ltr"] .entry-content ol {
  padding-left: 20px;
  padding-right: 0;
}

html[dir="rtl"] .entry-content ul,
html[dir="rtl"] .entry-content ol {
  padding-right: 20px;
  padding-left: 0;
}

/* ==========================================
   Comments Form Styles (سازگار با RTL/LTR)
   ========================================== */
#comments {
  margin-top: 50px;
}

html[dir="rtl"] #comments,
html[dir="rtl"] .comment-form {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] #comments,
html[dir="ltr"] .comment-form {
  direction: ltr;
  text-align: left;
}

.comment-form {
  display: flex;
  flex-direction: column;
}

.comment-form p {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.comment-form label {
  margin-bottom: 5px;
  font-weight: 700;
  font-size: 0.9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  font-family: var(--font-main);
  box-sizing: border-box;
}

.submit-btn,
.comment-form input[type="submit"] {
  background-color: var(--text-dark);
  color: #FFFFFF;
  padding: 12px 24px;
  border: none;
  border-radius: var(--btn-radius);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: fit-content;
}

.submit-btn:hover,
.comment-form input[type="submit"]:hover {
  background-color: #1f2937;
}

/* ==========================================
   Footer - 3 Columns Grid
   ========================================== */
.site-footer {
  background-color: #111827;
  color: #F9FAFB;
  padding-top: 80px;
  margin-top: 100px;
  width: 100%;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}

html[dir="rtl"] .footer-container {
  text-align: right;
  direction: rtl;
}

html[dir="ltr"] .footer-container {
  text-align: left;
  direction: ltr;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.footer-links a {
  color: #D1D5DB;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--whatsapp-green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 32px;
  background-color: #0B0F17;
}

.footer-bottom-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6B7280;
}
/* ۱. جلوگیری کلی از اسکرول افقی و کادر سفید */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ۲. اصلاح بنر هیرو و جلوگیری از بیرون زدن محتوا */
.hero-section {
    max-width: 100vw !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.hero-content {
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

.hero-title {
    font-size: 1.8rem !important; /* اندازه مناسب متن در موبایل */
    word-break: break-word !important;
}

/* ۳. ریسپونسیو کردن کامل دکمه‌های نویگیشن‌بار در موبایل */
.hero-nav-wrapper {
    max-width: 100% !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

.hero-navbar {
    display: flex !important;
    flex-wrap: wrap !important; /* اجازه‌ی رفتن به سطر بعدی در موبایل */
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px !important;
}

.hero-navbar .nav-tab {
    flex: 1 1 auto !important;
    min-width: 100px !important;
    text-align: center !important;
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
}

/* اصلاح اختصاصی برای صفحه‌نمایش‌های زیر 600px */
@media (max-width: 600px) {
    .hero-navbar {
        flex-direction: column !important; /* عمودی شدن دکمه‌ها در موبایل */
    }
    .hero-navbar .nav-tab {
        width: 100% !important;
    }
}