/*
Theme Name: Madena Elementor
Theme URI: https://madina.local
Author: Abdelghany
Description: Elementor Pro compatible version of the Madena theme. Header, footer, single and archive layouts can be overridden in Elementor Theme Builder; built-in fallbacks keep the original design. Arabic RTL first, Cairo font.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: madena
*/

section,
.wp-block-group.is-section {
  padding-block: 70px;
}
.is-style-card {
  background: #fff;
  border: 1px solid #e3ebe8;
  border-radius: 14px;
  padding: 1.25rem;
}
.is-style-card:hover {
  background: #e8f5f1;
}
.wp-block-button .wp-block-button__link {
  border-radius: 10px;
}
.is-style-outline .wp-block-button__link {
  background: transparent;
  color: #0f6b5c;
  border: 2px solid #0f6b5c;
}
@media (max-width: 600px) {
  section,
  .wp-block-group.is-section {
    padding-block: 50px;
  }
  h1 {
    font-size: 1.8rem !important;
  }
  h2 {
    font-size: 1.5rem !important;
  }
}

/* ---------- Hero ---------- */
.madena-hero {
  position: relative;
  padding: 130px 20px 0 !important;
  text-align: center;
  background: linear-gradient(180deg, #0f0b0c 0%, #0b1f1b 55%, #0f3a32 100%);
  overflow: hidden;
}
.madena-hero h1 {
  font-size: 2.6rem !important;
  margin: 0 0 0.4rem;
}
.madena-hero .wp-block-buttons {
  margin: 1.5rem 0 0;
}
.dash {
  direction: ltr;
  text-align: left;
  margin: 50px auto 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  background: #14211f;
  border-radius: 22px 22px 0 0;
  color: #111;
  font-size: 12px;
  line-height: 1.4;
}
.dash small {
  color: #6b7673;
  font-size: 10px;
  display: block;
}
.dash__side {
  background: #000;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 22px 0;
  color: #fff;
}
.dash__side .main {
  font-size: 11px;
  margin-bottom: 20px;
}
.dash__side .ic {
  width: 16px;
  height: 16px;
  border: 2px solid #4db6a0;
  border-radius: 4px;
  opacity: 0.85;
}
.dash__main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.dash__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.card,
.st {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
}
.st__h,
.card__h {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.st__h b {
  font-size: 12px;
}
.st__h i {
  color: #aaa;
  font-style: normal;
}
.st__b {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}
.st__b strong {
  font-size: 19px;
  display: block;
  margin-top: 4px;
}
.st__b em {
  color: #4cc15f;
  font-style: normal;
}
.st__b svg {
  width: 70px;
  height: 28px;
}
.dash__row {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 12px;
}
.card__h b {
  font-size: 14px;
}
.chart__k {
  display: flex;
  gap: 40px;
  margin: 8px 0 4px 20px;
}
.chart__k strong {
  font-size: 20px;
  color: #444;
}
.chart__k .g {
  color: #4cc15f;
}
.chart svg {
  width: 100%;
  height: 150px;
  display: block;
}
.chart__x {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #333;
  padding-top: 4px;
}
.donut .ring {
  width: 130px;
  height: 130px;
  margin: 18px auto 14px;
  border-radius: 50%;
  background: conic-gradient(#6c63e8 0 50%, #4cc15f 0 80%, #f4a23c 0 100%);
  -webkit-mask: radial-gradient(circle, transparent 38px, #000 39px);
  mask: radial-gradient(circle, transparent 38px, #000 39px);
}
.legend {
  display: flex;
  justify-content: space-around;
  font-size: 11px;
}
.legend i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
}
.dash__row--b {
  grid-template-columns: 1.65fr 1fr;
}
.orders table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px;
}
.orders th {
  text-align: left;
  font-weight: 500;
  padding: 4px 0;
}
.orders td {
  padding: 8px 0;
}
.orders .pe {
  color: #f2766b;
}
.orders .ok {
  color: #4cc15f;
}
.stock__i {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #eee;
}
.stock__i:first-of-type {
  border-top: 0;
}
.stock__i span {
  font-size: 13px;
}
.stock__i em {
  font-style: normal;
  background: #4db6a0;
  color: #fff;
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 999px;
}
@media (max-width: 800px) {
  .madena-hero {
    padding-top: 50px !important;
  }
  .madena-hero h1 {
    font-size: 1.9rem !important;
  }
  .dash {
    grid-template-columns: 1fr;
  }
  .dash__side {
    display: none;
  }
  .dash__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash__row {
    grid-template-columns: 1fr;
  }
  .stock,
  .donut {
    display: none;
  }
}

/* ---------- Header ---------- */
.madena-header {
  padding: 28px 20px;
}
.madena-header__inner {
  width: 100%;
}
.madena-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.6rem;
}
.madena-header__logo img {
  height: 54px;
  width: auto;
  display: block;
}
.madena-header__nav {
  font-size: 1.05rem;
}
.madena-header__nav a {
  color: #fff !important;
  text-decoration: none;
}
.madena-header__nav .wp-block-navigation__submenu-icon svg {
  stroke: #fff;
  width: 10px;
}
.madena-header__nav .wp-block-navigation__submenu-container {
  background: #111 !important;
  color: #fff;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 6px;
}
.madena-header__actions {
  gap: 22px;
}
.madena-header__actions .wp-block-button__link {
  padding: 13px 20px;
  font-size: 1.05rem;
  font-weight: 400;
}
.madena-header__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 1.05rem;
  direction: ltr;
}
.madena-header__lang .chev {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg) translateY(-2px);
  margin-right: 4px;
}
@media (max-width: 781px) {
  .madena-header {
    padding: 16px 20px;
  }
  .madena-header__actions .wp-block-buttons,
  .madena-header__lang {
    display: none;
  }
}

/* Header fixes */
.madena-header {
  border-radius: 0 !important;
  margin: 0 !important;
}
.madena-header__logo,
.madena-header__logo:hover,
.madena-header__logo span {
  color: #fff !important;
  text-decoration: none !important;
}
.madena-header__logo img {
  height: 64px !important;
  max-height: 64px;
  width: auto !important;
  max-width: none;
}
.madena-header__lang,
.madena-header__lang span {
  color: #fff !important;
}
.madena-header__actions .wp-block-button__link {
  color: #fff !important;
  background: #4db6a0 !important;
  text-decoration: none;
}
.madena-header__nav .wp-block-navigation-item__content {
  padding: 4px 0;
}

/* ---------- Dark body with gold gradient ---------- */
body {
  background-color: #0f0b0c;
  background-image: radial-gradient(
    ellipse 80% 55% at 50% 100%,
    rgba(201, 150, 47, 0.28) 0%,
    rgba(201, 150, 47, 0.08) 45%,
    transparent 75%
  );
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #fff;
}

/* ---------- Smaller scale + sticky-bottom footer ---------- */
html {
  font-size: 87.5%;
}
.wp-site-blocks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0 !important;
}
.wp-site-blocks > main {
  flex: 1 0 auto;
  margin: 0 !important;
}
.wp-site-blocks > footer {
  margin-top: auto !important;
}
.wp-site-blocks > * + * {
  margin-block-start: 0 !important;
}
.madena-header {
  padding: 18px 20px;
}
.madena-header__logo img {
  height: 52px !important;
  max-height: 52px;
}
.madena-header__actions .wp-block-button__link {
  padding: 10px 18px;
}

