/* TehranEP Modern Core v1.0.0 */

:root {
  /* One typography stack for Persian, English and Kurdish Sorani.
     No bundled/remote font files: fast, privacy-friendly, legacy-theme independent. */
  --tep-font: "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;

  --tep-ink: #111111;
  --tep-muted: #5d6671;
  --tep-navy: #164a73;
  --tep-navy-deep: #103b5e;
  --tep-cyan: #36c7c3;
  --tep-violet: #7766f2;

  --tep-bg: #f5f9fc;
  --tep-glass: rgba(255,255,255,.58);
  --tep-glass-strong: rgba(255,255,255,.76);
  --tep-glass-soft: rgba(245,251,255,.46);
  --tep-border: rgba(255,255,255,.78);
  --tep-line: rgba(22,74,115,.12);

  --tep-shadow: 0 18px 50px rgba(20,57,89,.09);
  --tep-shadow-soft: 0 10px 28px rgba(20,57,89,.065);
  --tep-radius: 22px;
  --tep-radius-sm: 14px;
  --tep-content: 1280px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--tep-ink);
  font-family: var(--tep-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--tep-navy); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--tep-navy-deep); }

img,
video,
svg,
canvas { max-width: 100%; height: auto; }

iframe,
embed,
object { max-width: 100%; }

button,
input,
select,
textarea { font: inherit; }

.tep-container {
  width: min(calc(100% - 40px), var(--tep-content));
  margin-inline: auto;
}

.tep-reading-container { max-width: 840px; }

.tep-skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: 12px;
  z-index: 99999;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--tep-navy-deep);
  box-shadow: var(--tep-shadow);
}
.tep-skip-link:focus { transform: none; }

.tep-site-header {
  position: relative;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--tep-border);
  backdrop-filter: blur(14px);
}

.tep-topbar {
  background: #17212a;
  color: #fff;
  font-size: 12px;
}
.tep-topbar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.tep-site-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tep-language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  direction: ltr;
}
.tep-language-switcher a,
.tep-language-switcher span {
  color: rgba(255,255,255,.78);
  padding: 4px 8px;
  text-decoration: none;
  border-radius: 7px;
}
.tep-language-switcher .is-current {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.tep-header-main {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.tep-brand { flex: 0 0 auto; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-height: 58px; }
.tep-text-logo {
  color: var(--tep-navy-deep);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.tep-primary-nav {
  margin-inline-start: auto;
  min-width: 0;
}
.tep-menu,
.tep-primary-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tep-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.tep-menu > li { position: relative; }
.tep-menu a,
.tep-primary-nav .page_item > a {
  display: block;
  padding: 10px 11px;
  border-radius: 9px;
  color: var(--tep-ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.tep-menu a:hover,
.tep-menu .current-menu-item > a,
.tep-menu .current-menu-ancestor > a {
  background: #f1f6fa;
  color: var(--tep-navy);
}

.tep-menu .sub-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--tep-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--tep-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .18s ease;
}
.tep-menu li:hover > .sub-menu,
.tep-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.tep-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--tep-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.tep-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--tep-ink);
}

.tep-main { min-height: 55vh; }
.tep-content-shell,
.tep-page-content { padding-block: 42px 64px; }

.tep-page-hero {
  padding-block: 28px;
  background: linear-gradient(180deg,#f8fbfd,#fff);
  border-bottom: 1px solid var(--tep-border);
}
.tep-page-title,
.tep-entry-content h1 {
  margin: 0;
  color: var(--tep-navy);
  font-size: clamp(20px,1.5vw,25px);
  font-weight: 650;
  line-height: 1.45;
}
.tep-entry-content h2 {
  color: var(--tep-navy);
  font-size: clamp(18px,1.15vw,21px);
  font-weight: 650;
  line-height: 1.55;
}
.tep-entry-content h3 {
  color: var(--tep-navy-deep);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.6;
}
.tep-entry-content h4,
.tep-entry-content h5,
.tep-entry-content h6 {
  color: var(--tep-navy-deep);
  font-size: 15.5px;
  font-weight: 650;
}
.tep-entry-content p,
.tep-entry-content li {
  color: var(--tep-ink);
  font-size: 15px;
}
.tep-entry-content > *:first-child { margin-top: 0; }

.tep-breadcrumbs {
  margin-bottom: 10px;
  color: var(--tep-muted);
  font-size: 12px;
}
.tep-breadcrumbs a { color: inherit; }

.tep-featured-media {
  overflow: hidden;
  margin: 0 0 28px;
  border-radius: var(--tep-radius);
}
.tep-featured-media img { display: block; width: 100%; }

.tep-card-grid,
.tep-post-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
}
.tep-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tep-border);
  border-radius: var(--tep-radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,59,94,.05);
}
.tep-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; }
.tep-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tep-card:hover .tep-card-media img { transform: scale(1.025); }
.tep-card-body { padding: 20px; }
.tep-card-title { margin: 0 0 10px; font-size: 17px; line-height: 1.55; }
.tep-card-title a { color: var(--tep-navy); text-decoration: none; }

