/* Section container */
.hitz360-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

/* Section title group */
.hitz360-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Main title */
.hitz360-title {
  color: #111;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Subtitle text */
.hitz360-subtitle {
  display: block;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 24px;
  margin: 0;
  color: #777;
  font-style: italic;
  font-weight: bold;
  -webkit-font-smoothing: antialiased;
}

/* Toggle container */
.hitz360-toggle {
  display: flex;
  background: #f0f0f0;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  width: 140px;
  height: 30px;
  justify-content: space-between;
  align-items: center;
}

/* Toggle buttons */
.hitz360-toggle button {
  flex: 1;
  border: none;
  background: transparent;
  color: #444;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.hitz360-toggle button.active {
  background: #111;
  color: #fff;
}

/* Cards grid */
.hitz360-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* Card styles */
.hitz360-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: #111;
}

.hitz360-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Border color logic */
.hitz360-card:nth-child(1) { border: 3px solid #ff1744; }
.hitz360-card:nth-child(2) { border: 3px solid #ff9100; }
.hitz360-card:nth-child(3) { border: 3px solid #fdd835; }
.hitz360-card:nth-child(4) { border: 3px solid #00e676; }
.hitz360-card:nth-child(5) { border: 3px solid #2979ff; }

/* Card image */
.hitz360-card img {
  width: 174px;
  height: 174px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Card title */
.hitz360-card h3 {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

/* Slider effect on mobile */
@media (max-width: 768px) {
  .hitz360-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
  }

  .hitz360-card {
    min-width: 200px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .hitz360-toggle {
    order: 2;
    margin-top: 10px;
    align-self: flex-end;
  }

  .hitz360-section {
    align-items: flex-start;
  }
}