/* =====================================================================
   Damascus Projects Global — homepage sections
   Loaded only by templates/site/index.html, after dpg-site.css.

   Bright treatment: both live sections sit on a light wash over the
   background photo, with navy text and gold accents. All headings and
   body copy are left-aligned.

     1. Live Session Gallery   (.dp-section--teaser)
     2. Upcoming Live Sessions (.dp-section--live + .dp-live-carousel)
     3. A Global Platform band (.dp-platform)
   ===================================================================== */

:root {
  --dph-ink: #0b2461;          /* headings */
  --dph-body: #46506b;         /* body copy */
  --dph-line: #dbe3f4;         /* hairlines on light */
  --dph-card: #ffffff;
}

/* ── Shared: bright sections, left-aligned text ──────────────────── */

.dp-section--teaser,
.dp-section--live {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--dph-body);
  padding: 4.5rem 0 4rem;
}

/* the photo carries the section — no white wash over it */
.dp-section--teaser,
.dp-section--live { background: transparent; }

/* a soft navy fade from the left holds the text; the right side of the
   photo stays clear — same treatment as the hero */
.dp-section__shade--teaser {
  background: linear-gradient(100deg, rgba(5, 16, 48, .86) 0%, rgba(5, 16, 48, .62) 38%, rgba(5, 16, 48, .22) 70%, rgba(5, 16, 48, .06) 100%);
}
.dp-section__shade--live {
  background:
    radial-gradient(circle at 8% 0%, rgba(245, 197, 66, .20), transparent 40%),
    linear-gradient(100deg, rgba(6, 18, 52, .88) 0%, rgba(6, 18, 52, .64) 38%, rgba(6, 18, 52, .24) 70%, rgba(6, 18, 52, .06) 100%);
}

/* full-strength photo */
.dp-section--teaser .dp-section__bg-img,
.dp-section--live .dp-section__bg-img { opacity: 1; }

/* keeps the wording crisp where the photo is busy */
.dp-section--teaser .dp-teaser__intro,
.dp-section--live .dp-live__intro { text-shadow: 0 2px 18px rgba(3, 10, 35, .55); }

/* text sits on the photo, so it is light */
.dp-section--teaser .dp-eyebrow,
.dp-section--live .dp-eyebrow { color: var(--dp-gold, #F5C542); }
.dp-section--live .dp-eyebrow--live { color: #ff8a96; }

.dp-section--teaser .dp-h2,
.dp-section--live .dp-h2,
.dp-section--teaser .dp-h2--light,
.dp-section--live .dp-h2--light,
.dp-section--teaser .dp-teaser__intro h2,
.dp-section--live .dp-live__intro h2 { color: #fff !important; }

.dp-section--teaser .dp-lead,
.dp-section--live .dp-lead,
.dp-section--teaser .dp-lead--light,
.dp-section--live .dp-lead--light { color: rgba(255, 255, 255, .92) !important; }

/* left-aligned intros with a gold rule above the heading */
.dp-section--teaser .dp-teaser__intro,
.dp-section--live .dp-live__intro {
  max-width: 740px;
  margin: 0 0 2.2rem;
  text-align: left;
}
.dp-section--teaser .dp-teaser__intro .dp-h2,
.dp-section--live .dp-live__intro .dp-h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.15;
  margin: .4rem 0 .7rem;
}
.dp-section--teaser .dp-teaser__intro .dp-lead,
.dp-section--live .dp-live__intro .dp-lead {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
}
.dp-section--teaser .dp-teaser__intro::before,
.dp-section--live .dp-live__intro::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dp-gold-600, #b3a413), var(--dp-gold, #F5C542));
  margin-bottom: 1rem;
}

/* ── 1. LIVE SESSION GALLERY ─────────────────────────────────────── */

.dp-section--teaser .dp-teaser { position: relative; }
.dp-section--teaser .dp-stream {
  background: var(--dph-card);
  border: 1px solid var(--dph-line);
  box-shadow: 0 12px 30px rgba(11, 36, 97, .10);
}
.dp-section--teaser .dp-streams__nav {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .55);
  color: var(--dph-ink);
  box-shadow: 0 8px 22px rgba(3, 10, 35, .28);
}
.dp-section--teaser .dp-streams__nav:hover { background: var(--dp-gold); border-color: var(--dp-gold); color: var(--dp-navy-900); }
.dp-section--teaser .dp-teaser__footer { margin-top: 2rem; text-align: left; }

/* ── 2. UPCOMING LIVE SESSIONS ───────────────────────────────────── */

.dp-live-carousel { position: relative; padding: 0 58px; }
.dp-live-carousel__viewport { overflow: hidden; }
.dp-live-carousel__track {
  display: flex;
  gap: 1.25rem;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
  padding: 4px 4px 10px;
}
.dp-live-carousel__track > * { flex: 0 0 calc((100% - 2.5rem) / 3); }

.dp-live-carousel__nav {
  position: absolute;
  top: 38%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .92);
  color: var(--dph-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(3, 10, 35, .28);
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.dp-live-carousel__nav--prev { left: 0; }
.dp-live-carousel__nav--next { right: 0; }
.dp-live-carousel__nav:hover:not(:disabled) { background: var(--dp-gold); color: var(--dp-navy-900); border-color: var(--dp-gold); }
.dp-live-carousel__nav:disabled { opacity: .4; cursor: default; }
.dp-live-carousel.is-static .dp-live-carousel__nav,
.dp-live-carousel.is-static .dp-live-carousel__dots { display: none; }

/* dots sit on the left, under the cards */
.dp-live-carousel__dots { display: flex; justify-content: flex-start; gap: 8px; margin: 1.5rem 0 0 62px; }
.dp-live-carousel__dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  cursor: pointer; transition: width .2s ease, background .2s ease;
}
.dp-live-carousel__dot.is-active { width: 26px; background: var(--dp-gold, #F5C542); }

/* Card */
.dp-live-card {
  height: 100%;
  background: var(--dph-card);
  border: 1px solid var(--dph-line);
  box-shadow: 0 12px 30px rgba(11, 36, 97, .10);
  text-align: left;
}
.dp-live-card__thumb { position: relative; aspect-ratio: 16 / 9; background: #dde6f7; }
.dp-live-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3, 10, 35, .30) 0%, rgba(3, 10, 35, 0) 45%, rgba(3, 10, 35, .25) 100%);
}
.dp-live-card__viewers {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255, 255, 255, .92); color: var(--dph-ink);
  font-size: .68rem; font-weight: 800; line-height: 1;
  padding: 5px 9px; border-radius: 999px;
}
.dp-live-card__badge--soon { background: rgba(255, 255, 255, .94); color: var(--dph-ink); }

