/* =============================================================================
   DataConfo Academy — WordPress & WooCommerce
   -----------------------------------------------------------------------------
   brand.css and layout.css carry the design. This file maps WordPress's and
   WooCommerce's own markup onto it: menu lists, cart and checkout tables, form
   rows, notices and buttons.

   Cart and checkout are styled rather than overridden on purpose — replacing
   those templates is the most common way a shop breaks on a WooCommerce update.
   ============================================================================ */

/* ============================================================ MENU MARKUP == */
.nav__list,
.footer-links__list,
.drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__list li { margin: 0; }
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a { color: var(--navy-800); }
.nav__list .current-menu-item > a::after,
.nav__list .current_page_item > a::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 5px;
  border-radius: 2px;
  background: var(--teal-500);
}

.footer-links__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer-links__list a {
  color: var(--on-navy-dim);
  font-size: var(--fs-sm);
}
.footer-links__list a:hover { color: var(--white); text-decoration: none; }

.drawer__nav { width: 100%; }
.drawer__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy-800);
}
.drawer__list a:hover { text-decoration: none; color: var(--teal-700); }

.crumbs__sep { display: inline-flex; color: var(--ink-400); }
.crumbs--light { color: var(--on-navy-faint); }
.crumbs--light a { color: var(--on-navy-faint); }
.crumbs--light a:hover { color: var(--teal-300); }
.crumbs--light span[aria-current] { color: var(--on-navy); }
.crumbs--light .crumbs__sep { color: var(--on-navy-faint); }

/* Custom logo image, when one is uploaded. */
.logo__image { max-height: 48px; width: auto; }

/* ============================================================== PDP BODY == */
.pdp-sections { min-width: 0; }

/* ============================================================== PARTNERS == */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-4);
}
.partner-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  color: inherit;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
a.partner-card:hover {
  text-decoration: none;
  border-color: var(--line-strong);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.partner-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  padding: var(--s-6);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.partner-card__logo img { max-height: 72px; width: auto; object-fit: contain; }
.partner-card__initial {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--navy-600);
}
.partner-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.partner-card__name { font-weight: 700; color: var(--navy-800); }
.partner-card__desc { font-size: var(--fs-xs); color: var(--ink-600); line-height: 1.55; }
.partner-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  color: var(--teal-600);
  margin-top: auto;
  padding-top: var(--s-2);
}

/* ============================================================== POST LIST == */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s-4);
}
.pagination, .nav-links {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  align-items: center;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--white);
  color: var(--ink-700);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.page-numbers:hover { border-color: var(--navy-600); color: var(--navy-800); text-decoration: none; }
.page-numbers.current { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

/* ========================================================== EDITOR CONTENT == */
.entry-content > * + * { margin-top: var(--s-4); }
.entry-content h2 { font-size: var(--fs-h3); margin-top: var(--s-8); }
.entry-content h3 { font-size: var(--fs-h4); font-family: var(--font-ui); font-weight: 700; margin-top: var(--s-6); }
.entry-content ul, .entry-content ol { display: flex; flex-direction: column; gap: var(--s-2); }
.entry-content img { border-radius: var(--r-3); }
.entry-content blockquote {
  margin: 0;
  padding: var(--s-4) var(--s-6);
  border-left: 2px solid var(--teal-500);
  background: var(--surface-2);
  border-radius: 0 var(--r-2) var(--r-2) 0;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.entry-content th, .entry-content td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); text-align: left; }
.alignwide { max-width: none; }
.wp-caption-text, .wp-element-caption { font-size: var(--fs-xs); color: var(--ink-500); }

/* ============================================================== WOOCOMMERCE */
.woocommerce-page .site-main,
.woocommerce .site-main { background: var(--paper); }

/* --- notices --- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  padding: var(--s-4) var(--s-5);
  margin: 0 0 var(--s-6);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-500);
  border-radius: var(--r-2);
  background: var(--surface-2);
  color: var(--ink-700);
  font-size: var(--fs-sm);
  list-style: none;
}
.woocommerce-error { border-left-color: var(--alert); background: var(--alert-bg); color: #7A2323; }
.woocommerce-message { border-left-color: var(--ok); background: var(--ok-bg); color: #14604D; }
.woocommerce-message .button,
.woocommerce-info .button { margin-left: auto; }

/* --- WooCommerce buttons adopt our vocabulary --- */
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 13px 24px;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--white);
  color: var(--navy-800);
  font-family: var(--font-ui);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: var(--white); border-color: var(--navy-800); color: var(--navy-800); }

.woocommerce .button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce .checkout-button {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}
.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce .checkout-button:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: var(--white);
}

/* --- the add-to-cart form inside the buy box --- */
.buybox .cart {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin: 0;
}
/* One seat per registration: the quantity box only invites confusion here.
   Group bookings go through "Request information". */
.buybox .cart .quantity { display: none; }
.buybox .cart .single_add_to_cart_button {
  width: 100%;
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--navy-800);
  order: 2;
}
.buybox .cart .single_add_to_cart_button:hover { border-color: var(--navy-800); }
.buybox .cart .dca-buy-now { order: 1; }
.buybox .cart .dca-lang-choice { order: 0; }

