/* ===== Merdeqa — Flat Coral Theme with Uiverse Buttons =====
   Palette:
   text/dark: #171717
   accent: #FD774E
   section background: #D3CDC6
   card/lighter background: #E2DEDA
   white: #FFFFFF
*/

:root {
  --text-dark: #171717;
  --accent: #FD774E;
  --bg-section: #D3CDC6;
  --bg-light: #E2DEDA;
  --white: #FFFFFF;
  --border: #c4beb7;
  --shadow: 0 8px 28px rgba(23, 23, 23, 0.12);
  --radius: 18px;
}

/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg-section);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h2, h3, p {
    color: var(--text-dark);
}

/* Container */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Navbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.25);  /* semi-transparent base */
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-dark); }
.logo-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.logo-text { letter-spacing: .2px; }
.navlinks { display: flex; gap: 20px; align-items: center; }
.navlinks a { color: var(--text-dark); text-decoration: none; font-weight: 500; opacity: .9; }
.navlinks a:hover { opacity: 1; color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 40px; align-items: center; min-height: 72vh; padding: 40px 20px;
}
.hero h1 { font-size: clamp(28px, 4.2vw, 46px); margin: 0 0 14px; color: var(--text-dark); }

@media (max-width: 385px) {
    .hero h1 {
      font-size: clamp(22px, 7vw, 46px);
    }
}
.hero__sub { font-size: 1.1rem; color: var(--text-dark); opacity: .9; margin: 0 0 22px; max-width: 52ch; }
.hero__cta { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }

