/* =========================================================
   ITRA TECHNICAL RESCUE CONGRESS
   Individual Workshop Pages
   ========================================================= */

:root {
  --workshop-accent: #f2b705;
  --workshop-accent-dark: #c99600;
  --workshop-dark: #111827;
  --workshop-navy: #0f172a;
  --workshop-light: #f8fafc;
  --workshop-muted: #64748b;
  --workshop-line: #e5e7eb;
  --workshop-white: #ffffff;
}


/* =========================================================
   HERO
   ========================================================= */

.workshop-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 90px;
  color: var(--workshop-white);
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(242, 183, 5, 0.18),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #0b1017 0%,
      #111827 48%,
      #0f172a 100%
    );
}

.workshop-hero::before {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 540px;
  height: 540px;
  border: 80px solid rgba(242, 183, 5, 0.06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.workshop-hero::after {
  position: absolute;
  left: -250px;
  bottom: -300px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  content: "";
  pointer-events: none;
}

.workshop-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 64px;
  align-items: center;
}

.workshop-hero-content h1 {
  margin: 0;
  color: var(--workshop-white);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.workshop-hero-content h1 span {
  display: block;
  margin-top: 18px;
  color: var(--workshop-accent);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.workshop-lead {
  max-width: 760px;
  margin: 30px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.workshop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.workshop-meta span {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--workshop-white);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
  font-weight: 800;
}

.workshop-logo {
  justify-self: end;
  width: min(420px, 100%);
}

.workshop-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.34));
}


/* =========================================================
   ORGANIZER
   ========================================================= */

.workshop-organizer {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  gap: 64px;
  align-items: center;
}

.organizer-logo {
  display: flex;
  min-height: 240px;
  padding: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--workshop-line);
  border-radius: 24px;
  background: var(--workshop-white);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.organizer-logo img {
  width: min(320px, 100%);
  max-height: 180px;
  object-fit: contain;
}


/* =========================================================
   FEATURE CARDS
   ========================================================= */

.workshop-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.workshop-feature {
  padding: 28px;
  border: 1px solid var(--workshop-line);
  border-radius: 22px;
  background: var(--workshop-white);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.workshop-feature span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--workshop-dark);
  background: var(--workshop-accent);
  font-size: 0.8rem;
  font-weight: 900;
}

.workshop-feature h3 {
  margin: 18px 0 10px;
  line-height: 1.15;
}

.workshop-feature p {
  margin: 0;
  color: var(--workshop-muted);
}


/* =========================================================
   FORMAT / INFORMATION PANEL
   ========================================================= */

.workshop-info-panel {
  overflow: hidden;
  border: 1px solid var(--workshop-line);
  border-radius: 24px;
  background: var(--workshop-white);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.workshop-info-panel > div {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--workshop-line);
}

.workshop-info-panel > div:last-child {
  border-bottom: 0;
}

