/* ===========================
   Tutribu Hero Slider
   =========================== */

.tutribu-hero-slider {
  position: relative;
  width: 100%;
  height: 800px;
  min-height: 600px;
  overflow: hidden;
}

/* Background images */
.tutribu-hero-backgrounds {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tutribu-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.tutribu-hero-bg.active {
  opacity: 1;
}

.tutribu-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Inner layout */
.tutribu-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0 !important;
}

/* Container */
.tutribu-hero-container {
  max-width: calc(90 * 1rem);
  width: 90%;
  margin: 0 auto;
}

/* Text content */
.tutribu-hero-content {
  max-width: 42%;
  color: #fff;
  position: relative;
  z-index: 5;
}

.tutribu-hero-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tutribu-hero-heading.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

.tutribu-hero-subtext {
  font-size: clamp(0.875rem, 1.2vw, 1.05rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.tutribu-hero-subtext.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

/* Buttons */
.tutribu-hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.tutribu-hero-buttons.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

.tutribu-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid #fff;
  background: #fff;
  color: #111;
  transition: all 0.3s ease;
}

.tutribu-hero-btn:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Cards wrapper */
.tutribu-hero-cards-wrapper {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 3;
  pointer-events: none;
}

.tutribu-hero-cards-area {
  pointer-events: auto;
}

.tutribu-hero-cards-wrapper .tutribu-hero-container {
  position: relative;
}

.tutribu-hero-cards-area {
  position: relative;
  margin-left: 50%;
}

/* Carousel */
.tutribu-hero-carousel {
  position: relative;
  height: 440px;
  overflow: visible;
}

.tutribu-carousel-card {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.6s ease,
              width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity, width;
}

.tutribu-card-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.tutribu-card-title {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.tutribu-card-stars {
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.tutribu-star-filled {
  color: #fff;
}

.tutribu-star-empty {
  color: rgba(255, 255, 255, 0.3);
}

.tutribu-card-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.tutribu-card-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tutribu-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrow buttons */
.tutribu-hero-arrows {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-start;
  padding-left: 82px;
}

.tutribu-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tutribu-arrow-btn:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

/* Mobile stars - ALWAYS hidden on desktop */
.tutribu-hero-mobile-stars {
  display: none !important;
}

/* Mobile buttons - ALWAYS hidden on desktop */
.tutribu-hero-mobile-buttons {
  display: none !important;
}

.tutribu-hero-mobile-buttons .tutribu-hero-btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutribu-hero-mobile-buttons .tutribu-mobile-primary {
  background: #fff;
  color: #111;
  border: 2px solid #222;
}

.tutribu-hero-mobile-buttons .tutribu-mobile-secondary {
  background: #222;
  color: #fff;
  border: 2px solid #222;
}

.tutribu-hero-mobile-buttons .tutribu-mobile-secondary:hover {
  background: #333;
  color: #fff;
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
  .tutribu-hero-slider {
    position: relative;
    overflow: hidden;
  }

  .tutribu-hero-overlay {
    background: rgba(0, 0, 0, 0.3);
  }

  .tutribu-hero-inner {
    height: 100%;
    padding-top: 100px !important;
    padding-bottom: 0;
  }

  .tutribu-hero-container {
    width: 93%;
  }

  .tutribu-hero-content {
    max-width: 100%;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 10px;
  }

  .tutribu-hero-heading {
    font-size: 2.5rem;
  }

  .tutribu-hero-subtext {
    max-width: 100%;
    font-size: 0.9rem;
  }

  .tutribu-hero-buttons {
    flex-direction: column;
    gap: 10px;
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease 0.2s;
  }

  .tutribu-hero-buttons.fade-out {
    transform: none;
  }

  .tutribu-hero-btn {
    width: 100%;
    padding: 16px 24px;
  }

  /* Show mobile stars on mobile ONLY */
  .tutribu-hero-mobile-stars {
    display: block !important;
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-align: center;
  }

  .tutribu-hero-mobile-stars .tutribu-star-filled {
    color: #fff;
  }

  .tutribu-hero-mobile-stars .tutribu-star-empty {
    color: rgba(255, 255, 255, 0.3);
  }

  /* Hide desktop buttons on mobile */
  .tutribu-hero-content .tutribu-hero-buttons {
    display: none !important;
  }

  /* Cards */
  .tutribu-hero-cards-wrapper {
    position: relative;
    top: auto;
    transform: none;
    margin-top: 20px;
  }

  .tutribu-hero-cards-area {
    width: 100%;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tutribu-hero-carousel {
    height: 300px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .tutribu-card-label {
    display: none !important;
  }

  /* Arrows */
  .tutribu-hero-arrows {
    justify-content: center;
    padding-left: 0;
    margin-top: 15px;
    margin-bottom: 10px;
  }

  /* Mobile buttons at bottom */
  .tutribu-hero-mobile-buttons {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    padding: 20px 5%;
    border-radius: 12px 12px 0 0;
    margin-top: auto;
    z-index: 10;
    align-self: stretch;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    position: relative;
  }

  .tutribu-hero-mobile-buttons .tutribu-mobile-primary {
    background: #00AEEF !important;
    color: #fff !important;
    border: 2px solid #00AEEF !important;
  }

  .tutribu-hero-mobile-buttons .tutribu-mobile-secondary {
    background: transparent !important;
    color: #222 !important;
    border: 1px solid #000 !important;
  }
}

/* Large screens */
@media (min-width: 1400px) {
  .tutribu-hero-cards-area {
    margin-left: 52%;
  }
}
