/* ============================================================
   CYTECH PHARMACEUTICALS — PREMIUM HERO SLIDER
   ============================================================ */

/* ───────────────── HERO SECTION ───────────────── */

.hero {
  position:relative;
  width:100%;
  height: 80vh;         
  min-height: 400px;
  max-height: 650px;
  background: url('../IMAGES/HERO_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(10, 5, 30, 0.20) 0%,
    rgba(0, 60, 70, 0.10) 5%,
    rgba(80, 0, 60, 0.15) 5%
  );

  z-index: 0;
  pointer-events: none;
}

/* ───────────────── SLIDER CONTAINER ───────────────── */

.slider {
  position:inherit;
  height: 100%;           
  width: 95%;
  max-width: 1800px;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
  transition: all 0.35s ease;
}

.slider:hover {
  width: 96%;
  height: 100%;            
  box-shadow:
    0 15px 40px rgba(160, 0, 93, 0.18),
    0 5px 15px rgba(0, 0, 0, 0.15);
     background:
    linear-gradient(
      90deg,
      rgba(10, 10, 25, 0.55) 0%,
      rgba(10, 10, 25, 0.35) 35%,
      rgba(10, 10, 25, 0.15) 55%,
      transparent 75%
    ),

    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.20) 0%,
      transparent 45%
    );
}
/* ───────────────── SLIDES ───────────────── */

.slide {
  position: absolute;
  inset: 0;

  opacity: 0;
  transition: opacity 1.2s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;

  object-fit: fill;
  object-position:center;

  filter:
    brightness(1.06)
    contrast(1.05)
    saturate(1.12);

  transform: scale(1.01);
}

/* ───────────────── IMAGE OVERLAY ───────────────── */

.slide-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(10, 10, 25, 0.55) 0%,
      rgba(10, 10, 25, 0.35) 5%,
      rgba(10, 10, 25, 0.15) 15%,
      transparent 75%
    ),

    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.20) 0%,
      transparent 45%
    );

  pointer-events: none;
}

/* ───────────────── CONTENT ───────────────── */

.slide-content {
  position: absolute;

  left: 0;
  right: 20px;
  bottom: 0;

  padding: 2rem;

  max-width: var(--max-width);

  z-index: 5;
}

.slide-content-inner {
  max-width: 560px;
}

/* ───────────────── BUTTON GROUP ───────────────── */

.slide-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ───────────────── HERO BUTTONS ───────────────── */

.btn-hero {
  padding: 12px 28px;

  border: none;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  font-family: var(--body);

  transition: all 0.3s ease;
}

.btn-hero-primary {
  background: var(--brand);
  color: #fff;
}

.btn-hero-primary:hover {
  background: var(--brand-dark);

  transform: translateY(-3px);

  box-shadow:
    0 8px 24px rgba(160, 0, 93, 0.35);
}

.btn-hero-outline {
  background: rgba(255,255,255,0.08);

  color: #58056b;

  border: 1px solid rgba(255,255,255,0.25);

  backdrop-filter: blur(10px);
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.18);

  border-color: rgba(255,255,255,0.5);
}

/* ───────────────── NAVIGATION ARROWS ───────────────── */

.slider-prev,
.slider-next {
  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;

  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;

  background: rgba(92, 42, 42, 0.18);

  backdrop-filter: blur(10px);

  color: #fff;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 10;

  transition: all 0.25s ease;
}

.slider-prev {
  left: 1.5rem;
}

.slider-next {
  right: 1.5rem;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(255,255,255,0.30);

  transform: translateY(-50%) scale(1.08);
}

/* ───────────────── DOTS ───────────────── */

.slider-dots {
  position: absolute;

  bottom: 20px;
  right: 2rem;

  display: flex;
  gap: 8px;

  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;

  border: none;
  border-radius: 50%;

  background: rgba(255,255,255,0.45);

  cursor: pointer;

  transition: all 0.3s ease;
}

.dot.active {
  width: 28px;

  border-radius: 20px;

  background: #fff;

  box-shadow:
    0 0 12px rgba(255,255,255,0.6);
}

/* ───────────────── STATS BAR ───────────────── */

.stats-bar{
    background: linear-gradient(
        90deg,
        #b00063 0%,
        #c3006d 50%,
        #b00063 100%
    );

    padding: 14px 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 0 3px 12px rgba(176, 0, 99, 0.15);
}

.stats-inner{
    width: 100%;
    max-width: 1400px;
    text-align: center;
}

.stat-data{
    color: #ffffff;

    font-size: 20px;
    font-weight: 600;

    letter-spacing: 0.4px;
    line-height: 1.5;

    font-family: var(--body);

    animation: fadeIn 1s ease;
}

/* Smooth appearance */
@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ── TABLET / RESIZED BROWSER RANGE (769px–1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    height: 50vh;
    min-height: 350px;
  }
}



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

@media (max-width: 768px) {

 .hero {
    height: 54vh !important;  
    min-height: 280px !important;
    width: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .slider {
    position: relative;
    height: 80% !important;    
    width: 100% !important;
    max-width: 600px !important;
    border-radius: 10px;
  }

  .slider:hover {
    width: 100%;
    height: 92% !important;               
  }
}
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
  }

  .slide-content {
    padding: 1.2rem;
    padding-bottom: 10px !important;
    right: 0;
    
  }

  .slide-content-inner {
    max-width: 100%;
  }

  .slide-btns {
    gap: 20px;
    margin-top: 110px;

  }

  .slider-prev,
  .slider-next {
    width: 36px;
    height: 36px;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

  .slider-dots {
    bottom: 15px;
    right: 15px;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-num {
    font-size: 1.6rem;
  }
  .btn-hero{
      padding: 10px 6px;
      font-size: 13px;
      min-height: 10px;
      width: 50% !important;
      border-radius: 8px;
  }


/* ── DUAL IMAGE SWITCHING ── */

/* Desktop default: show landscape, hide portrait */
.slide-img-portrait {
  display: none !important;
}

.slide-img-landscape {
  display: block !important;
}

/* Portrait mobile only — max-width AND portrait together */
@media (max-width: 600px) and (orientation: portrait) {
  .slide-img-landscape {
    display: none !important;
  }

  .slide-img-portrait {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
}

/* Landscape phone — force full desktop slider behaviour */
@media (max-width: 900px) and (orientation: landscape) {
  .slider {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;  /* remove rounding that causes gaps */
  }

  .slide-img-landscape {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
  }

  .slide-img-portrait {
    display: none !important;
  }
}
@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    height: 100vw !important; /* uses screen width as height reference in landscape */
    min-height: 260px !important;
    max-height: 600px !important;
    max-width: 800px !important;
  }
}