.tep-button,
.tep-entry-content .elementor-button,
.tep-entry-content button,
.tep-entry-content input[type="submit"] {
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.tep-entry-content input:not([type="checkbox"]):not([type="radio"]),
.tep-entry-content textarea,
.tep-entry-content select {
  max-width: 100%;
  border-radius: 11px;
}

/* Compatibility layer for old Elementor / ElementsKit / Medizco content */
.tep-entry-content .elementor,
.tep-home-content .elementor,
.tep-entry-content .fw-page-builder-content {
  width: 100%;
  max-width: 100%;
}
.tep-entry-content .elementor-section.elementor-section-boxed > .elementor-container,
.tep-home-content .elementor-section.elementor-section-boxed > .elementor-container {
  width: min(calc(100% - 40px), var(--tep-content));
  max-width: var(--tep-content) !important;
}
.tep-entry-content .elementor-column,
.tep-home-content .elementor-column,
.tep-entry-content .elementor-widget-container,
.tep-home-content .elementor-widget-container {
  min-width: 0;
}
.tep-entry-content .elementor-heading-title,
.tep-home-content .elementor-heading-title {
  color: var(--tep-navy) !important;
  font-family: var(--tep-font) !important;
}
.tep-entry-content .elementor-widget-text-editor,
.tep-home-content .elementor-widget-text-editor {
  color: var(--tep-ink) !important;
  font-family: var(--tep-font) !important;
}
.tep-entry-content .elementskit-tab-nav .elementskit-nav-link,
.tep-home-content .elementskit-tab-nav .elementskit-nav-link {
  border-radius: 10px;
  font-family: var(--tep-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
.tep-entry-content table,
.tep-home-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}
.tep-entry-content iframe,
.tep-home-content iframe {
  max-width: 100%;
}
.tep-entry-content [style*="width:"],
.tep-home-content [style*="width:"] {
  max-width: 100%;
}

.tep-error-page { display: grid; min-height: 60vh; place-items: center; padding: 40px; }
.tep-error-card { max-width: 620px; text-align: center; }
.tep-error-code { margin: 0; color: var(--tep-navy); font-size: clamp(54px,10vw,96px); font-weight: 800; line-height: 1; }

.tep-site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--tep-border);
  background: #f7f9fb;
}
.tep-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr .8fr;
  gap: 32px;
  padding-block: 38px;
}
.tep-footer-column { min-width: 0; color: #283039; font-size: 13px; }
.tep-footer-column p { margin: 0 0 9px; }
.tep-footer-title { margin: 0 0 12px; color: var(--tep-navy); font-size: 15px; }
.tep-footer-menu { margin: 0; padding: 0; list-style: none; }
.tep-footer-menu a { display: block; padding-block: 5px; color: #283039; text-decoration: none; }
.tep-footer-logos {
  padding-block: 18px;
  border-top: 1px solid var(--tep-border);
  background: #fff;
}
.tep-footer-logos img { max-height: 48px; width: auto; object-fit: contain; }
.tep-footer-bottom {
  background: var(--tep-navy-deep);
  color: #fff;
  font-size: 12px;
}
.tep-footer-bottom .tep-container {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 1100px) {
  .tep-card-grid,
  .tep-post-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 960px) {
  .tep-header-main { min-height: 70px; }
  .tep-menu-toggle { display: block; margin-inline-start: auto; }
  .tep-primary-nav {
    position: absolute;
    z-index: 100;
    top: 100%;
    inset-inline: 20px;
    display: none;
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--tep-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--tep-shadow);
  }
  .tep-primary-nav.is-open { display: block; }
  .tep-menu { display: block; }
  .tep-menu .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    padding-inline-start: 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .tep-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 14px; line-height: 1.8; }
  .tep-container { width: min(calc(100% - 24px), var(--tep-content)); }
  .tep-site-meta { display: none; }
  .tep-topbar-inner { justify-content: center; }
  .tep-header-main { gap: 14px; }
  .custom-logo { max-width: 150px; max-height: 48px; }
  .tep-content-shell,
  .tep-page-content { padding-block: 28px 44px; }
  .tep-page-hero { padding-block: 22px; }
  .tep-card-grid,
  .tep-post-list,
  .tep-footer-grid { grid-template-columns: 1fr; }
  .tep-entry-content p,
  .tep-entry-content li { font-size: 14px; }
  .tep-entry-content .elementor-section.elementor-section-boxed > .elementor-container,
  .tep-home-content .elementor-section.elementor-section-boxed > .elementor-container {
    width: min(calc(100% - 24px), var(--tep-content));
  }
  .tep-footer-bottom .tep-container {
    flex-direction: column;
    justify-content: center;
    padding-block: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tep-container { width: min(calc(100% - 20px), var(--tep-content)); }
  .tep-primary-nav { inset-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* ==========================================================================
   TehranEP Modern Core v1.2.0
   GLOBAL GLASS + UNIFIED TRI-LANGUAGE TYPOGRAPHY + RESPONSIVE SYSTEM
   ========================================================================== */

/* ---------- Foundation ---------- */
html {
  background:#f5f9fc;
}

body {
  position:relative;
  background:
    radial-gradient(circle at 8% 8%, rgba(119,102,242,.105), transparent 31rem),
    radial-gradient(circle at 93% 14%, rgba(54,199,195,.115), transparent 34rem),
    linear-gradient(180deg,#f8fbfd 0%,#f2f7fb 55%,#f7fafc 100%);
  background-attachment:fixed;
  color:var(--tep-ink);
  font-family:var(--tep-font) !important;
  font-size:15px;
  line-height:1.78;
  overflow-wrap:anywhere;
}

body::before {
  content:"";
  position:fixed;
  z-index:-1;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.72), transparent 38rem);
}

/* Same font family on every real text UI element.
   Icons are intentionally excluded so Font Awesome/Elementor icons do not break. */
body,
button,
input,
select,
textarea,
optgroup,
label,
p,
li,
a,
blockquote,
figcaption,
caption,
th,
td,
.tep-site-header,
.tep-site-footer,
.tep-menu,
.tep-language-switcher,
.wpml-ls,
.wpml-ls *,
.elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-text-editor *,
.elementor-button,
.elementor-button-text,
.elementor-field,
.elementor-field-label,
.elementor-icon-list-text,
.elementskit-navbar-nav a,
.elementskit-menu-container a,
.elementskit-btn,
.ekit-wid-con,
.ekit-wid-con p,
.ekit-wid-con a,
.ekit-wid-con span:not([class*="icon"]) {
  font-family:var(--tep-font) !important;
}

body p,
body li,
.tep-entry-content p,
.tep-entry-content li,
.tep-home-content p,
.tep-home-content li,
.elementor-widget-text-editor,
.elementor-widget-text-editor p {
  color:var(--tep-ink);
  font-size:15px !important;
  font-weight:400;
}

h1,h2,h3,h4,h5,h6,
.tep-page-title,
.tep-card-title,
.tep-footer-title,
.elementor-heading-title {
  font-family:var(--tep-font) !important;
  color:var(--tep-navy) !important;
  letter-spacing:0;
  text-wrap:balance;
}

h1,
h1.elementor-heading-title,
.tep-page-title,
.tep-entry-content h1 {
  font-size:clamp(21px,1.65vw,28px) !important;
  line-height:1.4 !important;
  font-weight:650 !important;
}

h2,
h2.elementor-heading-title,
.tep-entry-content h2 {
  font-size:clamp(19px,1.35vw,23px) !important;
  line-height:1.48 !important;
  font-weight:650 !important;
}

h3,
h3.elementor-heading-title,
.tep-entry-content h3 {
  font-size:clamp(16.5px,1.1vw,19px) !important;
  line-height:1.55 !important;
  font-weight:620 !important;
}

h4,h5,h6,
h4.elementor-heading-title,
h5.elementor-heading-title,
h6.elementor-heading-title {
  font-size:15.5px !important;
  line-height:1.6 !important;
  font-weight:620 !important;
}

html[lang^="en"] body { line-height:1.68; }
html[lang^="fa"] body,
html[lang^="ckb"] body,
html[lang^="ku"] body { line-height:1.82; }

/* ---------- Fluid / safe media ---------- */
img,
picture,
video,
canvas,
svg {
  max-width:100%;
  height:auto;
}

iframe,
embed,
object {
  display:block;
  width:100%;
  max-width:100%;
}

pre,
code {
  max-width:100%;
}

pre {
  overflow:auto;
}

table {
  max-width:100%;
}

input,
select,
textarea,
button {
  max-width:100%;
}

/* ---------- Global glass primitives ---------- */
.tep-site-header,
.tep-page-hero,
.tep-card,
.tep-featured-media,
.tep-error-card,
.tep-footer-widget,
.tep-footer-logos,
.tep-breadcrumbs,
.tep-primary-nav .sub-menu,
.wpml-ls-legacy-dropdown > ul,
.wpml-ls-legacy-dropdown-click > ul {
  border:1px solid var(--tep-border);
  background-color:var(--tep-glass);
  box-shadow:var(--tep-shadow-soft);
  -webkit-backdrop-filter:blur(22px) saturate(145%);
  backdrop-filter:blur(22px) saturate(145%);
}

/* Header becomes a soft glass band without forcing a sticky layout. */
.tep-site-header {
  background:rgba(255,255,255,.68);
  border-inline:0;
  border-top:0;
  border-bottom-color:rgba(22,74,115,.09);
  box-shadow:0 8px 30px rgba(21,58,88,.055);
}

.tep-topbar {
  background:rgba(18,31,42,.91);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
}

.tep-language-switcher a,
.tep-language-switcher span,
.wpml-ls a {
  border-radius:10px;
}

.tep-language-switcher .is-current,
.wpml-ls-current-language > a {
  background:rgba(255,255,255,.15);
}

/* Main navigation */
.tep-menu a,
.tep-primary-nav .page_item > a,
.elementskit-navbar-nav > li > a,
.elementskit-menu-container > ul > li > a {
  color:var(--tep-ink) !important;
  font-size:13px !important;
  font-weight:520 !important;
}

.tep-menu a:hover,
.tep-menu .current-menu-item > a,
.tep-menu .current-menu-ancestor > a {
  background:rgba(255,255,255,.58);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}

.tep-menu .sub-menu {
  border-color:var(--tep-border);
  background:rgba(255,255,255,.78);
  box-shadow:var(--tep-shadow);
  -webkit-backdrop-filter:blur(24px) saturate(150%);
  backdrop-filter:blur(24px) saturate(150%);
}

.tep-menu-toggle {
  border-color:var(--tep-border);
  background:rgba(255,255,255,.65);
  box-shadow:var(--tep-shadow-soft);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}

/* ---------- Page surfaces ---------- */
.tep-main {
  position:relative;
}

.tep-page-hero {
  margin:14px auto 0;
  width:min(calc(100% - 28px),var(--tep-content));
  padding:20px clamp(16px,2.2vw,28px);
  border-radius:var(--tep-radius);
  background:
    linear-gradient(135deg,rgba(255,255,255,.66),rgba(241,249,255,.44));
}

.tep-content-shell,
.tep-page-content {
  padding-block:28px 52px;
}

.tep-card {
  border-color:var(--tep-border);
  background:
    linear-gradient(145deg,rgba(255,255,255,.70),rgba(244,250,255,.46));
  box-shadow:var(--tep-shadow-soft);
  -webkit-backdrop-filter:blur(22px) saturate(145%);
  backdrop-filter:blur(22px) saturate(145%);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}

.tep-card:hover {
  transform:translateY(-2px);
  box-shadow:0 20px 50px rgba(20,57,89,.105);
  border-color:rgba(255,255,255,.95);
}

.tep-card-body {
  padding:18px;
}

/* ---------- Elementor / ElementsKit: top-level sections become glass
   while images/background images remain intact. ---------- */
.tep-home-content > .elementor > .elementor-element.elementor-section > .elementor-container,
.tep-entry-content > .elementor > .elementor-element.elementor-section > .elementor-container,
.tep-home-content > .elementor > .e-con,
.tep-entry-content > .elementor > .e-con {
  border:1px solid rgba(255,255,255,.72);
  border-radius:var(--tep-radius);
  background-color:rgba(255,255,255,.34);
  box-shadow:var(--tep-shadow-soft);
  -webkit-backdrop-filter:blur(18px) saturate(135%);
  backdrop-filter:blur(18px) saturate(135%);
}

/* Common card-like widgets / controls */
.tep-entry-content .elementor-widget-container,
.tep-home-content .elementor-widget-container {
  min-width:0;
}

.tep-entry-content .elementor-button,
.tep-home-content .elementor-button,
.tep-button,
button:not(.tep-menu-toggle),
input[type="submit"] {
  border:1px solid rgba(255,255,255,.76) !important;
  border-radius:14px !important;
  background:
    linear-gradient(135deg,rgba(22,74,115,.94),rgba(38,139,161,.88)) !important;
  color:#fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    0 10px 26px rgba(22,74,115,.16) !important;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease !important;
}

.tep-entry-content .elementor-button:hover,
.tep-home-content .elementor-button:hover,
.tep-button:hover,
button:not(.tep-menu-toggle):hover,
input[type="submit"]:hover {
  transform:translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    0 14px 32px rgba(22,74,115,.20) !important;
}

/* Forms across site */
.tep-entry-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.tep-home-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.tep-entry-content textarea,
.tep-home-content textarea,
.tep-entry-content select,
.tep-home-content select,
.elementor-field:not([type="checkbox"]):not([type="radio"]) {
  width:100%;
  min-width:0;
  border:1px solid rgba(22,74,115,.13) !important;
  border-radius:13px !important;
  background:rgba(255,255,255,.56) !important;
  color:var(--tep-ink) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 6px 20px rgba(22,74,115,.035);
  -webkit-backdrop-filter:blur(15px);
  backdrop-filter:blur(15px);
}

.tep-entry-content input:focus,
.tep-home-content input:focus,
.tep-entry-content textarea:focus,
.tep-home-content textarea:focus,
.tep-entry-content select:focus,
.tep-home-content select:focus,
.elementor-field:focus {
  outline:none !important;
  border-color:rgba(22,74,115,.36) !important;
  box-shadow:0 0 0 4px rgba(22,74,115,.07) !important;
  background:rgba(255,255,255,.79) !important;
}

/* Tabs / accordions / common ElementsKit surfaces */
.tep-entry-content .elementskit-tab-nav,
.tep-home-content .elementskit-tab-nav,
.tep-entry-content .elementskit-accordion,
.tep-home-content .elementskit-accordion,
.tep-entry-content .ekit-wid-con .elementskit-card,
.tep-home-content .ekit-wid-con .elementskit-card {
  border-radius:var(--tep-radius-sm);
}

.tep-entry-content .elementskit-tab-nav .elementskit-nav-link,
.tep-home-content .elementskit-tab-nav .elementskit-nav-link {
  border:1px solid rgba(255,255,255,.64) !important;
  background:rgba(255,255,255,.44) !important;
  box-shadow:var(--tep-shadow-soft);
  -webkit-backdrop-filter:blur(15px);
  backdrop-filter:blur(15px);
}

/* ---------- Footer glass ---------- */
.tep-site-footer {
  margin-top:46px;
  border-top:1px solid rgba(22,74,115,.08);
  background:
    linear-gradient(180deg,rgba(244,249,252,.54),rgba(236,245,250,.72));
}

.tep-footer-grid {
  gap:18px;
}

.tep-footer-column,
.tep-footer-widget {
  min-width:0;
}

.tep-footer-widget {
  height:100%;
  padding:18px;
  border-radius:18px;
}

.tep-footer-logos {
  margin-inline:auto;
  width:min(calc(100% - 28px),var(--tep-content));
  padding:15px;
  border-radius:18px;
  background:rgba(255,255,255,.55);
}

.tep-footer-bottom {
  margin-top:16px;
  background:rgba(16,59,94,.94);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
}

/* ---------- Full responsive safety layer ---------- */
.tep-container {
  width:min(calc(100% - 32px),var(--tep-content));
}

.tep-entry-content,
.tep-home-content,
.tep-entry-content .elementor,
.tep-home-content .elementor,
.tep-entry-content .elementor-element,
.tep-home-content .elementor-element,
.tep-entry-content .elementor-container,
.tep-home-content .elementor-container,
.tep-entry-content .e-con,
.tep-home-content .e-con,
.tep-entry-content .e-con-inner,
.tep-home-content .e-con-inner {
  min-width:0;
  max-width:100%;
}

.tep-entry-content .elementor-section.elementor-section-boxed > .elementor-container,
.tep-home-content .elementor-section.elementor-section-boxed > .elementor-container {
  width:min(calc(100% - 28px),var(--tep-content));
  max-width:var(--tep-content) !important;
}

/* Legacy hard-coded widths should never exceed the viewport. */
.tep-entry-content [style*="width:"],
.tep-home-content [style*="width:"],
.tep-entry-content [width],
.tep-home-content [width] {
  max-width:100% !important;
}

.tep-entry-content table,
.tep-home-content table {
  width:100%;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.tep-entry-content img,
.tep-home-content img {
  max-width:100% !important;
  height:auto !important;
}

.tep-entry-content iframe,
.tep-home-content iframe,
.tep-entry-content video,
.tep-home-content video {
  max-width:100% !important;
}

/* Tablet */
@media (max-width:1024px) {
  :root {
    --tep-radius:19px;
  }

  .tep-container {
    width:min(calc(100% - 24px),var(--tep-content));
  }

  .tep-page-hero {
    width:calc(100% - 20px);
    margin-top:10px;
    padding:17px;
  }

  .tep-card-grid,
  .tep-post-list {
    gap:16px;
  }

  .tep-footer-grid {
    gap:14px;
  }

  .tep-home-content > .elementor > .elementor-element.elementor-section > .elementor-container,
  .tep-entry-content > .elementor > .elementor-element.elementor-section > .elementor-container,
  .tep-home-content > .elementor > .e-con,
  .tep-entry-content > .elementor > .e-con {
    border-radius:18px;
  }
}

/* Mobile */
@media (max-width:767px) {
  body {
    font-size:14px;
    background-attachment:scroll;
  }

  body p,
  body li,
  .tep-entry-content p,
  .tep-entry-content li,
  .tep-home-content p,
  .tep-home-content li,
  .elementor-widget-text-editor,
  .elementor-widget-text-editor p {
    font-size:14px !important;
  }

  h1,
  h1.elementor-heading-title,
  .tep-page-title,
  .tep-entry-content h1 {
    font-size:21px !important;
  }

  h2,
  h2.elementor-heading-title,
  .tep-entry-content h2 {
    font-size:18px !important;
  }

  h3,
  h3.elementor-heading-title,
  .tep-entry-content h3 {
    font-size:16px !important;
  }

  .tep-container {
    width:calc(100% - 18px);
  }

  .tep-topbar-inner {
    min-height:32px;
  }

  .tep-header-main {
    min-height:64px;
  }

  .custom-logo {
    max-width:138px;
    max-height:45px;
  }

  .tep-primary-nav {
    inset-inline:9px;
    border:1px solid var(--tep-border);
    border-radius:18px;
    background:rgba(255,255,255,.84);
    box-shadow:var(--tep-shadow);
    -webkit-backdrop-filter:blur(24px) saturate(150%);
    backdrop-filter:blur(24px) saturate(150%);
  }

  .tep-page-hero {
    width:calc(100% - 12px);
    padding:14px 12px;
    border-radius:16px;
  }

  .tep-content-shell,
  .tep-page-content {
    padding-block:18px 34px;
  }

  .tep-card-body {
    padding:15px;
  }

  .tep-footer-widget {
    padding:15px;
    border-radius:16px;
  }

  .tep-footer-logos {
    width:calc(100% - 12px);
    border-radius:16px;
  }

  .tep-entry-content .elementor-section.elementor-section-boxed > .elementor-container,
  .tep-home-content .elementor-section.elementor-section-boxed > .elementor-container {
    width:calc(100% - 12px);
  }

  /* Forms should become touch-friendly without overflowing. */
  .tep-entry-content input:not([type="checkbox"]):not([type="radio"]),
  .tep-home-content input:not([type="checkbox"]):not([type="radio"]),
  .tep-entry-content select,
  .tep-home-content select,
  .tep-entry-content textarea,
  .tep-home-content textarea {
    font-size:16px !important; /* avoids iOS auto zoom */
  }
}

/* Very small phones */
@media (max-width:420px) {
  .tep-container {
    width:calc(100% - 12px);
  }

  .tep-menu-toggle {
    width:42px;
    height:42px;
  }

  .tep-card,
  .tep-featured-media,
  .tep-footer-widget {
    border-radius:14px;
  }
}

/* Wide desktop / 100% browser zoom */
@media (min-width:1440px) {
  :root {
    --tep-content:1320px;
  }
}

/* Graceful fallback when glass blur is unavailable. */
@supports not ((backdrop-filter:blur(2px)) or (-webkit-backdrop-filter:blur(2px))) {
  .tep-site-header,
  .tep-card,
  .tep-page-hero,
  .tep-footer-widget,
  .tep-footer-logos,
  .tep-menu .sub-menu,
  .tep-primary-nav {
    background-color:rgba(250,252,254,.96);
  }
}

/* Accessibility: keep motion calm. */
@media (prefers-reduced-motion:reduce) {
  .tep-card:hover,
  .tep-entry-content .elementor-button:hover,
  .tep-home-content .elementor-button:hover,
  .tep-button:hover,
  button:hover,
  input[type="submit"]:hover {
    transform:none !important;
  }
}


/* ==========================================================================
   TehranEP Modern Core v1.4.0
   BALANCED TYPE SCALE / NAVY HEADINGS / BLACK BODY / RESPONSIVE GLASS MENU
   ========================================================================== */

:root{
  --tep-font:"Vazirmatn","Segoe UI",Tahoma,Arial,sans-serif;

  --tep-black:#111111;
  --tep-black-soft:#22272d;
  --tep-muted:#606973;
  --tep-navy:#164a73;
  --tep-navy-deep:#103b5e;

  --tep-cyan:#58c8c3;
  --tep-violet:#8b79ee;

  --tep-bg:#f6f9fb;
  --tep-glass:rgba(255,255,255,.63);
  --tep-glass-strong:rgba(255,255,255,.80);
  --tep-line:rgba(17,17,17,.075);
  --tep-line-blue:rgba(22,74,115,.12);

  --tep-shadow:0 18px 46px rgba(28,47,67,.075);
  --tep-shadow-soft:0 9px 26px rgba(28,47,67,.05);

  --tep-radius:20px;
  --tep-radius-sm:13px;
  --tep-content:1280px;

  /*
   * Balanced editorial scale:
   * Body 15.5 -> H3 18.5 -> H2 22 -> H1 27
   * Deliberately restrained for a medical/professional interface.
   */
  --tep-body:15.5px;
  --tep-small:13px;
  --tep-h6:15.5px;
  --tep-h5:16px;
  --tep-h4:17px;
  --tep-h3:18.5px;
  --tep-h2:22px;
  --tep-h1:27px;
}

/* ---------- Foundation ---------- */
html{
  background:var(--tep-bg);
}

body{
  margin:0;
  color:var(--tep-black) !important;
  background:
    radial-gradient(circle at 7% 6%,rgba(139,121,238,.075),transparent 27rem),
    radial-gradient(circle at 93% 12%,rgba(88,200,195,.085),transparent 30rem),
    linear-gradient(180deg,#fafcfd 0%,#f4f8fb 60%,#f8fafc 100%);
  font-family:var(--tep-font) !important;
  font-size:var(--tep-body);
  line-height:1.78;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  overflow-wrap:anywhere;
}

body,
p,li,a,label,
input,textarea,select,button,
blockquote,figcaption,caption,th,td,
.tep-site-header,
.tep-site-footer,
.tep-menu,
.tep-language-switcher,
.wpml-ls,
.elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-text-editor *,
.elementor-button-text,
.elementor-field,
.elementor-field-label,
.elementor-icon-list-text,
.elementskit-navbar-nav a,
.elementskit-menu-container a,
.ekit-wid-con p,
.ekit-wid-con a,
.ekit-wid-con span:not([class*="icon"]){
  font-family:var(--tep-font) !important;
}

/* ---------- Body text: always black ---------- */
body,
body p,
body li,
body label,
body .elementor-widget-text-editor,
body .elementor-widget-text-editor p,
body .elementor-icon-list-text,
body .tep-entry-content,
body .tep-home-content,
body .tep-site-header,
body .tep-site-footer{
  color:var(--tep-black) !important;
}

body p,
body li,
body .elementor-widget-text-editor,
body .elementor-widget-text-editor p{
  font-size:var(--tep-body) !important;
  line-height:1.78 !important;
  font-weight:400 !important;
}

/* ---------- Headings: navy, balanced hierarchy ---------- */
h1,h2,h3,h4,h5,h6,
.tep-page-title,
.tep-card-title,
.tep-footer-title,
.elementor-heading-title{
  color:var(--tep-navy) !important;
  font-family:var(--tep-font) !important;
  letter-spacing:0 !important;
  text-wrap:balance;
  margin-block-start:0;
}

h1,
h1.elementor-heading-title,
.tep-page-title,
.tep-entry-content h1,
.tep-home-content h1{
  font-size:clamp(24px,1.7vw,var(--tep-h1)) !important;
  line-height:1.4 !important;
  font-weight:680 !important;
}

h2,
h2.elementor-heading-title,
.tep-entry-content h2,
.tep-home-content h2{
  font-size:clamp(20px,1.35vw,var(--tep-h2)) !important;
  line-height:1.46 !important;
  font-weight:660 !important;
}

h3,
h3.elementor-heading-title,
.tep-entry-content h3,
.tep-home-content h3{
  font-size:var(--tep-h3) !important;
  line-height:1.52 !important;
  font-weight:640 !important;
}

h4,
h4.elementor-heading-title{
  font-size:var(--tep-h4) !important;
  line-height:1.58 !important;
  font-weight:630 !important;
}

h5,
h5.elementor-heading-title{
  font-size:var(--tep-h5) !important;
  line-height:1.6 !important;
  font-weight:620 !important;
}

h6,
h6.elementor-heading-title{
  font-size:var(--tep-h6) !important;
  line-height:1.62 !important;
  font-weight:620 !important;
}

/* Links remain black unless they are headings/buttons */
body a:not(.elementor-button):not(.tep-button):not(.button):not([class*="btn"]){
  color:var(--tep-black) !important;
  text-decoration-color:rgba(17,17,17,.2);
}

body a:not(.elementor-button):not(.tep-button):not(.button):not([class*="btn"]):hover{
  color:var(--tep-black) !important;
  text-decoration-color:rgba(17,17,17,.5);
}

html[lang^="en"] body{line-height:1.68}
html[lang^="fa"] body,
html[lang^="ckb"] body,
html[lang^="ku"] body{line-height:1.82}

/* ---------- Responsive media ---------- */
img,picture,video,canvas,svg{
  max-width:100%;
  height:auto;
}

iframe,embed,object{
  display:block;
  width:100%;
  max-width:100%;
}

pre,code,table,input,textarea,select,button{
  max-width:100%;
}

pre{overflow:auto}

/* ---------- Soft glass base ---------- */
.tep-page-hero,
.tep-card,
.tep-featured-media,
.tep-error-card,
.tep-footer-widget,
.tep-footer-logos,
.tep-breadcrumbs{
  border:1px solid rgba(255,255,255,.82);
  background:var(--tep-glass);
  box-shadow:var(--tep-shadow-soft);
  -webkit-backdrop-filter:blur(20px) saturate(140%);
  backdrop-filter:blur(20px) saturate(140%);
}

/* ==========================================================================
   GLASS HEADER + MENU
   ========================================================================== */

.tep-site-header{
  position:relative;
  z-index:100;
  background:
    linear-gradient(180deg,rgba(255,255,255,.74),rgba(255,255,255,.58));
  border:0;
  border-bottom:1px solid rgba(255,255,255,.78);
  box-shadow:
    0 10px 30px rgba(28,47,67,.055),
    inset 0 -1px 0 rgba(22,74,115,.035);
  -webkit-backdrop-filter:blur(24px) saturate(150%);
  backdrop-filter:blur(24px) saturate(150%);
}

.tep-topbar{
  background:rgba(255,255,255,.40);
  border-bottom:1px solid rgba(17,17,17,.045);
  color:var(--tep-black) !important;
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}

.tep-topbar *,
.tep-header-main *,
.tep-site-header a,
.tep-language-switcher a,
.tep-language-switcher span,
.wpml-ls a,
.wpml-ls span{
  color:var(--tep-black) !important;
}

/* Keep current menu size exactly in the same visual range */
.tep-menu a,
.tep-primary-nav .page_item > a,
.elementskit-navbar-nav > li > a,
.elementskit-menu-container > ul > li > a{
  color:var(--tep-black) !important;
  font-size:12.8px !important;
  font-weight:530 !important;
  line-height:1.4;
}

/* Desktop glass pill links */
@media (min-width:768px){
  .tep-menu > li > a,
  .tep-primary-nav > .menu > li > a{
    position:relative;
    display:flex;
    align-items:center;
    min-height:38px;
    padding:8px 13px;
    border:1px solid transparent;
    border-radius:12px;
    transition:
      background .18s ease,
      border-color .18s ease,
      box-shadow .18s ease,
      transform .18s ease;
  }

  .tep-menu > li > a::after,
  .tep-primary-nav > .menu > li > a::after{
    content:"";
    position:absolute;
    inset-inline:18%;
    bottom:4px;
    height:2px;
    border-radius:999px;
    background:
      linear-gradient(90deg,rgba(88,200,195,.8),rgba(139,121,238,.8));
    opacity:0;
    transform:scaleX(.45);
    transition:opacity .18s ease,transform .18s ease;
  }

  .tep-menu > li > a:hover,
  .tep-primary-nav > .menu > li > a:hover{
    background:
      linear-gradient(135deg,rgba(255,255,255,.78),rgba(245,251,255,.58));
    border-color:rgba(255,255,255,.92);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.95),
      0 8px 22px rgba(28,47,67,.075);
    transform:translateY(-1px);
  }

  .tep-menu > li > a:hover::after,
  .tep-primary-nav > .menu > li > a:hover::after{
    opacity:1;
    transform:scaleX(1);
  }

  .tep-menu > .current-menu-item > a,
  .tep-menu > .current-menu-ancestor > a,
  .tep-primary-nav > .menu > .current-menu-item > a{
    background:
      linear-gradient(135deg,rgba(255,255,255,.84),rgba(241,249,252,.68));
    border-color:rgba(255,255,255,.98);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,1),
      0 8px 24px rgba(22,74,115,.075);
  }

  .tep-menu > .current-menu-item > a::after,
  .tep-menu > .current-menu-ancestor > a::after,
  .tep-primary-nav > .menu > .current-menu-item > a::after{
    opacity:1;
    transform:scaleX(1);
  }
}

/* Glass dropdown */
.tep-menu .sub-menu{
  padding:8px;
  border:1px solid rgba(255,255,255,.90);
  border-radius:16px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.88),rgba(245,250,253,.72));
  box-shadow:
    0 18px 48px rgba(28,47,67,.12),
    inset 0 1px 0 rgba(255,255,255,.96);
  -webkit-backdrop-filter:blur(26px) saturate(150%);
  backdrop-filter:blur(26px) saturate(150%);
}

