/* ==========================================================================
   1. VARIABLES & TYPOGRAPHY
   ========================================================================== */
:root {
  --thd-font-main: 'Oswald', sans-serif;
  --thd-font-body: 'Open Sans', sans-serif;
  --thd-font-rtl: 'Iran Yekan', 'Tahoma', Arial, sans-serif;
  --thd-red: #CC0000;
  --thd-dark: #0A0E1A;
  --thd-dark2: #111827;
  --thd-white: #ffffff;
  --thd-gray: #9CA3AF;
  --thd-light-bg: #F5F5F5;
  --thd-border-light: rgba(255, 255, 255, 0.1);
  --thd-border-dark: rgba(0, 0, 0, 0.08);
}

@font-face { font-family: 'Iran Yekan'; src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Iran Yekan'; src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* ==========================================================================
   2. BROWSER RESET & FULL WIDTH GAP FIXES
   ========================================================================== */
* { box-sizing: border-box; }

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important; /* FIXED: 100% prevents side scrollbar gaps */
  max-width: 100% !important;
  height: 100%;
  overflow-x: hidden !important;
  font-family: var(--thd-font-body);
  background-color: var(--thd-white);
  color: var(--thd-dark);
  -webkit-font-smoothing: antialiased;
}

header#site-header, footer#site-footer, .elementor-location-header, .elementor-location-footer { display: none !important; }

.elementor-section, .elementor-container, .elementor-widget-wrap, .e-con {
  max-width: 100% !important;
  padding-left: 0 !important; padding-right: 0 !important;
  margin-left: 0 !important; margin-right: 0 !important;
  width: 100% !important;
}

body, .elementor-page, .e-con.e-parent { display: flex !important; flex-direction: column !important; min-height: 100vh !important; }
.elementor-section-wrap { flex-grow: 1; display: flex; flex-direction: column; width: 100%; }

.elementor-widget-thd_header { margin: 0 !important; padding: 0 !important; width: 100%; display: block; position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; z-index: 9999 !important; }
.elementor-widget-thd_footer { margin-top: auto !important; width: 100%; display: block; }

/* ==========================================================================
   3. RTL (PERSIAN/ARABIC) OVERRIDES
   ========================================================================== */
body.rtl { font-family: var(--thd-font-rtl); direction: rtl; text-align: right; }
body.rtl * { direction: rtl; }
body.rtl .nav-links, body.rtl .logo-area, body.rtl .mobile-lang-opts { flex-direction: row-reverse; }
body.rtl .hero-text, body.rtl .stat-item, body.rtl .footer-col { text-align: right; }
body.rtl .stat-item > div, body.rtl .ci-text { text-align: right; margin-right: 18px; margin-left: 0; }
body.rtl .contact-info-item { flex-direction: row; }
body.rtl .btn-discover .arrow, body.rtl .btn-learn .arr, body.rtl .read-more, body.rtl .btn-arrow, body.rtl .btn-circle { transform: scaleX(-1); display: inline-block; } 
body.rtl .mission-block { border-left: none; border-right: 3px solid var(--thd-red); padding-left: 0; padding-right: 24px; }
body.rtl .feature-item { border-right: none; border-left: 1px solid var(--thd-border-light); }
body.rtl .feature-item:last-child { border-left: none; }

/* ==========================================================================
   4. COMPONENT: GLOBAL HEADER
   ========================================================================== */
.thd-header-wrapper { background: var(--thd-dark) !important; padding: 15px 50px; display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box; box-shadow: 0 4px 20px rgba(0,0,0,0.1); position: relative; }
.logo-area { display: flex; align-items: center; gap: 16px; text-decoration: none; cursor: pointer; }
.logo-placeholder { width: 60px; height: 60px; background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--thd-white); font-size: 18px; font-weight: 700; font-family: var(--thd-font-main); }
/* Logo image is intentionally constrained to a fixed visual slot.
   Uploaded logos may be any pixel size/aspect ratio; object-fit keeps them undistorted. */