/* ---------- Footer ---------- */
.madena-footer {
  padding: 40px 20px 20px;
  border-top: 0;
}
.madena-footer__logo img {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}
.madena-footer h3 {
  font-size: 1.05rem;
  margin: 0 0 12px;
}
.madena-footer__menu a {
  color: #fff !important;
  text-decoration: none;
}
.madena-footer__menu a:hover {
  color: #c9962f !important;
}
.madena-footer__menu {
  gap: 8px;
}
.madena-footer .wp-block-social-links .wp-social-link a {
  color: #fff;
}
.madena-footer__copy {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

/* Language dropdown */
details.madena-header__lang {
  position: relative;
  display: block;
}
.madena-header__lang summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  direction: ltr;
}
.madena-header__lang summary::-webkit-details-marker {
  display: none;
}
.madena-header__lang ul {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 50;
  min-width: 90px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #111;
  border: 1px solid #222;
  border-radius: 10px;
}
.madena-header__lang ul a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  direction: ltr;
}
.madena-header__lang ul a:hover {
  background: #222;
}
.madena-header__lang[open] .chev {
  transform: rotate(-135deg) translateY(-2px);
}

/* ---------- Hero hover effects ---------- */
.madena-hero .wp-block-button__link {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.madena-hero .wp-block-button__link:hover {
  background-color: #5fcab4 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 182, 160, 0.45);
}
.dash {
  transition: box-shadow 0.4s ease;
}
.dash:hover {
  box-shadow:
    0 0 70px rgba(77, 182, 160, 0.28),
    0 0 0 1px rgba(77, 182, 160, 0.25);
}
.dash .card,
.dash .st {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.dash .card:hover,
.dash .st:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.dash__side .ic {
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}
.dash__side .ic:hover {
  transform: scale(1.2);
  background-color: rgba(77, 182, 160, 0.3);
}
.dash .orders tbody tr:hover {
  background: #f1f8f6;
}
.dash .stock__i em {
  transition: background-color 0.2s ease;
}
.dash .stock__i:hover em {
  background: #0f6b5c;
}
@media (prefers-reduced-motion: reduce) {
  .madena-hero *,
  .dash * {
    transition: none !important;
    transform: none !important;
  }
}

/* ---------- About ---------- */
.madena-about {
  padding: 80px 20px;
  background: #0f0b0c;
}
.madena-about__cols {
  gap: 40px;
  align-items: center;
}
.madena-about__cols > .wp-block-column {
  flex-basis: 50% !important;
  flex-grow: 0;
}
.madena-about h2 {
  font-size: 2rem;
  margin: 0 0 1rem;
}
.madena-about p {
  color: #cfd8d5;
}
.madena-about__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.madena-about__list li {
  padding: 6px 0 6px 0;
  color: #fff;
}
.madena-about__list li::before {
  content: "✓";
  color: #4db6a0;
  font-weight: 800;
  margin-inline-end: 10px;
}
.madena-about__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  border-radius: 20px;
  border: 1px solid rgba(201, 150, 47, 0.3);
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(15, 107, 92, 0.45),
      rgba(15, 11, 12, 0) 70%
    ),
    #14100f;
}
.madena-about__visual img {
  height: 170px;
  width: auto;
}
@media (max-width: 781px) {
  .madena-about {
    padding: 50px 20px;
  }
  .madena-about__cols > .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* ---------- About: refined translucent look ---------- */
.madena-about {
  background:
    radial-gradient(
      ellipse 60% 50% at 20% 40%,
      rgba(15, 107, 92, 0.35),
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 45% at 85% 70%,
      rgba(201, 150, 47, 0.14),
      transparent 70%
    ),
    linear-gradient(180deg, #0f3a32 0%, #0f0b0c 38%);
}
.madena-about p {
  color: rgba(255, 255, 255, 0.78);
}
.madena-about__list li {
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 0;
}
.madena-about__list li:last-child {
  border-bottom: 0;
}
.madena-about__visual {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.02)
  );
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 80px rgba(201, 150, 47, 0.12);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.madena-about__visual:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 100px rgba(201, 150, 47, 0.2);
}
.madena-about__visual img {
  filter: drop-shadow(0 10px 30px rgba(201, 150, 47, 0.25));
}
@keyframes madenaFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.madena-about__cols > .wp-block-column {
  animation: madenaFadeUp 0.8s ease both;
}
.madena-about__cols > .wp-block-column:nth-child(2) {
  animation-delay: 0.15s;
}
@media (prefers-reduced-motion: reduce) {
  .madena-about__cols > .wp-block-column {
    animation: none;
  }
  .madena-about__visual {
    transition: none;
  }
}

/* No gap between sections; taller About */
.wp-block-post-content > *,
.wp-block-post-content > * + * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}
.madena-hero {
  margin: 0 !important;
}
.madena-about {
  padding: 70px 20px !important;
  margin: 0 !important;
}
.madena-about__visual {
  min-height: 460px;
}
.madena-about__visual img {
  height: 210px;
}
@media (max-width: 781px) {
  .madena-about {
    padding: 50px 20px !important;
  }
  .madena-about__visual {
    min-height: 300px;
  }
}