.hero__bullets { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.hero__bullets li { display: flex; align-items: center; gap: 10px; }
.hero__bullets svg { width: 20px; height: 20px; fill: var(--accent); }

.hero__photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-light);
  margin: 0;              /* remove default browser margin */
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__photo figcaption { font-size: .85rem; color: #4d4d4d; padding: 10px 12px; background: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section h2 { font-size: 2rem; margin: 0 0 8px; color: var(--text-dark); }
.section__lead { color: var(--text-dark); margin: 0 0 28px; }

/* Flat color alternation (no gradients) */
#how, #about { background: var(--bg-light); }
#features { background: var(--text-dark); }
#value, #testimonials, #contact { background: var(--bg-section); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
}
.card__body { padding: 32px 22px 34px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--text-dark); }
.card p { margin: 0; color: var(--text-dark); }
.media { position: relative; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.video { width: 100%; height: 100%; object-fit: cover; }

/* Feature card icon */
.card--feature { padding: 16px 16px 6px; }
.icon { padding-bottom: 0px; }
.card--feature .icon svg { width: 28px; height: 28px; fill: var(--accent); }

/* Quote cards */
.card--quote {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
}
.card--quote blockquote { margin: 6px 0 10px; font-size: 1.02rem; }
.card--quote .quote__meta { color: #555; font-size: .95rem; }
.stars { margin: 0; color: var(--accent); letter-spacing: 2px; font-weight: 700; }

/* ---------- Value Proposition ---------- */
.vp__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ticklist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.ticklist li { position: relative; padding-left: 28px; }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: .3rem; width: 18px; height: 18px;
  background: var(--accent);
  -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2l-3.5-3.5-1.4 1.4L9 19 20.3 7.7l-1.4-1.4z"/></svg>') no-repeat center/contain;
  mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2l-3.5-3.5-1.4 1.4L9 19 20.3 7.7l-1.4-1.4z"/></svg>') no-repeat center/contain;
}

/* ---------- About ---------- */
.about__list { margin: 10px 0 0; padding: 0; list-style: none; color: var(--text-dark); }
.about__list li { margin: .3rem 0; }

/* ---------- Form ---------- */
.form {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
label { font-weight: 600; color: var(--text-dark); }
input, textarea {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; font: inherit; outline: none;
  background: var(--white); transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(253, 119, 78, 0.25);
}

/* ---------- Uiverse Buttons (Primary + Secondary) ---------- */
/* From Uiverse.io by R1SH4BH81 (adapted to Merdeqa variables) */
.cssbuttonsIoButton {
  background: var(--accent);
  color: var(--white);
  font-family: inherit;
  border: 1px solid var(--accent);
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  border-radius: 2rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  height: 2.8em;
  padding-right: 3.3em;
  padding-left: 1rem;
  cursor: pointer;
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease;
}
.cssbuttonsIoButton .icon {
  background: var(--white);
  margin-left: 1em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.2em;
  width: 2.2em;
  border-radius: 2rem;
  right: 0.3em;
  transition:
    background-position 0.5s ease-out,
    border 0.2s ease-out,
    color 0.5s ease-out,
    transform 0.3s ease;
  will-change: width, transform;
}
.cssbuttonsIoButton .icon svg {
  width: 1.1em;
  color: var(--accent);
  transition: transform 0.3s ease-out;
  will-change: transform;
}
.cssbuttonsIoButton:hover {
  background-color: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
}
.cssbuttonsIoButton:hover .icon svg {
  transform: translateX(0.1em) rotate(-25deg);
}
.cssbuttonsIoButton:active .icon {
  transform: scale(0.95);
}

/* Secondary variant (outlined dark) */
.cssbuttonsIoButton.secondary {
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
}
.cssbuttonsIoButton.secondary .icon {
  background: var(--text-dark);
}
.cssbuttonsIoButton.secondary .icon svg {
  color: var(--white);
}
.cssbuttonsIoButton.secondary:hover {
  background: var(--text-dark);
  color: var(--white);
}
.cssbuttonsIoButton.secondary:hover .icon {
  background: var(--text-dark);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--text-dark);
  color: var(--bg-light);
  margin-top: 40px;
}
.footer__grid {
  display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 20px;
}
.footer .brand { color: var(--bg-light); }
.footer h4 { margin: 0 0 8px; color: var(--accent); }
.footer a { color: #eaeaea; text-decoration: none; opacity: .92; }
.footer a:hover { opacity: 1; color: var(--accent); }
/* Desktop */
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Tablet */
@media (max-width: 1024px) {
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 620px) {
  .footer__cols { grid-template-columns: 1fr; }
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.copy {
  text-align: center; padding: 14px;
  color: #bbb; border-top: 1px solid rgba(255,255,255,.08);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  
  .hero__grid { grid-template-columns: 1fr .9fr; }
  /* Új layout a Value Proposition részhez (mobil fix) */
  .vp__item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Mobilon minden értékajánlat sor azonos sorrendű: először a kép, utána a szöveg */
  .vp__item:nth-child(2n) {
    grid-template-columns: 1fr;
  }
  .vp__item:nth-child(2n) .vp__media {
    order: 0;
  }
  .vp__item:nth-child(2n) .vp__content {
    order: 1;
  }
}

@media (max-width: 780px) {
  .navlinks { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .cards--4, .cards--3 { grid-template-columns: 1fr; }
  .vp__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

/* ===== Value Proposition — cikkcakk layout ===== */

/* A teljes szekció háttere az eddigi szabály szerint: #value { background: var(--bg-section); }
   — ezt nem kell módosítanod, már benne van. */

.vp { display: grid; gap: 48px; }

/* Egy-egy “sor” (kép + szöveg) */
.vp__item {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr; /* kis aszimmetria, elegáns ritmus */
  align-items: center;
  gap: 32px;
}

/* Cikkcakk: a 2. elemnél felcseréljük a sorrendet (már az HTML-ben is váltott,
   ez a szabály biztosítja, hogy desktopon kétoszlopos maradjon szépen) */
.vp__item:nth-child(2n) {
  grid-template-columns: 0.95fr 1.05fr;
}

/* Kép konténer — négyzet alakú képek */
.vp__media {
  border-radius: var(--radius);
  overflow: hidden;
  /* border: 1px solid var(--border); */
  /* box-shadow: var(--shadow); */
  /* background: #0001; */
  aspect-ratio: 1 / 1; /* ensures perfect square container */
  display: flex;
}

.vp__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Szöveg oszlop */
.vp__content h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--text-dark);
}
.vp__content .ticklist { margin-top: 12px; }

/* Mobil és tablet – stack egymás alá */
@media (max-width: 1024px){
  .vp__item {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  /* Mobilon a “kép → szöveg” sorrend egységes, jobban fogyasztható */
  .vp__item:nth-child(2n) {
    grid-template-columns: 1fr;
  }
}

/* ===== Merdeqa Step Card (v2 with image + 4:3 aspect) ===== */
.mq-stepcard {
  position: relative;
  background: var(--white);
  border: 1px solid var(--text-dark);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(23,23,23,.12);
  overflow: visible;
  color: #171717;
  margin-top: 20px;
}

/* --- Media (image container) --- */
.mq-stepcard__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;          /* ensures fixed 4:3 ratio */
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: #000;             /* fallback if no image */
}

.mq-stepcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* fill container nicely */
  display: block;
}

/* --- Content --- */
.mq-stepcard__content {
  padding: 32px 22px 34px;
}

.mq-stepcard__title {
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.2;
  font-size: 1.15rem;           /* matches existing HOW cards */
  color: var(--text-dark);
}

.mq-stepcard__text {
  margin: 0;
  font-size: 1rem;              /* matches existing HOW cards */
  color: #171717;
}

/* --- Step number overlay --- */
.mq-stepcard__badge {
  position: absolute;
  top: -26px;
  left: 16px;
  font-weight: 800;
  line-height: 1;
  font-size: 8rem;
  /* font-size: clamp(72px, 12vw, 140px); */
  color: var(--accent);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 5; /* bring forward */
}

/* --- Responsive adjustments --- */
@media (max-width: 420px) {
  .mq-stepcard__content { padding: 24px 20px 28px; }
  .mq-stepcard__badge { top: -28px; }
}

/* Make a specific step card span the whole row in the 4-col grid */
.cards--4 > .mq-stepcard--wide {
  grid-column: 1 / -1; /* full width across all columns */
}

/* 5th card: make its media area only 50px tall */
.mq-stepcard--wide .mq-stepcard__media {
  height: 100px;         /* fixed height */
  aspect-ratio: auto;   /* override 4:3 from base */
}

.mq-stepcard--wide .mq-stepcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* keep it nicely cropped */
  display: block;
}

/* ===== Value (Üzleti előnyök) — blur GRADIENT + title on top ===== */

/* Tweaks as variables so you can fine-tune quickly */
:root {
  --vp-blur-amount: 16px;     /* blur strength */
  --vp-blur-band: 100px;      /* total blurred overlay height */
  --vp-blur-solid: 40px;      /* bottom part fully blurred (title zone) */
  --vp-brighten: 1.20;   /* 1.0 = no change, >1 brightens */
}

#value .mq-stepcard { overflow: hidden; }

#value .mq-stepcard__media {
  position: relative;
  isolation: isolate; /* important for mix-blend-mode fallback */
}

