/* ═══════════════════════════════════════════════════
   PAG Hero Slider — Frontend Styles  v1.3.0
═══════════════════════════════════════════════════ */

:root {
  --pag-navy:       #0d1b3e;
  --pag-white:      #ffffff;
  --pag-tag:        #e6c63c;
  --pag-btn:        #cd291d;
  --pag-overlay-a:  #18541f;
  --pag-overlay-b:  #59b8f0;
}

.pag-hero {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 520px;
  max-height: 860px;
  overflow: hidden;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
}

/* ── Slides ── */
.pag-slides { position: absolute; inset: 0; }

.pag-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
}

.pag-slide.pag-active { opacity: 1; z-index: 2; }

/* Fallback gradient when no image is set */
.pag-slide:not([style*="url"]) {
  background: linear-gradient(135deg, var(--pag-navy) 0%, #1a3a6e 100%);
}

/* ── Overlay — covers 45% of the slide from the left ── */
/*
   Two-layer approach for a perfectly smooth fadeout:
   Layer 1 (green #18541f): eased from full opacity → transparent by 45%
   Layer 2 (blue  #59b8f0): eased from partial opacity → transparent by 30%
   Multiple alpha stops approximate an ease-in-out curve so there is
   no perceptible grey band or hard edge at the transition point.
*/
.pag-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(24,  84, 31, 0.92)  0%,
    rgba(30, 100, 60, 0.85)  8%,
    rgba(50, 140, 100, 0.70) 18%,
    rgba(89, 184, 240, 0.55) 28%,
    rgba(89, 184, 240, 0.35) 36%,
    rgba(89, 184, 240, 0.18) 42%,
    rgba(89, 184, 240, 0.07) 46%,
    rgba(89, 184, 240, 0.02) 50%,
    rgba(89, 184, 240, 0.00) 55%
  );
  pointer-events: none;
  z-index: 1;
}


/* ── Content ── */
.pag-content {
  position: absolute;
  z-index: 5;
  bottom: 80px;
  left: 0;
  width: 45%;
  max-width: 600px;
  padding: 60px 50px 60px 60px;
  color: var(--pag-white);
  animation: pagFadeUp .75s ease both;
}

@keyframes pagFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Tag ── */
.pag-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--pag-tag);
  margin-bottom: 14px;
}

.pag-tag::before {
  content: '';
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--pag-tag);
  flex-shrink: 0;
}

.pag-title {
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 900;
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--pag-white);
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  margin: 0 0 18px;
}

.pag-sub {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.9);
  margin-bottom: 28px;
}

/* ── Button ── */
.pag-btns { display: flex; }

.pag-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  background: var(--pag-btn);
  color: var(--pag-white);
  border: 2px solid var(--pag-btn);
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
}

.pag-btn-primary:hover {
  background: #a82016;
  border-color: #a82016;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(205, 41, 29, 0.45);
  color: var(--pag-white);
  text-decoration: none;
}

.pag-btn-primary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ── Arrows ── */
.pag-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.5);
  color: var(--pag-white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background .2s, transform .15s;
  padding: 0;
}

.pag-arrow:hover {
  background: rgba(255,255,255,.28);
  transform: translateY(-50%) scale(1.06);
}

.pag-prev { left: 20px; }
.pag-next { right: 20px; }

/* ── Dots ── */
.pag-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 9px;
}

.pag-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: 2px solid rgba(255,255,255,.6);
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .2s;
}

.pag-dot.pag-active {
  background: var(--pag-tag);
  border-color: var(--pag-tag);
  transform: scale(1.25);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .pag-content {
    width: 55%;
    padding: 40px 40px 40px 28px;
    bottom: 70px;
  }
}

@media (max-width: 600px) {
  .pag-hero { height: 100vh; max-height: none; }

  .pag-slide::after {
    /* On mobile, overlay rises from bottom — same eased multi-stop technique */
    background:
      linear-gradient(
        to top,
        rgba(24,  84, 31, 1.00)  0%,
        rgba(24,  84, 31, 0.85) 10%,
        rgba(24,  84, 31, 0.60) 22%,
        rgba(24,  84, 31, 0.30) 35%,
        rgba(24,  84, 31, 0.08) 44%,
        rgba(24,  84, 31, 0.00) 48%,
        rgba(24,  84, 31, 0.00) 100%
      ),
      linear-gradient(
        to top,
        rgba(89, 184, 240, 0.75)  0%,
        rgba(89, 184, 240, 0.50) 12%,
        rgba(89, 184, 240, 0.25) 24%,
        rgba(89, 184, 240, 0.06) 33%,
        rgba(89, 184, 240, 0.00) 37%,
        rgba(89, 184, 240, 0.00) 100%
      );
  }

  .pag-content {
    width: 100%;
    max-width: 100%;
    bottom: 0;
    left: 0;
    padding: 40px 24px 60px;
    background: none;
  }
}