.tep-menu .sub-menu a{
  border-radius:10px;
  padding:9px 11px;
  transition:background .16s ease,transform .16s ease;
}

.tep-menu .sub-menu a:hover{
  background:
    linear-gradient(135deg,rgba(88,200,195,.10),rgba(139,121,238,.08));
  transform:translateX(1px);
}

/* Language switcher becomes subtle glass pills */
.tep-language-switcher a,
.tep-language-switcher span,
.wpml-ls a{
  border-radius:10px;
}

.tep-language-switcher a,
.wpml-ls-link{
  padding:5px 8px;
  transition:background .16s ease,box-shadow .16s ease;
}

.tep-language-switcher a:hover,
.wpml-ls-link:hover,
.tep-language-switcher .is-current,
.wpml-ls-current-language > a{
  background:rgba(255,255,255,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95);
}

/* Hamburger glass control */
.tep-menu-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--tep-black) !important;
  background:
    linear-gradient(145deg,rgba(255,255,255,.78),rgba(242,249,252,.58));
  border:1px solid rgba(255,255,255,.90);
  border-radius:13px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    0 8px 22px rgba(28,47,67,.07);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  transition:transform .16s ease,box-shadow .16s ease;
}

.tep-menu-toggle:hover{
  transform:translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 11px 26px rgba(28,47,67,.095);
}

