﻿/* HDL Automation inspired category & post pages */
:root {
  --hdl-purple: #7e308e;
  --hdl-purple-dark: #5a368c;
  --hdl-gray-bg: #f6f6f6;
  --hdl-border: #eae8e8;
  --hdl-text: #424242;
  --hdl-text-muted: #696969;
  --hdl-text-light: #5b5b5b;
}

body.purple-mode-inner {
  background: #fff;
}

.hdl-content-wrap {
  background: #fff;
}

.hdl-container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hdl-topbar {
  border-bottom: 1px solid var(--hdl-border);
  padding: 22px 0;
  background: #fff;
  margin-top: 15px;
}

.hdl-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hdl-topbar__section {
  font-size: 16px;
  font-weight: 700;
  color: var(--hdl-purple);
  border-bottom: 3px solid var(--hdl-purple);
  padding-bottom: 18px;
  margin-bottom: -22px;
}

.hdl-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #5e5e5e;
}

.hdl-breadcrumb a {
  color: #5e5e5e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hdl-breadcrumb a:hover {
  color: var(--hdl-purple);
}

.hdl-breadcrumb__sep {
  opacity: 0.5;
}

.hdl-subnav {
  background: var(--hdl-gray-bg);
  border-bottom: 1px solid #ededed;
}

.hdl-subnav__inner {
  padding: 28px 0 18px;
}

.hdl-subnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

.hdl-subnav a {
  font-size: 15px;
  color: var(--hdl-text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hdl-subnav a:hover,
.hdl-subnav a.is-active {
  color: var(--hdl-purple);
  font-weight: 600;
}

.hdl-main {
  background:
    radial-gradient(ellipse 85% 55% at 15% -5%, rgba(126, 48, 142, 0.1), transparent 52%),
    radial-gradient(ellipse 70% 45% at 100% 100%, rgba(90, 54, 140, 0.07), transparent 48%),
    linear-gradient(180deg, #f3f0f7 0%, var(--hdl-gray-bg) 42%, #eeeef2 100%);
  padding: 48px 0 96px;
}

.hdl-category-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.hdl-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hdl-sidebar__widget {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow:
    0 8px 32px rgba(90, 54, 140, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.hdl-sidebar__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hdl-purple-dark);
}

.hdl-sidebar__hint {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--hdl-text-muted);
}

.hdl-sidebar-search {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hdl-sidebar-search__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hdl-sidebar-search__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--hdl-text-light);
}

.hdl-sidebar-search input,
.hdl-sidebar-search select {
  width: 100%;
  height: 46px;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--hdl-text);
  background: #fafafa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hdl-sidebar-search input:focus,
.hdl-sidebar-search select:focus {
  outline: none;
  border-color: var(--hdl-purple);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(126, 48, 142, 0.12);
}

.hdl-sidebar-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hdl-purple), var(--hdl-purple-dark));
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(90, 54, 140, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hdl-sidebar-search__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(90, 54, 140, 0.32);
}

.hdl-sidebar-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hdl-sidebar-cats a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--hdl-text-light);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.hdl-sidebar-cats a:hover {
  background: var(--hdl-gray-bg);
  color: var(--hdl-purple);
}

.hdl-sidebar-cats a.is-active {
  background: rgba(126, 48, 142, 0.1);
  color: var(--hdl-purple);
  font-weight: 600;
}

.hdl-category-content {
  min-width: 0;
}

.hdl-search-hint {
  background: #fff;
  border: 1px dashed var(--hdl-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
  color: var(--hdl-text-muted);
  font-size: 14px;
}

.hdl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hdl-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease;
}

.hdl-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.08) 42%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

