/* Blog CSS - cleaned */

/* ===============================
   Variables
   =============================== */
:root {
  --edb-teal-dark: #05465b;
  --edb-teal: #3188a0;
  --edb-teal-light: #badee6;
  --edb-teal-lightest: #dbedf1;
  --edb-coral: #f2786b;
  --edb-yellow: #f7c974;
  --edb-cream: #fff8ef;
  --edb-text: #3e464b;
  --edb-muted: #66777d;
  --edb-radius: 28px;
}

/* ===============================
   Global blog typography/layout
   =============================== */
.edb-blog-page h1,
.edb-blog-page h2,
.edb-blog-page h3,
.edb-blog-page h4,
.edb-blog-page h5,
.edb-blog-page h6,
.edb-category-page h1,
.edb-category-page h2,
.edb-category-page h3,
.edb-category-page h4,
.edb-category-page h5,
.edb-category-page h6,
.edb-blog-single h1,
.edb-blog-single h2,
.edb-blog-single h3,
.edb-blog-single h4,
.edb-blog-single h5,
.edb-blog-single h6 {
  font-family: "Poppins", sans-serif !important;
}

.edb-container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

/* ===============================
   Shared meta/icons/buttons
   =============================== */
.edb-post-meta,
.edb-post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.edb-post-card-meta {
  gap: 12px;
  color: var(--edb-teal-dark);
  font-size: 13px;
  font-weight: 700;
}

.edb-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.edb-meta-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  fill: currentColor;
  flex: 0 0 auto;
}

.edb-button,
.edb-section-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.edb-button {
  min-height: 52px;
  padding: 0 28px;
}

.edb-button:hover,
.edb-section-button:hover {
  transform: translateY(-2px);
}

.edb-button-primary {
  background: var(--edb-teal-dark);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 75, 95, 0.2);
}

.edb-button-light {
  background: #fff;
  color: var(--edb-teal-dark);
  margin-top: 24px;
}

.edb-section-button {
  gap: 12px;
  min-height: 44px;
  padding: 0 20px;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--edb-teal-dark);
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(0, 75, 95, 0.08);
}

.edb-section-button:hover {
  color: var(--edb-teal-dark);
  box-shadow: 0 12px 24px rgba(0, 75, 95, 0.12);
}

.edb-section-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===============================
   Blog cards / grids
   =============================== */
.edb-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.edb-post-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 75, 95, 0.08);
  border: 1px solid rgba(0, 75, 95, 0.08);
}

.edb-post-card-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.edb-post-card-content {
  padding: 22px;
}

