/*
Theme Name: Astra IDGroup Lite
Theme URI: https://example.com/
Description: Lightweight child theme with custom header, footer, and intro layout.
Author: Local Team
Template: astra
Version: 1.1.5
Text Domain: astra-idgroup-lite
*/

/* =========================================
   1) DESIGN TOKENS (CORE)
========================================= */
:root {
  --idg-blue: #2f79d7;
  --idg-dark-blue: #1a4f98;
  --idg-text: #122033;
  --idg-muted: #5e6f84;
  --idg-light-bg: #f3f7ff;
  --idg-border: #d9e3f3;
  --idg-card-shadow: 0 10px 25px rgba(20, 45, 84, 0.08);
  --idg-card-shadow-hover: 0 16px 34px rgba(20, 45, 84, 0.14);
  --idg-radius: 14px;
}

/* =========================================
   2) GLOBAL LAYOUT
========================================= */
body.idg-lite-body {
  margin: 0;
  color: var(--idg-text);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 180px);
  font-family: "Segoe UI", Arial, sans-serif;
}

.idg-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================================
   3) HEADER
========================================= */
.idg-topbar {
  background: #2f79d7;
  color: #fff;
  font-size: 12px;
  padding: 9px 0;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 3px solid #1b57ad;
}

.idg-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid #d7deea;
  position: sticky;
  top: 0;
  z-index: 20;
}

.idg-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 62px;
}

.idg-brand img {
  max-height: 100px;
  width: auto;
}

