@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/font-8de8077769.woff2") format("woff2"), url("../fonts/font-c43ca80bc3.woff") format("woff");
}

@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/font-cb44b1f9f5.woff2") format("woff2"), url("../fonts/font-c2f449c09e.woff") format("woff");
}

@font-face {
  font-family: "Pretendard";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/font-de4e806d47.woff2") format("woff2"), url("../fonts/font-569d9310a7.woff") format("woff");
}

:root {
  --db-blue: #00adef;
  --db-green: #81E23F;
  --db-dark: #122A45;
  --db-text: #1A1A1A;
  --db-muted: #5A6472;
  --db-light: #F5F7FA;
  --db-border: #EAEEF3;
  --db-radius: 8px;
  --db-container: 1200px;
  --db-shadow: 0 16px 42px rgba(18, 42, 69, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--db-text);
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.75rem;
  color: var(--db-text);
  line-height: 1.2;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  padding: 12px 14px;
  color: var(--db-text);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}

th,
td {
  border-bottom: 1px solid var(--db-border);
  padding: 14px;
  text-align: left;
}

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

.db-container {
  width: min(100% - 40px, var(--db-container));
  margin-inline: auto;
}

.db-main {
  padding: clamp(48px, 7vw, 88px) 0;
}

.db-main--full,
.db-main--canvas,
.home .db-main {
  padding: 0;
}

.db-content > * {
  max-width: 100%;
}

.db-button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"],
.tutor-btn,
.tutor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--db-radius);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.db-button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.tutor-btn:hover,
.tutor-button:hover {
  transform: translateY(-1px);
}

.db-button--primary,
.wp-block-button__link,
button[type="submit"],
input[type="submit"],
.tutor-btn-primary,
.tutor-button {
  color: #fff;
  background: var(--db-blue);
  box-shadow: 0 8px 22px rgba(0, 173, 239, 0.24);
}

.db-button--secondary {
  color: var(--db-dark);
  background: #fff;
  border: 1px solid var(--db-border);
}

.db-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.db-link {
  color: var(--db-blue);
  font-weight: 700;
}

.db-link::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.db-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--db-border);
}

.db-site-header__inner {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.db-logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--db-dark);
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.custom-logo {
  width: auto;
  max-height: 48px;
}

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

.db-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #2d3542;
  font-size: 15px;
  font-weight: 600;
}

/* Active / current menu items */
.db-menu > .current-menu-item > a,
.db-menu > .current_page_item > a {
  color: var(--db-blue);
}

.db-menu > .current-menu-item:not(:last-child) > a {
  box-shadow: inset 0 -2px 0 var(--db-blue);
}

.db-menu > .current-menu-ancestor > a,
.db-menu > .current-menu-parent > a,
.db-menu > .current_page_ancestor > a,
.db-menu > .current_page_parent > a {
  color: var(--db-blue);
}

.db-menu .sub-menu .current-menu-item > a,
.db-menu .sub-menu .current_page_item > a {
  color: var(--db-blue);
  background: var(--db-light);
  font-weight: 600;
}

.db-menu .sub-menu .current-menu-ancestor > a,
.db-menu .sub-menu .current-menu-parent > a,
.db-menu .sub-menu .current_page_ancestor > a,
.db-menu .sub-menu .current_page_parent > a {
  color: var(--db-blue);
  font-weight: 600;
}

.db-menu > li:last-child.current-menu-item > a,
.db-menu > li:last-child.current_page_item > a {
  color: #fff;
  background: var(--db-dark);
  box-shadow: 0 8px 22px rgba(18, 42, 69, 0.22);
}

.db-menu > li:last-child > a {
  padding: 0 20px;
  color: #fff;
  background: var(--db-blue);
  border-radius: var(--db-radius);
  box-shadow: 0 8px 22px rgba(0, 173, 239, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.db-menu > li:last-child > a:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 173, 239, 0.28);
}

.db-menu .menu-item-has-children {
  position: relative;
}

.db-menu .menu-item-has-children > a {
  gap: 6px;
}

