@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('../fonts/IRANSansXFaNum-light.woff') format('woff');
    font-weight: 300;
}
@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('../fonts/IRANSansXFaNum-regular.woff') format('woff');
    font-weight: 400;
}
@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('../fonts/IRANSansXFaNum-medium.woff') format('woff');
    font-weight: 500;
}
@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('../fonts/IRANSansXFaNum-demibold.woff') format('woff');
    font-weight: 600;
}
@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('../fonts/IRANSansXFaNum-bold.woff') format('woff');
    font-weight: 700;
}
@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('../fonts/IRANSansXFaNum-extrabold.woff') format('woff');
    font-weight: 800;
}
@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('../fonts/IRANSansXFaNum-black.woff') format('woff');
    font-weight: 900;
}

body {
  font-family: 'IRANSansXFaNum', sans-serif;
  background-color: #f4f9f7;
  overflow-x: hidden;
  margin: 0;
  line-height: inherit;
}


body:not(.ergoiran-elementor-page):not(.home) h1 {
  line-height: 1.5;
}


:where(
  body:not(.ergoiran-elementor-page) *,
  body:not(.ergoiran-elementor-page) *::before,
  body:not(.ergoiran-elementor-page) *::after,
  #navbar-wrapper,
  #navbar-wrapper *,
  #navbar-wrapper *::before,
  #navbar-wrapper *::after,
  #footer *,
  #footer *::before,
  #footer *::after
) {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

:where(
  body:not(.ergoiran-elementor-page) h1,
  body:not(.ergoiran-elementor-page) h2,
  body:not(.ergoiran-elementor-page) h3,
  body:not(.ergoiran-elementor-page) h4,
  body:not(.ergoiran-elementor-page) h5,
  body:not(.ergoiran-elementor-page) h6,
  body:not(.ergoiran-elementor-page) p,
  body:not(.ergoiran-elementor-page) figure,
  #navbar-wrapper p,
  #footer p
) {
  margin: 0;
}

:where(
  body:not(.ergoiran-elementor-page) ul,
  body:not(.ergoiran-elementor-page) ol,
  #navbar-wrapper ul,
  #navbar-wrapper ol,
  #footer ul,
  #footer ol
) {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(
  body:not(.ergoiran-elementor-page) a,
  #navbar-wrapper a,
  #footer a
) {
  color: inherit;
  text-decoration: none;
}

:where(
  body:not(.ergoiran-elementor-page) button,
  body:not(.ergoiran-elementor-page) input,
  body:not(.ergoiran-elementor-page) textarea,
  body:not(.ergoiran-elementor-page) select,
  #navbar-wrapper button
) {
  font: inherit;
}

:where(
  body:not(.ergoiran-elementor-page) button,
  #navbar-wrapper button
) {
  color: inherit;
  background-color: transparent;
  background-image: none;
  cursor: pointer;
}

:where(
  body:not(.ergoiran-elementor-page) img,
  body:not(.ergoiran-elementor-page) svg,
  #navbar-wrapper img,
  #navbar-wrapper svg,
  #footer img,
  #footer svg
) {
  display: block;
  max-width: 100%;
  height: auto;
}

:where(
  body:not(.ergoiran-elementor-page) [hidden],
  #navbar-wrapper [hidden],
  #footer [hidden]
) {
  display: none;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px 0 rgba(60, 125, 150, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px 0 rgba(60, 125, 150, 0.15);
  border-color: rgba(255, 255, 255, 1);
}

.glass-panel-dark {
  background: rgba(60, 125, 150, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.15);
}

.glass-header {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/*
 * Keep the fixed navigation inside the viewport after JavaScript adds
 * horizontal padding in its compact state. Elementor pages do not receive the
 * theme-wide box-sizing reset, so the wrapper needs this explicit safeguard.
 */
#navbar-wrapper {
  right: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: padding 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

#navbar {
  width: 100%;
  min-width: 0;
  margin-inline: auto;
  box-sizing: border-box;
  column-gap: clamp(0.65rem, 1.5vw, 1.5rem);
  transition:
    padding 360ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 280ms ease,
    border-color 280ms ease,
    border-radius 360ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms ease,
    backdrop-filter 280ms ease;
}

.ergoiran-brand,
.ergoiran-brand a {
  min-width: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

.ergoiran-desktop-nav,
.ergoiran-desktop-cta,
.ergoiran-tablet-actions {
  display: none;
}

.ergoiran-mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ergoiran-event-link,
.ergoiran-tablet-event {
  min-width: 0;
}

.ergoiran-event-label,
.ergoiran-cta-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ergoiran-desktop-cta {
  flex: 0 0 auto;
  max-width: 13rem;
}

.ergoiran-desktop-cta > a {
  display: flex;
  max-width: 100%;
}

.ergoiran-tablet-actions {
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.45rem, 1vw, 0.75rem);
}

.ergoiran-tablet-event {
  display: flex;
  width: auto;
  min-width: 0;
  max-width: min(24rem, 38vw);
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0.4rem 0;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.45;
  transition: opacity 180ms ease;
}

.ergoiran-tablet-event:hover,
.ergoiran-tablet-event:focus-visible {
  color: #3c7d96;
  opacity: 0.78;
  outline: none;
}

.ergoiran-tablet-event .ergoiran-event-label {
  color: inherit;
  background: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  text-align: right;
}

.ergoiran-event-dot {
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  background: #ef4444;
  border-radius: 999px;
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.12);
}

.ergoiran-tablet-cta {
  display: flex;
  min-width: 0;
  max-width: 11rem;
  flex: 0 1 auto;
  justify-content: center;
  padding: 0.62rem clamp(0.85rem, 1.6vw, 1.25rem);
  font-size: 0.78rem;
  line-height: 1.45;
}

#mobile-menu {
  width: calc(100% - 2rem);
  max-height: calc(100svh - 7rem);
  margin: 0.55rem 1rem 0;
  overflow-x: hidden;
  overflow-y: auto;
  gap: 0.25rem;
  box-sizing: border-box;
}

#mobile-menu-list {
  gap: 0 !important;
}