/* ==========================================================================
   CONTENT SURFACES
   ========================================================================== */

.tep-page-hero{
  width:min(calc(100% - 28px),var(--tep-content));
  margin:14px auto 0;
  padding:18px clamp(15px,2vw,26px);
  border-radius:var(--tep-radius);
  background:
    linear-gradient(145deg,rgba(255,255,255,.70),rgba(246,250,252,.50));
}

.tep-content-shell,
.tep-page-content{
  padding-block:24px 48px;
}

.tep-card{
  border-radius:var(--tep-radius);
  background:
    linear-gradient(145deg,rgba(255,255,255,.70),rgba(246,250,252,.48));
  transition:transform .18s ease,box-shadow .18s ease;
}

.tep-card:hover{
  transform:translateY(-1px);
  box-shadow:0 20px 48px rgba(28,47,67,.085);
}

.tep-card-body{padding:17px}

/* Generic Elementor compatibility only; no Medizco visual dependency */
.tep-entry-content .elementor,
.tep-home-content .elementor,
.tep-entry-content .elementor-element,
.tep-home-content .elementor-element,
.tep-entry-content .elementor-container,
.tep-home-content .elementor-container,
.tep-entry-content .e-con,
.tep-home-content .e-con,
.tep-entry-content .e-con-inner,
.tep-home-content .e-con-inner{
  min-width:0;
  max-width:100%;
}