.edb-category-pill,
.edb-post-card-category {
  display: inline-flex;
  align-items: center;
  background: var(--edb-cat-color, #f45f62);
  color: #4d4a5d;
  border-radius: 999px;
  font-weight: 800;
}

.edb-category-pill {
  padding: 8px 18px;
  margin-bottom: 20px;
}

.edb-post-card-category {
  padding: 5px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}

.edb-post-card h3 {
  font-size: 23px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.edb-post-card h3 a {
  color: var(--edb-text);
  text-decoration: none;
}

.edb-post-card p {
  color: var(--edb-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.edb-post-grid-small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.edb-post-grid-small .edb-post-card-content {
  padding: 18px;
}

.edb-post-grid-small .edb-post-card h3 {
  margin-bottom: 16px;
}

.edb-post-grid-small .edb-post-card-image img {
  height: 150px;
}

@media (max-width: 900px) {
  .edb-post-grid,
  .edb-post-grid-small {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   Hero areas
   =============================== */
.edb-post-hero,
.edb-blog-hero {
  background: linear-gradient(135deg, #00465a, #006b7e);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.edb-post-hero {
  padding: 40px 0 80px;
}

.edb-blog-hero {
  padding: 95px 0 120px;
}

.edb-post-hero::after,
.edb-blog-hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -55px;
  height: 110px;
  background: #fff;
  border-radius: 50% 50% 0 0;
}

.edb-post-hero-inner,
.edb-blog-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
}

.edb-post-hero-inner {
  grid-template-columns: 1fr 520px;
  gap: 60px;
}

.edb-blog-hero-inner {
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 64px;
}

.edb-blog-hero .edb-container {
  position: relative;
  z-index: 2;
}

.edb-blog-hero-copy {
  max-width: 680px;
}

.edb-blog-hero-featured-image {
  position: relative;
}

.edb-breadcrumbs {
  font-size: 14px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.85);
}

.edb-breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.edb-breadcrumbs span {
  margin: 0 8px;
}

.edb-script-heading {
  color: var(--edb-yellow);
  font-size: 24px;
  font-family: "Lemon Tuesday", cursive;
  margin: 0 0 10px;
}

.edb-post-hero h1,
.edb-blog-hero h1 {
  color: #fff;
  line-height: 1.05;
  margin: 0 0 22px;
  font-weight: 800;
}

.edb-post-hero h1 {
  font-size: clamp(42px, 5vw, 42px);
}

.edb-blog-hero h1 {
  font-size: clamp(46px, 6vw, 46px);
  font-weight: 700;
}

.edb-blog-hero p:not(.edb-script-heading) {
  font-size: 20px;
  line-height: 1.6;
  max-width: 620px;
  opacity: 0.8;
}

.edb-post-intro {
  font-size: 21px;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.95);
}

.edb-post-meta {
  gap: 18px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 980px) {
  .edb-blog-hero-inner,
  .edb-post-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .edb-blog-hero-featured-image {
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .edb-post-hero {
    padding: 50px 0 90px;
  }
}

@media (max-width: 600px) {
  .edb-post-hero::after,
  .edb-blog-hero::after {
    display: none;
  }
}

/* ===============================
   Blog filter tabs
   =============================== */
.edb-blog-tabs-section {
  padding: 34px 0 20px;
  background: #fff;
}

.edb-blog-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.edb-blog-tabs a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--edb-teal-dark);
  color: var(--edb-teal-dark);
  font-weight: 800;
  text-decoration: none;
  background: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.edb-blog-tabs a:hover,
.edb-blog-tabs a.active {
  background: var(--edb-filter-color, var(--edb-teal-dark));
  border-color: var(--edb-filter-color, var(--edb-teal-dark));
  color: #4d4a5d;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 75, 95, 0.12);
}

.edb-blog-tabs a:first-child {
  --edb-filter-color: var(--edb-teal-dark);
}

.edb-blog-tabs a:first-child.active,
.edb-blog-tabs a:first-child:hover {
  color: #fff;
}

/* ===============================
   Blog sections
   =============================== */
.edb-blog-section {
  padding: 80px 0;
  background: #fff;
}

.edb-blog-section-blue {
  background: var(--edb-teal-light);
}

.edb-section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.edb-section-heading h2,
.edb-split-blog-copy h2 {
  color: var(--edb-text);
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 12px;
}

.edb-section-heading p,
.edb-split-blog-copy p {
  color: var(--edb-muted);
}

.edb-split-blog-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.edb-split-blog-copy {
  max-width: 300px;
}

@media (max-width: 1000px) {
  .edb-split-blog-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .edb-split-blog-copy {
    max-width: 560px;
  }
}

/* Section decorative images */
.edb-section-decor {
  position: relative;
  overflow: hidden;
}

.edb-section-decor::before,
.edb-section-decor::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

.edb-section-decor > .edb-container {
  position: relative;
  z-index: 2;
}

.edb-section-decor-latest::before {
  left: 8%;
  top: 34px;
}

.edb-section-decor-latest::after {
  right: 8%;
  top: 160px;
  transform: rotate(14deg);
}

.edb-section-decor-families::before {
  left: 2%;
  bottom: 40px;
  width: 120px;
  height: 120px;
  transform: scaleX(-1);
  background-image: url("https://edubase.co.nz/wp-content/uploads/2025/08/Artboard-11-webp.webp");
}

.edb-section-decor-families::after {
  right: 4%;
  top: 48px;
  transform: rotate(12deg);
  background-image: url("https://edubase.co.nz/wp-content/uploads/2025/09/Artboard-6-copy-2.webp");
}

.edb-section-decor-educators::before {
  left: 3%;
  bottom: 40px;
  transform: rotate(10deg);
  background-image: url("https://edubase.co.nz/wp-content/uploads/2025/08/Artboard-1-copy-2webp.webp");
}

.edb-section-decor-educators::after {
  right: 5%;
  top: 130px;
  transform: rotate(-8deg);
  background-image: url("https://edubase.co.nz/wp-content/uploads/2025/08/Artboard-1-copy-3.png");
}

.edb-section-decor-families .edb-script-heading {
  color: var(--edb-coral);
}

.edb-section-decor-educators .edb-script-heading {
  color: var(--edb-yellow);
}

@media (max-width: 900px) {
  .edb-section-decor::before,
  .edb-section-decor::after {
    display: none;
  }
}

/* All posts / pagination */
.edb-all-posts-section {
  background: #fff;
  padding-top: 90px;
  padding-bottom: 100px;
}

.edb-all-posts-grid {
  margin-top: 36px;
}

.edb-blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.edb-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(5, 70, 91, 0.18);
  color: var(--edb-teal-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 75, 95, 0.06);
}

.edb-blog-pagination .page-numbers.current,
.edb-blog-pagination .page-numbers:hover {
  background: var(--edb-teal-dark);
  color: #fff;
  border-color: var(--edb-teal-dark);
}

.edb-blog-pagination .prev,
.edb-blog-pagination .next {
  padding: 0 20px;
}

.edb-empty-posts {
  text-align: center;
  color: var(--edb-muted);
  font-size: 18px;
}

/* ===============================
   Image frame system
   =============================== */
.edb-image-frame {
  position: relative;
  width: min(100%, 520px);
  height: 320px;
  max-height: 320px;
  margin: 0 auto;
}

.edb-image-frame-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 75, 95, 0.18);
  border-radius: 58% 42% 49% 51% / 38% 58% 42% 62%;
}