#mobile-menu-list > .menu-item > a {
  display: block;
  padding: 0.82rem 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  line-height: 1.7;
}

.ergoiran-mobile-extras {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.ergoiran-mobile-event {
  padding: 0.78rem 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.glass-btn {
  background: linear-gradient(135deg, rgba(93, 185, 143, 0.9), rgba(60, 125, 150, 0.9));
  box-shadow: 0 4px 15px rgba(60, 125, 150, 0.3);
  transition: all 0.3s ease;
}
.glass-btn:hover {
  box-shadow: 0 6px 20px rgba(60, 125, 150, 0.5);
  transform: translateY(-2px) scale(1.02);
}

.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

.nav-link {
  position: relative;
  color: #1e293b;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  right: 0;
  background-color: #3c7d96;
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: #3c7d96;
}
.nav-link:hover::after {
  width: 100%;
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #64748b;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.submenu-toggle .material-symbols-outlined {
  font-size: 1.2rem;
  transition: transform 220ms ease;
}

.menu-item-has-children.is-submenu-open > .submenu-toggle .material-symbols-outlined {
  transform: rotate(180deg);
}

@media (min-width: 1200px) {
  #primary-menu > .menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }

  #primary-menu .submenu-toggle {
    width: 1.45rem;
    height: 1.45rem;
    margin-inline-start: -0.1rem;
  }

  #primary-menu .submenu-toggle:hover,
  #primary-menu .submenu-toggle:focus-visible {
    color: #3c7d96;
    background: rgba(60, 125, 150, 0.1);
    outline: 2px solid rgba(60, 125, 150, 0.22);
    outline-offset: 1px;
  }

  #primary-menu .sub-menu {
    position: absolute;
    top: calc(100% + 0.9rem);
    inset-inline-start: -1rem;
    z-index: 60;
    width: max-content;
    min-width: 14rem;
    max-width: min(20rem, calc(100vw - 2rem));
    padding: 0.65rem;
    visibility: hidden;
    opacity: 0;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 1.15rem;
    box-shadow: 0 20px 50px rgba(24, 56, 69, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-0.45rem);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  #primary-menu .sub-menu::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 0.95rem;
    content: "";
  }

  #primary-menu .menu-item-has-children:hover > .sub-menu,
  #primary-menu:not(.is-submenu-enhanced) .menu-item-has-children:focus-within > .sub-menu,
  #primary-menu .menu-item-has-children.is-submenu-open > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  #primary-menu .menu-item-has-children:hover > .submenu-toggle .material-symbols-outlined,
  #primary-menu:not(.is-submenu-enhanced) .menu-item-has-children:focus-within > .submenu-toggle .material-symbols-outlined {
    transform: rotate(180deg);
  }

  #primary-menu .sub-menu li + li {
    margin-top: 0.2rem;
  }

  #primary-menu .sub-menu a {
    display: block;
    padding: 0.72rem 0.85rem;
    color: #334155;
    border-radius: 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.65;
    white-space: normal;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
  }

  #primary-menu .sub-menu a::after {
    content: none;
  }

  #primary-menu .sub-menu a:hover,
  #primary-menu .sub-menu a:focus-visible,
  #primary-menu .sub-menu .current-menu-item > a {
    color: #2f728a;
    background: rgba(93, 185, 143, 0.13);
    outline: none;
    transform: translateX(-0.2rem);
  }

  #primary-menu .current-menu-ancestor > a {
    color: #3c7d96;
    font-weight: 800;
  }
}