#value .mq-stepcard__media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--vp-blur-band);
  pointer-events: none;

  /* Blur + brighten */
  backdrop-filter: blur(var(--vp-blur-amount)) brightness(var(--vp-brighten)) saturate(1.02);
  -webkit-backdrop-filter: blur(var(--vp-blur-amount)) brightness(var(--vp-brighten)) saturate(1.02);

  /* ONE element, TWO backgrounds:
     1) white wash for lightening (screen)
     2) warm tint for contrast (normal)
  */
  background:
    linear-gradient(
      to top,
      rgba(255,255,255,0.18) 0%,
      rgba(255,255,255,0.12) var(--vp-blur-solid),
      rgba(255,255,255,0.00) 100%
    ),
    linear-gradient(
      to top,
      rgba(211,205,198,0.40) 0%,
      rgba(211,205,198,0.30) calc(var(--vp-blur-solid) + 8px),
      rgba(211,205,198,0.00) 100%
    );
  background-blend-mode: screen, normal;

  /* Smooth fade-in of the blur from bottom upward */
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0,0,0,1) 0,
    rgba(0,0,0,1) var(--vp-blur-solid),
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to top,
    rgba(0,0,0,1) 0,
    rgba(0,0,0,1) var(--vp-blur-solid),
    rgba(0,0,0,0) 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  /* Helps some GPUs render the mask edge smoothly */
  transform: translateZ(0);
}