.idg-nav .menu {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.idg-burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #d2def0;
  border-radius: 8px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.idg-burger span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  background: #1e4e98;
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.idg-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.idg-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.idg-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.idg-nav a {
  font-size: 16px;
  text-decoration: none;
  color: #42536a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  border-radius: 2px;
  line-height: 1;
  display: inline-block;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.idg-nav a:hover,
.idg-nav a:focus-visible {
  background: #1e4e98;
  color: #fff;
  box-shadow: 0 8px 18px rgba(30, 78, 152, 0.28);
}

/* =========================================
   4) MAIN / INTRO
========================================= */
.idg-main {
  padding: 18px 0 0;
}

.idg-intro {
  background: linear-gradient(145deg, #f4f8ff 0%, #eef4ff 100%);
  border: 1px solid var(--idg-border);
  border-radius: var(--idg-radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--idg-card-shadow);
}

.idg-intro h1 {
  font-size: 31.2px;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.idg-intro-text {
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
  color: #243346;
}

.idg-intro-hidden {
  display: none;
}

.idg-intro-hidden.is-open {
  display: inline;
}

.idg-intro-toggle {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #18498e;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid #c9d9f4;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.idg-meta-wrap {
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.idg-author-avatar {
  flex: 0 0 auto;
  margin-right: 10px;
}

.idg-author-avatar img {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.idg-meta {
  font-size: 13px;
  color: #1d2430;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.idg-meta span,
.idg-meta time {
  line-height: 1.2;
}

.idg-meta time {
  color: #2f3a48;
}

.idg-intro-text + .idg-intro-text {
  margin-top: 8px;
}

.idg-inline-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.idg-pre-table-title {
  font-size: 25px;
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}

.idg-content {
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: 28px;
}

/* =========================================
   5) OFFERS TABLE / CARDS
========================================= */
.idg-offers-grid {
  display: grid;
  gap: 10px;
}

.idg-offer-card {
  border: 1px solid var(--idg-border);
  border-radius: var(--idg-radius);
  padding: 12px;
  background: #fff;
  box-shadow: var(--idg-card-shadow);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.idg-offer-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--idg-card-shadow-hover);
  border-color: #c7d7f1;
}

.idg-offer-main {
  display: grid;
  gap: 8px;
}

.idg-offer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.idg-offer-brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e4ecf9;
}

.idg-offer-brand-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.idg-offer-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1f4f9a;
  font-size: 13px;
}

.idg-stars {
  letter-spacing: 0.04em;
}

.idg-offer-bonus {
  font-size: 20px;
  line-height: 1.22;
  font-weight: 800;
  color: #0f1c30;
  letter-spacing: -0.01em;
}

.idg-offer-actions {
  display: grid;
  gap: 6px;
}

.idg-offer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  background: linear-gradient(135deg, #101c31 0%, #1a3258 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  font-size: 14px;
  padding: 8px 16px;
  box-shadow: 0 9px 18px rgba(16, 28, 49, 0.24);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.idg-offer-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 12px 22px rgba(16, 28, 49, 0.3);
}

.idg-offer-promo {
  font-size: 12px;
  color: #2f3a48;
}

.idg-offer-promo span {
  color: #6b7280;
}

.idg-offer-toggle {
  border: 0;
  background: transparent;
  color: #1d56a8;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  margin-top: 6px;
  cursor: pointer;
}

.idg-offer-extra {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--idg-border);
}

.idg-offer-extra.is-open {
  display: block;
}

.idg-offer-advantages {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.35;
  color: #2f3a48;
}

.idg-offer-params {
  margin-top: 8px;
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #374151;
}

.idg-offer-payments {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.idg-offer-payments img {
  width: 26px;
  height: 18px;
  object-fit: contain;
}

/* =========================================
   6) CATFISH (STICKY OFFER)
========================================= */
.idg-catfish {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 60;
  background: #ffffff;
  border: 1px solid #dbe2ee;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(7, 21, 47, 0.25);
  padding: 8px;
  display: grid;
  gap: 6px;
  backdrop-filter: blur(3px);
}

.idg-catfish-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.idg-catfish-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}

.idg-catfish-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.idg-catfish-rating {
  display: flex;
  gap: 5px;
  font-size: 11px;
  color: #1f4f9a;
  align-items: center;
}

.idg-catfish-bonus {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
}

.idg-catfish-actions {
  display: grid;
  gap: 4px;
}

/* =========================================
   7) FOOTER
========================================= */
.idg-footer {
  background: var(--idg-blue);
  color: #fff;
  margin-top: 24px;
}

.idg-footer-inner {
  padding: 24px 0;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.idg-footer-logo img {
  max-height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}

.idg-footer-nav .menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.idg-footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

.idg-footer-desc {
  max-width: 780px;
  font-size: 13px;
  opacity: 0.95;
}

/* =========================================
   8) RESPONSIVE (MOBILE/TABLET)
========================================= */
@media (max-width: 820px) {
  .idg-header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    position: relative;
  }

  .idg-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 52px);
  }

  .idg-burger {
    display: inline-flex;
    flex-shrink: 0;
    margin-left: auto;
    border-color: #0070c9;
    background: linear-gradient(180deg, #0070c9 0%, #3079d7 100%);
  }

  .idg-burger span:not(.screen-reader-text) {
    background: #fff;
    padding: 1px;
  }

  .idg-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 4px;
    z-index: 50;
    background: #ffffff;
    border: 1px solid #d9e3f3;
    border-radius: 12px;
    box-shadow:
      0 12px 28px rgba(16, 34, 64, 0.12),
      0 4px 12px rgba(16, 34, 64, 0.06);
    padding: 10px;
  }

  .idg-nav.is-open {
    display: block;
  }

  .idg-nav .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .idg-nav .menu > li {
    margin: 0;
  }

  .idg-nav .sub-menu {
    list-style: none;
    margin: 4px 0 0 0;
    padding: 4px 0 4px 8px;
    border-left: 2px solid #e4ecf9;
  }

  .idg-nav .sub-menu a {
    font-size: 10px;
    padding: 8px 10px;
    text-transform: none;
    font-weight: 600;
  }

  .idg-nav a {
    font-size: 12px;
    line-height: 1.25;
    padding: 12px 12px;
    display: block;
    border-radius: 8px;
  }

  body.idg-menu-open .idg-header {
    z-index: 40;
  }

  .idg-topbar {
    font-size: 10px;
    padding: 7px 0;
  }

  .idg-intro {
    padding: 12px;
  }

  .idg-intro h1 {
    font-size: 25.2px;
    margin-bottom: 7px;
  }

  .idg-intro-text {
    font-size: 14px;
    line-height: 1.38;
  }

  .idg-meta {
    font-size: 12px;
    gap: 3px;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .idg-author-avatar img {
    width: 42px;
    height: 42px;
  }

  .idg-meta-wrap {
    margin-top: 8px;
  }

  .idg-inline-meta {
    gap: 8px;
  }

  .idg-pre-table-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .idg-offers-grid {
    gap: 8px;
  }

  .idg-offer-card {
    padding: 8px;
  }

  .idg-offer-brand img {
    width: 52px;
    height: 52px;
  }

  .idg-offer-brand-name {
    font-size: 13px;
  }

  .idg-offer-bonus {
    font-size: 15px;
    line-height: 1.2;
  }

  .idg-offer-cta {
    min-height: 38px;
    font-size: 13px;
  }

  .idg-offer-advantages,
  .idg-offer-params {
    font-size: 11px;
  }

  .idg-catfish {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 7px;
    gap: 5px;
  }

  .idg-catfish-brand img {
    width: 40px;
    height: 40px;
  }

  .idg-catfish-bonus {
    font-size: 13px;
  }
}

/* =========================================
   9) RESPONSIVE (DESKTOP ENHANCEMENTS)
========================================= */
@media (min-width: 1024px) {
  .idg-catfish {
    left: auto;
    right: 16px;
    bottom: 16px;
    width: 340px;
  }
}

/* =========================================
   10) CONTENT POLISH (GUTENBERG CONTENT AREA)
========================================= */

/* Additional content tokens (scoped variables extension). */
:root {
  --idg-gold: #f3c969;
  --idg-gold-deep: #d9a93f;
  --idg-navy: #0f1c30;
  --idg-navy-soft: #162743;
  --idg-surface: #ffffff;
  --idg-surface-alt: #f7faff;
  --idg-line: #d9e3f3;
  --idg-line-strong: #c8d6ef;
  --idg-accent-glow: 0 10px 30px rgba(217, 169, 63, 0.12);
}

/* 10.1 Base typography and flow */
.idg-content {
  font-size: 16px;
  line-height: 1.72;
  color: var(--idg-text);
}

.idg-content > * + * {
  margin-top: 20px;
}

/* 10.2 Gutenberg containers */
.idg-content .wp-block-group.alignfull,
.idg-content .wp-block-group {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid var(--idg-line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(20, 45, 84, 0.05);
  padding: 22px !important;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.idg-content .wp-block-group.alignfull::before,
.idg-content .wp-block-group::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--idg-blue) 0%, var(--idg-gold) 100%);
  opacity: 0.95;
}

/* 10.3 Headings */
.idg-content .wp-block-heading {
  color: var(--idg-navy);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  position: relative;
}

.idg-content h2.wp-block-heading {
  font-size: 28.8px;
  padding-bottom: 10px;
}

.idg-content h2.wp-block-heading::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--idg-blue), var(--idg-gold));
  box-shadow: var(--idg-accent-glow);
}