@media (max-width: 1199px) {
  #mobile-menu-list > .menu-item {
    position: relative;
  }

  #mobile-menu-list .menu-item-has-children > a {
    padding-inline-end: 2.75rem;
  }

  #mobile-menu-list .submenu-toggle {
    position: absolute;
    top: 0;
    inset-inline-end: 0.15rem;
    width: 2.2rem;
    height: 2.2rem;
    color: #3c7d96;
    background: rgba(60, 125, 150, 0.08);
  }

  #mobile-menu-list .submenu-toggle:focus-visible {
    outline: 2px solid rgba(60, 125, 150, 0.32);
    outline-offset: 2px;
  }

  #mobile-menu-list .sub-menu {
    display: grid;
    gap: 0.25rem;
    margin: 0.4rem 0 0.15rem;
    padding-inline-start: 0.75rem;
  }

  #mobile-menu-list.is-submenu-enhanced .sub-menu {
    max-height: 0;
    margin-block: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height 260ms ease, margin 260ms ease, opacity 180ms ease, visibility 180ms ease;
  }

  #mobile-menu-list.is-submenu-enhanced .is-submenu-open > .sub-menu {
    max-height: 24rem;
    margin: 0.4rem 0 0.15rem;
    visibility: visible;
    opacity: 1;
  }

  #mobile-menu-list .sub-menu a {
    padding: 0.62rem 0.8rem;
    color: #475569;
    background: rgba(60, 125, 150, 0.055);
    border: 0;
    border-radius: 0.7rem;
    font-size: 0.82rem;
    line-height: 1.6;
  }

  #mobile-menu-list .sub-menu a:hover,
  #mobile-menu-list .sub-menu a:focus-visible,
  #mobile-menu-list .sub-menu .current-menu-item > a {
    color: #2f728a;
    background: rgba(93, 185, 143, 0.14);
    outline: none;
  }
}

/*
 * Navigation is deliberately split into three stable states. Keeping all
 * visibility decisions here prevents the resize glitch caused by overlapping
 * Tailwind and custom breakpoints.
 */
@media (max-width: 767px) {
  .ergoiran-desktop-nav,
  .ergoiran-desktop-cta,
  .ergoiran-tablet-actions {
    display: none !important;
  }

  .ergoiran-mobile-nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  #mobile-menu.hidden {
    display: none !important;
  }

  #mobile-menu:not(.hidden) {
    display: flex !important;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .ergoiran-desktop-nav,
  .ergoiran-desktop-cta {
    display: none !important;
  }

  .ergoiran-tablet-actions {
    display: flex !important;
  }

  .ergoiran-mobile-nav-toggle {
    display: inline-flex !important;
  }

  #mobile-menu {
    position: absolute;
    top: 100%;
    right: auto;
    left: max(1rem, calc(50% - 24rem));
    width: min(27rem, calc(100vw - 3rem));
    margin-top: 0.6rem;
    margin-right: 0;
    margin-left: 0;
  }

  #mobile-menu.hidden {
    display: none !important;
  }

  #mobile-menu:not(.hidden) {
    display: flex !important;
  }

  .ergoiran-mobile-extras {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  #navbar {
    padding-inline: 1rem;
  }

  .ergoiran-brand a {
    font-size: 1.65rem;
  }

  .ergoiran-brand img {
    width: 1.75rem;
    height: 1.75rem;
    margin-inline-end: 0.45rem;
  }

  .ergoiran-tablet-cta {
    max-width: 9rem;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  #mobile-menu {
    left: max(1rem, calc(50% - 32rem));
  }
}

