/* Shared typography for Web Forms pages and standalone request forms. */
:is(.dwt-page-design, .dwt-standalone-form) {
  --dwt-page-font: "Segoe UI", Arial, sans-serif;
  --dwt-page-text: clamp(16px, 1.15vw, 18px);
  --dwt-page-accent: #b66e46;
}

#main-content.dwt-page-design .inner-header:has(.dwt-inner-hero-grid) {
  position: relative;
  isolation: isolate;
  background-color: #102b3d;
  background-repeat: no-repeat;
}
#main-content.dwt-page-design .inner-header:has(.dwt-inner-hero-grid)::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  z-index: -1;
  opacity: 1;
  pointer-events: none;
  background: linear-gradient(105deg, rgb(6 23 32 / 80%), rgb(9 28 38 / 65%));
}

#main-content.dwt-page-design .dwt-inner-hero-grid > div:first-child {
  container-type: inline-size;
}

#main-content.dwt-page-design .inner-header h1:not(.dwt-company *) {
  color: #fff !important;
  font: 800 clamp(23px, 3vw, 46px)/1.16 var(--dwt-page-font) !important;
  font: 800 clamp(23px, 6.4cqi, 46px)/1.16 var(--dwt-page-font) !important;
  margin: 0;
  padding: 0;
  background: none;
  text-transform: none;
}
#main-content.dwt-page-design .inner-header h1:not(.dwt-company *) span {
  color: inherit !important;
  font: inherit !important;
  background: none !important;
  padding: 0;
}

#main-content.dwt-page-design :is(h1,h2,h3,h4,h5,h6):not(.featureheading,.dwt-icon-heading),
#main-content.dwt-page-design :is(.featureheading,.dwt-icon-heading) > span,
.dwt-standalone-form .dwt-form-title {
  text-decoration: underline;
  text-decoration-color: var(--dwt-page-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
}
#main-content.dwt-page-design :is(h2,h3,h4,h5,h6):not(.dwt-company *, .dwt-hero-query *) {
  font-family: var(--dwt-page-font) !important;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
  -webkit-text-fill-color: currentColor;
}

#main-content.dwt-page-design :is(.dwt-service-content, .course-details, .dwt-intro, .pro-content, .dwt-supplier, .dwt-booking-cards) p,
#main-content.dwt-page-design :is(.dwt-service-content, .course-details, .dwt-supplier, .dwt-offer-features, .list.angle-double-right, .course-info-list) li:not(.dwt-company *) {
  font: 400 var(--dwt-page-text)/1.65 var(--dwt-page-font) !important;
}

#main-content.dwt-page-design :is(p,li) > a:not(.btn, .dwt-hero-breadcrumb *, .nav *, .panel-title *, .dwt-side-panel *) {
  text-underline-offset: .2em;
  text-decoration: underline;
}
#main-content.dwt-page-design :focus-visible {
  outline: 2px solid #a65a2e;
  outline-offset: 3px;
}

#main-content.dwt-page-design :is(.fa,[class*="pe-7s-"])::before {
  -webkit-text-fill-color: currentColor;
}
#main-content.dwt-page-design .dwt-hero-query h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
#main-content.dwt-page-design .dwt-hero-query h2 i {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  margin: 0;
  font-size: 18px;
}

#main-content.dwt-page-design :is(.double-line-bottom-theme-colored-2,.line-bottom-theme-colored-2,.line-bottom-centered):is(h2,h3,h4,h5,h6,div:empty)::before,
#main-content.dwt-page-design :is(.double-line-bottom-theme-colored-2,.line-bottom-theme-colored-2,.line-bottom-centered):is(h2,h3,h4,h5,h6,div:empty)::after {
  content: none;
}
#main-content.dwt-page-design div.double-line-bottom-theme-colored-2:empty { display: none; }

#main-content.dwt-page-design :is(.course-single-item, .prodect .website, .dwt-booking-cards .icon-box) {
  border: 1px solid #d4e1dc;
  border-inline-start: 3px solid #145744;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 0 #dfeae5, 0 12px 24px #102b3d14;
}
#main-content.dwt-page-design .prodect .website {
  height: 100%;
  padding: 10px;
  margin-top: 0 !important;
}
#main-content.dwt-page-design .prodect .website a { display: block; }
#main-content.dwt-page-design .prodect .website img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}
#main-content.dwt-page-design .prodect .website h4 {
  background: transparent;
  color: #102b3d;
  font-size: clamp(17px, 2vw, 22px);
}
#main-content.dwt-page-design .prodect .row:has(.website) {
  display: flex;
  flex-wrap: wrap;
  row-gap: 18px;
}
#main-content.dwt-page-design .prodect .row:has(.website) > .col-sm-12 { width: 100%; }
@media (max-width: 767px) {
  #main-content.dwt-page-design .prodect .row:has(.website) > .col-sm-4 { width: 100%; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #main-content.dwt-page-design :is(.course-single-item,.prodect .website,.dwt-supplier) {
    transition: translate .18s ease, box-shadow .18s ease;
  }
  #main-content.dwt-page-design :is(.course-single-item,.prodect .website,.dwt-supplier):is(:hover,:focus-within) {
    translate: 0 -3px;
    box-shadow: 0 4px 0 #dfeae5, 0 14px 26px #102b3d25;
  }
}