.idg-content h3.wp-block-heading {
  font-size: 22.1px;
}

.idg-content h4.wp-block-heading {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--idg-dark-blue);
}

/* 10.4 Post title inside content sections */
.idg-content .wp-block-post-title {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--idg-navy);
}

/* 10.5 Paragraphs */
.idg-content p {
  font-size: 16px;
  line-height: 1.78;
  color: #233246;
  margin: 0 0 16px;
}

.idg-content p strong {
  color: var(--idg-navy);
  font-weight: 800;
}

/* Lead paragraph directly under heading */
.idg-content .wp-block-heading + p {
  font-size: 17px;
  line-height: 1.8;
  color: #1c2f49;
}

/* Premium marker for first paragraph in group/card */
.idg-content .wp-block-group > .wp-block-columns:first-child p:first-of-type,
.idg-content .wp-block-group > p:first-of-type {
  position: relative;
  padding-left: 16px;
}

.idg-content
  .wp-block-group
  > .wp-block-columns:first-child
  p:first-of-type::before,
.idg-content .wp-block-group > p:first-of-type::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 1.4em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--idg-gold), var(--idg-blue));
}

/* 10.6 Lists */
.idg-content ul,
.idg-content ol,
.idg-page__content ul,
.idg-page__content ol {
  margin: 0 0 18px 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.idg-content ul li,
.idg-content ol li,
.idg-page__content ul li,
.idg-page__content ol li {
  position: relative;
  padding: 10px 12px 10px 38px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid #e4ecf9;
  border-radius: 12px;
  line-height: 1.55;
  box-shadow: 0 6px 18px rgba(20, 45, 84, 0.04);
}

.idg-content ul li::before,
.idg-page__content ul li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--idg-blue), var(--idg-dark-blue));
}

.idg-content ol,
.idg-page__content ol {
  counter-reset: idg-ol;
}

.idg-content ol li::before,
.idg-page__content ol li::before {
  counter-increment: idg-ol;
  content: counter(idg-ol);
  position: absolute;
  left: 10px;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--idg-navy);
  background: linear-gradient(135deg, #ffe7a7, var(--idg-gold));
  box-shadow: 0 4px 10px rgba(217, 169, 63, 0.25);
}

/* 10.7 Tables */
.idg-content .wp-block-table,
.idg-page__content .wp-block-table {
  margin: 20px 0 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--idg-line-strong);
  box-shadow: 0 12px 26px rgba(20, 45, 84, 0.08);
  background: #fff;
}

.idg-content .wp-block-table table,
.idg-page__content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: #fff;
}