@media (min-width: 1200px) {
  #navbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    direction: ltr;
  }

  .ergoiran-brand {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    direction: rtl;
  }

  .ergoiran-desktop-nav {
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    justify-self: center;
    min-width: 0;
    justify-content: center;
    gap: clamp(1rem, 1.45vw, 1.65rem);
    direction: rtl;
    white-space: nowrap;
  }

  .ergoiran-desktop-cta {
    display: block !important;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    direction: rtl;
  }

  .ergoiran-event-link {
    min-width: 8rem;
    max-width: clamp(12rem, 18vw, 22rem);
    flex: 0 1 auto;
    overflow: hidden;
    color: #0f172a;
    background: none;
    background-image: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
  }

  .ergoiran-event-link .ergoiran-event-label {
    color: inherit;
    background: none;
    background-image: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
  }

  #primary-menu {
    min-width: max-content;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: clamp(1.1rem, 1.45vw, 1.75rem);
    white-space: nowrap;
  }

  #primary-menu > .menu-item,
  #primary-menu > .menu-item > a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .ergoiran-tablet-actions,
  .ergoiran-mobile-nav-toggle,
  #mobile-menu {
    display: none !important;
  }
}


.hide-scrollbar {
  -ms-overflow-style: none;  
  scrollbar-width: none;  
}

.homepage-services-projects-order {
  display: flex;
  flex-direction: column;
}

.homepage-services-order-block {
  order: 1;
}

.homepage-projects-order-block {
  order: 2;
  display: flex;
  flex-direction: column;
}

.homepage-importance-order-block {
  order: 1;
}

.homepage-projects-slider-order-block {
  order: 2;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none; 
}


.clip-rounded-fix {
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}


#project-slider {
  cursor: grab;
  user-select: none;
}

#project-slider:active {
  cursor: grabbing;
}

[data-project-gallery-rail] {
  cursor: grab;
  user-select: none;
}

[data-project-gallery-rail]:active,
[data-project-gallery-rail].is-dragging {
  cursor: grabbing;
}

.project-story__copy strong {
  color: #2a5b6f;
  font-weight: 900;
}


.fade-edges-mask {
  -webkit-mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, transparent, black 32px, black calc(100% - 32px), transparent);
}

.tab-btn {
  width: 12px;
  height: 12px;
  padding: 0;
  margin: 0 6px;
  border-radius: 9999px;
  background-color: #cbd5e1; 
  color: transparent;
  font-size: 0;
  white-space: nowrap;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              background-color 0.3s ease, 
              color 0.3s ease;
}

.tab-btn .tab-text {
  display: none;
}


.tab-btn.active-tab {
  width: auto;
  height: auto;
  padding: 8px 16px;
  background-color: #3c7d96; 
  color: #ffffff;
  font-size: 0.75rem; 
  font-weight: 700;
}

.tab-btn.active-tab .tab-text {
  display: inline;
}


@media (max-width: 767px) {
  #tab-content-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  #tab-content-stage .tab-content {
    display: block;
    grid-area: 1 / 1;
    min-width: 0;
    visibility: visible;
  }

  #tab-content-stage .tab-content.hidden {
    display: block;
    visibility: hidden;
    pointer-events: none;
  }
}


@media (min-width: 768px) {
  .tab-btn {
    width: auto;
    height: auto;
    padding: 12px 24px;
    margin: 0;
    background-color: transparent;
    color: #475569; 
    font-size: 0.875rem; 
    border-radius: 9999px;
  }
  .tab-btn .tab-text {
    display: inline;
  }
  .tab-btn:hover {
    color: #3c7d96;
    background-color: transparent;
  }
  .tab-btn.active-tab {
    background-color: #3c7d96;
    color: #ffffff;
    font-size: 1rem; 
    padding: 12px 32px;
    box-shadow: 0 4px 12px rgba(60, 125, 150, 0.15);
  }
}