.hdl-card:hover {
  transform: translateY(-10px);
  border-color: rgba(126, 48, 142, 0.28);
  box-shadow:
    0 22px 48px rgba(90, 54, 140, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.hdl-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.hdl-card__image {
  aspect-ratio: 4 / 3;
  margin: 14px 14px 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hdl-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hdl-card:hover .hdl-card__image img {
  transform: scale(1.06);
}

.hdl-card__title {
  display: block;
  flex: 1;
  min-height: 52px;
  padding: 16px 18px 20px;
  text-align: start;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--hdl-text);
  letter-spacing: -0.01em;
}

.hdl-card__cat {
  display: block;
  padding: 12px 18px 0;
  text-align: start;
  font-size: 12px;
  font-weight: 600;
  color: var(--hdl-purple);
  letter-spacing: 0.02em;
}

.hdl-empty {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  padding: 64px 24px;
  text-align: center;
  color: var(--hdl-text-muted);
  box-shadow: 0 8px 32px rgba(90, 54, 140, 0.06);
}

.hdl-pagination {
  margin-top: 48px;
  text-align: center;
}

.hdl-pagination .pagination {
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.hdl-pagination .page-item .page-link {
  min-width: 50px;
  height: 35px;
  line-height: 35px;
  padding: 0 12px;
  border: 0;
  border-radius: 20px;
  background: #efefef;
  color: #666;
  font-size: 16px;
  text-align: center;
}

.hdl-pagination .page-item.active .page-link,
.hdl-pagination .page-item .page-link:hover {
  background: var(--hdl-purple);
  color: #fff;
}

.hdl-detail-page {
  background: var(--hdl-gray-bg);
  padding: 48px 0 96px;
}

.hdl-detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  margin-bottom: 20px;
}

.hdl-detail-media {
  border-inline-end: 1px solid #f2f2f2;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hdl-detail-media img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.hdl-detail-intro {
  padding: 48px 40px;
}

.hdl-detail-intro h1 {
  font-size: 30px;
  font-weight: 600;
  color: var(--hdl-text);
  margin: 0 0 16px;
  line-height: 1.4;
}

.hdl-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #888;
}

.hdl-detail-brief {
  font-size: 15px;
  line-height: 2;
  color: var(--hdl-text-muted);
  margin-bottom: 24px;
}

.hdl-detail-body {
  background: #fff;
  padding: 48px 56px;
  color: var(--hdl-text-muted);
  font-size: 15px;
  line-height: 2;
}

.hdl-detail-body h1,
.hdl-detail-body h2,
.hdl-detail-body h3,
.hdl-detail-body h4 {
  color: var(--hdl-text);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.hdl-detail-body img {
  max-width: 100%;
  height: auto;
}

.hdl-detail-body .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.hdl-detail-body .gallery a {
  display: block;
  overflow: hidden;
  border: 1px solid #eee;
}

.hdl-detail-body .gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hdl-detail-body .gallery a:hover img {
  transform: scale(1.05);
}

.hdl-detail-model {
  font-family: 'ModamPro', sans-serif;
  direction: ltr;
  unicode-bidi: plaintext;
}

/* Product detail tabs — HDL style */
.hdl-product-tabs {
  background: #fff;
  margin-bottom: 28px;
}

.hdl-product-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 24px 0;
  border-bottom: 0;
}

.hdl-product-tabs__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: #f4effa;
  color: #5a368c;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.hdl-product-tabs__fa {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.hdl-product-tabs__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(69, 37, 110, 0.16);
}

.hdl-product-tabs__btn.is-active {
  background: linear-gradient(135deg, #5a368c, #45256e);
  color: #fff;
  box-shadow: 0 14px 28px rgba(69, 37, 110, 0.28);
}

.hdl-product-tabs__panel {
  display: none;
}

.hdl-product-tabs__panel.is-active {
  display: block;
}

.hdl-datasheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hdl-datasheet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5a368c, #45256e);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(69, 37, 110, 0.28);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.hdl-datasheet-btn:hover {
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(69, 37, 110, 0.34);
}