.edb-image-frame-inner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.edb-image-frame::before,
.edb-image-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 6px solid #f7c974;
  z-index: 1;
}

.edb-image-frame::before {
  inset: -10px -14px -10px -14px;
  border-radius: 60% 40% 47% 53% / 36% 60% 40% 64%;
  transform: rotate(-3deg);
}

.edb-image-frame::after {
  inset: -18px -22px -14px -18px;
  border-radius: 54% 46% 52% 48% / 42% 66% 44% 68%;
  transform: rotate(3deg);
}

.edb-frame-scribble {
  position: absolute;
  z-index: 4;
  display: block;
  pointer-events: none;
  user-select: none;
}

.edb-image-frame-archive .edb-frame-scribble-two {
  width: 105px;
  top: -8%;
  left: 5%;
}

.edb-image-frame-archive .edb-frame-scribble-one {
  width: 90px;
  right: -6%;
  bottom: 5%;
}

.edb-image-frame-single .edb-frame-scribble-one {
  width: 80px;
  bottom: 2%;
  right: -2%;
}

.edb-image-frame-single .edb-frame-scribble-two {
  width: 130px;
  left: -5%;
  top: 7%;
}

.edb-image-frame-large {
  max-width: 580px;
}

.edb-image-frame-single {
  max-width: 560px;
}

.edb-image-frame-card {
  max-width: none;
}

@media (max-width: 900px) {
  .edb-image-frame {
    max-width: 460px;
  }

  .edb-frame-scribble {
    transform: scale(0.9);
  }
}

/* ===============================
   Single Post CTA
   =============================== */
.edb-single-cta {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 90px 0 0;
  --edb-cta-band-top: 22%;
  --edb-cta-wave-height: 120px;
  --edb-cta-band-color: #e8f8fb;
}

.edb-single-cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--edb-cta-band-top);
  bottom: 0;
  background: var(--edb-cta-band-color);
  z-index: 0;
}

.edb-single-cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--edb-cta-band-top) - var(--edb-cta-wave-height) + 2px);
  height: var(--edb-cta-wave-height);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23e8f8fb' d='M0,96L60,85.3C120,75,240,53,360,48C480,43,600,53,720,64C840,75,960,85,1080,80C1200,75,1320,53,1380,42.7L1440,32L1440,120L1380,120C1320,120,1200,120,1080,120C960,120,840,120,720,120C600,120,480,120,360,120C240,120,120,120,60,120L0,120Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center bottom;
  z-index: 0;
  pointer-events: none;
}

.edb-single-cta .edb-container {
  position: relative;
  z-index: 2;
}

.edb-single-cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 300px;
  gap: 46px;
  align-items: center;
  min-height: 280px;
  padding: 52px 0 64px;
}

.edb-single-cta-media {
  position: relative;
  width: 250px;
}

.edb-single-cta-image,
.edb-single-cta-image img {
  width: 100%;
  height: 100%;
}

.edb-single-cta-image {
  position: relative;
}

.edb-single-cta-image img {
  position: relative;
  z-index: 2;
  display: block;
  object-fit: contain;
  object-position: center;
}

.edb-single-cta-copy {
  max-width: 690px;
}