.services-grid {
  transition: all 0.5s ease;
}


.services-grid.grid-active-mode .service-card:not(.active-card) {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  position: absolute;
  pointer-events: none;
  height: 0;
  padding: 0;
  margin: 0;
  border: none;
  overflow: hidden;
}


.services-grid.grid-active-mode {
  display: block;
}

.service-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.active-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-color: #3c7d96 !important; 
  box-shadow: 0 20px 50px rgba(60, 125, 150, 0.15);
}


.service-card .expandable-list {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.service-card.active-card .expandable-list {
  max-height: 1200px; 
  opacity: 1;
}


.service-card.active-card .highlights-list {
  display: none;
}


.service-card.active-card .toggle-list-btn .rounded-chevron {
  transform: rotate(180deg);
}

#services-drawer-card {
  border: 2px solid rgba(93, 185, 143, 0.2);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  box-shadow: 0 20px 45px 0 rgba(60, 125, 150, 0.08);
  
  transition: border-color 0.3s ease, 
              background-color 0.3s ease, 
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.4s ease;
}

#services-drawer-card:hover {
  
  transform: none !important;
  border-color: rgba(93, 185, 143, 0.45);
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

html {
  scroll-behavior: smooth;
}

.homepage-section-anchor {
  height: 0;
  scroll-margin-top: 7rem;
}

.entry-content h2,
.entry-content h3 {
  scroll-margin-top: 130px; 
  transition: all 0.3s ease;
}

.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;
}

.screen-reader-text:focus {
  position: fixed !important;
  top: 8px;
  right: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  color: #2a5b6f;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(60, 125, 150, 0.2);
}

.custom-logo {
  object-fit: contain;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(93, 185, 143, 0.55);
  outline-offset: 3px;
}

.blog-page-content {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 220ms ease;
  will-change: opacity, transform, filter;
}

.blog-page-content.is-leaving {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  filter: blur(2px);
  pointer-events: none;
}

.blog-page-content.is-entering {
  animation: ergoiran-blog-enter 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ergoiran-blog-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.ergoiran-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  color: #475569;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 6px 18px rgba(60, 125, 150, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
  transition: 0.25s ease;
}

.ergoiran-pagination a.page-numbers:hover,
.ergoiran-pagination .page-numbers.current {
  color: #fff;
  background: #3c7d96;
  border-color: #3c7d96;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(60, 125, 150, 0.22);
}