/* ---------- Vision / Mission / Goals ---------- */
.madena-vmg {
  padding: 70px 20px !important;
  margin: 0 !important;
  background: linear-gradient(180deg, #0f0b0c 0%, #0c1c19 100%);
}
.madena-vmg h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
}
.madena-vmg__cols {
  gap: 24px;
}
.vmg-card {
  position: relative;
  height: 100%;
  padding: 40px 28px 32px;
  text-align: center;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.vmg-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #4db6a0, #c9962f);
  opacity: 0;
  transition: opacity 0.3s;
}
.vmg-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 150, 47, 0.5);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(201, 150, 47, 0.15);
}
.vmg-card:hover::before {
  opacity: 1;
}
.vmg-num {
  position: absolute;
  top: 14px;
  inset-inline-start: 20px;
  font-size: 2.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
}
.vmg-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  color: #fff;
  transform: rotate(-6deg);
  background: linear-gradient(135deg, #0f6b5c, #4db6a0);
  box-shadow: 0 10px 28px rgba(77, 182, 160, 0.35);
  transition: transform 0.35s ease;
}
.vmg-mission .vmg-icon {
  background: linear-gradient(135deg, #a9761a, #c9962f);
  box-shadow: 0 10px 28px rgba(201, 150, 47, 0.35);
  transform: rotate(5deg);
}
.vmg-goal .vmg-icon {
  background: linear-gradient(135deg, #0f6b5c, #c9962f);
}
.vmg-icon svg {
  width: 46px;
  height: 46px;
  transform: rotate(6deg);
}
.vmg-mission .vmg-icon svg {
  transform: rotate(-5deg);
}
.vmg-card:hover .vmg-icon {
  transform: rotate(0) scale(1.08);
}
.vmg-card:hover .vmg-icon svg {
  transform: rotate(0);
}
.vmg-card h3 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 12px;
}
.vmg-card p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}
@media (max-width: 781px) {
  .madena-vmg {
    padding: 50px 20px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vmg-card,
  .vmg-icon {
    transition: none;
  }
}

/* ---------- Testimonials slider (edge to edge, infinite loop) ---------- */
.madena-testimonials {
  padding: 90px 0 !important;
  margin: 0 !important;
  background: linear-gradient(180deg, #0c1c19 0%, #0f0b0c 100%);
  overflow: hidden;
}
.madena-testimonials h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}
.ts {
  width: 100%;
  overflow: hidden;
}
.ts__track {
  display: flex;
  width: max-content;
  animation: tsScroll 60s linear infinite;
  will-change: transform;
}
.ts:hover .ts__track {
  animation-play-state: paused;
}
.ts__set {
  display: flex;
  flex-shrink: 0;
}
.ts-item {
  direction: rtl;
  text-align: right;
  width: 380px;
  margin-inline-end: 24px;
  padding: 28px;
  border-radius: 20px;
  white-space: normal;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.ts-item:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 150, 47, 0.5);
}
.ts-stars {
  color: #c9962f;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.ts-item p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 20px;
  min-height: 5.1em;
}
.ts-by {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ts-av {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f6b5c, #4db6a0);
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}
.ts-by b {
  display: block;
  color: #fff;
}
.ts-by small {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}
@keyframes tsScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 781px) {
  .madena-testimonials {
    padding: 60px 0 !important;
  }
  .ts-item {
    width: 290px;
  }
  .ts__track {
    animation-duration: 45s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ts__track {
    animation: none;
  }
  .ts {
    overflow-x: auto;
  }
}

/* ---------- FAQs ---------- */
.madena-faq {
  padding: 70px 20px !important;
  margin: 0 !important;
  background: #0f0b0c;
}
.madena-faq h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}
.madena-faq__item {
  margin-block: 0 14px !important;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  );
  padding: 0 !important;
  transition: border-color 0.25s;
}
.madena-faq__item:hover,
.madena-faq__item[open] {
  border-color: rgba(77, 182, 160, 0.55);
}
.madena-faq__item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.madena-faq__item summary::-webkit-details-marker {
  display: none;
}
.madena-faq__item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: #4db6a0;
  transition: transform 0.25s;
}
.madena-faq__item[open] summary::after {
  transform: rotate(45deg);
}
.madena-faq__item p {
  margin: 0;
  padding: 0 22px 20px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Contact ---------- */
.madena-contact {
  padding: 70px 20px !important;
  margin: 0 !important;
  background: linear-gradient(180deg, #0f0b0c 0%, #0c1c19 100%);
}
.madena-contact h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}
.mc {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
}
.mc__info,
.mc__form {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  );
}
.mc__info h3 {
  color: #c9962f;
  margin: 0 0 18px;
}
.mc__info p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 12px;
}
.mc__wa {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}
.mc__form label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.mc__form input,
.mc__form textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
}
.mc__form input:focus,
.mc__form textarea:focus {
  outline: 0;
  border-color: #4db6a0;
  box-shadow: 0 0 0 3px rgba(77, 182, 160, 0.25);
}
.mc__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mc__form button {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 999px;
  background: #4db6a0;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.mc__form button:hover {
  background: #5fcab4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 182, 160, 0.4);
}
.mc__hp {
  position: absolute !important;
  top: 0;
  inset-inline-start: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}
.mc__form {
  position: relative;
}
.mc__note {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.mc__note.ok {
  background: rgba(76, 193, 95, 0.15);
  color: #7be08a;
  border: 1px solid rgba(76, 193, 95, 0.4);
}
.mc__note.err {
  background: rgba(242, 118, 107, 0.12);
  color: #f2a29b;
  border: 1px solid rgba(242, 118, 107, 0.4);
}
@media (max-width: 781px) {
  .madena-faq,
  .madena-contact {
    padding: 50px 20px !important;
  }
  .mc {
    grid-template-columns: 1fr;
  }
  .mc__row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Floating WhatsApp + scroll to top ---------- */
.madena-wa {
  position: fixed;
  right: 22px;
  z-index: 999;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    opacity 0.25s;
}
.madena-wa {
  bottom: 22px;
  width: 56px;
  height: 56px;
  background: #25d366;
  animation: waPulse 2.4s infinite;
}
.madena-wa:hover {
  transform: translateY(-3px) scale(1.06);
}
@keyframes waPulse {
  0% {
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.4),
      0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.4),
      0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.4),
      0 0 0 0 rgba(37, 211, 102, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .madena-wa {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Hero medicine inventory visual ---------- */
.inv {
  position: relative;
  max-width: 760px;
  margin: 50px auto 0;
  direction: ltr;
  text-align: left;
}
.inv__shelf svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 50px rgba(77, 182, 160, 0.25));
}
.inv__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #1b2b28;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  animation: invfloat 5s ease-in-out infinite;
}
.inv__badge small {
  display: block;
  color: #6b7673;
  font-size: 10px;
  margin-top: 2px;
}
.inv__badge strong {
  font-size: 22px;
  color: #0f6b5c;
  line-height: 1;
  display: block;
}
.inv__badge--a {
  top: -22px;
  right: -18px;
}
.inv__badge--b {
  bottom: 60px;
  left: -22px;
  animation-delay: 1.2s;
}
.inv__badge--c {
  bottom: -20px;
  right: 40px;
  animation-delay: 2.4s;
}
.inv .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f2766b;
  box-shadow: 0 0 0 4px rgba(242, 118, 107, 0.2);
}
.inv .chk {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4cc15f;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}
@keyframes invfloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@media (max-width: 700px) {
  .inv {
    margin-top: 50px;
  }
  .inv__badge {
    transform: scale(0.8);
  }
  .inv__badge--a {
    right: -6px;
  }
  .inv__badge--b {
    left: -6px;
  }
  .inv__badge--c {
    right: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .inv__badge {
    animation: none;
  }
}
.madena-hero {
  padding-bottom: 60px !important;
}

.inv__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.inv__stats div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(77, 182, 160, 0.25);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.inv__stats strong {
  display: block;
  color: #fff;
  font-size: 22px;
}
.inv__stats small {
  color: #9fc9c0;
  font-size: 11px;
}
.inv__list {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(77, 182, 160, 0.25);
  border-radius: 14px;
  padding: 6px 16px;
}
.inv__list div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e6f2ef;
  font-size: 13px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.inv__list div:first-child {
  border-top: 0;
}
.inv__list em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: #9fc9c0;
}
.inv .dot--r {
  background: #f2766b;
}
.inv .dot--o {
  background: #f4a23c;
  box-shadow: 0 0 0 4px rgba(244, 162, 60, 0.2);
}
.inv .dot--g {
  background: #4cc15f;
  box-shadow: 0 0 0 4px rgba(76, 193, 95, 0.2);
}
@media (max-width: 700px) {
  .inv__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Services ---------- */
.madena-services {
  padding: 70px 20px !important;
  margin: 0 !important;
  background: #0f0b0c;
}
.madena-services h2,
.madena-how h2 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 3rem;
}
.svc-card {
  padding: 30px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  );
  text-align: center;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 182, 160, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.svc-ic {
  display: block;
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.svc-card h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 8px;
}
.svc-card p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  font-size: 0.95rem;
}
/* ---------- How it works ---------- */
.madena-how {
  padding: 70px 20px !important;
  margin: 0 !important;
  background: linear-gradient(180deg, #0f0b0c 0%, #0c1c19 100%);
}
.how-nums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 50px;
}
.how-nums div {
  text-align: center;
  padding: 22px 10px;
  border-radius: 16px;
  background: rgba(77, 182, 160, 0.08);
  border: 1px solid rgba(77, 182, 160, 0.25);
}
.how-nums strong {
  display: block;
  color: #4db6a0;
  font-size: 1.9rem;
  font-weight: 800;
}
.how-nums small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 2.5rem;
}
.stp {
  text-align: center;
  padding: 0 8px;
}
.stp-n {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #4db6a0;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 0 0 6px rgba(77, 182, 160, 0.2);
}
.stp h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.stp p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  font-size: 0.92rem;
}
@media (max-width: 781px) {
  .madena-services,
  .madena-how {
    padding: 50px 20px !important;
  }
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .how-nums,
  .how-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mc__info p a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
}
.mc__info p a:hover {
  color: #4db6a0;
}