/* Pull content up so the title sits on the fully blurred zone */
#value .mq-stepcard__content {
  margin-top: calc(var(--vp-blur-solid) * -1);
  padding-top: 16px;
}

/* Title styling over the blur */
#value .mq-stepcard__title {
  position: relative;
  top: -12px;
  z-index: 2;
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 1.35rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.14), 0 0 1px rgba(0,0,0,.12);
  /* Optional micro-chip if a photo is too busy:
     background: rgba(255,255,255,.22);
     border-radius: 10px;
  */
}

/* Slightly reduce overlap on very small screens
@media (max-width: 520px) {
  :root { --vp-blur-band: 100px; --vp-blur-solid: 34px; }
}
 */

#value .ticklist {
  margin-top: 28px;
}

@media (max-width: 920px) and (min-width: 780px) {
  #value .mq-stepcard__title {
    font-size: 1.15rem;
  }
}

@media (max-width: 780px) {
    #value .mq-stepcard__title {
      font-size: 1.35rem;
    }
}

@media (max-width: 780px) {
    .mq-stepcard--wide .mq-stepcard__media {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;          /* ensures fixed 4:3 ratio */
    }
}

#features h3 {
    color: var(--white);
}

#features p {
    color: var(--bg-section);
}

#features .card {
    background: transparent;
    
    
}

#value {
  position: relative;
}

/* Icon + title on the same row (features) */
#features .card--feature {
  display: grid;                         /* override the base flex */
  grid-template-columns: auto 1fr;       /* icon | title */
  grid-auto-rows: min-content;
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
  padding: 24px 24px;                         /* keep it comfy */
  backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

#features .card--feature .icon {
  grid-column: 1;
  grid-row: 1;
  padding: 0;                            /* kill the bottom padding so it aligns */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;                           /* lock a neat icon box */
  height: 32px;
}

#features .card--feature .icon svg,
#features .card--feature .icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  /* keep your existing accent for SVGs */
  /* (imgs will just be the image) */
}

#features .card--feature h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;                             /* align perfectly with the icon */
  line-height: 1.2;
}

#features .card--feature p {
  grid-column: 1 / -1;                   /* span under both icon + title */
  grid-row: 2;
  margin: 6px 0 0;
}

#features {
  position: relative;
  background: var(--text-dark); /* or any solid/gradient color you want */
  overflow: hidden;
}

/* JPG overlay texture or pattern */
#features::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/images/feature_background.jpg') center center / cover no-repeat;
  opacity: 0.15; /* adjust the visibility of the photo */
  /* mix-blend-mode: overlay; /* makes the texture interact nicely with the color */
  pointer-events: none;
  z-index: 0;
}

/* Ensure the content stays on top */
#features .container {
  position: relative;
  z-index: 1;
}

/* === Feature cards responsive columns === */
/* 2 columns under 1024px */
@media (max-width: 1024px) {
  /* Ensure both 4-col and 3-col grids collapse to 2 */
  #features .cards,
  #features .cards--4,
  #features .cards--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 1 column under 780px */
@media (max-width: 780px) {
  #features .cards,
  #features .cards--4,
  #features .cards--3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- About photo with Uiverse buttons (unified) ---------- */
.about__photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--text-dark);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about__photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Button container overlay */
.about__buttons {
  position: absolute;
  bottom: 24px;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr; /* split into two halves */
  justify-items: center;          /* center each button horizontally in its half */
  align-items: center;            /* vertical centering */
  z-index: 2;
  pointer-events: none; /* keeps layout clean but allows JS toggling */
}

.about__buttons .about-btn {
  pointer-events: auto; /* make buttons clickable again */
}

/* Keep buttons inline and spaced nicely */
.about__buttons button {
  display: inline-block;
  margin: 0 40px;
  vertical-align: middle;
}

/* Background blur behind both buttons */
.about__buttons::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: auto;
  height: calc(100% + 12px);
  padding: 10px 24px;
  border-radius: 3rem;
  z-index: -1;
}