.ergoiran-pagination .page-numbers.dots {
  min-width: 24px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.ergoiran-breadcrumbs a {
  color: #3c7d96;
  transition: color 0.2s ease;
}

.ergoiran-breadcrumbs a:hover {
  color: #5db98f;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #3c7d96;
  font-weight: 900;
  line-height: 1.7;
}

.entry-content h2 {
  margin-top: 1.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.entry-content h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 1.4em;
  margin-left: 0.65rem;
  border-radius: 9999px;
  vertical-align: -0.32em;
  background: linear-gradient(to bottom, #5db98f, #3c7d96);
}

.entry-content h3 {
  margin-top: 1.35rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.entry-content p,
.entry-content li {
  line-height: 2.15;
}

.entry-content a:not(.wp-element-button) {
  color: #3c7d96;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(93, 185, 143, 0.5);
  text-underline-offset: 4px;
}

.entry-content a.ergoiran-share-button,
.entry-content a.ergoiran-tag-link {
  text-decoration: none;
}

.entry-content a.ergoiran-share-button {
  color: #64748b;
}

.entry-content a.ergoiran-share-button:hover {
  color: #5db98f;
}

.entry-content a.ergoiran-tag-link {
  color: #475569;
}

.entry-content a.ergoiran-tag-link:hover {
  color: #fff;
}

.entry-content ul,
.entry-content ol {
  padding-right: 1.5rem;
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content :where(.is-style-ergoiran-ltr, .ltr-list),
.entry-content :where(.is-style-ergoiran-ltr, .ltr-list) :where(p, h1, h2, h3, h4, h5, h6, ul, ol, li, blockquote) {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate;
}

.entry-content :where(ul, ol).is-style-ergoiran-ltr,
.entry-content :where(ul, ol).ltr-list,
.entry-content .ltr-list :where(ul, ol) {
  padding-inline-start: 1.5rem !important;
  padding-inline-end: 0 !important;
}

.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-right: 4px solid #5db98f;
  border-radius: 1.25rem 0 0 1.25rem;
  color: #334155;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px rgba(60, 125, 150, 0.07);
}

.entry-content img,
.entry-content figure {
  height: auto;
  border-radius: 1.5rem;
}


.single-post .entry-content :where(.wp-block-image, figure.aligncenter) {
  margin-inline: auto;
  text-align: center;
}

.single-post .entry-content :where(
  .wp-block-image > img,
  .wp-block-image > a > img,
  img.aligncenter,
  img.alignnone,
  p > img:not(.alignleft):not(.alignright),
  p > a > img:not(.alignleft):not(.alignright)
) {
  display: block;
  margin-inline: auto;
}

.single-post .entry-content > img {
  display: block;
  margin-inline: auto;
}

.single-post .entry-content .wp-block-image > a {
  display: block;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.65);
}

.entry-content th,
.entry-content td {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  text-align: right;
}

.entry-content th {
  color: #fff;
  background: #3c7d96;
}

.js-toc-nav a[aria-current="location"] {
  color: #5db98f;
  font-weight: 900;
}

.js-copy-link.is-copied {
  color: #fff;
  background: #5db98f;
  border-color: #5db98f;
}

#single-share-rail {
  will-change: opacity, transform;
}

.comment-list .children {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0;
  margin-right: 1.5rem;
  padding-top: 1.5rem;
  width: calc(100% - 1.5rem);
}

.comment-item {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.comment-item > .comment-item {
  width: calc(100% - 1.5rem);
  margin-right: 1.5rem;
  padding-top: 1.5rem;
}

.comment-card-surface {
  width: auto;
  max-width: 100%;
}

@media (min-width: 768px) {
  .comment-list .children,
  .comment-item > .comment-item {
    width: calc(100% - 3rem);
    margin-right: 3rem;
  }
}

.comment-card-surface.glass-panel:hover,
#respond.glass-panel:hover {
  transform: none;
}

.comment-content p + p {
  margin-top: 0.75rem;
}

.service-drawer-content {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.9;
}

.service-drawer-content > * + * {
  margin-top: 1rem;
}

.service-drawer-content ul,
.service-drawer-content ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-drawer-content li {
  position: relative;
  padding-right: 1rem;
}

.service-drawer-content li::before {
  content: "";
  position: absolute;
  top: 0.85em;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #5db98f;
}

.ergoiran-faq-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.ergoiran-faq-item {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 24px rgba(60, 125, 150, 0.07);
}

.ergoiran-faq-item summary {
  position: relative;
  padding: 1rem 3rem 1rem 1.25rem;
  color: #3c7d96;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.ergoiran-faq-item summary::-webkit-details-marker {
  display: none;
}

.ergoiran-faq-item summary::before {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.15rem;
  color: #5db98f;
  font-size: 1.4rem;
  transform: translateY(-50%);
}

.ergoiran-faq-item[open] summary::before {
  content: "−";
}

.ergoiran-faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 2;
}

.comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

#respond {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.comment-reply-title {
  margin: 0;
}

.comment-form > * {
  grid-column: 1 / -1;
}

.comment-form .comment-form-author,
.comment-form .comment-form-email {
  grid-column: span 1;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.ergoiran-search-form input[type="search"] {
  width: 100%;
  font-family: inherit;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
}

.comment-form-cookies-consent input {
  margin-top: 0.25rem;
}

.comment-reply-title small {
  margin-right: 0.75rem;
  font-size: 0.7rem;
  color: #ef4444;
}

.alignwide {
  width: min(1200px, calc(100vw - 3rem));
  max-width: none;
  margin-right: 50%;
  transform: translateX(50%);
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-right: 50%;
  transform: translateX(50%);
}

.wp-caption,
.wp-caption-text,
.gallery-caption {
  max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
  margin-top: 0.5rem;
  color: #64748b;
  font-size: 0.75rem;
  text-align: center;
}

.homepage-hero-description {
  line-height: 1.75;
}

.ergoiran-customizer-text strong {
  color: inherit;
  font-weight: 800;
}

#footer .ergoiran-footer-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
}