.idg-content .wp-block-table thead th,
.idg-page__content .wp-block-table thead th {
  background: linear-gradient(
    135deg,
    var(--idg-navy) 0%,
    var(--idg-navy-soft) 100%
  );
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.idg-content .wp-block-table td,
.idg-content .wp-block-table th,
.idg-page__content .wp-block-table td,
.idg-page__content .wp-block-table th {
  padding: 14px 16px;
  border: 1px solid #e4ecf9;
  text-align: left;
  vertical-align: middle;
  font-size: 15px;
  line-height: 1.45;
}

.idg-content .wp-block-table tbody tr:nth-child(even) td,
.idg-page__content .wp-block-table tbody tr:nth-child(even) td {
  background: #f9fbff;
}

.idg-content .wp-block-table tbody td:first-child,
.idg-page__content .wp-block-table tbody td:first-child {
  font-weight: 700;
  color: var(--idg-navy);
  width: 38%;
}

.idg-content .wp-block-table tbody td:last-child,
.idg-page__content .wp-block-table tbody td:last-child {
  color: #223247;
}

/* 10.8 Images */
.idg-content .wp-block-image {
  margin: 22px 0;
}

.idg-content .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid #dfe8f7;
  box-shadow: 0 14px 34px rgba(17, 28, 49, 0.12);
}

.idg-content .wp-block-image figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--idg-muted);
  text-align: center;
}

/* 10.9 Columns spacing */
.idg-content .wp-block-columns {
  gap: 26px;
}

.idg-content .wp-block-column > *:last-child {
  margin-bottom: 0;
}

/* 10.10 Links */
.idg-content a:not(.idg-offer-cta) {
  color: var(--idg-dark-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.idg-content a:not(.idg-offer-cta):hover {
  color: #0d3a78;
}

/* 10.11 Blockquote */
.idg-content blockquote {
  margin: 22px 0;
  padding: 18px 20px 18px 22px;
  border-left: 4px solid var(--idg-gold);
  background: linear-gradient(180deg, #fffdf7 0%, #fffaf0 100%);
  border-radius: 14px;
  color: #2a3546;
  box-shadow: 0 10px 24px rgba(217, 169, 63, 0.08);
}

/* 10.12 Separator */
.idg-content .wp-block-separator {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cfdcf0, transparent);
  margin: 26px 0;
}

/* 10.13 Content polish responsive */
@media (max-width: 820px) {
  .idg-content {
    font-size: 15px;
    line-height: 1.64;
  }

  .idg-content .wp-block-group.alignfull,
  .idg-content .wp-block-group {
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 14px;
  }

  .idg-content h2.wp-block-heading {
    font-size: 24px;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  .idg-content h2.wp-block-heading::after {
    width: 54px;
    height: 3px;
    margin-top: 8px;
  }

  .idg-content h3.wp-block-heading {
    font-size: 17px;
  }

  .idg-content p {
    font-size: 15px;
    line-height: 1.68;
    margin-bottom: 14px;
  }

  .idg-content .wp-block-heading + p {
    font-size: 15px;
  }

  .idg-content ul li,
  .idg-content ol li,
  .idg-page__content ul li,
  .idg-page__content ol li {
    padding: 9px 10px 9px 34px;
    font-size: 14px;
    border-radius: 10px;
  }

  .idg-content .wp-block-table,
  .idg-page__content .wp-block-table {
    border-radius: 12px;
    overflow-x: auto;
  }

  .idg-content .wp-block-table td,
  .idg-content .wp-block-table th,
  .idg-page__content .wp-block-table td,
  .idg-page__content .wp-block-table th {
    padding: 11px 12px;
    font-size: 13px;
  }

  .idg-content .wp-block-image img {
    border-radius: 14px;
  }
}

/* =========================================
   AUTHOR PROFILE PAGE
========================================= */
.idg-author-profile {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--idg-border);
  margin-bottom: 32px;
}

.idg-author-profile__photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--idg-border);
}

.idg-author-profile__info {
  flex: 1;
}

.idg-author-profile__name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--idg-text);
  margin: 0 0 6px;
}

.idg-author-profile__spec {
  font-size: 0.95rem;
  color: var(--idg-blue);
  font-weight: 600;
  margin: 0 0 12px;
}

.idg-author-profile__bio {
  font-size: 0.95rem;
  color: var(--idg-muted);
  line-height: 1.6;
  margin: 0;
}

.idg-author-profile__content {
  margin-bottom: 40px;
  line-height: 1.7;
  color: var(--idg-text);
}

.idg-author-posts__heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--idg-border);
}

.idg-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.idg-post-card {
  background: #fff;
  border-radius: var(--idg-radius);
  box-shadow: var(--idg-card-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.idg-post-card:hover {
  box-shadow: var(--idg-card-shadow-hover);
}

.idg-post-card__thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.idg-post-card__body {
  padding: 16px;
}

.idg-post-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.4;
}

.idg-post-card__title a {
  color: var(--idg-text);
  text-decoration: none;
}

.idg-post-card__title a:hover {
  color: var(--idg-blue);
}

.idg-post-card__date {
  font-size: 0.8rem;
  color: var(--idg-muted);
}

@media (max-width: 640px) {
  .idg-author-profile {
    flex-direction: column;
    gap: 16px;
  }

  .idg-author-profile__photo img {
    width: 90px;
    height: 90px;
  }
}