/* On very narrow screens, allow slight scaling instead of stacking */
@media (max-width: 480px) {
  .about__buttons {
    white-space: normal; /* allow wrapping if space becomes critically small */
  }
  .about__buttons button {
    margin: -10px 4px;
  }
}

/* --- Fix misaligned icon circle inside About overlay buttons --- */
.about__buttons .cssbuttonsIoButton {
  position: relative;
  vertical-align: middle;
  line-height: normal; /* neutralize baseline drift */
}

/* Reset icon positioning exactly to match proper center alignment */
.about__buttons .cssbuttonsIoButton .icon {
    position: absolute;
    top: 50%;
    right: 0.3em;                 /* same as global default */
    transform: translateY(-50%);  /* perfect vertical center */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2em;
    width: 2.2em;
}

/* Style first and second line differently */
.cssbuttonsIoButton span:first-child {
  display: block;
  font-size: 0.8em;         /* slightly smaller */
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.1;
  margin-bottom: 2px;
}

.cssbuttonsIoButton span:nth-child(2) {
  display: block;
  font-size: 1.1em;          /* slightly larger for emphasis */
  font-weight: 700;
  line-height: 1.1;
}

/* Optional: fine-tune vertical spacing */
.cssbuttonsIoButton {
  line-height: 1.15;
  padding-top: 0.3em;
  padding-bottom: 0.4em;
}

/* --- Smaller icon image inside Uiverse button (About section) --- */
.cssbuttonsIoButton .icon img {
  width: 14px;       /* adjust this for size — try 14–18px if you want finer tuning */
  height: 14px;
  object-fit: contain;
  display: block;
  margin: auto;
}

/* keep the circular icon background size consistent */
.cssbuttonsIoButton .icon {
  height: 2em;
  width: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Rotate the about_plus icon smoothly on hover --- */
.cssbuttonsIoButton .icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
  margin: auto;
  transition: transform 0.3s ease-in-out;
  transform-origin: center;
}

/* Rotate 45° on hover */
.cssbuttonsIoButton:hover .icon img {
  transform: rotate(45deg);
}

/* ===== Tooltip (About Us section — show on button hover only) ===== */
.tooltip-container {
  position: relative;
  display: inline-block;
}

/* Tooltip box */
.tooltip {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 12px 18px;
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: var(--text-dark);
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: left;
  max-width: 220px;
  pointer-events: none;
  z-index: 10;
}

.tooltip strong {
  color: var(--accent);
}

/* Tooltip arrow */
.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgba(255,255,255,0.9) transparent transparent transparent;
}

/* 👇 Only the button triggers the tooltip */
.about-btn:hover + .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Responsive, auto-wrapping tooltip */
.tooltip {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);

  /* sizing + wrapping */
  display: inline-block;
  width: fit-content;           /* grow to content */
  min-width: 160px;             /* don't get too tiny */
  max-width: clamp(240px, 42vw, 380px); /* sensible cap, responsive */
  white-space: normal;          /* allow wrapping */
  line-height: 1.35;
  overflow-wrap: anywhere;      /* break long words/URLs if needed */

  /* visuals (unchanged from your style) */
  padding: 12px 18px;
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: var(--text-dark);
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: left;
  pointer-events: none;
  z-index: 10;
}

/* keep the arrow centered under a multi-line tooltip */
.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgba(255,255,255,0.9) transparent transparent transparent;
}

/* Extra-small screens: allow wider tooltips relative to viewport */
@media (max-width: 520px) {
  .tooltip {
    max-width: min(88vw, 420px);
  }
}

.about__cover {
  position: absolute;
  inset: 0;                 /* match the image bounds exactly */
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal rectangles */
  pointer-events: none;     /* the buttons under remain clickable */
}