.hdl-datasheet-btn--download {
  background: linear-gradient(135deg, #7b4db0, #5a368c);
}

@media (max-width: 767.98px) {
  .hdl-product-tabs__nav {
    padding: 16px 16px 0;
    gap: 8px;
  }

  .hdl-product-tabs__btn {
    min-width: calc(50% - 4px);
    padding: 11px 14px;
  }
}

.hdl-related {
  margin-top: 48px;
}

.hdl-related__title {
  font-size: 24px;
  color: var(--hdl-text);
  margin: 0 0 24px;
  text-align: center;
}

@media (min-width: 1200px) {
  .hdl-grid {
    gap: 28px;
  }
}

@media (max-width: 991.98px) {
  .hdl-content-wrap {
    padding-top: 72px;
  }

  .hdl-category-layout {
    grid-template-columns: 1fr;
  }

  .hdl-sidebar {
    position: static;
  }

  .hdl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hdl-detail-hero {
    grid-template-columns: 1fr;
  }

  .hdl-detail-media {
    border-inline-end: 0;
    border-bottom: 1px solid #f2f2f2;
    min-height: 280px;
    padding: 24px;
  }

  .hdl-detail-intro,
  .hdl-detail-body {
    padding: 28px 24px;
  }
}

@media (max-width: 575.98px) {
  .hdl-grid {
    grid-template-columns: 1fr;
  }

  .hdl-topbar__section {
    font-size: 15px;
  }
}

/* Gallery lightbox grid */
.hdl-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 24px 0;
}

.hdl-gallery-item {
  display: block;
  border: 1px solid var(--hdl-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hdl-gallery-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.hdl-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.hdl-gallery-item__title {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--hdl-text);
}

/* Training courses */
.hdl-training-intro {
  padding: 24px 0 8px;
  color: var(--hdl-text-light);
  line-height: 1.8;
}

.hdl-training-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hdl-border);
  align-items: start;
}

.hdl-training-row__content h2 {
  font-size: 1.35rem;
  color: var(--hdl-purple);
  margin: 12px 0;
}

.hdl-training-row__image img {
  width: 100%;
  max-width: 420px;
  border-radius: 8px;
  border: 1px solid var(--hdl-border);
}

.hdl-training-row__brief {
  color: var(--hdl-text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

.hdl-training-row__more {
  color: var(--hdl-purple);
  font-weight: 600;
}

.hdl-course-form {
  background: var(--hdl-gray-bg);
  border: 1px solid var(--hdl-border);
  border-radius: 10px;
  padding: 20px;
}

.hdl-course-form__title {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--hdl-purple);
}

.hdl-course-form__course {
  font-size: 0.9rem;
  color: var(--hdl-text-muted);
  margin-bottom: 14px;
}

.hdl-course-form__field {
  margin-bottom: 12px;
}

.hdl-course-form__field label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--hdl-text);
}

.hdl-course-form__field input,
.hdl-course-form__field textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
}

.hdl-course-form__submit {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: var(--hdl-purple);
  color: #fff;
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
}

.hdl-course-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hdl-course-form__msg {
  margin-top: 10px;
  font-size: 13px;
}

.hdl-course-form__msg--success {
  color: #1b7f4a;
}

.hdl-course-form__msg--error {
  color: #b42318;
}

.hdl-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  padding: 0 0 32px;
}

.hdl-detail-layout .hdl-detail-body {
  padding-top: 0;
}

.hdl-detail-course-form {
  position: sticky;
  top: 100px;
}

/* Contact page */
.hdl-contact-page {
  --c-ink: #241536;
  --c-mute: #6d5f82;
  --c-line: rgba(74, 42, 118, 0.14);
  --c-soft: #f5f1fa;
  --c-accent: #5a368c;
  background:
    radial-gradient(70% 45% at 0% 18%, rgba(123, 77, 176, 0.07), transparent 60%),
    radial-gradient(55% 40% at 100% 8%, rgba(69, 37, 110, 0.06), transparent 55%),
    linear-gradient(180deg, #f3eef9 0%, #faf8fc 28%, #fff 100%);
  padding-bottom: 80px;
}

.hdl-contact-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 0;
  color: #fff;
  background:
    linear-gradient(125deg, #1c102e 0%, #3a1f5f 42%, #5a368c 78%, #6e46a3 100%);
}

.hdl-contact-hero__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(80% 70% at 70% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.55;
}

.hdl-contact-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.hdl-contact-hero__orb--a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: -18%;
  left: -8%;
  background: radial-gradient(circle, rgba(196, 176, 232, 0.38), transparent 68%);
  animation: hdlContactFloat 9s ease-in-out infinite;
}

