/* Expertise — modern layout aligned with training / career pages */

.expertise-hero {
  background: linear-gradient(135deg, #0f172a 0%, var(--webiste-primary-color, #1e407f) 55%, rgb(24, 75, 82) 100%);
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-top: 120px !important;
}
.expertise-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgb(24, 75, 82) 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, rgb(24, 75, 82) 0%, transparent 40%);
  pointer-events: none;
}
.expertise-hero .container {
  position: relative;
  z-index: 1;
}
.expertise-hero h1 {
  font-family: "Chakra Petch", "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: #fff !important;
}
.expertise-hero-lead {
  opacity: 0.9;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
.expertise-breadcrumb {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  opacity: 0.85;
  margin-bottom: 15px !important;
}
.expertise-breadcrumb a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}
.expertise-breadcrumb a:hover {
  text-decoration: underline;
}

.expertise-page {
  padding: 2.5rem 0 4.5rem;
  background: #f8fafc;
}

.expertise-intro {
  margin-bottom: 2.5rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8eef4;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.expertise-intro h2 {
  font-family: "Chakra Petch", "Montserrat", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
}
.expertise-intro p {
  color: #475569;
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

.expertise-list-head {
  margin-bottom: 1.5rem;
}
.expertise-list-head h2 {
  font-family: "Chakra Petch", "Montserrat", sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}
.expertise-list-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 2.5rem;
}
.expertise-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.expertise-card:hover {
  border-color: rgba(30, 64, 127, 0.2);
  box-shadow: 0 12px 40px rgba(30, 64, 127, 0.1);
  transform: translateY(-2px);
  color: inherit;
}
.expertise-card-main {
  flex: 1;
  padding: 20px 24px;
}
.expertise-card-title {
  font-family: "Chakra Petch", "Montserrat", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.35;
  color: #0f172a !important;
}
.expertise-card-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}
.expertise-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  background: var(--webiste-primary-color);
  color: #fff;
}
.expertise-card-cta {
  font-size: 0.85rem;
  font-weight: 700;
}
.expertise-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--webiste-primary-color);
  font-size: 1rem;
}

.expertise-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}

.expertise-cta {
  background: linear-gradient(135deg, var(--webiste-primary-color) 0%, rgb(4, 55, 62) 100%);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 12px 40px rgba(30, 64, 127, 0.2);
}
.expertise-cta-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-bottom: 8px;
}
.expertise-cta h3 {
  font-family: "Chakra Petch", "Montserrat", sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  margin: 0;
  color: #fff !important;
  text-transform: uppercase;
  line-height: 1.25;
}
.expertise-cta h3 b {
  font-weight: 900;
}
.expertise-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #fff;
  color: var(--webiste-primary-color);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.expertise-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: var(--webiste-primary-color);
}

/* Detail page */
.expertise-detail-hero {
  background: linear-gradient(160deg, rgb(4, 55, 62) 0%, var(--webiste-primary-color, #1e407f) 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  position: relative;
  overflow: hidden;
  padding-top: 100px !important;
}
.expertise-detail-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.expertise-detail-hero .container {
  position: relative;
  z-index: 1;
}
.expertise-detail-hero h1 {
  font-family: "Chakra Petch", "Montserrat", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 700;
  margin: 16px 0 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff !important;
}
.expertise-detail-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  margin-bottom: 8px;
}

.expertise-detail-wrap {
  background: #f8fafc;
  padding-bottom: 4rem;
}
.expertise-detail-layout {
  display: grid;
  grid-template-columns: 1fr min(360px, 34%);
  gap: 32px;
  padding-top: 2rem;
  align-items: start;
}
.expertise-info-block {
  background: #fff;
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 20px;
  border: 1px solid #e8eef4;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.expertise-info-text {
  color: #475569;
  line-height: 1.75;
  font-size: 0.95rem;
}
.expertise-info-text p {
  margin-bottom: 1rem;
}
.expertise-info-text p:last-child {
  margin-bottom: 0;
}

.expertise-sidebar-panel {
  position: sticky;
  top: 100px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8eef4;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.expertise-sidebar-head {
  padding: 20px 24px;
  border-bottom: 1px solid #e8eef4;
  background: linear-gradient(160deg, var(--webiste-primary-color) 0%, rgb(4, 55, 62) 100%);
  color: #fff;
}
.expertise-sidebar-head h3 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff !important;
}
.expertise-related-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 70vh;
  overflow-y: auto;
}
.expertise-related-item a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s, background 0.2s;
}
.expertise-related-item a:hover {
  border-color: var(--webiste-primary-color);
  background: rgba(30, 64, 127, 0.04);
}
.expertise-related-body {
  flex: 1;
  min-width: 0;
}
.expertise-related-body h4 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}
.expertise-related-body p {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}
.expertise-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--webiste-primary-color);
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
}
.expertise-back-link:hover {
  background: rgba(30, 64, 127, 0.06);
  border-color: var(--webiste-primary-color);
}

@media (max-width: 991px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  .expertise-detail-layout {
    grid-template-columns: 1fr;
  }
  .expertise-sidebar-panel {
    position: static;
  }
  .expertise-related-list {
    max-height: none;
  }
}

@media screen and (max-width: 760px) {
  .expertise-hero,
  .expertise-detail-hero {
    padding-top: 70px !important;
  }
  .expertise-hero h1 {
    line-height: 1.2 !important;
  }
  .expertise-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
