/* Dallol Tech — public site (Bootstrap companion layer) — black, white, gold */
:root {
  --dt-ink: #0a0a0a;
  --dt-ink-soft: #3f3f3f;
  --dt-line: rgba(10, 10, 10, 0.08);
  --dt-gold: #d4a012;
  --dt-gold-bright: #f0c14b;
  --dt-gold-dark: #9a7209;
  --dt-accent: var(--dt-gold);
  --dt-mesh-1: #0a0a0a;
  --dt-mesh-2: #1a1510;
  --dt-mesh-3: #2b2418;
}

html {
  scroll-behavior: smooth;
}

body.dt-site {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--dt-ink);
  background: #f8fafc;
  overflow-x: hidden;
}

.dt-topbar {
  font-size: 0.8rem;
  background: linear-gradient(90deg, #000000, #1c1410 45%, #0a0a0a);
  color: #f5f5f5;
}

.dt-navbar {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--dt-line);
}

.dt-navbar .nav-link {
  font-weight: 500;
  color: var(--dt-ink-soft) !important;
  border-radius: 999px;
  padding: 0.5rem 0.85rem !important;
}

.dt-navbar .nav-link:hover,
.dt-navbar .nav-link.active {
  background: rgba(212, 160, 18, 0.12);
  color: var(--dt-gold-dark) !important;
}

.dt-nav-toggler {
  border: 1px solid rgba(10, 10, 10, 0.15);
}

.text-dt-gold {
  color: var(--dt-gold-bright) !important;
}

.text-dt-gold-dark {
  color: var(--dt-gold-dark) !important;
}

.btn-dt-gold {
  --bs-btn-bg: var(--dt-gold);
  --bs-btn-border-color: var(--dt-gold-dark);
  --bs-btn-hover-bg: var(--dt-gold-bright);
  --bs-btn-hover-border-color: var(--dt-gold);
  --bs-btn-active-bg: var(--dt-gold-dark);
  --bs-btn-active-border-color: #5c4306;
  --bs-btn-color: #111;
  --bs-btn-hover-color: #111;
}

.dt-brand img {
  height: 44px;
  width: auto;
}

.dt-hero-carousel .carousel-control-prev-icon,
.dt-hero-carousel .carousel-control-next-icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.dt-hero-carousel .carousel-indicators {
  z-index: 4;
  margin-bottom: 0;
}

.dt-hero-carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  margin: 0 0.2rem;
  background-color: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.dt-hero-carousel .carousel-indicators .active {
  background-color: var(--dt-gold-bright);
  transform: scale(1.15);
}

.dt-hero-carousel .carousel-control-prev,
.dt-hero-carousel .carousel-control-next {
  z-index: 4;
}

.dt-hero-slide {
  min-height: 420px;
  position: relative;
  color: #fff;
  overflow: hidden;
}

.dt-hero-slide,
.dt-hero-slide:visited {
  color: #fff;
}

.dt-hero-slide:focus-visible {
  outline: 2px solid var(--dt-gold-bright);
  outline-offset: -3px;
}

.dt-hero-slide__media {
  position: absolute;
  inset: 0;
}

.dt-hero-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dt-hero-slide__title {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

@media (max-width: 767.98px) {
  .dt-hero-carousel .carousel-indicators {
    top: 0.75rem;
    bottom: auto;
    margin-top: 0;
  }

  .dt-hero-slide {
    min-height: 0;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
  }

  .dt-hero-slide__media {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
  }

  .dt-hero-slide__img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .dt-hero-slide__overlay {
    display: none;
  }

  .dt-hero-slide__body {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    min-height: 0;
    max-height: none;
    padding: 0.5rem 1rem 0.65rem;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.3rem;
    background: linear-gradient(180deg, #101010 0%, #0a0a0a 100%);
    border-top: 1px solid rgba(212, 160, 18, 0.18);
  }

  .dt-hero-slide__body .dt-hero-kicker {
    margin-bottom: 0;
    font-size: 0.58rem;
    line-height: 1.1;
  }

  .dt-hero-slide__title {
    font-size: 0.82rem;
    line-height: 1.25;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: none;
  }
}

@media (min-width: 992px) {
  .dt-hero-slide {
    min-height: 520px;
  }
}

.dt-hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.18) 100%);
}