.hdl-contact-hero__orb--b {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  bottom: -22%;
  right: 8%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  animation: hdlContactFloat 11s ease-in-out infinite reverse;
}

.hdl-contact-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  padding: 28px 16px 48px;
  min-height: 0;
}

.hdl-contact-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.hdl-contact-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.hdl-contact-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  animation: hdlContactRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hdl-contact-hero__lead {
  margin: 0 0 18px;
  max-width: 34rem;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
  animation: hdlContactRise 0.75s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hdl-contact-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: hdlContactRise 0.75s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hdl-contact-hero__aside {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
}

.hdl-contact-hero__ring {
  position: absolute;
  width: min(78%, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: hdlContactPulse 5.5s ease-in-out infinite;
}

.hdl-contact-hero__ring--delay {
  width: min(58%, 190px);
  animation-delay: 1.2s;
  border-color: rgba(196, 176, 232, 0.35);
}

.hdl-contact-hero__mark {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 28px 32px;
  text-align: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 48px rgba(12, 4, 28, 0.28);
}

.hdl-contact-hero__mark span {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}

.hdl-contact-hero__mark strong {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: #fff;
}

.hdl-contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #3a1f5f !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(12, 4, 28, 0.22);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background 0.25s ease;
  cursor: pointer;
}

.hdl-contact-cta i {
  font-size: 18px;
  line-height: 1;
}

.hdl-contact-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(12, 4, 28, 0.3);
  color: #3a1f5f !important;
}

.hdl-contact-cta--ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: none;
}

.hdl-contact-cta--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.hdl-contact-cta--block {
  width: 100%;
  margin-top: 4px;
  background: linear-gradient(135deg, #6a42a0, #45256e);
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(69, 37, 110, 0.28);
}

.hdl-contact-cta--block:hover {
  color: #fff !important;
}

.hdl-contact-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: -28px 0 36px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(90, 54, 140, 0.1);
  box-shadow:
    0 4px 12px rgba(36, 21, 54, 0.04),
    0 22px 48px rgba(69, 37, 110, 0.12);
}

.hdl-contact-strip__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: background 0.25s ease;
}

.hdl-contact-strip__item:hover {
  background: #f8f4fc;
}

.hdl-contact-strip__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(123, 77, 176, 0.16), rgba(90, 54, 140, 0.08));
  color: var(--c-accent);
  font-size: 20px;
}

.hdl-contact-strip__item small {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #9a86b8;
}

.hdl-contact-strip__item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.35;
  word-break: break-word;
}

.hdl-contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  padding: 0 0 40px;
}

.hdl-contact-aside {
  display: grid;
  gap: 0;
}

.hdl-contact-info {
  padding: 8px 4px 8px 8px;
}

.hdl-contact-info h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  color: var(--c-ink);
}

.hdl-contact-info h3 {
  margin: 22px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a86b8;
}

.hdl-contact-info__addr {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(90, 54, 140, 0.06);
  border: 1px solid rgba(90, 54, 140, 0.1);
  font-size: 14px;
  line-height: 1.85;
  color: var(--c-mute);
}

.hdl-contact-info__addr i {
  margin-top: 3px;
  color: var(--c-accent);
  font-size: 18px;
}

.hdl-contact-info__addr a {
  color: inherit;
  text-decoration: none;
}

.hdl-contact-info__addr a:hover {
  color: var(--c-accent);
}