.edb-single-cta-copy h2 {
  color: var(--edb-teal-dark);
  font-family: "Poppins", sans-serif !important;
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.12;
  margin: 0 0 18px;
  font-weight: 800;
}

.edb-single-cta-copy h2::after {
  content: " ❤";
  color: var(--edb-coral);
}

.edb-single-cta-copy p {
  color: var(--edb-teal-dark);
  opacity: 0.82;
  font-size: clamp(16px, 3vw, 19px);
  line-height: 1.58;
  margin: 0;
  max-width: 640px;
}

.edb-single-cta-actions {
  display: grid;
  gap: 16px;
  align-items: center;
}

.edb-single-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.edb-single-cta-btn:hover {
  transform: translateY(-2px);
}

.edb-single-cta-btn-primary {
  background: var(--edb-teal-dark);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 75, 95, 0.16);
}

.edb-single-cta-btn-primary:hover {
  color: #fff;
}

.edb-single-cta-btn-secondary {
  background: transparent;
  color: var(--edb-teal-dark);
  border: 2px solid rgba(5, 70, 91, 0.22);
}

.edb-single-cta-btn-secondary:hover {
  color: var(--edb-teal-dark);
  background: rgba(255, 255, 255, 0.45);
}

.edb-single-cta-right-flower {
  position: absolute;
  right: -8px;
  bottom: 50px;
  width: 90px;
  height: 120px;
  pointer-events: none;
  background-image: url("https://edubase.co.nz/wp-content/uploads/2025/08/Artboard-11-webp.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 1100px) {
  .edb-single-cta-panel {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 34px;
  }

  .edb-single-cta-media {
    width: 220px;
    height: 170px;
  }

  .edb-single-cta-actions {
    grid-column: 2;
    max-width: 320px;
  }

  .edb-single-cta-right-flower {
    opacity: 0.45;
  }
}

@media (max-width: 760px) {
  .edb-single-cta {
    padding-top: 60px;
  }

  .edb-single-cta::before {
    height: 88%;
  }

  .edb-single-cta-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0 56px;
  }

  .edb-single-cta-media {
    width: 220px;
    height: 170px;
  }

  .edb-single-cta-actions {
    grid-column: auto;
    max-width: 100%;
  }

  .edb-single-cta-btn {
    width: 100%;
  }

  .edb-single-cta-right-flower {
    display: none;
  }
}

/* ===============================
   Single post content
   =============================== */
.edb-post-content-section {
  background: #fff;
  padding: 80px 0;
}

.edb-post-content {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  color: var(--edb-text);
  font-size: clamp(16px, 3vw, 18px);
  line-height: 1.8;
  overflow: visible;
}

.edb-post-content > *:first-child {
  margin-top: 0;
}

.edb-post-content > *:last-child {
  margin-bottom: 0;
}

.edb-post-content h1,
.edb-post-content h2,
.edb-post-content h3 {
  font-weight: 700;
  line-height: 1.2;
}

.edb-post-content h1 {
  color: var(--edb-teal-dark);
  font-size: clamp(24px, 4vw, 32px);
  margin: 56px 0 18px;
}

.edb-post-content h2 {
  color: var(--edb-teal-dark);
  font-size: clamp(20px, 3.5vw, 28px);
  margin: 56px 0 18px;
}

.edb-post-content h3 {
  color: var(--edb-teal);
  font-size: clamp(22px, 3vw, 26px);
  margin: 42px 0 14px;
}

.edb-post-content p {
  margin: 0 0 24px;
}

.edb-post-content strong,
.edb-post-content b {
  color: var(--edb-teal-dark);
  font-weight: 700;
}

.edb-post-content em {
  color: var(--edb-teal);
}

.edb-post-content mark {
  background: rgba(247, 201, 116, 0.45);
  color: var(--edb-teal-dark);
  padding: 0.08em 0.28em;
  border-radius: 0.35em;
}

.edb-post-content a {
  color: var(--edb-teal-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(49, 136, 160, 0.35);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.edb-post-content a:hover {
  color: var(--edb-coral);
  text-decoration-color: rgba(242, 120, 107, 0.45);
}

.edb-post-content hr {
  border: 0;
  height: 3px;
  width: 100%;
  margin: 52px 0;
  background: linear-gradient(90deg, transparent 0%, rgba(49, 136, 160, 0.18) 15%, rgba(49, 136, 160, 0.35) 50%, rgba(49, 136, 160, 0.18) 85%, transparent 100%);
  border-radius: 999px;
}

/* Lists */
.edb-post-content ul,
.edb-post-content ol {
  margin: 0 0 32px;
  padding-left: 0;
  list-style: none;
}

.edb-post-content li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 34px;
  line-height: 1.7;
}

.edb-post-content ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 10px;
  height: 10px;
  background: var(--edb-coral);
  border-radius: 50%;
}