.db-menu .menu-item-has-children > a::after {
  content: "";
  width: 13px;
  height: 13px;
  flex: none;
  background-color: currentColor;
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.db-menu .menu-item-has-children:hover > a::after,
.db-menu .menu-item-has-children:focus-within > a::after {
  opacity: 1;
  transform: rotate(180deg);
}

.db-menu .sub-menu,
.mega-menu-wrap .mega-menu .mega-sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 230px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  box-shadow: var(--db-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.db-menu .menu-item-has-children:hover > .sub-menu,
.db-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.db-menu .sub-menu li {
  width: 100%;
}

.db-menu .sub-menu a {
  width: 100%;
  min-height: 0;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.db-menu .sub-menu a:hover,
.db-menu .sub-menu a:focus {
  color: var(--db-blue);
  background: var(--db-light);
}

/* Third-level submenu: fly out to the right of its parent item. */
.db-menu .sub-menu .sub-menu {
  top: -9px;
  left: 100%;
  margin-left: 6px;
  transform: translateX(8px);
}

.db-menu .sub-menu .menu-item-has-children:hover > .sub-menu,
.db-menu .sub-menu .menu-item-has-children:focus-within > .sub-menu {
  transform: translateX(0);
}

/* Nested parent items point their chevron to the right. */
.db-menu .sub-menu .menu-item-has-children > a {
  justify-content: space-between;
}

.db-menu .sub-menu .menu-item-has-children > a::after {
  transform: rotate(-90deg);
}

.db-menu .sub-menu .menu-item-has-children:hover > a::after,
.db-menu .sub-menu .menu-item-has-children:focus-within > a::after {
  transform: rotate(-90deg);
}

/* ============================================================
   Opt-in MEGA MENU (native, no plugin)
   Add the CSS class "db-mega" to a top-level menu item in
   Appearance → Menus (enable "CSS Classes" via Screen Options).
   Only items with that class become a full-width panel; all
   other menus keep their normal dropdown styling.
   ============================================================ */
@media (min-width: 1025px) {
  /* Compact mega panel: anchored to the item, max 2 columns wide. */
  .db-menu .db-mega.menu-item-has-children {
    position: relative;
  }

  .db-menu .db-mega > .sub-menu {
    top: 100%;
    left: 0;
    right: auto;
    width: auto;
    min-width: 0;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, max-content));
    gap: 2px 22px;
    transform: translateY(8px);
  }

  .db-menu .db-mega.menu-item-has-children:hover > .sub-menu,
  .db-menu .db-mega.menu-item-has-children:focus-within > .sub-menu {
    transform: translateY(0);
  }

  .db-menu .db-mega > .sub-menu > li {
    break-inside: avoid;
  }

  /* Grouped mega menu: a direct child that HAS children is a column heading. */
  .db-menu .db-mega > .sub-menu > .menu-item-has-children > a {
    font-weight: 700;
    color: var(--db-dark);
    cursor: default;
  }

  .db-menu .db-mega > .sub-menu > .menu-item-has-children > a:hover {
    background: transparent;
    color: var(--db-dark);
  }

  /* Hide the chevron on mega column headings. */
  .db-menu .db-mega > .sub-menu > .menu-item-has-children > a::after {
    display: none;
  }

  /* Nested lists inside the mega panel render as static link stacks. */
  .db-menu .db-mega .sub-menu .sub-menu {
    position: static;
    margin: 4px 0 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

.db-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
}

.db-menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--db-dark);
}

.db-page-header {
  position: relative;
  overflow: hidden;
  background-color: var(--db-light);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--db-border);
}

.db-page-header--dark,
.db-page-header--image {
  background-color: var(--db-dark);
}

.db-page-header--blue {
  background-color: var(--db-blue);
}

.db-page-header__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.db-page-header--dark .db-page-header__overlay,
.db-page-header--image .db-page-header__overlay,
.db-page-header--has-image.db-page-header--text-light .db-page-header__overlay {
  background: linear-gradient(90deg, rgba(18, 42, 69, 0.88), rgba(18, 42, 69, 0.52));
}