/* ---------- About page ---------- */
.madena-banner {
  padding: 130px 20px 70px !important;
  margin: 0 !important;
  text-align: center;
  background: linear-gradient(180deg, #0f0b0c 0%, #0b1f1b 60%, #0f3a32 100%);
}
.madena-banner h1 {
  font-size: 2.6rem !important;
  margin: 0 0 0.5rem;
}
.madena-story {
  padding: 70px 20px !important;
  margin: 0 !important;
  background: #0f0b0c;
}
.madena-story h2 {
  font-size: 2rem;
}
.svc-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1.5rem;
}
@media (max-width: 781px) {
  .madena-banner {
    padding: 100px 20px 50px !important;
  }
  .madena-banner h1 {
    font-size: 1.9rem !important;
  }
  .svc-grid--4 {
    grid-template-columns: 1fr;
  }
  .madena-story {
    padding: 60px 20px !important;
  }
}

/* ---------- Contact page ---------- */
.madena-map {
  padding: 80px 20px 40px !important;
  margin: 0 !important;
  background: #0f0b0c;
}
.map-cards {
  margin-top: 0;
}
.map-cards a {
  color: #fff;
  text-decoration: none;
}
.map-cards a:hover {
  color: #4db6a0;
}
.map-frame {
  margin-top: 36px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(77, 182, 160, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.map-frame iframe {
  display: block;
  filter: grayscale(0.2) contrast(1.05);
}
.map-link {
  text-align: center;
  margin: 16px 0 0;
}
.map-link a {
  color: #4db6a0;
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 781px) {
  .madena-map {
    padding: 50px 20px 30px !important;
  }
  .map-frame iframe {
    height: 320px;
  }
}

/* Mobile header: hamburger toggle on the left, logo centered */
@media (max-width: 781px) {
  .madena-header__inner {
    position: relative;
    direction: ltr;
    justify-content: flex-start !important;
    min-height: 52px;
  }
  .madena-header__nav {
    order: -1;
    margin-right: auto;
  }
  .madena-header__logo {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .madena-header__nav .wp-block-navigation__responsive-container-open {
    color: #fff;
  }
}

/* Mobile menu overlay (drawer) */
.madena-header__nav .wp-block-navigation__responsive-container.is-menu-open {
  background: #000 !important;
  color: #fff !important;
  direction: rtl;
  padding: 24px 28px;
}
.madena-header__nav
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content {
  align-items: flex-start;
  padding-top: 48px;
}
.madena-header__nav .is-menu-open .wp-block-navigation__container {
  align-items: flex-start;
  gap: 22px;
  font-size: 1.3rem;
  width: 100%;
}
.madena-header__nav .is-menu-open .wp-block-navigation__submenu-container {
  position: static;
  background: transparent !important;
  border: 0;
  padding: 8px 16px 0 0;
  width: 100%;
}
.madena-header__nav .wp-block-navigation__responsive-container-close {
  color: #fff;
  right: auto;
  left: 20px;
  top: 20px;
}
.madena-header__nav .wp-block-navigation__responsive-container-close svg,
.madena-header__nav .wp-block-navigation__responsive-container-open svg {
  fill: #fff;
  width: 30px;
  height: 30px;
}
.svc-ic svg {
  display: block;
  color: #4db6a0;
}
.svc-ic {
  display: flex;
  justify-content: center;
}

/* Scroll to top */
.madena-totop {
  position: fixed;
  left: 24px;
  right: auto;
  bottom: 24px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #4db6a0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.madena-totop[hidden] {
  display: none;
}
.madena-totop:hover {
  background: #3fa08b;
}
#contact-form {
  scroll-margin-top: 100px;
}

/* Hero image */
.hero-img {
  position: relative;
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 10px 10px 0;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(
    180deg,
    rgba(77, 182, 160, 0.45),
    rgba(77, 182, 160, 0.05) 70%
  );
  box-shadow:
    0 -10px 80px rgba(77, 182, 160, 0.28),
    0 30px 80px rgba(0, 0, 0, 0.45);
}
.hero-img::before {
  content: "";
  position: absolute;
  inset: -40px 8% auto;
  height: 120px;
  background: radial-gradient(
    closest-side,
    rgba(77, 182, 160, 0.45),
    transparent
  );
  filter: blur(30px);
  z-index: -1;
}
.hero-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px 20px 0 0;
}
.hero-img::after {
  content: "";
  position: absolute;
  inset: 10px 10px 0;
  border-radius: 20px 20px 0 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(15, 58, 50, 0.35) 0%,
      rgba(15, 58, 50, 0) 30%,
      rgba(15, 11, 12, 0) 60%,
      rgba(11, 31, 27, 0.55) 100%
    ),
    radial-gradient(
      120% 80% at 50% 0%,
      transparent 55%,
      rgba(0, 0, 0, 0.35) 100%
    );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.hero-img img {
  filter: saturate(1.08) contrast(1.04);
}
@media (max-width: 700px) {
  .hero-img {
    margin-top: 40px;
    padding: 6px 6px 0;
    border-radius: 18px 18px 0 0;
  }
  .hero-img img,
  .hero-img::after {
    border-radius: 14px 14px 0 0;
  }
  .hero-img::after {
    inset: 6px 6px 0;
  }
}

/* Certificates */
.madena-certs {
  padding: 70px 20px !important;
  margin: 0 !important;
  background: #0f0b0c;
  min-height: 40vh;
}
.cert-card {
  height: 100%;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  ) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.cert-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 182, 160, 0.55) !important;
}
.cert-card .wp-block-post-featured-image {
  margin: 0 0 14px;
  background: rgba(255, 255, 255, 0.04);
}
.cert-card .wp-block-post-featured-image img {
  object-fit: cover;
}
.cert-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
}
.cert-card h3 a {
  color: #fff;
  text-decoration: none;
}
.cert-card .wp-block-post-excerpt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  margin: 0;
}
.madena-certs .wp-block-query-pagination {
  margin-top: 40px;
  gap: 14px;
}
.madena-certs .wp-block-query-pagination a {
  color: #4db6a0;
}
.certs-empty {
  text-align: center;
  padding: 50px 20px;
  border: 1px dashed rgba(77, 182, 160, 0.35);
  border-radius: 20px;
  background: rgba(77, 182, 160, 0.05);
}
.certs-empty__icon {
  font-size: 3rem;
  margin: 0 0 10px;
}
.certs-empty h3 {
  color: #fff;
  margin: 0 0 8px;
}
.certs-empty p {
  color: rgba(255, 255, 255, 0.72);
}
@media (max-width: 781px) {
  .madena-certs {
    padding: 50px 20px !important;
  }
}

