/* ============================================================
   upcoming-training-details.css
   Pixel-aligned styles for upcoming training course detail page
   ============================================================ */

:root {
  --utd-orange: #f16522;
  --utd-orange-hover: #e25a1e;
  --utd-navy: #1e2a44;
  --utd-ink: #0d1b2a;
  --utd-teal: #0d6e7a;
  --utd-teal-soft: #e8f4f5;
  --utd-teal-icon: #1e7b74;
  --utd-muted: #6b7280;
  --utd-body: #4b5563;
  --utd-border: #e5e7eb;
  --utd-surface: #f9fafb;
  --utd-white: #ffffff;
  --utd-radius: 12px;
  --utd-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --utd-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* ---- Page section shell ---- */
.utd-section {
  padding: 80px 0 56px 0;
  background: var(--utd-white);
}

.utd-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px;
}

/* ---- Featured media ---- */
.utd-hero-media {
  margin: 0 0 32px;
  border-radius: var(--utd-radius);
  overflow: hidden;
  box-shadow: var(--utd-shadow-sm);
  background: #e5e7eb;
}

.utd-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---- Course Overview ---- */
.utd-overview {
  margin-bottom: 40px;
}

.utd-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--utd-navy);
}

.utd-section-title-bar {
  flex-shrink: 0;
  width: 28px;
  height: 3px;
  background: var(--utd-orange);
  border-radius: 2px;
}

.utd-overview-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.utd-overview-body p {
  margin: 0;
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: var(--utd-body);
}

.utd-overview-body ul,
.utd-overview-body ol {
  margin: 0;
  padding-left: 1.25rem;
  font-family: 'DM Sans', Inter, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--utd-body);
}

.utd-overview-body li {
  margin: 0 0 0.35rem;
}

.utd-overview-body li:last-child {
  margin-bottom: 0;
}

.utd-overview-body a {
  color: var(--utd-orange);
  text-decoration: underline;
}

.utd-overview-body strong,
.utd-overview-body b {
  font-weight: 600;
}

/* ---- Curriculum ---- */
.utd-curriculum {
  background: var(--utd-white);
  border: 1px solid var(--utd-border);
  border-radius: var(--utd-radius);
  box-shadow: var(--utd-shadow-sm);
  padding: 24px 24px 8px;
}

.utd-curriculum-header {
  display: flex;
  /* align-items: center;
  justify-content: space-between; */
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.utd-curriculum-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.utd-curriculum-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(13, 110, 122, 1);
  flex-shrink: 0;
}

.utd-curriculum-title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: rgba(17, 24, 39, 1);
}

.utd-curriculum-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(238, 247, 248, 1);
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.3;
  color:rgba(13, 110, 122, 1);
  white-space: nowrap;
}

/* Accordion */
.utd-accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-btn-padding-y: 0;
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-body-padding-y: 0;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-btn-focus-border-color: transparent;
}

.utd-acc-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--utd-border);
  margin: 0;
}

.utd-acc-item:last-child {
  border-bottom: 0;
}

.utd-acc-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 4px;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--utd-navy);
  font-family: 'DM Sans', Inter, sans-serif;
}

.utd-acc-btn:not(.collapsed) {
  color: var(--utd-navy);
}

.utd-acc-btn::after {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-left: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: 16px;
  transition: transform 0.2s ease;
}

.utd-acc-btn:not(.collapsed)::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230D6E7A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.utd-day-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--utd-teal-soft);
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  color: var(--utd-teal);
}

.utd-acc-label {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(17, 24, 39, 1);
}

.utd-acc-body {
  padding: 2px;
}

.utd-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.utd-topic-list li {
  position: relative;
  padding-left: 16px;
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
}

.utd-topic-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0D6E7A;
}

/* ---- Sidebar ---- */
.utd-sidebar {
  top: 96px;
  z-index: 2;
}

.utd-sidebar-card {
  background: var(--utd-white);
  border: 1px solid var(--utd-border);
  border-radius: var(--utd-radius);
  box-shadow: var(--utd-shadow);
  overflow: hidden;
}