.workshop-info-panel strong {
  color: var(--workshop-dark);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.workshop-info-panel span {
  color: var(--workshop-muted);
  font-weight: 700;
  text-align: right;
}


/* =========================================================
   PARTICIPANT INFO
   ========================================================= */

.participant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.participant-grid article {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.participant-grid h3 {
  margin: 0 0 10px;
  color: var(--workshop-white);
}

.participant-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}


/* =========================================================
   LOCATION
   ========================================================= */

.location-card {
  display: flex;
  min-height: 260px;
  padding: 36px;
  flex-direction: column;
  justify-content: center;
  border-radius: 24px;
  color: var(--workshop-dark);
  background: var(--workshop-accent);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.location-card strong {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.location-card span {
  margin-top: 8px;
  font-weight: 800;
}


/* =========================================================
   ROTATION / AVAILABILITY
   ========================================================= */

.rotation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.rotation-grid article {
  padding: 24px;
  border-radius: 20px;
  color: var(--workshop-white);
  background: var(--workshop-navy);
}

.rotation-grid strong,
.rotation-grid span,
.rotation-grid small {
  display: block;
}

.rotation-grid strong {
  color: var(--workshop-accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rotation-grid span {
  margin-top: 8px;
  font-size: 1.15rem;
  font-weight: 800;
}

.rotation-grid small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
}

.schedule-note {
  margin: 26px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--workshop-accent);
  color: var(--workshop-muted);
  background: rgba(242, 183, 5, 0.08);
}


/* =========================================================
   CTA
   ========================================================= */

.workshop-cta {
  padding: 80px 0;
  color: var(--workshop-white);
  background:
    linear-gradient(
      135deg,
      #0f172a 0%,
      #111827 60%,
      #1a202c 100%
    );
}

.workshop-cta-inner {
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
}

.workshop-cta h2 {
  margin: 0 0 14px;
  color: var(--workshop-white);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.workshop-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}


.ahd-theme {
  --workshop-accent: #d92d20;
  --workshop-accent-dark: #b42318;
}

.ahd-theme .eyebrow {
  color: var(--workshop-accent);
}

.canyoning-theme {
  --workshop-accent: #00a7b5;
  --workshop-accent-dark: #007f8a;
}

.canyoning-theme .eyebrow {
  color: var(--workshop-accent);
}

/* =========================================================
   HAZMAT THEME
   ========================================================= */

.hazmat-theme {
  --workshop-accent: #f5c400;
  --workshop-accent-dark: #d5a900;
}

.hazmat-theme .eyebrow {
  color: var(--workshop-accent);
}

/* =========================================================
   EXTRICATION THEME
   ========================================================= */

.extrication-theme {
  --workshop-accent: #f58220;
  --workshop-accent-dark: #d96f0f;
}

.extrication-theme .eyebrow {
  color: var(--workshop-accent);
}

/* =========================================================
   CADUS THEME
   ========================================================= */
.cadus-theme {
  --workshop-accent: #e63946;
  --workshop-accent-dark: #b91c2b;
}

.cadus-theme .eyebrow {
  color: var(--workshop-accent);
}

/* =========================================================
   CRANE RESCUE
   ========================================================= */

.crane-theme {
  --workshop-accent: #f5b700;
  --workshop-accent-dark: #d69f00;
}

.crane-theme .eyebrow {
  color: var(--workshop-accent);
}


/* =========================================================
   CRANE PARTNERS
   ========================================================= */

.crane-partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.crane-partner-card {
  padding: 34px;
  border: 1px solid var(--workshop-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

.crane-partner-logo {
  display: flex;
  height: 120px;
  margin-bottom: 24px;
  align-items: center;
  justify-content: flex-start;
}

.crane-partner-logo img {
  width: auto;
  max-width: 260px;
  max-height: 110px;
  object-fit: contain;
}

.crane-partner-card h3 {
  margin: 0 0 10px;
}

.crane-partner-card p {
  margin: 0;
  color: var(--workshop-muted);
}


.ski-lift-theme {
  --workshop-accent: #f4c400;
  --workshop-accent-dark: #cfa500;
}

.ski-lift-theme .eyebrow {
  color: var(--workshop-accent);
}

@media (max-width: 640px) {

  .crane-partners-grid {
    grid-template-columns: 1fr;
  }

}

/* =========================================================
   BUTTON OVERRIDES
   ========================================================= */

.workshop-hero .btn-primary,
.workshop-cta .btn-primary {
  color: #111827;
  background: var(--workshop-accent);
}

.workshop-hero .btn-primary:hover,
.workshop-cta .btn-primary:hover {
  background: var(--workshop-accent-dark);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

  .workshop-hero {
    padding: 125px 0 72px;
  }

  .workshop-hero-grid,
  .workshop-organizer {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .workshop-logo {
    justify-self: start;
    width: min(340px, 80%);
  }

  .organizer-logo {
    max-width: 520px;
  }

  .workshop-feature-grid,
  .participant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rotation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

  .workshop-hero {
    padding: 112px 0 56px;
  }

  .workshop-hero-grid {
    gap: 30px;
  }

  .workshop-hero-content h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .workshop-hero-content h1 span {
    font-size: 1.2rem;
  }

  .workshop-lead {
    margin: 22px 0;
  }

  .workshop-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .workshop-logo {
    width: min(300px, 100%);
  }

  .workshop-organizer {
    gap: 28px;
  }

  .organizer-logo {
    min-height: 180px;
    padding: 24px;
  }

  .workshop-feature-grid,
  .participant-grid,
  .rotation-grid {
    grid-template-columns: 1fr;
  }

  .workshop-feature,
  .participant-grid article {
    padding: 22px;
  }

  .workshop-info-panel > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .workshop-info-panel span {
    text-align: left;
  }

  .location-card {
    min-height: 220px;
    padding: 28px;
  }

  .workshop-cta-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .workshop-cta .btn {
    width: 100%;
  }

}


/* =========================================================
   WORKSHOP GALLERY
   ========================================================= */

.workshop-gallery-section {
  overflow: hidden;
}

.workshop-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 16px;
  margin-top: 42px;
}

.gallery-item {
  position: relative;
  grid-column: span 3;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
  cursor: zoom-in;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 350ms ease,
    filter 350ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.88);
}


/* Large first photograph */

.gallery-featured {
  grid-column: span 8;
  grid-row: span 2;
}


/* Complementary landscape images */

.gallery-wide {
  grid-column: span 6;
}


/* Portrait photographs */

.gallery-portrait {
  grid-column: span 3;
  grid-row: span 2;
}


/* Caption over featured photograph */

.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 50px 26px 24px;
  color: #ffffff;
  background:
    linear-gradient(
      to top,
      rgba(8, 15, 24, 0.92),
      rgba(8, 15, 24, 0)
    );
  pointer-events: none;
}

.gallery-caption strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.15rem;
}

.gallery-caption span {
  display: block;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.gallery-lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  padding: 40px;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  background: rgba(4, 9, 15, 0.94);
  transition:
    opacity 200ms ease,
    visibility 200ms ease;
}

.gallery-lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.gallery-lightbox-image {
  display: block;
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-family: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
  background: var(--workshop-accent);
  color: #111827;
}


/* =========================================================
   GALLERY TABLET
   ========================================================= */

@media (max-width: 980px) {

  .workshop-gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }

  .gallery-item {
    grid-column: span 3;
  }

  .gallery-featured {
    grid-column: span 6;
    grid-row: span 2;
  }

  .gallery-wide {
    grid-column: span 6;
  }

  .gallery-portrait {
    grid-column: span 3;
    grid-row: span 2;
  }

}


/* =========================================================
   GALLERY MOBILE
   ========================================================= */

@media (max-width: 640px) {

  .workshop-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 165px;
    gap: 10px;
    margin-top: 28px;
  }

  .gallery-item {
    grid-column: span 1;
    grid-row: span 1;
    border-radius: 14px;
  }

  .gallery-featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-wide {
    grid-column: span 2;
  }

  .gallery-portrait {
    grid-column: span 1;
    grid-row: span 2;
  }

  .gallery-caption {
    padding: 46px 18px 18px;
  }

  .gallery-caption strong {
    font-size: 1rem;
  }

  .gallery-caption span {
    font-size: 0.74rem;
  }

  .gallery-lightbox {
    padding: 16px;
  }

  .gallery-lightbox-close {
    top: 12px;
    right: 12px;
  }

}