.dp-live-card__body { padding: .95rem 1rem 1.05rem; gap: .65rem; text-align: left; }
.dp-live-card__title { font-size: .98rem; min-height: 2.5em; color: var(--dph-ink); }

.dp-live-card__host { display: flex; align-items: center; gap: .55rem; margin: 0; }
.dp-live-card__avatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #eaf0fb; display: block; }
.dp-live-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-live-card__host-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dp-live-card__host-label { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dph-body); font-weight: 700; }
.dp-live-card__host-name { font-size: .84rem; font-weight: 700; color: var(--dph-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-live-card__verified { color: #1d9bf0; font-size: .74rem; }
.dp-live-card__country {
  margin-left: auto; display: inline-flex; align-items: center; gap: .3rem;
  background: #eef3fd; border-radius: 999px; padding: 4px 9px;
  font-size: .68rem; font-weight: 700; color: var(--dph-ink); max-width: 45%;
}
.dp-live-card__country-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-live-card__flag { font-size: .85rem; line-height: 1; }

.dp-live-card__when {
  display: flex; align-items: center; gap: .45rem;
  font-size: .76rem; color: var(--dph-body);
  background: #f1f5fd; border-radius: 10px; padding: .45rem .6rem;
}
.dp-live-card__when i { color: var(--dph-ink); }
.dp-live-card.is-live .dp-live-card__when { background: rgba(225, 29, 46, .08); color: #a4122a; }
.dp-live-card__dot { color: var(--dp-red); font-size: .5rem; }

.dp-live-card__cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 42px; border-radius: 11px; text-decoration: none;
  font-weight: 800; font-size: .86rem;
  background: linear-gradient(100deg, var(--dp-gold-600, #b3a413), var(--dp-gold, #F5C542));
  color: var(--dp-navy-900) !important;
  transition: filter .2s ease, transform .15s ease;
}
.dp-live-card__cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.dp-live-card.is-live .dp-live-card__cta { background: var(--dp-red); color: #fff !important; }
.dp-live-card.is-live .dp-live-card__cta:hover { background: #c30f26; }

/* footer strip + empty state, back to light styling */
.dp-section--live .dp-live__footer { background: var(--dp-gold-soft, #fff6d6); border: 1px solid #f3e2a4; text-align: left; }
.dp-section--live .dp-live__note { color: #5c4a00; }
.dp-section--live .dp-live__empty {
  background: #fff; border: 1px dashed var(--dph-line);
  margin: 0; text-align: left;
}
.dp-section--live .dp-live__empty h3 { color: var(--dph-ink); }
.dp-section--live .dp-live__empty p { color: var(--dph-body); }
.dp-section--live .dp-live__empty-icon { background: #fff6d6; color: var(--dp-gold-600, #b3a413); }

/* ── 3. "A GLOBAL PLATFORM WITH REAL OPPORTUNITIES" BAND ─────────── */

.dp-platform {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  color: #fff;
}
.dp-platform__bg { position: absolute; inset: 0; z-index: -2; }
.dp-platform__bg img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 1; }
/* the globe photo is dark, so this band keeps light text */
.dp-platform::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(4, 12, 40, .84) 0%, rgba(4, 12, 40, .62) 55%, rgba(4, 12, 40, .48) 100%);
}
.dp-platform__inner {
  max-width: 1200px; margin: 0 auto; padding: 2.4rem 32px;
  display: grid; grid-template-columns: minmax(230px, .85fr) 2.2fr; gap: 2rem; align-items: center;
  text-align: left;
}
.dp-platform__title,
.dp-platform .dp-platform__title {
  margin: 0; color: #fff !important;
  font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 800; line-height: 1.25;
  text-align: left;
}
.dp-platform__title::before {
  content: "";
  display: block; width: 46px; height: 4px; border-radius: 999px; margin-bottom: .8rem;
  background: linear-gradient(90deg, var(--dp-gold-600, #b3a413), var(--dp-gold, #F5C542));
}
.dp-platform__stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.dp-platform__stat {
  display: flex; align-items: center; gap: .85rem;
  padding: .3rem 1.3rem;
  border-left: 1px solid rgba(255, 255, 255, .22);
  text-align: left;
}
.dp-platform__stat:first-child { border-left: 0; }
.dp-platform__stat i { font-size: 1.7rem; color: var(--dp-gold, #F5C542); flex-shrink: 0; }
.dp-platform__stat b { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1.1; color: #fff; }
.dp-platform__stat span { display: block; font-size: .78rem; color: rgba(255, 255, 255, .88); line-height: 1.35; margin-top: .15rem; }
.dp-platform__stat small { display: block; font-size: .68rem; color: rgba(255, 255, 255, .78); margin-top: .1rem; }

/* "Global Reach" band: stop the three stat blocks running together */
.dp-reach__inner { gap: 2rem; align-items: center; }
.dp-reach .dp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.dp-reach .dp-stat { padding: .2rem 0 .2rem 1.1rem; min-width: 0; }
.dp-reach .dp-stat h3 { line-height: 1.25; }
.dp-reach .dp-stat p { overflow-wrap: anywhere; }
@media (max-width: 1280px) { .dp-reach__script { display: none; } }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .dp-live-carousel { padding: 0 46px; }
  .dp-live-carousel__track > * { flex: 0 0 calc((100% - 1.25rem) / 2); }
  .dp-live-carousel__dots { margin-left: 50px; }
  .dp-platform__inner { grid-template-columns: 1fr; gap: 1.4rem; padding: 2.2rem 24px; }
  .dp-platform__title br { display: none; }
}

@media (max-width: 900px) {
  .dp-platform__stats { grid-template-columns: repeat(2, 1fr); gap: .9rem 0; }
  .dp-platform__stat { padding: .2rem .8rem; }
  .dp-platform__stat:nth-child(odd) { border-left: 0; }
  .dp-platform__stat i { font-size: 1.35rem; }
  .dp-platform__stat b { font-size: 1.2rem; }
  .dp-platform__stat span { font-size: .72rem; }
}

@media (max-width: 640px) {
  .dp-section--teaser, .dp-section--live { padding: 3.2rem 0 3rem; }
  .dp-section--teaser .dp-teaser__intro,
  .dp-section--live .dp-live__intro { margin-bottom: 1.6rem; text-align: left; }
  .dp-section--teaser .dp-teaser__intro .dp-lead,
  .dp-section--live .dp-live__intro .dp-lead { font-size: .88rem; }
  .dp-section--teaser .dp-teaser__intro::before,
  .dp-section--live .dp-live__intro::before { width: 44px; height: 3px; margin-bottom: .8rem; }
  .dp-live-carousel { padding: 0; }
  .dp-live-carousel__track > * { flex: 0 0 100%; }
  .dp-live-carousel__nav { display: none; }
  .dp-live-carousel__dots { margin: 1.1rem 0 0; }
  .dp-live-card__title { font-size: .95rem; min-height: 0; }
  .dp-live__footer { flex-direction: column; align-items: flex-start; text-align: left; }
  .dp-platform__inner { padding: 2rem 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .dp-live-carousel__track { transition: none; }
}