.hdl-contact-dial {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hdl-contact-dial li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(90, 54, 140, 0.1);
  background: #fff;
  transition: border-color 0.2s ease, transform 0.25s ease;
}

.hdl-contact-dial li:hover {
  border-color: rgba(90, 54, 140, 0.28);
  transform: translateY(-1px);
}

.hdl-contact-dial span {
  font-size: 12px;
  font-weight: 600;
  color: #9a86b8;
}

.hdl-contact-dial a {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
  direction: ltr;
}

.hdl-contact-mail {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-accent);
  text-decoration: none;
}

.hdl-contact-mail:hover {
  text-decoration: underline;
}

.hdl-contact-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}

.hdl-contact-social > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-mute);
}

.hdl-contact-social__links {
  display: flex;
  gap: 8px;
}

.hdl-contact-social__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5a368c, #3a1f5f);
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.hdl-contact-social__links a:hover {
  transform: translateY(-2px);
  color: #fff;
}

.hdl-contact-panel {
  padding: 30px 28px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(90, 54, 140, 0.08);
  box-shadow:
    0 2px 8px rgba(36, 21, 54, 0.03),
    0 20px 44px rgba(69, 37, 110, 0.09);
}

.hdl-contact-panel__head {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line);
}

.hdl-contact-panel__head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--c-ink);
}

.hdl-contact-panel__head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-mute);
}

.hdl-contact-form {
  display: grid;
  gap: 14px;
}

.hdl-contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hdl-contact-form__field {
  display: grid;
  gap: 7px;
}

.hdl-contact-form__field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-ink);
}

.hdl-contact-form__field input,
.hdl-contact-form__field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(90, 54, 140, 0.14);
  border-radius: 14px;
  background: var(--c-soft);
  color: var(--c-ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.hdl-contact-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.hdl-contact-form__field input:focus,
.hdl-contact-form__field textarea:focus {
  border-color: rgba(90, 54, 140, 0.42);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(90, 54, 140, 0.1);
}

.hdl-contact-form__msg {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
}

.hdl-contact-form__msg.is-ok {
  background: rgba(90, 54, 140, 0.08);
  color: #5a368c;
}

.hdl-contact-map {
  margin: 0 0 28px;
}

.hdl-contact-map__frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(90, 54, 140, 0.1);
  box-shadow: 0 18px 44px rgba(69, 37, 110, 0.1);
}

.hdl-contact-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.hdl-contact-map__caption {
  position: absolute;
  inset: auto 16px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(36, 21, 54, 0.12);
}

.hdl-contact-map__caption h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--c-ink);
}

.hdl-contact-map__caption p {
  margin: 0;
  max-width: 36rem;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--c-mute);
}

.hdl-contact-map__caption a {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--c-accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hdl-contact-extra {
  border-top: 1px solid var(--c-line);
  padding: 28px 0 12px;
  color: var(--c-mute);
  line-height: 1.9;
}

@media (max-width: 575.98px) {
  .hdl-contact-strip {
    grid-template-columns: 1fr;
  }
}

@keyframes hdlContactFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(12px, -16px, 0); }
}

@keyframes hdlContactPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes hdlContactRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hdl-static-page__hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--hdl-border);
}

.hdl-static-page__body {
  padding: 28px 0 40px;
  color: var(--hdl-text);
  line-height: 1.9;
}

.hdl-static-page__body img {
  max-width: 100%;
  height: auto;
}

/* 404 */
.hdl-notfound-page {
  padding: 48px 0 80px;
}

.hdl-notfound {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 24px 56px;
}

.hdl-notfound__code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--hdl-purple);
  opacity: 0.18;
  margin: 0 0 8px;
  user-select: none;
}

.hdl-notfound__title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--hdl-purple-dark);
  margin: 0 0 16px;
  font-weight: 700;
}

.hdl-notfound__text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--hdl-text-light);
  margin: 0 0 32px;
}