#main-content.dwt-page-design :is(.dwt-service-content, .course-details, .pro-content) p {
  margin-block: 0 1em;
}

#main-content.dwt-page-design .dwt-service-content :is(h2,h3,h4) {
  margin-block-end: .7em !important;
}

#main-content.dwt-page-design #myTab.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-block-end: 6px;
  border-bottom: 1px solid #d4e1dc;
}
#main-content.dwt-page-design #myTab.nav-tabs > li { float: none; margin: 0; }
#main-content.dwt-page-design #myTab.nav-tabs > li > a {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #b9cbc5;
  border-radius: 6px;
  background: #f5faf7;
  color: #173b34;
  font: 650 15px/1.4 var(--dwt-page-font);
  text-decoration: none;
}
#main-content.dwt-page-design #myTab.nav-tabs > li.active > a {
  border-color: #185c49;
  background: #185c49;
  color: #fff;
}
#main-content.dwt-page-design #myTab.nav-tabs > li > a.btn {
  border-color: #874421;
  background: #874421;
  color: #fff;
}
#main-content.dwt-page-design #myTab.nav-tabs > li > a:is(:hover,:focus-visible) {
  border-color: #a65a2e;
  box-shadow: inset 0 -2px #a65a2e;
}

#main-content.dwt-page-design .dwt-service-content { container-type: inline-size; }
#main-content.dwt-page-design :is(h1,h2,h3,h4,h5,h6) {
  max-inline-size: 100%;
  white-space: normal;
  text-wrap: wrap;
}
#main-content.dwt-page-design :is(.dwt-service-content, .left-tab-content, .tab-content)
  :is(h2,h3,h4,h5,h6):not(.panel-title, .icon-box-title, .dwt-seo-cards *, .dwt-hero-query *) {
  display: block;
  inline-size: 100%;
}
#main-content.dwt-page-design .dwt-service-content :is(h2,h3,h4) {
  background: none;
  color: #102b3d;
  font-size: clamp(18px, 3cqi, 29px) !important;
}
#main-content.dwt-page-design .dwt-side-panel .panel-title { text-decoration: none; }

.dwt-seo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
  margin-block-end: 28px;
}
.dwt-seo-cards article {
  min-width: 0;
  padding: 16px;
  border: 1px solid #d4e1dc;
  border-inline-start: 3px solid #145744;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 0 #dfeae5, 0 12px 24px #102b3d14;
}
#main-content.dwt-page-design .dwt-seo-cards h3 {
  display: flex;
  width: auto;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  font-size: clamp(16px, 2.1cqi, 21px) !important;
  text-transform: none;
  text-decoration: none;
}
.dwt-seo-cards h3 span {
  text-decoration: underline 2px #b66e46;
  text-underline-offset: .22em;
}
.dwt-seo-cards h3 i {
  flex: 0 0 28px;
  color: #145744;
  text-align: center;
}
#main-content.dwt-page-design .dwt-seo-cards p {
  margin: 0;
  text-align: start !important;
  text-transform: none;
}


/* Keep menu labels aligned even when a narrow column needs a line break. */
#dwt-primary-nav .dwt-nav-column > p,
#dwt-primary-nav .dwt-nav-column li > a {
  text-align: start;
  word-spacing: normal;
  text-wrap: wrap;
}

/* Keep content checkmarks independent of navigation and tab indicators. */
#main-content.dwt-page-design :is(ul, ol):not(
  .nav, .nav *, .pagination, .pagination *, .breadcrumb, .breadcrumb *,
  .dwt-hero-breadcrumb *, .list-inline, .list-inline *,
  .dwt-offer-features, .course-info-list, .course-info-list *,
  .partnerslinkul, .image_frame *, .icon-list *, [role="tablist"], [role="tablist"] *
) > li {
  position: relative;
  padding-inline-start: 1.8em;
  list-style: none;
}
#main-content.dwt-page-design :is(ul, ol):not(
  .nav, .nav *, .pagination, .pagination *, .breadcrumb, .breadcrumb *,
  .dwt-hero-breadcrumb *, .list-inline, .list-inline *,
  .dwt-offer-features, .course-info-list, .course-info-list *,
  .partnerslinkul, .image_frame *, .icon-list *, [role="tablist"], [role="tablist"] *
) > li:is(li, :hover)::before {
  content: "✓";
  content: "✓" / "";
  position: absolute;
  inset: .18em auto auto 0;
  display: grid;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #17724d;
  color: #fff;
  font: 800 1em/1 "Segoe UI Symbol", sans-serif;
  pointer-events: none;
}
#main-content.dwt-page-design :is(ul,ol):not(.nav,.nav *,.pagination,.pagination *,.dwt-hero-breadcrumb *) > li > a:not(.btn) {
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* Cover paragraphs in legacy wrappers as well as the shared page sections. */
html body #main-content.dwt-page-design p,
html body .dwt-footer p,
html body.dwt-standalone-form main p {
  font-size: clamp(17px, 1.25vw, 19px) !important;
  line-height: 1.65 !important;
}
html body #main-content.dwt-page-design p:not(
  .inner-header *, .dwt-hero *, .dwt-offer *, .dwt-query-card *,
  .dwt-supplier-contact *, .dwt-contact-cards *
) {
  font-family: var(--dwt-page-font) !important;
  text-align: start !important;
}