.tep-home-content > .elementor > .elementor-element.elementor-section > .elementor-container,
.tep-entry-content > .elementor > .elementor-element.elementor-section > .elementor-container,
.tep-home-content > .elementor > .e-con,
.tep-entry-content > .elementor > .e-con{
  border:1px solid rgba(255,255,255,.72);
  border-radius:var(--tep-radius);
  background:rgba(255,255,255,.30);
  box-shadow:var(--tep-shadow-soft);
  -webkit-backdrop-filter:blur(16px) saturate(130%);
  backdrop-filter:blur(16px) saturate(130%);
}

.tep-entry-content .elementor-widget-container,
.tep-home-content .elementor-widget-container{
  min-width:0;
}

/* Buttons */
.tep-entry-content .elementor-button,
.tep-home-content .elementor-button,
.tep-button,
button:not(.tep-menu-toggle),
input[type="submit"]{
  border:1px solid rgba(255,255,255,.78) !important;
  border-radius:13px !important;
  background:
    linear-gradient(135deg,rgba(22,74,115,.94),rgba(44,129,151,.88)) !important;
  color:#fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    0 9px 24px rgba(22,74,115,.14) !important;
  transition:transform .16s ease,box-shadow .16s ease !important;
}

.tep-entry-content .elementor-button *,
.tep-home-content .elementor-button *,
.tep-button *,
button:not(.tep-menu-toggle) *{
  color:#fff !important;
}