.edb-post-content ol {
  counter-reset: edb-list-counter;
}

.edb-post-content ol > li {
  counter-increment: edb-list-counter;
}

.edb-post-content ol > li::before {
  content: counter(edb-list-counter);
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--edb-teal-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}

.edb-post-content li ul,
.edb-post-content li ol {
  margin-top: 10px;
  margin-bottom: 8px;
}

.edb-post-content li li {
  margin-bottom: 8px;
}

.edb-post-content li li::before {
  transform: scale(0.78);
  opacity: 0.8;
}

/* Quotes */
.edb-post-content blockquote {
  position: relative;
  background: linear-gradient(135deg, #e8f8fb 0%, #ffffff 100%);
  border: 0;
  border-radius: 28px;
  padding: 34px 38px 34px 92px;
  margin: 44px 0;
  color: var(--edb-teal-dark);
  box-shadow: 0 16px 34px rgba(0, 75, 95, 0.08);
}

.edb-post-content blockquote::before {
  content: "“";
  position: absolute;
  left: 28px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--edb-teal);
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
}

.edb-post-content blockquote p {
  margin: 0;
  font-size: 21px;
  line-height: 1.55;
  font-weight: 600;
}

.edb-post-content blockquote cite {
  display: block;
  margin-top: 16px;
  color: var(--edb-muted);
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
}

/* Tables */
.edb-post-content .wp-block-table {
  margin: 38px -10px;
  padding: 0 10px 22px;
  overflow: visible !important;
}

.edb-post-content table,
.edb-post-content .wp-block-table table {
  width: 100%;
  margin: 0;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #fff;
  border: 1px solid rgba(5, 70, 91, 0.08) !important;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 75, 95, 0.08);
  font-size: 16px;
  line-height: 1.6;
}

.edb-post-content table th,
.edb-post-content table td,
.edb-post-content .wp-block-table table th,
.edb-post-content .wp-block-table table td {
  border: 0 !important;
  box-shadow: none !important;
}

.edb-post-content table thead th,
.edb-post-content .wp-block-table table thead th,
.edb-post-content table:not(:has(thead)) tbody tr:first-child td,
.edb-post-content .wp-block-table table:not(:has(thead)) tbody tr:first-child td {
  background: var(--edb-teal-dark) !important;
  color: #fff !important;
  padding: 22px 26px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  vertical-align: middle;
  border-top: 0 !important;
}

.edb-post-content table:not(:has(thead)) tbody tr:first-child td strong,
.edb-post-content .wp-block-table table:not(:has(thead)) tbody tr:first-child td strong {
  color: #fff !important;
}

.edb-post-content table tbody td,
.edb-post-content .wp-block-table table tbody td {
  padding: 24px 26px;
  color: var(--edb-text);
  background: #fff !important;
  vertical-align: top;
}

.edb-post-content table tbody tr + tr td,
.edb-post-content .wp-block-table table tbody tr + tr td {
  border-top: 1px solid rgba(5, 70, 91, 0.075) !important;
}

.edb-post-content table th + th,
.edb-post-content table td + td,
.edb-post-content .wp-block-table table th + th,
.edb-post-content .wp-block-table table td + td {
  border-left: 1px solid rgba(5, 70, 91, 0.065) !important;
}

.edb-post-content table tbody tr:nth-child(even) td,
.edb-post-content .wp-block-table table tbody tr:nth-child(even) td {
  background: rgba(186, 222, 230, 0.18) !important;
}

.edb-post-content table tbody td:first-child,
.edb-post-content .wp-block-table table tbody td:first-child {
  color: var(--edb-teal-dark);
  font-weight: 800;
}

.edb-post-content table tbody tr:hover td,
.edb-post-content .wp-block-table table tbody tr:hover td {
  background: rgba(247, 201, 116, 0.12) !important;
}

/* Fake header row for tables without thead */
.edb-post-content table:not(:has(thead)) tbody tr:first-child td:first-child,
.edb-post-content .wp-block-table table:not(:has(thead)) tbody tr:first-child td:first-child {
  color: #fff !important;
}