.db-page-header--light.db-page-header--image .db-page-header__overlay,
.db-page-header--has-image.db-page-header--text-dark .db-page-header__overlay {
  background: rgba(255, 255, 255, 0.82);
}

.db-page-header__inner {
  position: relative;
  padding: 46px 32px 54px;
}

.db-page-header h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
}

.db-page-header p {
  max-width: 720px;
  color: var(--db-muted);
  font-size: clamp(17px, 2vw, 20px);
}

.db-page-header--text-light h1,
.db-page-header--text-light p,
.db-page-header--text-light .db-breadcrumbs,
.db-page-header--text-light .db-breadcrumbs a {
  color: #fff;
}

.db-page-header--text-light p,
.db-page-header--text-light .db-breadcrumbs {
  opacity: 0.88;
}

.db-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--db-muted);
  font-size: 14px;
  font-weight: 600;
}

.db-breadcrumbs a {
  color: var(--db-blue);
}

.db-home-hero {
  padding: clamp(56px, 8vw, 104px) 0;
  background: linear-gradient(180deg, #fff 0%, var(--db-light) 100%);
}

.db-home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.db-home-hero h1 {
  max-width: 620px;
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 800;
}

.db-home-hero p {
  max-width: 560px;
  color: var(--db-muted);
  font-size: 20px;
}

.db-home-hero__media img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--db-shadow);
}

.db-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--db-blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.db-section {
  padding: clamp(60px, 8vw, 104px) 0;
}

.db-section--light {
  background: var(--db-light);
}

.db-section__head {
  max-width: 720px;
  margin-bottom: 34px;
}

.db-section__head h2,
.db-cta-band h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
}

.db-feature-grid,
.db-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.db-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  background: #fff;
  box-shadow: 0 6px 24px rgba(18, 42, 69, 0.04);
}

.db-card__body,
.db-card:not(.db-card--post):not(.db-card--module):not(.db-card--case) {
  padding: 28px;
}

.db-card h2,
.db-card h3 {
  font-size: 22px;
  font-weight: 800;
}

.db-card p {
  color: var(--db-muted);
}

.db-card__media {
  display: block;
  min-height: 86px;
  background: var(--db-light);
}

.db-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.db-card--module .db-card__image {
  width: 78px;
  height: 78px;
  margin: 28px 28px 0;
  object-fit: contain;
  aspect-ratio: 1;
}

.db-card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--db-blue), var(--db-green));
}

.db-card__eyebrow,
.db-card__meta {
  color: var(--db-blue);
  font-weight: 700;
}

.db-detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
}

.db-detail-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.db-spec-box,
.db-result-box,
.db-case-study__meta {
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  padding: 24px;
  background: #fff;
}

.db-spec-box h2 {
  font-size: 20px;
}

.db-spec-box dl {
  margin: 0;
}

.db-spec-box dt,
.db-case-study__meta span {
  color: var(--db-muted);
  font-size: 14px;
  font-weight: 700;
}

.db-spec-box dd {
  margin: 0 0 14px;
  font-weight: 700;
}

.db-case-study__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.db-case-study__meta strong {
  display: block;
  font-size: 20px;
}

.db-result-box {
  margin-bottom: 36px;
  background: var(--db-light);
  color: var(--db-dark);
  font-size: 20px;
  font-weight: 700;
}

.db-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.db-gallery img {
  width: 100%;
  border-radius: var(--db-radius);
}

.db-related {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--db-border);
}

.db-pagination {
  margin-top: 42px;
}

.db-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.db-pagination a,
.db-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
}

.db-pagination .current {
  color: #fff;
  background: var(--db-blue);
  border-color: var(--db-blue);
}

.db-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.db-site-footer {
  padding: 56px 0 26px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--db-dark);
}

.db-site-footer .db-logo,
.db-site-footer .db-logo__text,
.db-site-footer h2,
.db-site-footer a {
  color: #fff;
}

.db-site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.15fr;
  gap: 34px;
}

.db-site-footer__block {
  min-width: 0;
}

.db-site-footer h2 {
  font-size: 16px;
}

.db-footer-text {
  margin-bottom: 14px;
  font-size: 14px;
}