/* --- cart --- */
.woocommerce table.shop_table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.woocommerce table.shop_table th {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-500);
  text-align: left;
}
.woocommerce table.shop_table td {
  padding: var(--s-5) var(--s-4);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.woocommerce table.shop_table td.product-name a { color: var(--navy-800); font-weight: 700; }
.woocommerce table.shop_table .product-thumbnail { display: none; }
.woocommerce table.shop_table dl.variation,
.woocommerce table.shop_table .wc-item-meta {
  margin: 6px 0 0;
  font-size: var(--fs-xs);
  color: var(--ink-500);
  list-style: none;
  padding: 0;
}
.woocommerce table.shop_table dl.variation dt,
.woocommerce table.shop_table .wc-item-meta strong { font-weight: 400; display: inline; }
.woocommerce table.shop_table dl.variation dd,
.woocommerce table.shop_table .wc-item-meta li { display: inline; margin: 0 var(--s-3) 0 0; }
.woocommerce table.shop_table dl.variation dd p { display: inline; }
.dca-cart-level {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--teal-700);
}
.woocommerce a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--ink-500) !important;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}
.woocommerce a.remove:hover { background: var(--alert-bg); color: var(--alert) !important; }

.woocommerce .quantity .qty {
  width: 78px;
  padding: 11px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  text-align: center;
  font-size: var(--fs-sm);
}

.woocommerce .cart-collaterals,
.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100%;
  float: none;
}
.woocommerce-cart-form { margin-bottom: var(--s-8); }
.woocommerce .cart_totals h2,
.woocommerce-checkout h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  color: var(--navy-800);
  margin-bottom: var(--s-4);
}
.woocommerce .cart_totals table.shop_table { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--white); }
.woocommerce .cart_totals table.shop_table th { border-bottom: 1px solid var(--line); }
.woocommerce .cart_totals .order-total .amount { font-size: var(--fs-h4); color: var(--navy-800); }

.woocommerce .coupon { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.woocommerce .coupon .input-text { max-width: 220px; }

/* --- checkout --- */
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; }
.woocommerce form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 var(--s-4);
  padding: 0;
}
.woocommerce form .form-row label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-700);
}
.woocommerce form .form-row .required { color: var(--alert); text-decoration: none; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--white);
  color: var(--ink-900);
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 169, 162, 0.15);
}
.woocommerce form .form-row textarea { min-height: 120px; resize: vertical; }
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 1.4;
  padding: 0;
  color: var(--ink-900);
}
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow { top: 14px; right: 10px; }
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select { border-color: var(--alert); }

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review { width: 100%; float: none; }

.woocommerce-checkout .woocommerce-checkout-review-order-table {
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--white);
  overflow: hidden;
}
.woocommerce-checkout #payment {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  margin-top: var(--s-5);
}
.woocommerce-checkout #payment ul.payment_methods {
  padding: var(--s-5);
  margin: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.woocommerce-checkout #payment ul.payment_methods li { margin-bottom: var(--s-3); }
.woocommerce-checkout #payment ul.payment_methods li:last-child { margin-bottom: 0; }
.woocommerce-checkout #payment ul.payment_methods label {
  font-weight: 700;
  color: var(--navy-800);
  font-size: var(--fs-sm);
}
.woocommerce-checkout #payment div.payment_box {
  margin: var(--s-3) 0 0;
  padding: var(--s-4);
  border-radius: var(--r-2);
  background: var(--surface-2);
  color: var(--ink-600);
  font-size: var(--fs-xs);
  line-height: 1.55;
}
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment .place-order { padding: var(--s-5); margin: 0; }
.woocommerce-checkout #payment #place_order { width: 100%; }
.woocommerce-privacy-policy-text { font-size: var(--fs-xs); color: var(--ink-500); }
.woocommerce form .form-row.woocommerce-validated input.input-text { border-color: var(--line-strong); }

@media (min-width: 981px) {
  .woocommerce-checkout .woocommerce > form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
  }
  .woocommerce-checkout #customer_details { grid-column: 1; }
  .woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin-top: 0; }
  .woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: calc(var(--header-h) + 16px); }
  .woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 48px); align-items: start; }
  .woocommerce-cart .woocommerce-cart-form { grid-column: 1; }
  .woocommerce-cart .cart-collaterals { grid-column: 2; position: sticky; top: calc(var(--header-h) + 16px); }
  .woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
}

/* --- account & misc --- */
.woocommerce-account .woocommerce { display: block; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.woocommerce-MyAccount-navigation a {
  display: inline-flex;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-700);
}
.woocommerce-MyAccount-navigation .is-active a { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

/* A catalogue card prints its price outside any .woocommerce wrapper — on the
   home page, in the finder, in the pathway — so these are deliberately global.
   The class names are WooCommerce's own, so nothing else can match them. */
.price {
  color: var(--navy-800);
  font-weight: 700;
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}
.price del { color: var(--ink-400); font-weight: 400; margin-right: 6px; }
.price ins { text-decoration: none; }
.woocommerce-Price-amount { white-space: nowrap; }
.woocommerce-Price-currencySymbol {
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: super;
  margin-left: 3px;
  color: var(--ink-500);
}

/* The catalogue card prints the price through WooCommerce, so keep its scale. */
.prod__price-row .price { font-size: 1.5rem; letter-spacing: -0.01em; }
.buybox__price .price { font-size: 2.3rem; }
.pathway__p .price { font-size: var(--fs-sm); font-weight: 400; color: var(--ink-500); }
.prod-row__p .price { font-size: var(--fs-sm); }

/* Screen-reader-only, WooCommerce's variant included. */
.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;
}

/* --- admin bar offset for the sticky header --- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
