:root {
  --of-blue-dark: #0b3a5b;
  --of-blue: #1f7fbf;
  --of-cyan: #3fbadf;
}

/* =========================================================
   Header / Branding
   ========================================================= */

.header .logo-icon-text {
  font-size: 20px;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.02em;
}

/* Hide top navigation bar completely */
header.header {
  display: none !important;
}

/* =========================================================
   Hero / Carousel base layout
   ========================================================= */

.hero-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* HTML already has data-bs-touch="false"; keep safe scroll */
  touch-action: pan-y;
}

.hero-carousel .carousel-inner {
  height: 100%;
}

.hero-carousel .carousel-item {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 540px;         /* desktop baseline */
  background-color: #141c25; /* fallback if images fail */
}

/* =========================================================
   Split hero: text panel (left) + image panel (right)
   ========================================================= */

.hero-split {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 0; /* background layer */
}

/* Left panel */
.hero-panel-text {
  background-color: #000;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;

  /* ensure panel sits above mask */
  position: relative;
  z-index: 3;
}

/* Center + constrain content */
.hero-panel-inner {
  position: relative; /* anchor for language switch */
  text-align: center;
  max-width: 560px;
}

/* Fix any theme-driven “ghosting” */
.hero-panel-title,
.hero-panel-desc,
.hero-panel-meta {
  color: #fff !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  -webkit-text-fill-color: #fff !important; /* iOS */
}

/* Typography */
.hero-panel-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 1rem 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

.hero-panel-desc {
  font-size: 1.05rem;
  margin: 0.75rem 0 1.25rem 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

.hero-panel-meta {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

/* CTA buttons */
.hero-panel-cta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: nowrap; /* keep side-by-side */
}

.hero-panel-cta .btn {
  white-space: nowrap;
}

/* Right panel image */
.hero-panel-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 0;
}

/* =========================================================
   Mask + layering
   ========================================================= */

.hero-block-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.10),
    rgba(0, 0, 0, 0.20)
  );
  z-index: 1; /* under text panel */
}

/* Hide legacy theme hero content */
.hero-text-block {
  display: none;
}

/* =========================================================
   Hero logo
   ========================================================= */

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero-logo {
  max-width: 420px; /* desktop */
  width: 100%;
  height: auto;
}

/* =========================================================
   Language switch (EN | ES) in hero
   ========================================================= */

.hero-lang-switch {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 9999;
  text-align: left; /* override panel centering */
  pointer-events: auto;
}

.hero-lang-switch a,
.hero-lang-switch span {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  opacity: 0.9;
}

.hero-lang-switch a {
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
}

.hero-lang-switch a:hover {
  opacity: 1;
  text-decoration: underline;
}

.hero-lang-switch a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
}

/* =========================================================
   About section
   ========================================================= */

#about-section .section-intro {
  text-align: center;
}

/* =========================================================
   Tools logos (blue band)
   ========================================================= */

.tools-logos {
  gap: 2rem;
}

.tool-logo {
  height: 60px; /* single source of truth */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.95); /* helps non-transparent logos */
  border-radius: 6px;
}

.tool-logo img {
  max-height: 100%;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* =========================================================
   Sponsors logos (consistent height)
   ========================================================= */

/* Kill Bootstrap column spacing for sponsor logos */
.sponsors-section .logo-item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;        /* remove extra padding */
}

.sponsors-section .logo-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sponsors-section .logo-item img {
  height: 70px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.sponsors-section .logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;          /* controls spacing between logos */
}


/* =========================================================
   Responsive behavior
   ========================================================= */

@media (max-width: 768px) {
  .hero-carousel .carousel-item {
    min-height: 680px; /* room for stacked panel + image */
  }

  .hero-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .hero-panel-text {
    padding: 2rem 1.5rem;
  }

  .hero-panel-inner {
    max-width: none;
  }

  .hero-panel-title {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
  }

  .hero-panel-image {
    min-height: 280px; /* prevent collapse on phones */
  }

  .hero-logo {
    max-width: 300px;
  }

  .sponsors-section .logo-item img {
    height: 56px;
  }
}

@media (max-width: 576px) {
  .tool-logo {
    height: 48px;
    padding: 0.4rem;
  }

  .tool-logo img {
    max-width: 120px;
  }
}

@media (max-width: 420px) {
  .hero-panel-cta .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .hero-logo {
    max-width: 220px;
  }
}

/* --- Fix clickability: ensure hero content is above the mask --- */
.hero-split {
  z-index: 2;            /* ABOVE the mask */
}

.hero-panel-text {
  z-index: 3;            /* ABOVE everything in hero */
}

.hero-panel-image {
  z-index: 2;
}

/* Mask should never intercept clicks */
.hero-block-mask {
  pointer-events: none;
}

.hero-block { position: relative; }

.hero-carousel { z-index: 0; pointer-events: none; }
.hero-block-mask { z-index: 1; pointer-events: none; }

.hero-split { z-index: 2; }
.hero-panel-text { z-index: 5; }

.hero-panel-text,
.hero-panel-text * { pointer-events: auto; }