.logo-image-wrap {
  width: 84px;
  height: 72px;
  max-width: 84px;
  max-height: 72px;
  min-width: 84px;
  flex: 0 0 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 0;
}
.logo-image-wrap .ml-str {
  width: 100% !important;
  height: 100% !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 0;
}
.logo-image-wrap img.logo-image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center;
  display: block !important;
}
.logo-text-block { display: flex; flex-direction: column; }
.logo-title { font-family: var(--thd-font-main); font-size: 20px; font-weight: 700; color: var(--thd-white); letter-spacing: 1px; line-height: 1.2; }
.logo-title span { color: var(--thd-red); }
.logo-sub { font-size: 10px; color: rgba(255,255,255,0.7); letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }

nav { display: flex; align-items: center; gap: 30px; } 
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.5px; padding: 8px 12px; transition: all 0.3s ease; font-family: var(--thd-font-main); text-transform: uppercase; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--thd-white); }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--thd-red); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.lang-selector { position: relative; margin: 0 10px; }
.lang-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); color: var(--thd-white); padding: 8px 18px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-family: var(--thd-font-main); border-radius: 4px; transition: all 0.3s ease; }
.lang-btn:hover { border-color: var(--thd-white); background: rgba(255,255,255,0.1); }
.lang-dropdown { display: none; position: absolute; top: 120%; right: 0; background: var(--thd-dark2); border: 1px solid var(--thd-border-light); min-width: 140px; z-index: 200; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.lang-selector.open .lang-dropdown { display: block; animation: fadeIn 0.2s ease; }
.lang-dropdown button { display: block; width: 100%; padding: 14px 20px; background: none; border: none; color: rgba(255,255,255,0.8); text-align: left; font-size: 14px; cursor: pointer; font-family: inherit; }
body.rtl .lang-dropdown button { text-align: right; }
.lang-dropdown button:hover { background: rgba(255,255,255,0.1); color: var(--thd-white); }

.btn-header { background: var(--thd-red); color: var(--thd-white); padding: 12px 24px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; border: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-family: var(--thd-font-main); transition: all 0.3s ease; text-decoration: none; border-radius: 4px; }
.btn-header:hover { background: #aa0000; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(204,0,0,0.3); }

.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 10px; background: none; border: none; z-index: 1000; }
.hamburger span { width: 30px; height: 2px; background: var(--thd-white); display: block; transition: 0.3s; }

.mobile-nav { display: none; position: fixed; inset: 0; background: rgba(10, 14, 26, 0.98); backdrop-filter: blur(10px); z-index: 9998; flex-direction: column; align-items: center; justify-content: center; gap: 35px; }
.mobile-nav.open { display: flex; animation: slideIn 0.3s ease; }
.mobile-nav a { color: var(--thd-white); text-decoration: none; font-size: 24px; font-family: var(--thd-font-main); text-transform: uppercase; letter-spacing: 2px; transition: color 0.3s; }
.mobile-nav-close { position: absolute; top: 30px; right: 30px; background: none; border: none; color: var(--thd-white); font-size: 40px; cursor: pointer; transition: transform 0.3s; }
.mobile-lang-opts { display: flex; gap: 15px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.mobile-lang-opts button { background: none; border: 1px solid rgba(255,255,255,0.3); color: white; padding: 8px 12px; border-radius: 4px; font-family: var(--thd-font-main); cursor: pointer; }
.mobile-lang-opts button.active { background: var(--thd-red); border-color: var(--thd-red); }

/* ==========================================================================
   5. COMPONENT: HERO SLIDER (20% Smaller Text)
   ========================================================================== */
.hero-section { position: relative; width: 100%; height: 100vh; min-height: 700px; overflow: hidden; background: var(--thd-dark); margin: 0 !important; padding: 0 !important; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; background-size: cover; background-position: center; transform: scale(1.05); }
.slide.active { opacity: 1; transform: scale(1); }

.hero-content { position: absolute; top: 50%; transform: translateY(-55%); left: 0; right: 0; z-index: 10; display: flex; flex-direction: column; justify-content: center; padding: 0 50px; max-width: 900px; }
.hero-text-slide { display: none; animation: thdHeroTextFade 0.45s ease; }
.hero-text-slide.active { display: block; }
@keyframes thdHeroTextFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hero-text h1 { font-family: var(--thd-font-main); font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; color: var(--thd-white); line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.hero-text h1 .red { color: var(--thd-red); }
.hero-text p { color: rgba(255,255,255,0.8); font-size: clamp(14px, 1.2vw, 16px); line-height: 1.6; margin-bottom: 30px; max-width: 500px; font-weight: 300; }

.btn-discover { display: inline-flex; align-items: center; gap: 12px; background: var(--thd-red); color: var(--thd-white); padding: 16px 32px; font-family: var(--thd-font-main); font-size: 14px; font-weight: 600; text-transform: uppercase; text-decoration: none; border-radius: 4px; }
.slider-dots { position: absolute; bottom: 150px; left: 50px; z-index: 20; display: flex; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: all 0.4s ease; }
.dot.active { background: var(--thd-red); width: 30px; border-radius: 6px; }

.hero-bottom { position: absolute; bottom: 0; left: 0; right: 0; z-index: 20; background: rgba(10,14,26,0.85); backdrop-filter: blur(8px); border-top: 1px solid var(--thd-border-light); width: 100%; box-sizing: border-box; }
.feature-icons { display: flex; padding: 25px 50px; justify-content: space-between; max-width: 1400px; margin: 0 auto; }
.feature-item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 20px; border-right: 1px solid var(--thd-border-light); flex: 1; }
.feature-icon { width: 44px; height: 44px; color: rgba(255,255,255,0.9); }
.feature-icon svg { width: 100%; height: 100%; stroke-width: 1.2; }
.feature-label { font-family: var(--thd-font-main); font-size: 12px; color: rgba(255,255,255,0.75); text-transform: uppercase; text-align: center; }

/* ==========================================================================
   6. INNER PAGE COMPONENTS (20% Smaller Text)
   ========================================================================== */
.page-hero-small { background: var(--thd-dark) url('https://images.unsplash.com/photo-1521791136064-7986c2920216?w=1920&q=80') center/cover no-repeat; padding: 150px 50px 80px; position: relative; overflow: hidden; width: 100%; box-sizing: border-box; }
.page-hero-small::before { content: ''; position: absolute; inset: 0; background: var(--thd-dark); opacity: 0.82; }
.page-hero-small-content { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; }
.page-tag { font-size: 13px; color: var(--thd-red); font-family: var(--thd-font-main); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.page-title { font-family: var(--thd-font-main); font-size: clamp(32px, 4vw, 52px); font-weight: 700; color: var(--thd-white); text-transform: uppercase; line-height: 1.1; margin: 0; }
.page-title span.red { color: var(--thd-red); }

.stats-mission { background: var(--thd-light-bg); padding: 100px 50px; display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: start; max-width: 1600px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px; }
.stat-item { display: flex; align-items: center; gap: 20px; }
.stat-icon { width: 64px; height: 64px; flex-shrink: 0; color: var(--thd-dark); }
.stat-icon svg { width: 100%; height: 100%; }
.stat-num { font-family: var(--thd-font-main); font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; color: var(--thd-dark); line-height: 1; margin-bottom: 6px; }
.stat-text { font-size: 12px; color: var(--thd-gray); text-transform: uppercase; font-weight: 600; }
.mission-block { max-width: 380px; border-left: 4px solid var(--thd-red); padding-left: 30px; }
.mission-label { display: flex; align-items: center; gap: 12px; font-size: 12px; font-family: var(--thd-font-main); color: var(--thd-red); text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.mission-label::before { content: ''; width: 40px; height: 2px; background: var(--thd-red); }
.mission-block p { font-size: 16px; line-height: 1.8; color: #4b5563; margin-bottom: 30px; font-weight: 300; }
.btn-learn { display: inline-flex; align-items: center; gap: 10px; color: var(--thd-dark); font-family: var(--thd-font-main); font-size: 14px; font-weight: 600; text-transform: uppercase; text-decoration: none; border: none; background: none; cursor: pointer; }

.about-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; padding: 100px 50px; align-items: center; max-width: 1400px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.about-intro-text .section-tag { font-size: 13px; color: var(--thd-red); font-family: var(--thd-font-main); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.about-intro-text h2 { font-family: var(--thd-font-main); font-size: clamp(24px, 3.5vw, 42px); font-weight: 700; text-transform: uppercase; line-height: 1.25; margin-bottom: 30px; color: var(--thd-dark); }
.about-intro-text h2 span.red { color: var(--thd-red); }
.about-intro-text p, .about-copy p { font-size: 15px; line-height: 1.8; color: #4b5563; margin: 0 0 20px; font-weight: 300; }
.about-copy { margin-bottom: 0; }
.about-copy .ml-str { display: none !important; }
html[data-thd-lang="en"] .about-copy .ml-str.ml-en,
html[data-thd-lang="fa"] .about-copy .ml-str.ml-fa,
html[data-thd-lang="ar"] .about-copy .ml-str.ml-ar,
html[data-thd-lang="fr"] .about-copy .ml-str.ml-fr,
html[data-thd-lang="ru"] .about-copy .ml-str.ml-ru,
html:not([data-thd-lang]) .about-copy .ml-str.ml-en { display: block !important; }
body.elementor-editor-active .about-copy .ml-str { display: none !important; }
body.elementor-editor-active .about-copy .ml-str.ml-en { display: block !important; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--thd-border-dark); margin-top: 50px; border: 1px solid var(--thd-border-dark); border-radius: 6px; overflow: hidden; }
.about-stat { background: var(--thd-white); padding: 30px 15px; text-align: center; }
.about-stat .num { font-family: var(--thd-font-main); font-size: clamp(24px, 3.5vw, 32px); font-weight: 700; color: var(--thd-dark); margin-bottom: 8px; }
.about-stat .lbl { font-size: 11px; color: var(--thd-gray); letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.5; font-weight: 600; }
.about-image-box { width: 100%; max-width: 560px; aspect-ratio: 1 / 1; height: auto !important; min-height: 0 !important; max-height: none !important; justify-self: center; align-self: start; background-size: cover; background-position: center; background-repeat: no-repeat; border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,0.15); }

/* UNIVERSAL GRIDS */
.services-grid-section, .projects-section, .news-section, .values-section { padding: 100px 50px; max-width: 1400px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.section-header, .projects-header, .values-header, .news-featured-text { margin-bottom: 60px; }
.section-header .tag, .projects-header .tag, .news-featured-text .tag { font-size: 13px; color: var(--thd-red); font-family: var(--thd-font-main); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.section-header h2, .projects-header h2, .values-header h2, .news-featured-text h2 { font-family: var(--thd-font-main); font-size: clamp(24px, 3.5vw, 42px); font-weight: 700; text-transform: uppercase; line-height: 1.25; color: var(--thd-dark); margin-bottom: 20px; }
.section-header h2 span.red, .news-featured-text h2 span.red { color: var(--thd-red); }
.values-header h2 { color: var(--thd-white); text-align: center; margin-bottom: 50px; }
.projects-header p, .news-featured-text p { font-size: 15px; color: #4b5563; margin-top: 16px; line-height: 1.7; max-width: 600px; font-weight: 300; }

.services-grid, .projects-grid, .news-grid, .values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card { padding: 50px 40px; border: 1px solid var(--thd-border-dark); border-radius: 8px; background: var(--thd-white); text-decoration: none; display: block; }
.service-card .s-icon { width: 50px; height: 50px; color: var(--thd-red); margin-bottom: 24px; }
.service-card h3 { font-family: var(--thd-font-main); font-size: 18px; text-transform: uppercase; color: var(--thd-dark); margin-bottom: 16px; }
.service-card p { font-size: 14px; color: #4b5563; line-height: 1.7; margin-bottom: 24px; }
.btn-arrow { color: var(--thd-red); font-size: 24px; display: inline-block; }

.project-card { position: relative; height: 350px; overflow: hidden; display: block; border-radius: 8px; text-decoration: none; }
.project-card-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.6s ease; }
.project-card:hover .project-card-img { transform: scale(1.1); }
.project-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,14,26,0.95) 0%, transparent 100%); padding: 40px 30px; display: flex; flex-direction: column; justify-content: flex-end; }
.project-tag { font-size: 11px; color: var(--thd-red); font-family: var(--thd-font-main); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
.project-title { font-family: var(--thd-font-main); font-size: 20px; color: var(--thd-white); margin-bottom: 8px; line-height: 1.3; }
.project-meta { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.btn-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--thd-red); color: var(--thd-white); display: flex; align-items: center; justify-content: center; font-size: 18px; border: none; margin-top: auto; }

.news-featured { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; margin-bottom: 80px; align-items: center; }
.news-card-big { background: var(--thd-dark); overflow: hidden; border-radius: 12px; display: block; text-decoration: none; }
.news-card-big-img { height: 350px; background-size: cover; background-position: center; position: relative; }
.news-badge { position: absolute; top: 20px; left: 20px; background: var(--thd-red); color: var(--thd-white); font-size: 11px; font-family: var(--thd-font-main); letter-spacing: 1px; padding: 6px 12px; text-transform: uppercase; z-index: 2; border-radius: 4px; font-weight: 600; }
.news-card-big-body { padding: 40px; }
.news-card-big-body h3 { font-family: var(--thd-font-main); font-size: 24px; color: var(--thd-white); margin-bottom: 16px; line-height: 1.3; }
.news-date { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 20px; }

.news-card { border: 1px solid var(--thd-border-dark); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; border-radius: 8px; background: var(--thd-white); }
.news-card-img { height: 220px; background-size: cover; background-position: center; position: relative; }
.news-card-body { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.news-card-body h3 { font-family: var(--thd-font-main); font-size: 18px; color: var(--thd-dark); margin-bottom: 16px; line-height: 1.4; flex-grow: 1; }
.news-card-body .date { font-size: 12px; color: var(--thd-gray); margin-bottom: 20px; }
.read-more, .btn-read { font-size: 13px; color: var(--thd-red); font-family: var(--thd-font-main); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; background: none; border: none; padding: 0; text-align: left; display: inline-flex; align-items: center; gap: 5px; }

.value-card { text-align: center; padding: 50px 30px; border: 1px solid var(--thd-border-light); border-radius: 8px; background: rgba(255,255,255,0.02); }
.value-icon { width: 56px; height: 56px; margin: 0 auto 20px; color: rgba(255,255,255,0.9); }
.value-icon svg { width: 100%; height: 100%; }
.value-card h3 { font-family: var(--thd-font-main); font-size: 18px; color: var(--thd-white); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.value-card p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; margin: 0; font-weight: 300; }

.btn-all, .btn-view-all { display: inline-block; border: 2px solid var(--thd-dark); color: var(--thd-dark); padding: 14px 28px; font-family: var(--thd-font-main); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; background: transparent; margin-top: 30px; text-decoration: none; border-radius: 4px; }

.cta-banner { background: var(--thd-dark); padding: 60px 50px; display: flex; align-items: center; justify-content: space-between; gap: 50px; border-radius: 12px; margin: 80px auto; max-width: 1400px; box-shadow: 0 20px 40px rgba(10,14,26,0.2); width: calc(100% - 100px); box-sizing: border-box; }
.cta-banner h2 { font-family: var(--thd-font-main); font-size: clamp(26px, 3.5vw, 40px); color: var(--thd-white); text-transform: uppercase; line-height: 1.25; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 16px; margin: 0; font-weight: 300; }
.btn-cta { background: var(--thd-red); color: var(--thd-white); padding: 18px 36px; font-family: var(--thd-font-main); font-size: 14px; font-weight: 600; text-transform: uppercase; border: none; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 12px; border-radius: 6px; text-decoration: none; }

.contact-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 800px; width: 100%; }
.contact-left { background: var(--thd-dark); padding: 140px 80px 80px; color: var(--thd-white); }
.contact-left h2 { font-family: var(--thd-font-main); font-size: clamp(32px, 4vw, 52px); color: var(--thd-white); text-transform: uppercase; line-height: 1.1; margin-bottom: 24px; }
.contact-left h2 span.red { color: var(--thd-red); }
.contact-left > p { color: rgba(255,255,255,0.7); margin-bottom: 40px; font-size: 15px; line-height: 1.6; font-weight: 300; }
.contact-info-item { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.ci-icon { width: 48px; height: 48px; background: rgba(204,0,0,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--thd-red); flex-shrink: 0; font-size: 20px; }
.ci-text h4 { font-family: var(--thd-font-main); font-size: 14px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.ci-text p { font-size: 15px; color: rgba(255,255,255,0.95); line-height: 1.6; margin: 0; font-weight: 300; }
.map-placeholder { height: 220px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-top: 40px; color: rgba(255,255,255,0.2); font-size: 40px; }

.contact-right { background: var(--thd-light-bg); padding: 140px 80px 80px; display: flex; flex-direction: column; justify-content: center; }
.contact-right h3 { font-family: var(--thd-font-main); font-size: 16px; color: var(--thd-red); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 30px; font-weight: 700; }
.contact-right input, .contact-right textarea, .contact-right select, .wpcf7-form-control { width: 100%; border: 1px solid var(--thd-border-dark); border-radius: 6px; padding: 16px 20px; font-size: 14px; font-family: var(--thd-font-body); color: var(--thd-dark); outline: none; background: var(--thd-white); margin-bottom: 20px; box-sizing: border-box; }
.contact-right textarea, .wpcf7-textarea { height: 160px; resize: vertical; }
.contact-right button, .contact-right input[type="submit"], .wpcf7-submit { width: 100%; background: var(--thd-red); color: var(--thd-white); padding: 18px; font-family: var(--thd-font-main); font-size: 15px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; border: none; cursor: pointer; border-radius: 6px; margin-top: 10px; }

.thd-footer-wrapper { background: var(--thd-dark2); padding: 80px 50px 30px; color: rgba(255,255,255,0.6); font-size: 14px; width: 100%; box-sizing: border-box; position: relative; z-index: 10; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; max-width: 1400px; margin-left: auto; margin-right: auto; }
.footer-col h4 { font-family: var(--thd-font-main); font-size: 15px; color: var(--thd-white); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 24px; }
.footer-col p { line-height: 1.8; margin-bottom: 12px; font-weight: 300; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-weight: 300; display: inline-block; }
.footer-logo { font-family: var(--thd-font-main); font-size: 28px; font-weight: 700; color: var(--thd-white); margin-bottom: 20px; letter-spacing: 1px; }
.footer-logo span { color: var(--thd-red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 30px; display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin-left: auto; margin-right: auto; font-size: 13px; font-weight: 300; }

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .about-intro { grid-template-columns: 1fr; padding: 80px 40px; gap: 50px; }
  .about-image-box { width: min(100%, 420px); max-width: 420px; aspect-ratio: 1 / 1; height: auto !important; max-height: none !important; min-height: 0 !important; margin: 40px auto 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
  .cta-banner { flex-direction: column; text-align: center; justify-content: center; padding: 60px 40px; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-left { padding: 100px 40px 60px; }
  .contact-right { padding: 80px 40px 80px; }
}

@media (max-width: 768px) {
  .thd-header-wrapper { padding: 15px 24px; }
  nav, .btn-header { display: none; }
  .hamburger { display: flex; }
  .hero-section { min-height: 100svh; height: auto; display: flex; flex-direction: column; justify-content: space-between; }
  .hero-content { position: relative; transform: none; padding: 100px 24px 80px; margin-top: 0; flex-grow: 1; display: flex; justify-content: center; }
  .slider-dots { position: relative; bottom: 0; left: 0; padding: 0 24px 30px; justify-content: center; z-index: 20; }
  .hero-bottom { position: relative; bottom: 0; }
  .feature-icons { display: grid; grid-template-columns: 1fr 1fr; padding: 20px 10px; gap: 15px; }
  .feature-item { padding: 10px; border: none !important; }
  .stats-mission { grid-template-columns: 1fr; padding: 60px 24px; gap: 50px; }
  .mission-block { max-width: 100%; border-left: none; padding-left: 0; border-top: 3px solid var(--thd-red); padding-top: 30px; }
  body.rtl .mission-block { border-right: none; }
  .services-grid-section, .projects-section, .news-section, .values-section { padding: 50px 24px; }
  .cta-banner { padding: 50px 24px; width: calc(100% - 48px); margin: 50px auto; }
  .thd-footer-wrapper { padding: 60px 24px 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid, .about-stats { grid-template-columns: 1fr; gap: 20px; }
  .about-stats { gap: 1px; } 
  .about-image-box { width: min(100%, 320px); max-width: 320px; aspect-ratio: 1 / 1; height: auto !important; max-height: none !important; min-height: 0 !important; }
  .feature-item { width: 100%; }
}

/* ==========================================================================
   15. BULLETPROOF MULTI-LANGUAGE TOGGLER 
   ========================================================================== */
.ml-str { display: none !important; }
html[data-thd-lang="en"] .ml-str.ml-en, html[data-thd-lang="fa"] .ml-str.ml-fa, html[data-thd-lang="ar"] .ml-str.ml-ar, html[data-thd-lang="fr"] .ml-str.ml-fr, html[data-thd-lang="ru"] .ml-str.ml-ru { display: inline-block !important; }
html:not([data-thd-lang]) .ml-str.ml-en { display: inline-block !important; }

/* Flexbox specific fixes for buttons */
.btn-header .ml-str, .btn-discover .ml-str, .btn-cta .ml-str, .btn-all .ml-str, .btn-view-all .ml-str { display: none !important; }
html[data-thd-lang="en"] .btn-header .ml-str.ml-en, html[data-thd-lang="en"] .btn-discover .ml-str.ml-en, html[data-thd-lang="en"] .btn-cta .ml-str.ml-en, html[data-thd-lang="en"] .btn-all .ml-str.ml-en, html[data-thd-lang="en"] .btn-view-all .ml-str.ml-en,
html[data-thd-lang="fa"] .btn-header .ml-str.ml-fa, html[data-thd-lang="fa"] .btn-discover .ml-str.ml-fa, html[data-thd-lang="fa"] .btn-cta .ml-str.ml-fa, html[data-thd-lang="fa"] .btn-all .ml-str.ml-fa, html[data-thd-lang="fa"] .btn-view-all .ml-str.ml-fa,
html[data-thd-lang="ar"] .btn-header .ml-str.ml-ar, html[data-thd-lang="ar"] .btn-discover .ml-str.ml-ar, html[data-thd-lang="ar"] .btn-cta .ml-str.ml-ar, html[data-thd-lang="ar"] .btn-all .ml-str.ml-ar, html[data-thd-lang="ar"] .btn-view-all .ml-str.ml-ar,
html[data-thd-lang="fr"] .btn-header .ml-str.ml-fr, html[data-thd-lang="fr"] .btn-discover .ml-str.ml-fr, html[data-thd-lang="fr"] .btn-cta .ml-str.ml-fr, html[data-thd-lang="fr"] .btn-all .ml-str.ml-fr, html[data-thd-lang="fr"] .btn-view-all .ml-str.ml-fr,
html[data-thd-lang="ru"] .btn-header .ml-str.ml-ru, html[data-thd-lang="ru"] .btn-discover .ml-str.ml-ru, html[data-thd-lang="ru"] .btn-cta .ml-str.ml-ru, html[data-thd-lang="ru"] .btn-all .ml-str.ml-ru { display: inline-flex !important; }
html:not([data-thd-lang]) .btn-header .ml-str.ml-en, html:not([data-thd-lang]) .btn-discover .ml-str.ml-en, html:not([data-thd-lang]) .btn-cta .ml-str.ml-en, html:not([data-thd-lang]) .btn-all .ml-str.ml-en, html:not([data-thd-lang]) .btn-view-all .ml-str.ml-en { display: inline-flex !important; }

body.elementor-editor-active .ml-str { display: none !important; }
body.elementor-editor-active .ml-str.ml-en { display: inline-block !important; }
body.elementor-editor-active .btn-header .ml-str.ml-en, body.elementor-editor-active .btn-discover .ml-str.ml-en, body.elementor-editor-active .btn-cta .ml-str.ml-en, body.elementor-editor-active .btn-all .ml-str.ml-en, body.elementor-editor-active .btn-view-all .ml-str.ml-en { display: inline-flex !important; }

/* Header logo language visibility must use flex so the image keeps the fixed slot size. */
.logo-image-wrap .ml-str { display: none !important; }
html[data-thd-lang="en"] .logo-image-wrap .ml-str.ml-en,
html[data-thd-lang="fa"] .logo-image-wrap .ml-str.ml-fa,
html[data-thd-lang="ar"] .logo-image-wrap .ml-str.ml-ar,
html[data-thd-lang="fr"] .logo-image-wrap .ml-str.ml-fr,
html[data-thd-lang="ru"] .logo-image-wrap .ml-str.ml-ru,
html:not([data-thd-lang]) .logo-image-wrap .ml-str.ml-en {
  display: flex !important;
}

@media (max-width: 768px) {
  .logo-image-wrap {
    width: 70px;
    height: 58px;
    max-width: 70px;
    max-height: 58px;
    min-width: 70px;
    flex-basis: 70px;
  }
}


/* THD fix: keep About widget image square regardless of text height. */
.about-intro > .about-image-box {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-self: start !important;
  justify-self: center;
  flex: 0 0 auto;
}
@supports not (aspect-ratio: 1 / 1) {
  .about-intro > .about-image-box {
    position: relative;
    height: 0 !important;
    padding-top: min(100%, 560px);
  }
}

/* THD Universal Grid optional intro image
   Places the optional image inside the body copy area only, so the image
   aligns with the descriptive paragraph and never competes with the tag/title. */
.thd-grid-header-has-image {
  display: block !important;
  width: 100%;
}

.thd-grid-intro-copy {
  min-width: 0;
  width: 100%;
}

.thd-grid-content-wrap {
  width: 100%;
  margin-top: 24px;
}

.thd-grid-content-text {
  min-width: 0;
}

.thd-grid-content-text > p {
  max-width: 100%;
  margin-top: 0;
}

.thd-grid-content-image-right,
.thd-grid-content-image-left {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.thd-grid-content-image-right .thd-grid-content-text {
  grid-column: 1;
  grid-row: 1;
}

.thd-grid-content-image-right .thd-grid-intro-media {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.thd-grid-content-image-left {
  grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
}

.thd-grid-content-image-left .thd-grid-intro-media {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.thd-grid-content-image-left .thd-grid-content-text {
  grid-column: 2;
  grid-row: 1;
}

.thd-grid-content-image-top,
.thd-grid-content-image-bottom,
.thd-grid-content-image-none {
  display: block;
}

.thd-grid-content-image-top .thd-grid-intro-media {
  margin-bottom: 24px;
}

.thd-grid-content-image-bottom .thd-grid-intro-media {
  margin-top: 24px;
}

.thd-grid-intro-media {
  width: 100%;
  max-width: 430px;
  align-self: start;
}

.thd-grid-content-image-top .thd-grid-intro-media,
.thd-grid-content-image-bottom .thd-grid-intro-media {
  max-width: min(100%, 760px);
}

.thd-grid-intro-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

.thd-grid-content-image-top .thd-grid-intro-media img,
.thd-grid-content-image-bottom .thd-grid-intro-media img {
  aspect-ratio: 16 / 7;
  max-height: 360px;
}

@media (max-width: 1024px) {
  .thd-grid-content-image-right,
  .thd-grid-content-image-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .thd-grid-content-image-right .thd-grid-intro-media,
  .thd-grid-content-image-right .thd-grid-content-text,
  .thd-grid-content-image-left .thd-grid-intro-media,
  .thd-grid-content-image-left .thd-grid-content-text {
    grid-column: auto;
    grid-row: auto;
  }

  .thd-grid-intro-media {
    max-width: min(100%, 520px);
    justify-self: start;
  }
}

@media (max-width: 768px) {
  .thd-grid-content-wrap {
    margin-top: 20px;
  }

  .thd-grid-content-image-right,
  .thd-grid-content-image-left {
    gap: 24px;
  }

  .thd-grid-intro-media {
    max-width: 100%;
  }

  .thd-grid-intro-media img,
  .thd-grid-content-image-top .thd-grid-intro-media img,
  .thd-grid-content-image-bottom .thd-grid-intro-media img {
    aspect-ratio: 4 / 3;
    max-height: none;
  }
}