.utd-sidebar-header {
  background: var(--utd-surface);
  border-bottom: 1px solid var(--utd-border);
  padding: 16px 22px;
}

.utd-sidebar-title {
  margin: 0;
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0D1B2A;
}

.utd-meta-list {
  list-style: none;
  margin: 0;
  padding: 8px 22px 8px;
  display: flex;
  flex-direction: column;
}

.utd-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}

.utd-meta-item:last-child {
  border-bottom: 0;
}

/* .utd-meta-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--utd-teal-soft);
  color: var(--utd-teal-icon);
} */
.utd-meta-icon svg{
 stroke: #0D6E7A;
}
.utd-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-top: 2px;
}

.utd-meta-label {
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.utd-meta-value {
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  color: #374151;
}

.utd-apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 22px 22px;
  height: 48px;
  padding: 0 20px;
  background: var(--utd-orange);
  border-radius: 8px;
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: var(--utd-white);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.utd-apply-btn:hover {
  background: var(--utd-orange-hover);
  color: var(--utd-white);
}

.utd-apply-btn:active {
  transform: translateY(1px);
}

/* ---- Related courses ---- */
.utd-related-section {
  padding: 24px 0 8px;
  background: var(--utd-white);
}

.utd-related-heading {
  margin: 0 0 28px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0D1B2A;
}

.utd-related-heading em {
  font-style: italic;
  color: var(--utd-orange);
}

.utd-related-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.utd-related-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  background: var(--utd-white);
  border: 1px solid rgba(229, 231, 235, 1);
  border-radius: var(--utd-radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

 .tr-breadcrumb-shell.traning{
  margin-top: -30px !important;
}

.utd-related-card:hover {
  border-color: #d1d5db;
  box-shadow: var(--utd-shadow);
}

.utd-related-thumb {
  overflow: hidden;
  background: #e5e7eb;
  aspect-ratio: 4 / 3;
}

.utd-related-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.utd-related-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0px 73px 0px 0px;
  
}

.utd-related-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  color: var(--utd-teal-icon);
}
.utd-related-stat span{
  font-size:16px;
  font-weight: 400;
  color:#0D1B2ACC;
}

.utd-related-stat img {
  flex-shrink: 0;
}

.utd-related-title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.25;
  color: #111827;
  text-decoration: none;
}

/* prevent Bootstrap global <a> underline from bleeding into card body */
.utd-related-body a {
  text-decoration: none;
}

.utd-related-desc {
  margin: 0;
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: #110C2D99;
  border-bottom: 1px solid #F3F4F6;
  padding-bottom: 20px;

}

.utd-related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-family: 'DM Sans', Inter, sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  color: #0D6E7A;
  text-decoration: none;
  transition: color 0.15s ease, gap 0.15s ease;
 
}


.utd-related-link:hover {
  color: var(--utd-orange);
  gap: 8px;
}

.utd-related-link:hover svg path {
  stroke: var(--utd-orange);
}
/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .utd-sidebar {
    top: 0;
    position: static !important;
  }

  .utd-acc-body {
    padding-left: 4px;
  }

  .utd-related-card {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 767.98px) {
  .utd-section {
    padding: 28px 0 40px;
  }

  .utd-inner {
    padding: 0 16px;
  }

  .utd-section-title {
    font-size: 24px;
  }

  .utd-curriculum {
    padding: 18px 16px 4px;
  }

  .utd-curriculum-title {
    font-size: 20px;
  }

  .utd-acc-btn {
    align-items: flex-start;
    padding: 14px 0;
  }

  .utd-day-badge {
    margin-top: 2px;
  }

  .utd-acc-label {
    font-size: 14px;
  }

  .utd-related-section {
    padding: 8px 0 0px;
  }

  .utd-related-heading {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .utd-related-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
  }

  .utd-related-thumb {
    aspect-ratio: 16 / 10;
  }

  .utd-related-body {
    padding: 0 4px 4px;
  }
}