.hdl-notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hdl-notfound__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hdl-notfound__btn--primary {
  background: var(--hdl-purple);
  color: #fff;
  border: 1px solid var(--hdl-purple);
}

.hdl-notfound__btn--primary:hover {
  background: var(--hdl-purple-dark);
  border-color: var(--hdl-purple-dark);
  color: #fff;
}

.hdl-notfound__btn--ghost {
  background: #fff;
  color: var(--hdl-purple);
  border: 1px solid var(--hdl-border);
}

.hdl-notfound__btn--ghost:hover {
  border-color: var(--hdl-purple);
  background: var(--hdl-gray-bg);
}

/* Archive / magazine category (non-products) */
.hdl-main--archive {
  background: linear-gradient(180deg, #fff 0%, #f9f7fc 35%, #f3eef9 100%);
  padding: 40px 0 96px;
}

.hdl-archive-lead {
  max-width: 640px;
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--hdl-text-light);
}

.hdl-archive-siblings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.hdl-archive-pill {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--hdl-text-light);
  background: #fff;
  border: 1px solid var(--hdl-border);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hdl-archive-pill:hover {
  color: var(--hdl-purple);
  border-color: rgba(126, 48, 142, 0.35);
  box-shadow: 0 6px 18px rgba(90, 54, 140, 0.08);
}

.hdl-archive-pill.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--hdl-purple), var(--hdl-purple-dark));
  border-color: transparent;
}

.hdl-archive-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hdl-archive-card {
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(216, 204, 232, 0.65);
  box-shadow: 0 8px 28px rgba(90, 54, 140, 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.hdl-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(90, 54, 140, 0.1);
}

.hdl-archive-card__link {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 0;
  color: inherit;
  text-decoration: none;
}

.hdl-archive-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0ebf6;
}

.hdl-archive-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hdl-archive-card:hover .hdl-archive-card__media img {
  transform: scale(1.05);
}

.hdl-archive-card__body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.hdl-archive-card__title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--hdl-text);
}

.hdl-archive-card__excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--hdl-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hdl-archive-card__more {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hdl-purple);
}

.hdl-archive-card--featured .hdl-archive-card__link {
  grid-template-columns: minmax(240px, 42%) minmax(0, 1fr);
}

.hdl-archive-card--featured .hdl-archive-card__media {
  aspect-ratio: auto;
  min-height: 260px;
}

.hdl-archive-card--featured .hdl-archive-card__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.hdl-archive-empty {
  text-align: center;
  padding: 64px 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px dashed var(--hdl-border);
  color: var(--hdl-text-muted);
}

.hdl-pagination--archive {
  margin-top: 48px;
}

@media (max-width: 991.98px) {
  .hdl-training-row {
    grid-template-columns: 1fr;
  }

  .hdl-detail-layout,
  .hdl-contact-layout,
  .hdl-contact-form__row,
  .hdl-contact-hero__grid {
    grid-template-columns: 1fr;
  }

  .hdl-contact-strip {
    grid-template-columns: 1fr 1fr;
  }

  .hdl-contact-hero__grid {
    padding: 22px 8px 40px;
  }

  .hdl-contact-hero__aside {
    display: none;
  }

  .hdl-contact-strip {
    margin-top: -22px;
  }

  .hdl-contact-strip__item {
    padding: 14px 12px;
  }

  .hdl-contact-strip__item strong {
    font-size: 12.5px;
  }

  .hdl-contact-panel {
    padding: 24px 18px;
  }

  .hdl-contact-map iframe {
    height: 260px;
  }

  .hdl-contact-map__caption {
    inset: auto 10px 10px 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hdl-contact-dial li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hdl-detail-course-form {
    position: static;
  }

  .hdl-archive-card__link,
  .hdl-archive-card--featured .hdl-archive-card__link {
    grid-template-columns: 1fr;
  }

  .hdl-archive-card__media,
  .hdl-archive-card--featured .hdl-archive-card__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .hdl-archive-card__body {
    padding: 22px 20px 24px;
  }
}