@media (min-width: 768px) {
  .dt-hero-carousel .carousel-indicators {
    bottom: 1.15rem;
  }

  .dt-hero-slide__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    max-width: 40rem;
    padding: 1.5rem 1rem 3.35rem;
  }

  .dt-hero-slide__title {
    font-size: clamp(1.75rem, 2.8vw, 2.85rem);
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.dt-hero-slide__rule {
  position: relative;
  width: 3.5rem;
  height: 2px;
  margin: 0.55rem 0 0.85rem;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.dt-hero-slide__rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dt-gold-bright);
  transform-origin: left center;
  transform: scaleX(0);
}

.carousel-item.active .dt-hero-slide__rule::after {
  animation: dt-hero-progress 6.5s linear forwards;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-item.active .dt-hero-slide__rule::after {
    animation: none;
    transform: scaleX(1);
  }
}

@keyframes dt-hero-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (max-width: 767.98px) {
  .dt-hero-slide__rule {
    width: 2rem;
    margin: 0;
    flex-shrink: 0;
  }

  .carousel-item.active .dt-hero-slide__rule::after {
    animation: none;
    transform: scaleX(1);
  }
}

.dt-hero-kicker {
  color: var(--dt-gold-bright);
  letter-spacing: 0.12em;
}

.dt-hero-follow {
  background: linear-gradient(160deg, #0a0a0a 0%, #1a1510 40%, #0a0a0a 100%);
  border-bottom: 1px solid rgba(212, 160, 18, 0.2);
}

.dt-stat__num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--dt-gold-dark);
  letter-spacing: -0.02em;
}

.dt-stat__lbl {
  display: block;
  font-size: 0.8rem;
  color: var(--dt-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dt-why-card {
  border-left: 3px solid var(--dt-gold) !important;
}

.dt-why-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--dt-gold-dark);
  letter-spacing: 0.08em;
}

.dt-sol-badge {
  border-radius: 0.35rem;
  background: rgba(212, 160, 18, 0.15);
  color: var(--dt-gold-dark);
}

.dt-solution-card {
  border-color: rgba(10, 10, 10, 0.08) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dt-solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.12);
}

.dt-main .card {
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dt-main .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.dt-solution-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 999px;
  border: 2px solid rgba(212, 160, 18, 0.7);
  color: var(--dt-gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

.dt-contact-card {
  border-color: rgba(212, 160, 18, 0.25) !important;
}

.dt-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
}

/* Blog — overlapping cards */
.dt-blog-stack {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.dt-blog-card-wrap {
  position: relative;
}

.dt-blog-card-wrap + .dt-blog-card-wrap {
  margin-top: -2.25rem;
}

.dt-blog-card-wrap:nth-child(even) .card {
  margin-left: auto;
  max-width: 92%;
}

.dt-blog-card-wrap:nth-child(odd) .card {
  margin-right: auto;
  max-width: 92%;
}

.dt-blog-card-wrap .card {
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 1;
}

.dt-blog-card-wrap:hover .card {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  z-index: 5;
}

.dt-blog-card-wrap .card-body {
  padding: 1.75rem 1.85rem;
}

.dt-news-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dt-news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12) !important;
}

.dt-news-card__img {
  height: 220px;
  object-fit: cover;
}

.dt-partner-card__media {
  display: block;
  height: 220px;
  background: #fff;
  border-bottom: 1px solid var(--dt-line);
}

.dt-partner-card__img {
  height: 220px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  padding: 1.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.dt-partner-home-card .dt-partner-card__media {
  height: 160px;
}

.dt-partner-home-card .dt-partner-card__img {
  height: 160px;
  padding: 1rem;
}

.dt-partner-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0a0a0a 0%, #1a1510 45%, #0a0a0a 100%);
}