/* Language switcher (WPML-compatible) */
.madena-header__lang .flag {
  display: inline-block;
  vertical-align: middle;
}
.madena-header__lang img.flag {
  width: 20px;
  height: auto;
  border-radius: 2px;
}
.madena-header__lang ul li.is-active a {
  background: #222;
}

/* Legal pages */
.madena-legal h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.6rem;
  color: #4db6a0;
}
.madena-legal p,
.madena-legal li {
  color: rgba(255, 255, 255, 0.85);
}
.madena-legal ul {
  padding-inline-start: 1.4rem;
}
.madena-legal a {
  color: #4db6a0;
}

.hours-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
  margin: 1.5rem auto 0;
}
@media (max-width: 781px) {
  .hours-grid {
    grid-template-columns: 1fr;
  }
}
.madena-footer__hours {
  font-size: 0.95rem;
  line-height: 1.9;
}

/* LTR languages (WPML): flip the few RTL-forced pieces */
html:not([dir="rtl"]) .ts-item {
  direction: ltr;
  text-align: left;
}
html:not([dir="rtl"]) .madena-header__lang ul {
  left: auto;
  right: 0;
}
html:not([dir="rtl"]) .madena-about__list li::before {
  margin-inline-end: 10px;
}

/* Blog */
.blog-meta {
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 0 0 10px;
}
.blog-meta a,
.blog-cat a {
  color: #4db6a0;
  text-decoration: none;
}
.blog-card .wp-block-post-excerpt__more-link {
  color: #4db6a0;
  font-weight: 700;
  text-decoration: none;
}
.blog-cat {
  text-align: center;
  margin-bottom: 0.6rem;
}
.madena-banner .blog-meta {
  color: #d7e6e2;
}
.madena-blog-single .wp-block-post-content p,
.madena-blog-single .wp-block-post-content li {
  font-size: 1.05rem;
  line-height: 1.9;
}
.madena-blog-single .wp-block-post-content img {
  border-radius: 12px;
}
.blog-tags {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.7);
}
.blog-tags a {
  display: inline-block;
  padding: 2px 12px;
  margin: 2px;
  border: 1px solid rgba(77, 182, 160, 0.4);
  border-radius: 999px;
  color: #4db6a0;
  text-decoration: none;
}
.blog-nav {
  margin: 2.5rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.blog-nav a {
  color: #4db6a0;
  text-decoration: none;
}

/* ---------- Hero slider ---------- */
.hero-slider .hero-slides {
  display: flex;
  direction: ltr;
  aspect-ratio: 2048 / 768;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transition: none;
}
.hero-slider .hero-slides.is-dragging {
  cursor: grabbing;
}
.hero-slider .hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.hero-slider .hero-track.is-dragging {
  transition: none;
}
.hero-slider .hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-user-drag: none;
  pointer-events: none;
}
.hero-dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  direction: ltr;
}
.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition:
    width 0.25s ease,
    background-color 0.25s ease;
}
.hero-dot.is-active {
  width: 26px;
  background: #4db6a0;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider .hero-track {
    transition: none;
  }
}

/* ---------- Contact form validation ---------- */
.mc__form .mc__error {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #f2a29b;
}
.mc__form .mc__error::before {
  content: "⚠ ";
}
.mc__form input.is-invalid,
.mc__form textarea.is-invalid {
  border-color: #f2766b;
  box-shadow: 0 0 0 3px rgba(242, 118, 107, 0.2);
}

/* ---------- About image ---------- */
.madena-about__visual {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: visible;
  isolation: isolate;
}
.madena-about__visual:hover {
  box-shadow: none;
}
/* offset gold outline + glow behind the photo */
.madena-about__visual::before {
  content: "";
  position: absolute;
  inset: 22px 22px -22px -22px;
  border: 2px solid rgba(201, 150, 47, 0.55);
  border-radius: 26px;
  z-index: -1;
  transition: inset 0.4s ease;
}
.madena-about__visual::after {
  content: "";
  position: absolute;
  inset: 10% -6% -6% 10%;
  background: radial-gradient(
    closest-side,
    rgba(77, 182, 160, 0.35),
    transparent
  );
  filter: blur(40px);
  z-index: -2;
}
.madena-about__visual:hover::before {
  inset: 14px 14px -14px -14px;
}
.madena-about__visual .mav__frame {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.14);
}
.madena-about__visual .mav__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
  transition: transform 1.2s ease;
}
.madena-about__visual:hover .mav__frame img {
  transform: scale(1.05);
}
/* teal/dark tint + bottom fade so the badge reads well */
.madena-about__visual .mav__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 58, 50, 0.18) 0%,
    transparent 35%,
    rgba(11, 31, 27, 0.78) 100%
  );
}
/* glass logo badge */
.madena-about__visual .mav__badge {
  position: absolute;
  z-index: 2;
  inset-inline-start: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.madena-about__visual .mav__badge img {
  display: block;
  height: 46px;
  width: auto;
}
@media (max-width: 781px) {
  .madena-about__visual::before {
    inset: 14px 10px -14px -10px;
  }
  .madena-about__visual .mav__badge {
    inset-inline-start: 14px;
    bottom: 14px;
  }
  .madena-about__visual .mav__badge img {
    height: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .madena-about__visual .mav__frame img,
  .madena-about__visual::before {
    transition: none;
  }
}

/* ---------- Contact info cards: 2 x 2 grid ---------- */
.svc-grid.map-cards {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.map-cards .svc-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 18px;
  padding: 24px 26px;
  text-align: start;
}
.map-cards .svc-ic {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 16px;
  background: rgba(77, 182, 160, 0.14);
  border: 1px solid rgba(77, 182, 160, 0.3);
  font-size: 1.6rem;
}
.map-cards .svc-card h3 {
  align-self: end;
  margin: 0 0 4px;
}
.map-cards .svc-card p {
  align-self: start;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .svc-grid.map-cards {
    grid-template-columns: 1fr;
  }
}

/* ---- Elementor compatibility ---- */
.elementor-widget-icon-list ul.elementor-icon-list-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.elementor-widget-icon-list .elementor-icon-list-item a {
  text-decoration: none;
}
.elementor-widget-icon-list .elementor-icon-list-item a:hover {
  color: #c9962f;
}
.elementor-widget-text-editor a {
  color: #c9962f;
  text-decoration: none;
}
.elementor-widget-text-editor a:hover {
  color: #e0b24d;
}
.elementor-widget-accordion .elementor-accordion-item {
  margin-bottom: 14px;
  border-radius: 14px;
  overflow: hidden;
}
.elementor-widget-accordion .elementor-tab-title {
  padding: 18px 22px;
  font-weight: 700;
}
.elementor-widget-accordion .elementor-tab-content {
  padding: 0 22px 20px;
}
.elementor-widget-image img {
  border-radius: inherit;
}
/* sections built in Elementor should not get the legacy <section> padding */
.elementor section,
.elementor-section {
  padding-block: 0;
}

/* Classic fallback header (used until an Elementor Theme Builder header is set) */
.madena-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1024px;
  margin: 0 auto;
}
.madena-header__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
}
.madena-header__menu a {
  color: #fff;
  text-decoration: none;
}
.madena-header__menu a:hover {
  color: #4db6a0;
}
.madena-header__cta {
  display: inline-block;
  border-radius: 999px;
  background: #4db6a0;
  color: #fff !important;
  padding: 11px 20px;
  text-decoration: none;
}
.madena-header__toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .madena-header__toggle {
    display: block;
  }
  .madena-header__menu {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    background: #000;
    padding: 16px 20px;
    gap: 14px;
    z-index: 40;
  }
  .madena-header.is-open .madena-header__menu {
    display: flex;
  }
  .madena-header {
    position: relative;
  }
  .madena-header__cta {
    display: none;
  }
}
.madena-footer ul,
.madena-footer .wp-block-navigation__container {
  list-style: none;
  padding: 0;
  margin: 0;
}
.madena-footer .wp-block-social-links .wp-social-link svg,
.madena-footer .elementor-social-icon svg {
  fill: #fff;
}
.madena-footer .wp-block-navigation {
  display: block;
}
.madena-footer .wp-block-navigation__container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- Cairo everywhere (theme, Elementor widgets, forms, buttons) ---- */
:root,
body,
.elementor-kit-77 {
  --e-global-typography-primary-font-family: Cairo;
  --e-global-typography-secondary-font-family: Cairo;
  --e-global-typography-text-font-family: Cairo;
  --e-global-typography-accent-font-family: Cairo;
}
body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
summary,
.elementor,
.elementor
  *:not(i):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(
    .eicon
  ),
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-button,
.elementor-accordion .elementor-tab-title,
.elementor-counter,
.wp-block-button__link,
.wp-element-button {
  font-family:
    "Cairo",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}