#footer .ergoiran-footer-contact-card__icon {
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

#footer .ergoiran-footer-contact-card__items {
  display: grid;
  flex: 1 1 auto;
  gap: 0.7rem;
  min-width: 0;
}

#footer .ergoiran-footer-contact-card__item {
  display: block;
  overflow-wrap: anywhere;
}

#footer .ergoiran-footer-contact-card__item + .ergoiran-footer-contact-card__item {
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#footer .ergoiran-footer-contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem;
  transition: color 180ms ease, transform 180ms ease;
}

#footer .ergoiran-footer-contact-link:hover,
#footer .ergoiran-footer-contact-link:focus-visible {
  color: #fff;
  transform: translateX(-0.15rem);
}

#footer .ergoiran-footer-phone {
  width: fit-content;
  max-width: 100%;
  transition: opacity 180ms ease, transform 180ms ease;
}

#footer .ergoiran-footer-phone:hover,
#footer .ergoiran-footer-phone:focus-visible {
  opacity: 0.82;
  transform: translateX(-0.15rem);
}

.ergoiran-elementor-content {
  width: 100%;
  max-width: none;
  padding: clamp(7.5rem, 8vw, 9rem) clamp(1rem, 3vw, 1.5rem) 6rem;
  box-sizing: border-box;
}

.ergoiran-elementor-shell {
  width: 100%;
  min-width: 0;
  margin-inline: auto;
  box-sizing: border-box;
}

body.ergoiran-elementor-page .ergoiran-elementor-shell {
  width: 100% !important;
  max-width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.ergoiran-elementor-page .ergoiran-elementor-surface {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: 0;
  padding: clamp(0.75rem, 1.7vw, 1.75rem);
  border-radius: clamp(1.75rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 30px rgba(60, 125, 150, 0.08);
  isolation: isolate;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  body.ergoiran-elementor-page .ergoiran-elementor-shell {
    max-width: 640px !important;
  }
}

@media (min-width: 768px) {
  body.ergoiran-elementor-page .ergoiran-elementor-shell {
    max-width: 768px !important;
  }
}

@media (min-width: 1024px) {
  body.ergoiran-elementor-page .ergoiran-elementor-shell {
    max-width: 1024px !important;
  }
}

@media (min-width: 1280px) {
  body.ergoiran-elementor-page .ergoiran-elementor-shell {
    max-width: 1280px !important;
  }
}

@media (min-width: 1536px) {
  body.ergoiran-elementor-page .ergoiran-elementor-shell {
    max-width: 1536px !important;
  }
}

.ergoiran-elementor-surface.glass-panel:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(60, 125, 150, 0.08);
}

.ergoiran-elementor-surface > .elementor,
.ergoiran-elementor-surface > .elementor > .elementor-element,
.ergoiran-elementor-surface .elementor-section-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ergoiran-elementor-surface .elementor-section.elementor-section-stretched {
  right: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 767px) {
  .ergoiran-elementor-content {
    padding-top: 7rem;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    padding-bottom: 4rem;
  }

  .ergoiran-elementor-surface {
    padding: 0.5rem;
    border-radius: 1.75rem;
  }
}

body.admin-bar #navbar-wrapper {
  top: 32px;
}

@media (max-width: 782px) {
  html {
    margin-top: 0 !important;
  }

  #wpadminbar {
    display: none !important;
  }

  body.admin-bar #navbar-wrapper {
    top: 0;
  }
}

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

  .blog-page-content,
  .blog-page-content.is-entering {
    animation: none;
    transition-duration: 0.01ms;
  }
}

@media (max-width: 640px) {
  .comment-form {
    grid-template-columns: 1fr;
  }

  .comment-form .comment-form-author,
  .comment-form .comment-form-email {
    grid-column: 1 / -1;
  }

  .entry-content table {
    display: block;
    overflow-x: auto;
  }

  .service-drawer-content ul,
  .service-drawer-content ol {
    grid-template-columns: 1fr;
  }
}