.db-footer-map {
  overflow: hidden;
  min-height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--db-radius);
  background: rgba(255, 255, 255, 0.06);
}

.db-footer-map iframe {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
}

.db-footer-map--placeholder {
  display: flex;
  align-items: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.db-footer-menu,
.db-footer-contact,
.db-utility-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.db-footer-menu li,
.db-footer-contact li {
  margin-bottom: 8px;
}

.db-site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.db-utility-menu {
  display: flex;
  gap: 18px;
}

.db-empty {
  padding: 56px;
  text-align: center;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  background: var(--db-light);
}

.db-404__code {
  margin: 0;
  font-size: clamp(64px, 14vw, 140px);
  font-weight: 800;
  line-height: 1;
  color: var(--db-blue);
}

.db-404 h1 {
  margin: 16px 0 8px;
}

.db-404__search {
  max-width: 420px;
  margin: 28px auto 0;
}

.db-404__search form {
  display: flex;
  gap: 8px;
}

.db-404__search input[type="search"] {
  flex: 1;
}

.db-404__actions {
  justify-content: center;
  margin-top: 24px;
}

.tutor-course-card,
.tutor-card,
.tutor-dashboard-content {
  border-color: var(--db-border) !important;
  border-radius: var(--db-radius) !important;
  box-shadow: 0 6px 24px rgba(18, 42, 69, 0.04);
}

.tutor-color-primary,
.tutor-course-name a:hover {
  color: var(--db-blue) !important;
}

@media (max-width: 1024px) {
  .db-feature-grid,
  .db-archive-grid,
  .db-site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .db-detail-layout {
    grid-template-columns: 1fr;
  }

  .db-site-header__inner {
    min-height: 66px;
  }

  .db-menu-toggle {
    display: block;
  }

  .db-primary-nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 66px);
    max-height: calc(100dvh - 66px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 14px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--db-border);
  }

  .db-primary-nav.is-open {
    display: block;
  }

  .db-menu {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    width: min(100% - 28px, var(--db-container));
    margin-inline: auto;
  }

  .db-menu a,
  .db-menu > li:last-child > a {
    width: 100%;
    justify-content: flex-start;
    padding: 0 14px;
  }

  .db-menu > .current-menu-item > a,
  .db-menu > .current_page_item > a {
    color: var(--db-blue);
    background: var(--db-light);
    border-radius: 8px;
    box-shadow: none;
  }

  .db-menu > .current-menu-ancestor > a,
  .db-menu > .current-menu-parent > a,
  .db-menu > .current_page_ancestor > a,
  .db-menu > .current_page_parent > a {
    color: var(--db-blue);
  }

  .db-menu .sub-menu .current-menu-item > a,
  .db-menu .sub-menu .current_page_item > a {
    background: rgba(0, 173, 239, 0.1);
  }

  .db-menu > li:last-child.current-menu-item > a,
  .db-menu > li:last-child.current_page_item > a {
    color: #fff;
    background: var(--db-dark);
  }

  .db-menu .menu-item-has-children > a {
    justify-content: space-between;
  }

  .db-menu .menu-item-has-children > a::after {
    transform: none;
  }

  .db-menu .menu-item-has-children.is-expanded > a::after {
    transform: rotate(180deg);
  }

  .db-menu .sub-menu {
    position: static;
    min-width: 0;
    padding: 2px 0 6px 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .db-menu .menu-item-has-children.is-expanded > .sub-menu {
    display: block;
  }

  /* Nested submenus stay as flat accordions on mobile (no right fly-out). */
  .db-menu .sub-menu .sub-menu {
    margin-left: 0;
    transform: none;
  }

  .db-menu .sub-menu .menu-item-has-children > a::after {
    transform: none;
  }

  .db-menu .sub-menu .menu-item-has-children.is-expanded > a::after {
    transform: rotate(180deg);
  }
}