.tep-entry-content .elementor-button:hover,
.tep-home-content .elementor-button:hover,
.tep-button:hover,
button:not(.tep-menu-toggle):hover,
input[type="submit"]:hover{
  transform:translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    0 12px 28px rgba(22,74,115,.18) !important;
}

/* Forms */
.tep-entry-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.tep-home-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.tep-entry-content textarea,
.tep-home-content textarea,
.tep-entry-content select,
.tep-home-content select,
.elementor-field:not([type="checkbox"]):not([type="radio"]){
  width:100%;
  min-width:0;
  color:var(--tep-black) !important;
  border:1px solid rgba(17,17,17,.08) !important;
  border-radius:12px !important;
  background:rgba(255,255,255,.60) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.88),
    0 5px 18px rgba(28,47,67,.03);
  -webkit-backdrop-filter:blur(13px);
  backdrop-filter:blur(13px);
}

/* Footer */
.tep-site-footer{
  margin-top:42px;
  color:var(--tep-black) !important;
  border-top:1px solid rgba(17,17,17,.06);
  background:
    linear-gradient(180deg,rgba(247,250,252,.54),rgba(239,245,249,.74));
}

.tep-site-footer *,
.tep-footer-widget *,
.tep-footer-logos *{
  color:var(--tep-black) !important;
}