.edb-post-content table:not(:has(thead)) tbody tr:nth-child(even) td,
.edb-post-content .wp-block-table table:not(:has(thead)) tbody tr:nth-child(even) td {
  background: #fff !important;
}

.edb-post-content table:not(:has(thead)) tbody tr:nth-child(odd):not(:first-child) td,
.edb-post-content .wp-block-table table:not(:has(thead)) tbody tr:nth-child(odd):not(:first-child) td {
  background: rgba(186, 222, 230, 0.18) !important;
}

.edb-post-content table p,
.edb-post-content .wp-block-table table p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.edb-post-content .wp-block-table figcaption,
.edb-post-content table caption {
  margin-top: 12px;
  color: var(--edb-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* Code */
.edb-post-content code {
  background: rgba(5, 70, 91, 0.08);
  color: var(--edb-teal-dark);
  padding: 0.16em 0.42em;
  border-radius: 0.45em;
  font-size: 0.9em;
  font-family: Consolas, Monaco, "Courier New", monospace;
}

.edb-post-content pre {
  position: relative;
  background: #073b4b;
  color: #eefcff;
  padding: 28px;
  border-radius: 24px;
  margin: 36px 0;
  overflow-x: auto;
  box-shadow: 0 18px 40px rgba(0, 75, 95, 0.15);
}

.edb-post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: 15px;
  line-height: 1.7;
}

/* Images and captions */
.edb-post-content figure {
  margin: 42px 0;
}

.edb-post-content .wp-block-image img,
.edb-post-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(0, 75, 95, 0.1);
}

.edb-post-content figcaption {
  margin-top: 12px;
  color: var(--edb-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* Columns */
.edb-post-content .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin: 42px 0;
}

.edb-post-content .wp-block-column {
  background: #f2fbfd;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(5, 70, 91, 0.08);
}

.edb-post-content .wp-block-column h3 {
  margin-top: 0;
}

/* Buttons */
.edb-post-content .wp-block-buttons {
  margin: 34px 0;
}

.edb-post-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--edb-teal-dark);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 75, 95, 0.16);
}

.edb-post-content .wp-block-button__link:hover {
  background: var(--edb-coral);
  color: #fff !important;
  transform: translateY(-2px);
}

/* Details / accordion */
.edb-post-content details {
  background: #fff;
  border: 1px solid rgba(5, 70, 91, 0.12);
  border-radius: 20px;
  padding: 0;
  margin: 16px 0;
  box-shadow: 0 8px 22px rgba(0, 75, 95, 0.05);
  overflow: hidden;
}

.edb-post-content summary {
  cursor: pointer;
  color: var(--edb-teal-dark);
  font-weight: 800;
  padding: 20px 24px;
  list-style: none;
}

.edb-post-content summary::-webkit-details-marker {
  display: none;
}

.edb-post-content summary::after {
  content: "+";
  float: right;
  color: var(--edb-coral);
  font-size: 24px;
  line-height: 1;
}

.edb-post-content details[open] summary::after {
  content: "−";
}

.edb-post-content details > p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--edb-muted);
}

/* Address */
.edb-post-content address {
  background: #f2fbfd;
  border-radius: 22px;
  padding: 24px 28px;
  margin: 34px 0;
  font-style: normal;
  color: var(--edb-teal-dark);
  border: 1px solid rgba(5, 70, 91, 0.08);
}

/* ===============================
   Responsive post content
   =============================== */
@media (max-width: 760px) {
  .edb-post-content {
    font-size: 17px;
    overflow: hidden;
  }

  .edb-post-content blockquote {
    padding: 82px 24px 28px;
  }

  .edb-post-content blockquote::before {
    left: 24px;
    top: 24px;
  }

  .edb-post-content .wp-block-columns {
    grid-template-columns: 1fr;
  }

  .edb-post-content .wp-block-table {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin: 32px 50%;
    transform: translateX(-50%);
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 14px;
  }

  .edb-post-content .wp-block-table table,
  .edb-post-content > table {
    min-width: 680px;
    width: 680px;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    border-radius: 20px;
  }

  .edb-post-content > table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .edb-post-content .wp-block-table thead th,
  .edb-post-content table thead th,
  .edb-post-content .wp-block-table tbody td,
  .edb-post-content table tbody td {
    padding: 16px 18px;
  }
}