@media (max-width: 768px) {
  .db-container {
    width: min(100% - 28px, var(--db-container));
  }

  .db-page-header__inner {
    padding: 34px 0 40px;
  }

  .db-home-hero__grid,
  .db-feature-grid,
  .db-archive-grid,
  .db-case-study__meta,
  .db-gallery,
  .db-site-footer__grid {
    grid-template-columns: 1fr;
  }

  .db-home-hero p {
    font-size: 17px;
  }

  .db-card__body,
  .db-card:not(.db-card--post):not(.db-card--module):not(.db-card--case) {
    padding: 22px;
  }

  .db-cta-band,
  .db-site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  th,
  td {
    min-width: 160px;
  }
}

/* ============================================================
   Comparison table (TablePress) — .db-table-scroll
   Usage:  <div class="db-table-scroll">[table id=1 /]</div>
   Mirrors the DesignBuilder pricing-card table styling.
   ============================================================ */
.db-table-scroll {
  width: 100%;
  margin: 8px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--db-border);
  border-radius: 18px;
  box-shadow: 0 24px 60px -36px rgba(18, 42, 69, 0.25);
}

.db-table-scroll .tablepress {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 15px;
  color: var(--db-text);
}

.db-table-scroll .tablepress th,
.db-table-scroll .tablepress td {
  border: 0;
  border-bottom: 1px solid #f0f2f5;
  padding: 15px 18px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

/* Header rows */
.db-table-scroll .tablepress thead th {
  background: var(--db-light);
  color: var(--db-text);
  font-weight: 700;
}

/* tablepress-2 specific header colors */
.db-table-scroll #tablepress-2 thead th {
  background: var(--db-dark);
  color: var(--db-light);
}

.db-table-scroll .tablepress thead tr:first-child th {
  color: var(--db-blue);
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.db-table-scroll .tablepress thead tr:last-child th {
  border-bottom: 2px solid var(--db-green);
  color: var(--db-muted);
  font-weight: 700;
}

/* First column (feature names): sticky + left aligned */
.db-table-scroll .tablepress th.column-1,
.db-table-scroll .tablepress td.column-1 {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 180px;
  background: #fff;
  border-right: 1px solid var(--db-border);
  text-align: left;
  font-weight: 600;
  color: var(--db-text);
}

.db-table-scroll .tablepress thead th.column-1 {
  z-index: 3;
  background: var(--db-light);
}

/* Vertical separators between the product families */
.db-table-scroll .tablepress .column-5,
.db-table-scroll .tablepress .column-7 {
  border-left: 1px solid var(--db-border);
}

/* Zebra striping + hover */
.db-table-scroll .tablepress tbody tr:nth-child(even) td,
.db-table-scroll .tablepress tbody tr:nth-child(even) td.column-1 {
  background: #fafbfc;
}

.db-table-scroll .tablepress tbody tr:hover td,
.db-table-scroll .tablepress tbody tr:hover td.column-1 {
  background: #fafef6;
}

.db-table-scroll .tablepress tbody tr:last-child td {
  border-bottom: 0;
}

/* Yes / No marks (classes added by theme.js) */
.db-table-scroll .tablepress td.is-yes {
  color: #5bb417;
  font-weight: 800;
}

.db-table-scroll .tablepress td.is-no {
  color: #c9cfd7;
  font-weight: 700;
}

@media (max-width: 768px) {
  .db-table-scroll .tablepress th,
  .db-table-scroll .tablepress td {
    padding: 12px 13px;
    min-width: 92px;
  }

  .db-table-scroll .tablepress th.column-1,
  .db-table-scroll .tablepress td.column-1 {
    min-width: 150px;
  }
}

/* ============================================================
   Reusable page layout with a right sidebar
   Template: "Page with Right Sidebar" — usable for Contact,
   FAQ, or any page. Sidebar content = "Page Sidebar" widgets.
   ============================================================ */
.db-layout {
  align-items: start;
}

.db-layout--has-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4vw, 48px);
}

.db-layout__main {
  min-width: 0;
}

.db-layout--has-aside .db-layout__aside {
  position: sticky;
  top: 98px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sidebar widgets rendered as cards (matches the site's card styling) */
.db-widget {
  background: var(--db-light);
  border: 1px solid var(--db-border);
  border-radius: 12px;
  padding: 24px 26px;
}

.db-widget:not(:last-child) {
  margin-bottom: 0;
}

.db-widget__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--db-text);
}