/* Each piece is identical */
.about__piece {
  /* Visual look: tweak these to taste */
  background: rgba(255, 255, 255, 0.5);      /* subtle wash */
  backdrop-filter: blur(46px);  /* optional: glassy feel */
  -webkit-backdrop-filter: blur(2px) saturate(1.02);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;     /* horizontal centering */


  /* Let the two pieces perfectly follow the parent's rounding */
  border-radius: inherit;
}

/* About cover pieces are JS-controlled */
.about__cover { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.about__piece { opacity: 0; transition: opacity .25s ease; }
.about__piece.is-visible { opacity: 1; }

/* Buttons sit above the blur */
.about__buttons { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: 24px; }

/* Smoothly hide/reveal the other button */
.about__buttons .about-btn {
  transition: opacity 0.25s ease, transform 0.25s ease;
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease;
}

.about__buttons .about-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.about__grid {
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.about__photo {
  width: calc((2 * (100% / 3)) - 6px);
  flex-shrink: 0;
}

.about__column {
  flex: 1; /* takes remaining 1/3 width */
  background: url('assets/images/about_us_card.svg') center center / cover no-repeat; /* ← image background */
  border-radius: var(--radius);
  border: 1px solid var(--text-dark);
  box-shadow: var(--shadow);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 1024px) {
  .about__grid {
    flex-direction: column;
  }
  .about__photo,
  .about__column {
    width: 100%;
  }
}

.hero__cta_and_hero__bullets {
    display: flex;
}

@media (min-width: 1025px) {
    .hero__cta_and_hero__bullets {
        flex-direction: column;
    }
}

@media (max-width: 780px) {
    .hero__cta_and_hero__bullets {
        display: none;
    }
}

/*
 
 /* Hide the first hero__right (inside .hero__left) on wide screens */
 @media (min-width: 1025px) {
   .hero__left .hero__right {
     display: none;
   }
 }

 /* Hide the second hero__right (the standalone one) on small screens */
 @media (max-width: 1024px) {
   .hero__grid > .hero__right {
     display: none;
   }
 }

@media (max-width: 1024px) {
  .hero__grid {
    display: flex;
    flex-direction: column;
  }

  .hero__grid > .hero__right {
    display: none;
  }

  .hero__left {
    width: 100%;
    flex: 1 1 100%;
  }
}

.hero__bottom__left {
    margin: auto 0;
}

@media (min-width: 781px) {
  .only-on-smaller-than-780 {
      display: none;
  }
}

/* ===== Custom testimonial card (white top + image bottom) ===== */
.card--custom {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--text-dark);
  box-shadow: var(--shadow);
  background: var(--white);
  height: 300px; /* you can adjust total card height */
}

/* White top bar (fixed height) */
.card--custom .card__top {
  background: var(--bg-light);
  height: 32px;
  display: flex;
  align-items: center;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-dark);
  padding: 0 22px;
}

/* Image section (fills remaining space) */
.card--custom .card__image1 {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  position: relative;
  flex: 1;
  padding: 32px 22px;
  background-image: url('assets/images/testimonials_background1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card--custom .card__image2 {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  position: relative;
  flex: 1;
  padding: 32px 22px;
  background-image: url('assets/images/testimonials_background2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card--custom .card__image3 {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  position: relative;
  flex: 1;
  padding: 32px 22px;
  background-image: url('assets/images/testimonials_background3.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card--custom .card__image__maintext {
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 1px 8px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.2);
    transform: translateY(-20px);
}

.card--custom .card__image__subtext {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--bg-light);
    text-shadow: 0 1px 8px rgba(0,0,0,.6), 0 0 1px rgba(0,0,0,.2);
    transform: translateY(-20px);
}

.card--custom .card__image__source {
    position: absolute;
    bottom: 32px;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--bg-light);
    text-shadow: 0 1px 8px rgba(0,0,0,.6), 0 0 1px rgba(0,0,0,.2);
}

/* ===== Testimonials link styling ===== */
#testimonials .card__image__source a {
  color: var(--bg-light);              /* use Merdeqa orange */
  text-decoration: none;
  font-weight: 500;
}

#testimonials .card__image__source a:hover {
  color: var(--bg-light);               /* bright contrast on hover */
  text-decoration: underline;
}