.dt-partner-home-card__initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dt-gold-bright);
  background: rgba(212, 160, 18, 0.12);
  border: 2px solid rgba(240, 193, 75, 0.35);
  box-shadow: 0 0 24px rgba(212, 160, 18, 0.2);
}

.dt-blog-gallery-img {
  height: 420px;
  object-fit: cover;
}

.dt-blog-hero-main {
  margin-bottom: 1.1rem;
}

.dt-blog-hero-carousel .carousel-control-prev,
.dt-blog-hero-carousel .carousel-control-next {
  width: 10%;
}

.dt-blog-thumb-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 0.45rem;
}

.dt-blog-thumb {
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 0.65rem;
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.dt-blog-thumb img {
  width: 100%;
  height: 58px;
  object-fit: cover;
  display: block;
}

.dt-blog-thumb.active {
  border-color: #0f172a;
  box-shadow: 0 0 0 1px #0f172a inset;
}

.dt-blog-share {
  border-color: var(--dt-line) !important;
}

.dt-share-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  border: 1px solid var(--dt-line);
  background: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dt-share-btn:hover {
  color: #fff;
  border-color: #0f172a;
  background: #0f172a;
}

/* Rich HTML body (blog, solutions, portfolio, features, learn, awards) */
.cms-body {
  color: var(--dt-ink-soft);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.cms-body > *:first-child {
  margin-top: 0;
}

.cms-body > *:last-child {
  margin-bottom: 0;
}

.cms-body h1,
.cms-body h2,
.cms-body h3,
.cms-body h4 {
  color: var(--dt-ink);
  font-weight: 800;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cms-body p,
.cms-body ul,
.cms-body ol,
.cms-body blockquote,
.cms-body pre,
.cms-body table {
  margin-bottom: 1.1rem;
}

.cms-body ul,
.cms-body ol {
  padding-left: 1.25rem;
}

.cms-body blockquote {
  border-left: 4px solid var(--dt-gold);
  padding: 0.5rem 0 0.5rem 1rem;
  background: rgba(212, 160, 18, 0.08);
  border-radius: 0 0.75rem 0.75rem 0;
}

.cms-body img,
.cms-body video {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.cms-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.cms-body th,
.cms-body td {
  border: 1px solid var(--dt-line);
  padding: 0.5rem 0.65rem;
  vertical-align: top;
}

.cms-body th {
  background: #f1f5f9;
  font-weight: 700;
}

.cms-body a {
  color: var(--dt-gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cms-body a:hover {
  color: var(--dt-ink);
}

.cms-body code {
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

.cms-body pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  max-width: 100%;
}

@media (max-width: 767.98px) {
  .dt-blog-gallery-img {
    height: 260px;
  }

  .cms-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Partners — portfolio mosaic */
.dt-partner-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  grid-auto-rows: 140px;
}

@media (max-width: 767.98px) {
  .dt-partner-mosaic {
    grid-auto-rows: auto;
  }
  .dt-partner-tile {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    min-height: 200px;
  }
}

.dt-partner-tile {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #0f172a;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dt-partner-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.dt-partner-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.75));
  z-index: 0;
}

.dt-partner-tile > * {
  position: relative;
  z-index: 1;
}

.dt-partner-tile .dt-partner-logo {
  max-height: 52px;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
}

.dt-partner-card {
  border: 1px solid var(--dt-line);
}

.dt-partner-logo-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dt-line);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.75rem;
}

.dt-partner-card .dt-partner-logo {
  width: 100%;
  max-width: 180px;
  max-height: 56px;
  height: auto;
  object-fit: contain;
  display: block;
}

.dt-partner-work-card__media {
  height: 200px;
  background: #fff;
  border-bottom: 1px solid var(--dt-line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dt-partner-work-card__logo {
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.dt-partner-tile.w-6 {
  grid-column: span 6;
  grid-row: span 2;
  min-height: 300px;
}

.dt-partner-tile.w-4 {
  grid-column: span 4;
  grid-row: span 2;
}

.dt-partner-tile.w-3 {
  grid-column: span 3;
}

.dt-partner-tile.w-5 {
  grid-column: span 5;
}

.dt-partner-tile.w-7 {
  grid-column: span 7;
}

/* Portfolio grid (work) */
.dt-portfolio-hero {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.dt-badge-muted {
  background: #e2e8f0;
  color: #0f172a;
}

.dt-work-card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--dt-line);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dt-work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.dt-work-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

/* Pager styling for public list pages */
.pagination {
  gap: 0.35rem;
}

.pagination .page-link {
  border-radius: 999px;
  border: 1px solid var(--dt-line);
  color: #0f172a;
}

.pagination .active .page-link,
.pagination .page-link:hover {
  background: #f3c74b;
  border-color: #f3c74b;
  color: #0f172a;
}

.dt-section-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dt-footer {
  background: #0b1220;
  color: #94a3b8;
  font-size: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.dt-footer h6 {
  color: #e2e8f0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dt-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.dt-footer a:hover {
  color: #fff;
}

.dt-footer .row > div {
  padding-top: 0.25rem;
}

.dt-footer .dt-social {
  margin-top: 0.5rem;
}

.dt-footer ul.list-unstyled {
  margin-bottom: 0;
}

.dt-footer ul.list-unstyled li:last-child {
  margin-bottom: 0 !important;
}

.dt-footer .small {
  line-height: 1.55;
}

.dt-footer .dt-social__link {
  width: 2.1rem;
  height: 2.1rem;
}

main.dt-main {
  flex: 1 0 auto;
}

.dt-social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dt-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dt-social__link svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.dt-social--inline .dt-social__link {
  color: #facc15;
}

.dt-social--footer .dt-social__link {
  color: #facc15;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.dt-social__link:hover {
  color: #fff;
  background: rgba(212, 160, 18, 0.35);
}

@media (max-width: 991.98px) {
  html,
  body {
    overflow-x: hidden;
  }

  .dt-navbar .navbar-collapse {
    margin-top: 0.75rem;
    border: 1px solid var(--dt-line);
    background: #fff;
    border-radius: 0.9rem;
    padding: 0.65rem;
  }

  .dt-footer {
    padding-top: 2.25rem !important;
  }
}

.dt-side-rail {
  position: fixed;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1030;
}

.dt-side-rail__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #0a0a0a;
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.35);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.dt-side-rail__btn:hover {
  color: #fff;
  background: #1a1510;
}

/* Udema public layout (navbar + course subnav) */
.udema-header--nav {
  z-index: 1080;
}

.udema-header--nav .dropdown-menu {
  z-index: 1090;
}

.udema-course-subnav {
  z-index: 1040;
}

/* Course page: tab bar sticks flush under measured site header (see learn_course_detail_scripts). */
.udema-course-sticky-nav--anchored {
  top: var(--dt-course-sticky-under-header, var(--udema-header-sticky-top, 88px));
}

.udema-fixed-chat {
  z-index: 1060;
}

/* Learn / Udema course cards: single layer (image XOR placeholder), link overlay — avoids overlap with template CSS */
.udema-learn-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 200px;
  overflow: hidden;
  background: #1a1510;
}

.udema-learn-card-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.udema-learn-card-media-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  background: linear-gradient(135deg, #1a1510 0%, #2b2418 55%, #3d2f14 100%);
}

.udema-learn-card-media-link {
  z-index: 1;
}

/* Course hero column when no cover (not the same stacking context as card media) */
.udema-course-hero-nocover {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
  padding: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  background: linear-gradient(135deg, #1a1510 0%, #2b2418 55%, #3d2f14 100%);
}

.udema-site {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
}

.udema-navbar {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(10px);
}

.udema-navbar .udema-nav-link {
  font-weight: 500;
  color: #444 !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.udema-navbar .udema-nav-link:hover,
.udema-navbar .udema-nav-link.active {
  background: rgba(212, 160, 18, 0.14) !important;
  color: #7a5908 !important;
}

.udema-header .nav-pills .nav-link {
  font-weight: 500;
  color: #555;
}

.udema-header .nav-pills .nav-link.active {
  background: linear-gradient(135deg, #d4a012, #f0c14b);
  color: #111 !important;
}

.udema-course-subnav .nav-link {
  white-space: nowrap;
}

.udema-course-subnav .nav-link:hover {
  background: rgba(212, 160, 18, 0.12);
}

@media (min-width: 992px) {
  .udema-course-sticky-nav--anchored {
    /* Fallback only until JS sets --dt-course-sticky-under-header from the real navbar height. */
    top: var(--dt-course-sticky-under-header, 76px);
  }
}

/* Eschool / Udema course listing hero (#hero_in.courses) — works with bundled style.css + Dallol gold */
.udema-hero-learn {
  position: relative;
  text-align: center;
  color: #fff;
  background: linear-gradient(125deg, #0a0a0a 0%, #1a1510 40%, #2b2418 100%);
}

.udema-hero-learn .wrapper {
  padding: 2.75rem 0 3.25rem;
}

@media (min-width: 768px) {
  .udema-hero-learn .wrapper {
    padding: 3.5rem 0 4rem;
  }
}

.udema-hero-learn .udema-hero-kicker {
  color: #f0c14b;
  letter-spacing: 0.06em;
}

.udema-hero-learn .udema-hero-h1 {
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.udema-hero-learn .udema-hero-h1 span {
  display: block;
  width: 3rem;
  height: 4px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #d4a012, #f0c14b);
}

.udema-hero-learn .udema-hero-lead {
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.udema-hero-learn--compact .wrapper {
  padding: 1.75rem 0 2rem;
}

@media (min-width: 768px) {
  .udema-hero-learn--compact .wrapper {
    padding: 2rem 0 2.25rem;
  }
}

.udema-hero-learn--compact .udema-hero-h1 {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
}

.udema-hero-learn--compact .udema-hero-h1 span {
  margin-bottom: 0.65rem;
}

.udema-hero-lead--sub {
  max-width: 36rem;
  opacity: 0.95;
}

.udema-listing-section .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.udema-grid-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.udema-grid-card {
  border-radius: 0.6rem !important;
}

.udema-listing-section .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.85rem 2rem rgba(10, 10, 10, 0.1) !important;
}

.udema-main {
  min-height: 40vh;
}

/* —— Udema public: multilingual header nav + course UX —— */
.udema-site {
  --udema-header-sticky-top: clamp(76px, 14vw, 108px);
}

.udema-header-nav-scroll {
  overflow: visible;
}

.udema-header-nav-list {
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  row-gap: 0.25rem;
  min-height: 2.75rem;
}

@media (min-width: 992px) {
  .udema-header-nav-scroll {
    max-width: none;
    margin-left: auto;
  }
}

.udema-nav-link--main .udema-nav-link__text {
  display: inline-block;
  max-width: min(11rem, 28vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

@media (max-width: 991.98px) {
  .udema-nav-link--main .udema-nav-link__text {
    max-width: none;
    white-space: normal;
    line-height: 1.3;
    text-overflow: unset;
  }

  .udema-header-nav-list {
    padding-bottom: 0.25rem;
  }
}

.udema-course-breadcrumb .breadcrumb {
  --bs-breadcrumb-divider: '›';
  row-gap: 0.25rem;
}

.udema-course-tabs {
  scrollbar-width: thin;
}

.udema-course-tabs .udema-course-tab {
  color: #2a2418 !important;
  background: rgba(212, 160, 18, 0.1);
  border: 1px solid rgba(212, 160, 18, 0.28);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.udema-course-tabs .udema-course-tab:hover {
  background: rgba(212, 160, 18, 0.16);
  border-color: rgba(212, 160, 18, 0.38);
}

.udema-course-tabs .udema-course-tab.active {
  background: rgba(212, 160, 18, 0.28) !important;
  color: #140f06 !important;
  border-color: rgba(154, 114, 9, 0.45);
  box-shadow: 0 0.2rem 0.65rem rgba(10, 10, 10, 0.08);
}

.udema-course-tab__label {
  max-width: min(10rem, 40vw);
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
}

.udema-course-section-card {
  transition: box-shadow 0.2s ease;
}

.udema-course-section-card:hover {
  box-shadow: 0 0.65rem 1.75rem rgba(10, 10, 10, 0.08) !important;
}

.udema-course-section + .udema-course-section {
  margin-top: 0;
}

.udema-course-sticky-nav--tight {
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.06) !important;
}

/* In-page section anchors clear sticky header + course tab bar */
.udema-course-section[id] {
  scroll-margin-top: calc(var(--dt-course-sticky-under-header, 88px) + 3rem);
}

/* Learn dashboard: in-page anchors clear sticky header + action bar */
.learn-dash-anchor {
  scroll-margin-top: calc(var(--dt-course-sticky-under-header, 88px) + 3.25rem);
}

/* Learn dashboard — full-width sticky pills (match course tab styling) */
.learn-dash-tabs {
  scrollbar-width: thin;
}

.learn-dash-tabs .learn-dash-tab {
  color: #2a2418 !important;
  background: rgba(212, 160, 18, 0.1);
  border: 1px solid rgba(212, 160, 18, 0.28);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.learn-dash-tabs .learn-dash-tab:hover {
  background: rgba(212, 160, 18, 0.16);
  border-color: rgba(212, 160, 18, 0.38);
}

.learn-dash-tabs .learn-dash-tab:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(212, 160, 18, 0.35);
}

.learn-dash-tabs .learn-dash-tab--signout {
  background: rgba(108, 117, 125, 0.12);
  border-color: rgba(108, 117, 125, 0.28);
  color: #2a2418 !important;
}

.learn-dash-tabs .learn-dash-tab--signout:hover {
  background: rgba(108, 117, 125, 0.2);
  border-color: rgba(73, 80, 87, 0.45);
}

.learn-dash-tab__label {
  max-width: min(11rem, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: bottom;
}

/* KPI tiles (admin-style dashboard cards on public learn) */
.learn-dash-kpi {
  overflow: hidden;
}

.learn-dash-kpi__icon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 2rem;
  opacity: 0.35;
}

.learn-dash-kpi__foot {
  background: rgba(0, 0, 0, 0.12);
}

.learn-dash-kpi--warning .learn-dash-kpi__foot {
  background: rgba(0, 0, 0, 0.06);
}

.learn-dash-kpi--primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.learn-dash-kpi--success {
  background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

.learn-dash-kpi--secondary {
  background: linear-gradient(135deg, #495057 0%, #343a40 100%);
}

.learn-dash-kpi--warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
}

.learn-dash-kpi--info {
  background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
}

.learn-dash-chart-wrap {
  position: relative;
  width: 100%;
  min-height: 200px;
}

.learn-dash-chart-wrap--wide {
  min-height: 240px;
}

/* Learn dashboard — course cards (thumbnail + progress) */
.learn-dash-course-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.learn-dash-course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.65rem 1.75rem rgba(10, 10, 10, 0.1) !important;
}

.learn-dash-course-card__media {
  aspect-ratio: 16 / 10;
  background: #1a1510;
  position: relative;
  overflow: hidden;
}

.learn-dash-course-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.learn-dash-course-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
  background: linear-gradient(135deg, #1a1510 0%, #2b2418 55%, #3d2f14 100%);
}

.learn-dash-course-card__status {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learn-dash-course-card__progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(212, 160, 18, 0.2);
}

.learn-dash-course-card__progress .progress-bar {
  border-radius: 999px;
}

.udema-course-subnav-row {
  min-height: 2.45rem;
}

.udema-course-subnav-actions .learn-course-actions-strip--inline {
  max-width: min(55vw, 24rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.udema-course-subnav-actions .learn-course-actions-strip--inline::-webkit-scrollbar {
  display: none;
}

.udema-course-subnav-actions .btn {
  white-space: nowrap;
  font-size: 0.78rem;
}

@media (min-width: 992px) {
  .udema-course-subnav-actions .learn-course-actions-strip--inline {
    max-width: none;
    overflow: visible;
  }

  .udema-course-subnav-actions .btn {
    font-size: 0.8125rem;
  }
}

/* dt-site (public_base) header: wrap instead of horizontal scroll */
.dt-header-nav-scroll {
  overflow: visible;
}

.dt-header-nav-list {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 0.25rem;
}

@media (min-width: 992px) {
  .dt-header-nav-scroll {
    max-width: none;
    margin-left: auto;
  }
}

.dt-nav-link--main .dt-nav-link__text {
  display: inline-block;
  max-width: min(11rem, 28vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

@media (max-width: 991.98px) {
  .dt-nav-link--main .dt-nav-link__text {
    max-width: none;
    white-space: normal;
    text-overflow: unset;
  }
}

/* Library — product-style cards */
.dt-library-card {
  border-radius: 0.65rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dt-library-card:hover {
  box-shadow: 0 0.75rem 2rem rgba(10, 10, 10, 0.12) !important;
  transform: translateY(-2px);
}

.dt-library-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  overflow: hidden;
}

.dt-library-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dt-library-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-size: 3.25rem;
  position: relative;
  overflow: hidden;
}

.dt-library-card-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.35) 0, transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.24) 0, transparent 42%);
  pointer-events: none;
}

.dt-library-card-placeholder--pdf {
  color: #be123c;
  background: linear-gradient(160deg, #fff7ed 0%, #ffe4e6 55%, #fde68a 100%);
}

.dt-library-card-placeholder--doc {
  color: #1e3a8a;
  background: linear-gradient(160deg, #ecfeff 0%, #dbeafe 52%, #e0e7ff 100%);
}

.dt-library-card-placeholder--book {
  color: #7c5f00;
  background: linear-gradient(160deg, #fff9db 0%, #fde68a 50%, #f8d878 100%);
}

/* Team — uniform portrait cards */
.dt-team-card {
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(10, 10, 10, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.dt-team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(10, 10, 10, 0.12);
}

.dt-card-media.dt-card-media--team {
  position: relative;
  display: block;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 3 / 4;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%);
}

.dt-card-media.dt-card-media--team img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.dt-card-media.dt-card-media--team .dt-card-media__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 0;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(160deg, #1a1510 0%, #0a0a0a 100%);
  color: var(--dt-gold-bright);
}

.dt-card-media.dt-card-media--team .dt-card-media__icon {
  font-size: 2.5rem;
  opacity: 0.85;
}

.dt-card-media.dt-card-media--team .dt-card-media__label {
  color: #fff;
  font-size: 0.85rem;
  max-width: 90%;
}

.dt-team-card__body {
  flex: 1 1 auto;
  padding: 1rem 1.1rem 1.25rem;
  text-align: center;
  background: #fff;
}

.dt-team-card__name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--dt-ink);
}

.dt-team-card__role {
  font-size: 0.8rem;
  color: var(--dt-ink-soft);
  margin: 0;
}

.dt-team-card__bio {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0.5rem 0 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 575.98px) {
  .dt-card-media.dt-card-media--team {
    aspect-ratio: 3 / 4;
  }
}

/* Dynamic navigation — mega menu & badges */
.dt-mega-nav .dt-mega-menu {
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1rem;
  animation: dtMegaIn .18s ease-out;
}
@keyframes dtMegaIn {
  from { opacity: 0; transform: translateX(-50%) translateY(.35rem); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.dt-mega-card:hover { background: rgba(15, 23, 42, .04); }
.dt-mega-img { max-height: 120px; object-fit: cover; width: 100%; }
.dt-nav-badge { font-size: .65rem; vertical-align: middle; }
.dt-navbar { z-index: 1030; }
.dt-header-nav-list .nav-link:focus-visible,
.dt-header-nav-list .dropdown-item:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}
.dt-nav-tree-row:hover { background: #f8fafc !important; }