.db-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.db-widget li {
  margin-bottom: 10px;
}

.db-widget li:last-child {
  margin-bottom: 0;
}

.db-widget a {
  color: var(--db-blue);
  font-weight: 600;
}

.db-widget img {
  border-radius: var(--db-radius);
}

@media (max-width: 900px) {
  .db-layout--has-aside {
    grid-template-columns: 1fr;
  }

  .db-layout--has-aside .db-layout__aside {
    position: static;
  }
}

/* ============================================================
   Contact info card (right column of the Elementor contact page)
   ============================================================ */
.db-contact-card {
  background: var(--db-light);
  border: 1px solid var(--db-border);
  border-radius: 12px;
  padding: 28px;
}

.db-contact-card__title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
}

.db-contact-card__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.db-contact-card__item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.db-contact-card__label {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  color: #8a93a0;
}

.db-contact-card__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--db-text);
}

.db-contact-card__map {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 120px;
  padding: 16px;
  border: 1px solid #dce2ea;
  border-radius: 10px;
  background: #e7ecf1;
  color: #8a93a0;
  font-size: 13px;
}

/* ============================================================
   Formidable Forms styling — [formidable id=...]
   Brand-aligned overrides; safe to remove for plugin defaults.
   ============================================================ */
.frm_forms .frm_form_fields > fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.frm_forms .frm_primary_label {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--db-text);
}

.frm_forms .frm_required {
  color: var(--db-blue);
}

.frm_forms input[type="text"],
.frm_forms input[type="email"],
.frm_forms input[type="tel"],
.frm_forms input[type="url"],
.frm_forms input[type="number"],
.frm_forms select,
.frm_forms textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  font-size: 15px;
  color: var(--db-text);
  background: #fff;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.frm_forms textarea {
  height: auto;
  min-height: 148px;
  padding: 13px 14px;
  line-height: 1.6;
  resize: vertical;
}

.frm_forms input[type="text"]:focus,
.frm_forms input[type="email"]:focus,
.frm_forms input[type="tel"]:focus,
.frm_forms input[type="url"]:focus,
.frm_forms input[type="number"]:focus,
.frm_forms select:focus,
.frm_forms textarea:focus {
  outline: none;
  border-color: var(--db-blue);
  box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.12);
}

.frm_forms .frm_button_submit,
.frm_forms input[type="submit"],
.frm_forms button[type="submit"] {
  width: auto;
  height: 50px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--db-radius);
  color: #fff;
  background: var(--db-blue);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 173, 239, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.frm_forms .frm_button_submit:hover,
.frm_forms input[type="submit"]:hover,
.frm_forms button[type="submit"]:hover {
  transform: translateY(-1px);
}

/* WooCommerce product catalog */
.db-card--product {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.db-card--product .db-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.db-card--product .db-card__media {
  position: relative;
}

.db-product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: #e74c3c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.db-product-price,
.db-product__col--summary .price {
  margin: 0;
  color: var(--db-blue);
  font-size: 20px;
  font-weight: 800;
}

.db-product-price del,
.db-product__col--summary .price del {
  margin-right: 8px;
  color: var(--db-muted);
  font-size: 16px;
  font-weight: 500;
}

.db-product-price ins,
.db-product__col--summary .price ins {
  color: var(--db-blue);
  text-decoration: none;
}

.db-product-price .woocommerce-Price-amount.amount,
.db-product-price .woocommerce-Price-amount.amount bdi,
.db-product__col--summary .price .woocommerce-Price-amount.amount,
.db-product__col--summary .price .woocommerce-Price-amount.amount bdi {
  color: var(--db-blue);
  font-weight: 800;
}

.db-product-price del .woocommerce-Price-amount.amount,
.db-product-price del .woocommerce-Price-amount.amount bdi,
.db-product__col--summary .price del .woocommerce-Price-amount.amount,
.db-product__col--summary .price del .woocommerce-Price-amount.amount bdi {
  color: var(--db-muted);
  font-weight: 500;
}

.db-product-buy {
  margin-top: auto;
  width: fit-content;
}

.db-product__col--summary .product_title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.db-product__col--summary .woocommerce-product-details__short-description {
  color: var(--db-muted);
}

.db-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 20px 0 16px;
  color: var(--db-dark);
  font-size: 15px;
  line-height: 1.6;
}