/* Elementor containers reusing the original card classes */
.e-con.svc-card {
  border-radius: 18px;
  padding: 30px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  );
}
.e-con.vmg-card {
  border-radius: 20px;
  padding: 40px 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
}
.e-con.vmg-card > .elementor-widget-heading.vmg-num {
  position: absolute;
  top: 14px;
  inset-inline-start: 20px;
  width: auto;
  margin: 0;
}
.e-con.vmg-card .vmg-num .elementor-heading-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
}
.e-con.vmg-card .elementor-widget-html .vmg-icon {
  margin-bottom: 10px;
}
.madena-about__visual {
  max-width: 100%;
}

/* About photo built from Elementor Image widgets (frame + logo badge) */
.e-con.madena-about__visual {
  position: relative;
  display: block;
  isolation: isolate;
  align-self: center;
}
.e-con.madena-about__visual::before {
  content: "";
  position: absolute;
  inset: 22px 22px -22px -22px;
  border: 2px solid rgba(201, 150, 47, 0.55);
  border-radius: 26px;
  z-index: -1;
  background: none;
  opacity: 1;
  transition: inset 0.4s ease;
}
.e-con.madena-about__visual .elementor-widget.mav__frame {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: 22px;
  overflow: hidden;
  width: 100%;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.14);
}
.e-con.madena-about__visual .mav__frame .elementor-widget-container,
.e-con.madena-about__visual .mav__frame img {
  height: 100%;
  width: 100%;
}
.e-con.madena-about__visual .mav__frame img {
  object-fit: cover;
  display: block;
  border-radius: 0;
  filter: saturate(1.1) contrast(1.05);
  transition: transform 1.2s ease;
}
.e-con.madena-about__visual:hover .mav__frame img {
  transform: scale(1.05);
}
.e-con.madena-about__visual .elementor-widget.mav__badge {
  position: absolute;
  z-index: 2;
  inset-inline-start: 22px;
  bottom: 22px;
  width: auto;
  display: flex;
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.e-con.madena-about__visual .mav__badge img {
  height: 46px;
  width: auto;
  display: block;
  filter: none;
}

/* =====================================================================
   LIGHT PALETTE
   Primary #17665E · Secondary #2D8C82 · Accent #D0A249
   Background #F3F8F7 · Surface #FFFFFF · Text #263238
   ===================================================================== */
:root {
  --m-primary: #17665e;
  --m-primary-dark: #0f4a44;
  --m-secondary: #2d8c82;
  --m-accent: #d0a249;
  --m-bg: #f3f8f7;
  --m-surface: #ffffff;
  --m-text: #263238;
  --m-muted: rgba(38, 50, 56, 0.75);
  --m-line: rgba(38, 50, 56, 0.12);
}
body {
  background: var(--m-bg) !important;
  background-image: none !important;
  color: var(--m-text);
}
a {
  color: var(--m-secondary);
}

/* header / footer (fallbacks) */
.madena-header {
  background: var(--m-primary) !important;
  color: #fff !important;
}
.madena-header__menu a:hover {
  color: var(--m-accent);
}
.madena-header__cta {
  background: var(--m-accent) !important;
  color: var(--m-text) !important;
}
.madena-header__cta:hover {
  background: #dbb25f !important;
}
.madena-header__lang ul {
  background: var(--m-primary-dark);
  border-color: rgba(255, 255, 255, 0.15);
}
.madena-header__lang ul a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.madena-header__menu {
  background: transparent;
}
@media (max-width: 900px) {
  .madena-header__menu {
    background: var(--m-primary-dark);
  }
}
.madena-footer {
  background: var(--m-primary-dark) !important;
}
.madena-footer h3 {
  color: var(--m-accent) !important;
}
.madena-footer a {
  color: #fff;
}
.madena-footer a:hover {
  color: var(--m-accent) !important;
}

/* page banners (certificates, privacy, legacy blocks) */
.madena-banner {
  background: linear-gradient(
    180deg,
    var(--m-primary-dark) 0%,
    var(--m-primary) 100%
  ) !important;
}
.madena-banner h1 {
  color: #fff !important;
}
.madena-hero {
  background: linear-gradient(
    180deg,
    var(--m-primary-dark) 0%,
    var(--m-primary) 100%
  );
}

/* certificates + legal */
.madena-certs {
  background: var(--m-bg);
}
.cert-card {
  background: var(--m-surface) !important;
  border-color: var(--m-line) !important;
  box-shadow: 0 8px 28px rgba(23, 102, 94, 0.1);
}
.cert-card:hover {
  border-color: var(--m-secondary) !important;
}
.cert-card .wp-block-post-featured-image {
  background: var(--m-bg);
}
.cert-card h3 a {
  color: var(--m-text);
}
.cert-card .wp-block-post-excerpt {
  color: var(--m-muted);
}
.madena-certs .wp-block-query-pagination a {
  color: var(--m-secondary);
}
.certs-empty {
  border-color: rgba(45, 140, 130, 0.4);
  background: rgba(45, 140, 130, 0.06);
}
.certs-empty h3 {
  color: var(--m-text);
}
.certs-empty p {
  color: var(--m-muted);
}
.madena-legal h2 {
  color: var(--m-primary);
}
.madena-legal p,
.madena-legal li {
  color: var(--m-text);
}
.madena-legal a {
  color: var(--m-secondary);
}

/* testimonials slider */
.madena-testimonials {
  background: var(--m-surface);
}
.madena-testimonials h2 {
  color: var(--m-primary) !important;
}
.ts-item {
  background: var(--m-surface) !important;
  border: 1px solid var(--m-line) !important;
  box-shadow: 0 8px 28px rgba(23, 102, 94, 0.1) !important;
}
.ts-item:hover {
  border-color: var(--m-secondary) !important;
}
.ts-stars {
  color: var(--m-accent);
}
.ts-item p {
  color: var(--m-text);
}
.ts-av {
  background: linear-gradient(135deg, var(--m-primary), var(--m-secondary));
}
.ts-by b {
  color: var(--m-text);
}
.ts-by small {
  color: var(--m-muted);
}

/* FAQs */
.madena-faq-list .madena-faq__item,
.madena-faq__item {
  background: var(--m-surface) !important;
  border: 1px solid var(--m-line) !important;
  box-shadow: 0 4px 16px rgba(23, 102, 94, 0.06);
}
.madena-faq__item:hover,
.madena-faq__item[open] {
  border-color: var(--m-secondary) !important;
}
.madena-faq__item summary {
  color: var(--m-text) !important;
}
.madena-faq__item summary::after {
  color: var(--m-secondary);
}
.madena-faq__item p {
  color: var(--m-muted) !important;
}

/* contact form */
.mc__info,
.mc__form {
  background: var(--m-surface);
  border: 1px solid var(--m-line);
  box-shadow: 0 8px 28px rgba(23, 102, 94, 0.1);
}
.mc__form label {
  color: var(--m-text);
}
.mc__form input,
.mc__form textarea {
  background: var(--m-bg);
  border: 1px solid rgba(38, 50, 56, 0.18);
  color: var(--m-text);
}
.mc__form input::placeholder,
.mc__form textarea::placeholder {
  color: rgba(38, 50, 56, 0.45);
}
.mc__form input:focus,
.mc__form textarea:focus {
  border-color: var(--m-secondary);
  box-shadow: 0 0 0 3px rgba(45, 140, 130, 0.22);
}
.mc__form button {
  background: var(--m-primary);
  color: #fff;
}
.mc__form button:hover {
  background: var(--m-secondary);
  box-shadow: 0 8px 24px rgba(23, 102, 94, 0.3);
}
.mc__info h3 {
  color: var(--m-primary);
}
.mc__info p {
  color: var(--m-text);
}

/* Elementor cards that reuse the old card classes */
.e-con.svc-card,
.e-con.vmg-card {
  background: var(--m-surface);
  border: 1px solid var(--m-line);
  box-shadow: 0 8px 28px rgba(23, 102, 94, 0.1);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.e-con.svc-card:hover,
.e-con.vmg-card:hover {
  border-color: var(--m-secondary);
  box-shadow: 0 18px 44px rgba(23, 102, 94, 0.18);
}
.e-con.vmg-card .vmg-num .elementor-heading-title {
  color: rgba(23, 102, 94, 0.1);
}
.vmg-icon {
  background: linear-gradient(135deg, var(--m-primary), var(--m-secondary));
  box-shadow: 0 10px 28px rgba(45, 140, 130, 0.3);
}
.vmg-mission .vmg-icon {
  background: linear-gradient(135deg, #b88a30, var(--m-accent));
  box-shadow: 0 10px 28px rgba(208, 162, 73, 0.35);
}
.vmg-goal .vmg-icon {
  background: linear-gradient(135deg, var(--m-secondary), var(--m-accent));
}
.vmg-card::before {
  background: linear-gradient(90deg, var(--m-secondary), var(--m-accent));
}

/* Elementor text links + accents */
.elementor-widget-text-editor a {
  color: var(--m-secondary);
}
.elementor-widget-text-editor a:hover {
  color: var(--m-primary);
}
.elementor-widget-icon-list .elementor-icon-list-item a:hover {
  color: var(--m-accent);
}
.madena-header a,
.madena-footer .elementor-icon-list-item a {
  color: #fff;
}

/* logo sits on a white pill so its dark parts stay visible on deep teal */
.madena-header__logo img,
.madena-footer__logo img,
.madena-footer .elementor-widget-image img {
  background: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  box-sizing: content-box;
}
.madena-header__logo img {
  height: 46px !important;
  max-height: 46px;
}
.elementor-location-header .elementor-widget-image img {
  background: #fff;
  padding: 6px 12px;
  border-radius: 12px;
}
/* service icons: deepen the pale mint gradient for contrast on white cards */
.elementor-widget-image.elementor-widget
  .elementor-widget-container
  img[src*="service-"] {
  filter: brightness(0.62) saturate(1.6) hue-rotate(-6deg);
}

/* ---------- Responsive header (fallback header) ---------- */
.madena-header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.madena-header__menu-cta {
  display: none;
}
.madena-header__toggle {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 0;
  border-radius: 10px;
}
.madena-header__toggle span {
  position: absolute;
  inset-inline-start: 11px;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.2s,
    top 0.25s;
}
.madena-header__toggle span:nth-child(1) {
  top: 14px;
}
.madena-header__toggle span:nth-child(2) {
  top: 21px;
}
.madena-header__toggle span:nth-child(3) {
  top: 28px;
}
.madena-header.is-open .madena-header__toggle span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.madena-header.is-open .madena-header__toggle span:nth-child(2) {
  opacity: 0;
}
.madena-header.is-open .madena-header__toggle span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .madena-header {
    position: relative;
    padding: 12px 16px !important;
  }
  .madena-header__bar {
    gap: 12px;
  }
  .madena-header__logo img {
    height: 40px !important;
    max-height: 40px;
    padding: 4px 10px;
  }
  .madena-header__actions {
    gap: 10px;
    margin-inline-start: auto;
  }
  .madena-header__cta {
    display: none !important;
  }
  /* keep the language switcher visible on mobile (older rule hid it) */
  .madena-header__lang {
    display: block !important;
  }
  .madena-header__lang ul {
    inset-inline-start: auto;
    inset-inline-end: 0;
    left: auto;
    right: auto;
  }
  .madena-header__toggle {
    display: block;
  }
  .madena-header__menu {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: var(--m-primary-dark, #0f4a44);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .madena-header.is-open .madena-header__menu {
    display: flex;
  }
  .madena-header__menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .madena-header__menu li:last-child {
    border-bottom: 0;
  }
  .madena-header__menu a {
    display: block;
    padding: 14px 4px;
    font-size: 1.1rem;
  }
  .madena-header__menu .madena-header__menu-cta {
    display: block;
    padding-top: 14px;
  }
  .madena-header__menu .madena-header__menu-cta a {
    text-align: center;
    border-radius: 999px;
    background: var(--m-accent, #4db6a0);
    color: var(--m-text, #fff);
    padding: 12px 20px;
  }
}
@media (max-width: 400px) {
  .madena-header__logo img {
    height: 34px !important;
    max-height: 34px;
  }
}

/* Mobile header: breathing room on the logo side */
@media (max-width: 900px) {
  .madena-header {
    padding-inline: 24px !important;
  }
  .madena-header__logo {
    margin-inline-start: 8px;
  }
}

/* Hero slider: show each slide at its full height (no bottom crop); box height follows the media */
.hero-slider .hero-slides {
  aspect-ratio: auto;
}
.hero-slider .hero-track {
  height: auto;
  align-items: flex-start;
}
.hero-slider .hero-slide {
  height: auto !important;
  object-fit: contain;
  align-self: flex-start;
}

/* Hero slider: rounded 12px on all 4 corners + bottom margin */
.hero-img.hero-slider {
  padding: 0;
  border-radius: 12px;
  margin-bottom: 40px;
  background: none;
  overflow: hidden;
}
.hero-img.hero-slider::before {
  display: none;
}
.hero-img.hero-slider::after {
  inset: 0;
  border-radius: 12px;
}
.hero-slider .hero-slides {
  border-radius: 12px;
}
.hero-slider .hero-slide {
  border-radius: 0;
}
@media (max-width: 700px) {
  .hero-img.hero-slider {
    padding: 0;
    border-radius: 12px;
    margin-bottom: 28px;
  }
  .hero-img.hero-slider::after {
    inset: 0;
    border-radius: 12px;
  }
}

/* Hero slider: fixed, moderate height; media fits inside (nothing cropped) */
.hero-slider .hero-slides {
  aspect-ratio: 2048 / 768;
  max-height: 70vh;
  background: #0b1f1b;
}
.hero-slider .hero-track {
  height: 100%;
  align-items: stretch;
}
.hero-slider .hero-slide {
  height: 100% !important;
  object-fit: contain;
  align-self: stretch;
}
@media (max-width: 900px) {
  .hero-slider .hero-slides {
    aspect-ratio: 16 / 7;
  }
}
@media (max-width: 600px) {
  .hero-slider .hero-slides {
    aspect-ratio: 16 / 9;
    max-height: 56vh;
  }
}

/* Hero slider: 50px taller than the ratio-based height */
.hero-slider {
  --hs-w: min(1100px, 100vw - 40px);
}
.hero-slider .hero-slides {
  aspect-ratio: auto;
  height: calc(var(--hs-w) * 768 / 2048 + 50px);
  max-height: none;
}
@media (max-width: 900px) {
  .hero-slider .hero-slides {
    height: calc(var(--hs-w) * 7 / 16 + 50px);
  }
}
@media (max-width: 600px) {
  .hero-slider .hero-slides {
    height: calc(var(--hs-w) * 9 / 16 + 50px);
    max-height: none;
  }
}

/* Hero slider: media fills the whole box (width and height, no bars, no crop) */
.hero-slider .hero-slide {
  width: 100%;
  height: 100% !important;
  object-fit: fill;
}

/* ===== English (LTR) header: responsive fixes =====
   English labels are longer than the Arabic ones, so the desktop menu
   overflowed/wrapped between 901px and 1100px. Collapse to the hamburger
   earlier, keep everything on one line, and fix the LTR dropdown layout. */
html[lang^="en"] .madena-header__menu a,
html[lang^="en"] .madena-header__cta,
html[lang^="en"] .madena-header__lang summary {
  white-space: nowrap;
}
html[lang^="en"] .madena-header__logo img {
  max-width: none;
}
/* chevron after the label in LTR: "En 🇬🇧 ⌄" */
html[lang^="en"] .madena-header__lang summary {
  flex-direction: row-reverse;
}
html[lang^="en"] .madena-header__lang .chev {
  margin-right: 0;
  margin-left: 4px;
}
html[lang^="en"] .madena-header__lang ul {
  left: auto;
  right: 0;
  inset-inline-start: auto;
  inset-inline-end: 0;
}
@media (min-width: 901px) and (max-width: 1100px) {
  html[lang^="en"] .madena-header {
    position: relative;
    padding: 12px 24px !important;
  }
  html[lang^="en"] .madena-header__logo img {
    height: 40px !important;
    max-height: 40px;
    padding: 4px 10px;
  }
  html[lang^="en"] .madena-header__actions {
    gap: 10px;
    margin-left: auto;
  }
  html[lang^="en"] .madena-header__cta {
    display: none !important;
  }
  html[lang^="en"] .madena-header__toggle {
    display: block;
  }
  html[lang^="en"] .madena-header__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 16px;
    background: var(--m-primary-dark, #0f4a44);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
  }
  html[lang^="en"] .madena-header.is-open .madena-header__menu {
    display: flex;
  }
  html[lang^="en"] .madena-header__menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  html[lang^="en"] .madena-header__menu li:last-child {
    border-bottom: 0;
  }
  html[lang^="en"] .madena-header__menu a {
    display: block;
    padding: 14px 4px;
    font-size: 1.1rem;
  }
  html[lang^="en"] .madena-header__menu .madena-header__menu-cta {
    display: block;
    padding-top: 14px;
  }
  html[lang^="en"] .madena-header__menu .madena-header__menu-cta a {
    text-align: center;
    border-radius: 999px;
    background: var(--m-accent, #4db6a0);
    color: var(--m-text, #fff);
    padding: 12px 20px;
  }
}
@media (max-width: 900px) {
  html[lang^="en"] .madena-header {
    padding-inline: 16px !important;
  }
  html[lang^="en"] .madena-header__logo {
    margin-inline-start: 0;
  }
  html[lang^="en"] .madena-header__actions {
    margin-left: auto;
    margin-inline-start: auto;
  }
  html[lang^="en"] .madena-header__menu {
    left: 0;
    right: 0;
    text-align: left;
  }
  html[lang^="en"] .madena-header__menu a {
    text-align: left;
  }
  html[lang^="en"] .madena-header__menu .madena-header__menu-cta a {
    text-align: center;
  }
}
@media (max-width: 400px) {
  html[lang^="en"] .madena-header__actions {
    gap: 6px;
  }
  html[lang^="en"] .madena-header__logo img {
    padding: 3px 8px;
  }
}

/* EN header overlap fix: an older mobile rule (max-width:781px) pinned
   .madena-header__logo with position:absolute; right:0, which stacked the
   logo on top of the language switcher + hamburger in LTR. */
@media (max-width: 900px) {
  html[lang^="en"] .madena-header__bar {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    direction: ltr;
  }
  html[lang^="en"] .madena-header__logo {
    position: static !important;
    transform: none !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    flex: 0 0 auto;
    margin: 0;
  }
  html[lang^="en"] .madena-header__actions {
    position: static;
    flex: 0 0 auto;
    margin-left: auto;
    gap: 10px;
  }
  html[lang^="en"] .madena-header__lang {
    position: relative;
    display: block !important;
  }
  html[lang^="en"] .madena-header__toggle {
    position: relative;
    flex: 0 0 44px;
    margin: 0;
  }
}

/* Testimonials ("What Our Clients Say"): side margins */
.madena-testimonials {
  padding-inline: 40px !important;
}
.madena-testimonials .ts {
  width: auto;
  margin-inline: auto;
  max-width: 1200px;
}
.madena-testimonials h2 {
  margin-inline: auto;
  padding-inline: 8px;
  text-align: center;
}
@media (max-width: 781px) {
  .madena-testimonials {
    padding-inline: 20px !important;
  }
}

/* Footer: stack columns on mobile/tablet, centered and readable */
@media (max-width: 781px) {
  .madena-footer {
    padding: 40px 24px 24px !important;
  }
  .madena-footer .wp-block-columns,
  .madena-footer__cols {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: 28px !important;
  }
  .madena-footer .wp-block-columns > .wp-block-column {
    flex-basis: 100% !important;
    width: 100%;
    min-width: 0;
    text-align: center;
  }
  .madena-footer__logo img {
    margin-inline: auto;
  }
  .madena-footer .wp-block-navigation,
  .madena-footer .wp-block-navigation__container {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .madena-footer .wp-block-social-links {
    justify-content: center;
  }
  .madena-footer h3 {
    margin-bottom: 0.6rem;
  }
  .madena-footer__copy {
    padding-top: 16px;
  }
}

.otgs-development-site-front-end {
  display: none;
}

/* single certificate: smaller image */
.single-madena_certificate .wp-block-post-featured-image {
  max-width: 380px;
  margin-inline: auto;
}
.single-madena_certificate .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
}
@media (max-width: 600px) {
  .single-madena_certificate .wp-block-post-featured-image {
    max-width: 260px;
  }
}