.tep-footer-title{
  color:var(--tep-navy) !important;
}

.tep-footer-widget{
  height:100%;
  padding:17px;
  border-radius:17px;
}

.tep-footer-logos{
  width:min(calc(100% - 28px),var(--tep-content));
  margin-inline:auto;
  padding:14px;
  border-radius:17px;
}

.tep-footer-bottom{
  margin-top:16px;
  color:#fff !important;
  background:rgba(17,17,17,.92);
}

.tep-footer-bottom *{color:#fff !important}

/* ==========================================================================
   RESPONSIVE HARDENING
   ========================================================================== */

.tep-container{
  width:min(calc(100% - 32px),var(--tep-content));
}

.tep-entry-content [style*="width:"],
.tep-home-content [style*="width:"],
.tep-entry-content [width],
.tep-home-content [width]{
  max-width:100% !important;
}

.tep-entry-content img,
.tep-home-content img{
  max-width:100% !important;
  height:auto !important;
}

.tep-entry-content iframe,
.tep-home-content iframe,
.tep-entry-content video,
.tep-home-content video{
  width:100% !important;
  max-width:100% !important;
}

.tep-entry-content table,
.tep-home-content table{
  width:100%;
  max-width:100%;
}

@media (max-width:1024px){
  :root{
    --tep-radius:18px;
    --tep-body:15px;
    --tep-h1:25px;
    --tep-h2:21px;
    --tep-h3:18px;
  }

  .tep-container{
    width:min(calc(100% - 22px),var(--tep-content));
  }

  .tep-page-hero{
    width:calc(100% - 18px);
    margin-top:9px;
    padding:16px;
  }
}

/* Mobile glass navigation */
@media (max-width:767px){
  :root{
    --tep-body:14.5px;
    --tep-h1:23px;
    --tep-h2:19.5px;
    --tep-h3:17px;
  }

  body{
    font-size:var(--tep-body);
    background-attachment:scroll;
  }

  body p,
  body li,
  body .elementor-widget-text-editor,
  body .elementor-widget-text-editor p{
    font-size:var(--tep-body) !important;
  }

  h1,
  h1.elementor-heading-title,
  .tep-page-title,
  .tep-entry-content h1,
  .tep-home-content h1{
    font-size:var(--tep-h1) !important;
  }

  h2,
  h2.elementor-heading-title,
  .tep-entry-content h2,
  .tep-home-content h2{
    font-size:var(--tep-h2) !important;
  }

  h3,
  h3.elementor-heading-title,
  .tep-entry-content h3,
  .tep-home-content h3{
    font-size:var(--tep-h3) !important;
  }

  .tep-container{
    width:calc(100% - 14px);
  }

  .tep-header-main{
    min-height:62px;
  }

  .custom-logo{
    max-width:132px;
    max-height:43px;
  }

  .tep-primary-nav{
    inset-inline:7px;
    padding:8px;
    border:1px solid rgba(255,255,255,.92);
    border-radius:18px;
    background:
      linear-gradient(145deg,rgba(255,255,255,.91),rgba(245,250,253,.78));
    box-shadow:
      0 20px 54px rgba(28,47,67,.14),
      inset 0 1px 0 rgba(255,255,255,.98);
    -webkit-backdrop-filter:blur(28px) saturate(150%);
    backdrop-filter:blur(28px) saturate(150%);
  }

  .tep-primary-nav .tep-menu > li > a,
  .tep-primary-nav .page_item > a{
    min-height:42px;
    padding:9px 11px;
    border:1px solid transparent;
    border-radius:11px;
    background:transparent;
    color:var(--tep-black) !important;
    transition:background .16s ease,border-color .16s ease,transform .16s ease;
  }

  .tep-primary-nav .tep-menu > li > a:hover,
  .tep-primary-nav .page_item > a:hover,
  .tep-primary-nav .current-menu-item > a,
  .tep-primary-nav .current-menu-ancestor > a{
    background:
      linear-gradient(135deg,rgba(88,200,195,.10),rgba(139,121,238,.075));
    border-color:rgba(255,255,255,.90);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.96);
    transform:translateX(-1px);
  }

  .tep-primary-nav .sub-menu{
    margin:4px 4px 6px;
    padding:6px;
    border-radius:12px;
    background:rgba(255,255,255,.52);
    box-shadow:none;
  }

  .tep-primary-nav .sub-menu a{
    min-height:38px;
    padding:8px 10px;
    border-radius:9px;
  }

  .tep-page-hero{
    width:calc(100% - 10px);
    padding:13px 11px;
    border-radius:15px;
  }

  .tep-content-shell,
  .tep-page-content{
    padding-block:16px 32px;
  }

  .tep-card-body{
    padding:14px;
  }

  /* Prevent iOS form zoom */
  .tep-entry-content input:not([type="checkbox"]):not([type="radio"]),
  .tep-home-content input:not([type="checkbox"]):not([type="radio"]),
  .tep-entry-content select,
  .tep-home-content select,
  .tep-entry-content textarea,
  .tep-home-content textarea{
    font-size:16px !important;
  }
}

@media (max-width:420px){
  :root{
    --tep-body:14px;
    --tep-h1:22px;
    --tep-h2:19px;
  }

  .tep-container{
    width:calc(100% - 10px);
  }

  .tep-menu-toggle{
    width:41px;
    height:41px;
  }

  .tep-card,
  .tep-featured-media,
  .tep-footer-widget{
    border-radius:13px;
  }
}

@media (min-width:1440px){
  :root{--tep-content:1320px}
}

@supports not ((backdrop-filter:blur(2px)) or (-webkit-backdrop-filter:blur(2px))){
  .tep-site-header,
  .tep-card,
  .tep-page-hero,
  .tep-footer-widget,
  .tep-footer-logos,
  .tep-menu .sub-menu,
  .tep-primary-nav{
    background-color:rgba(250,252,254,.97);
  }
}

@media (prefers-reduced-motion:reduce){
  *{
    scroll-behavior:auto !important;
  }

  .tep-card:hover,
  .tep-menu a:hover,
  .tep-menu-toggle:hover,
  .tep-entry-content .elementor-button:hover,
  .tep-home-content .elementor-button:hover,
  .tep-button:hover,
  button:hover,
  input[type="submit"]:hover{
    transform:none !important;
  }
}