.db-product-meta__item {
  display: inline;
}

.db-product-meta__item a {
  color: var(--db-blue);
  font-weight: 700;
  text-decoration: none;
}

.db-product-meta__item a:hover {
  text-decoration: underline;
}

.db-product-attributes {
  margin-top: 4px;
}

.db-product .related.products > h2 {
  margin-bottom: 24px;
  font-size: 28px;
}

.db-product-empty {
  color: var(--db-muted);
}

/* AJAX category tabs shortcode — loaded via theme.css on all pages */
.db-product-tabs {
  width: 100%;
  margin-top: 8px;
}

.db-product-tabs__title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 800;
}

.db-product-tabs .tabs.wc-tabs,
.db-product-tabs__nav {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 -1px !important;
  padding: 0 !important;
  list-style: none !important;
  border-bottom: 1px solid var(--db-border);
}

.db-product-tabs .tabs.wc-tabs > li,
.db-product-tabs__nav > li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: none !important;
  border: 0 !important;
}

.db-product-tabs .tabs.wc-tabs > li::before,
.db-product-tabs__nav > li::before {
  display: none !important;
  content: none !important;
}

.db-product-tabs__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: transparent;
  color: var(--db-muted);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  transform: none;
}

.db-product-tabs__trigger:hover {
  color: var(--db-blue);
}

.db-product-tabs .tabs.wc-tabs > li.active .db-product-tabs__trigger,
.db-product-tabs__trigger[aria-selected="true"] {
  color: var(--db-blue);
  background: #fff;
  border-color: var(--db-border);
  box-shadow: inset 0 3px 0 var(--db-blue);
}

.db-product-tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--db-light);
  color: var(--db-dark);
  font-size: 12px;
  font-weight: 800;
}

.db-product-tabs .tabs.wc-tabs > li.active .db-product-tabs__count,
.db-product-tabs__trigger[aria-selected="true"] .db-product-tabs__count {
  background: rgba(0, 173, 239, 0.12);
  color: var(--db-blue);
}

.db-product-tabs__panel {
  padding-top: 28px;
}

.db-product-tabs__products.related.products {
  margin: 0;
  padding: 0;
  border: 0;
}

.db-product-tabs__products .db-product-grid.products {
  display: grid !important;
  gap: 24px;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.db-product-tabs__products .db-product-grid.products::before,
.db-product-tabs__products .db-product-grid.products::after {
  display: none !important;
  content: none !important;
}

.db-product-tabs__products .db-product-grid.columns-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.db-product-tabs__products .db-product-grid.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.db-product-tabs__products .db-product-grid.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.db-product-tabs__products .db-product-grid.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

.db-product-tabs__products .product,
.db-product-tabs__products .db-card--product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.db-product-tabs__content.is-loading {
  opacity: 0.65;
}

.db-product-tabs__loading {
  margin: 0;
  color: var(--db-muted);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .db-product-tabs__products .db-product-grid.columns-3,
  .db-product-tabs__products .db-product-grid.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .db-product-tabs .tabs.wc-tabs,
  .db-product-tabs__nav {
    flex-direction: column;
    border-bottom: 0;
  }

  .db-product-tabs__trigger {
    width: 100%;
    border: 1px solid var(--db-border);
    border-radius: var(--db-radius);
    margin-bottom: 8px;
  }

  .db-product-tabs .tabs.wc-tabs > li.active .db-product-tabs__trigger,
  .db-product-tabs__trigger[aria-selected="true"] {
    box-shadow: inset 3px 0 0 var(--db-blue);
  }

  .db-product-tabs__products .db-product-grid.products {
    grid-template-columns: 1fr !important;
  }
}

.tutor-mt-40 {
  margin-bottom: 40px;
}