:root {
  --ibet-bg-top: #e7fff6;
  --ibet-bg-mid: #f4fffc;
  --ibet-ink: #082b29;
  --ibet-muted: #4a6f6c;
  --ibet-card: #ffffff;
  --ibet-border: #cfeee6;
  --ibet-brand: #00b488;
  --ibet-brand-strong: #00856a;
  --ibet-accent: #0c98ff;
  --ibet-highlight: #22d3b7;
  --ibet-radius: 18px;
  --ibet-shadow: 0 16px 38px rgba(0, 116, 94, 0.13);
}

body,
body .nav > li > a,
body .button,
body input,
body textarea,
body select {
  font-family: "Be Vietnam Pro", "Nunito Sans", "Segoe UI", sans-serif;
}

body {
  color: var(--ibet-ink);
  background:
    radial-gradient(circle at 90% -10%, rgba(12, 152, 255, 0.24), transparent 42%),
    radial-gradient(circle at 5% 5%, rgba(0, 180, 136, 0.22), transparent 35%),
    linear-gradient(180deg, var(--ibet-bg-top) 0%, var(--ibet-bg-mid) 36%, #ffffff 100%);
  line-height: 1.72;
}

/* Remove noisy default top message in many Flatsome demos. */
.header-top .container p:only-child,
.header-top .container .top-text:only-child {
  display: none;
}

.header-main,
.stuck .header-main {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(9px);
  border-bottom: 1px solid rgba(0, 133, 106, 0.14);
}

.header-main::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--ibet-brand), var(--ibet-accent), var(--ibet-highlight));
  opacity: 0.45;
}

.nav > li > a {
  color: #0f4641;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.nav > li.active > a,
.nav > li > a:hover {
  color: var(--ibet-brand);
}

#main,
.main {
  position: relative;
}

#main .row,
.main .row {
  max-width: 1180px;
}

.article-inner,
.post-item .box,
.section-content .col-inner,
.entry-content > .wp-block-group,
.entry-content > .wp-block-columns {
  background: var(--ibet-card);
  border: 1px solid var(--ibet-border);
  border-radius: var(--ibet-radius);
  box-shadow: var(--ibet-shadow);
}

.article-inner,
.entry-content > .wp-block-group,
.entry-content > .wp-block-columns {
  padding: clamp(20px, 2.4vw, 34px);
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  color: #054845;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.entry-content h1 {
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
  line-height: 1.2;
}

.entry-content h2 {
  position: relative;
  margin-top: 2rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.entry-content h2::after {
  content: "";
  display: block;
  width: 82px;
  height: 4px;
  margin-top: 0.45rem;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--ibet-brand), var(--ibet-accent));
}

.entry-content p,
.entry-content li {
  color: var(--ibet-muted);
  font-size: 1.03rem;
}

.entry-content strong,
.entry-content b {
  color: #07524d;
}

.entry-content a {
  color: #0079c8;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.14em;
}

.entry-content a:hover {
  color: var(--ibet-brand-strong);
}

.button,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  border-radius: 999px;
  border: 0;
  background: linear-gradient(120deg, var(--ibet-brand), var(--ibet-accent));
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 126, 101, 0.22);
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 115, 104, 0.3);
  filter: saturate(1.08);
}

img {
  border-radius: 12px;
}

.footer-wrapper,
.absolute-footer {
  background: linear-gradient(180deg, #0c3f3c 0%, #0a302e 100%);
  color: #d7f4ef;
}

.footer-wrapper a,
.absolute-footer a {
  color: #a5f3e5;
}

@media (max-width: 768px) {
  body {
    line-height: 1.64;
  }

  .article-inner,
  .entry-content > .wp-block-group,
  .entry-content > .wp-block-columns {
    padding: 16px;
    border-radius: 14px;
  }

  .entry-content h1 {
    font-size: 1.62rem;
  }

  .entry-content h2 {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .entry-content > * {
    animation: ibetFadeIn 0.45s ease both;
  }

  .entry-content > *:nth-child(2) { animation-delay: 0.04s; }
  .entry-content > *:nth-child(3) { animation-delay: 0.08s; }
  .entry-content > *:nth-child(4) { animation-delay: 0.12s; }
}

@keyframes ibetFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
