/* HERO SLIDER */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-swiper {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 72px);
}

.hero-slide {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(248, 245, 255, 0.97) 45%,
    rgba(240, 234, 250, 0.75) 100%
  );
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 70px 0 80px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: var(--primary-light2);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text-color);
}
.hero-title span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-color3);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 34px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color2);
}
.hero-stat-num {
  font-size: 1.7rem;
  font-weight: 900;
  display: block;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-color3);
  display: block;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.hero-main-img {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-color);
}
.hero-img-decoration {
  position: absolute;
  top: -16px;
  left: -16px;
  right: 20px;
  bottom: 20px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-color);
  z-index: -1;
  background: var(--gradient-soft);
}
.hero-badge-floating {
  position: absolute;
  bottom: 28px;
  right: -20px;
  background: var(--background-color2);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
}
.hero-badge-floating i {
  font-size: 1.3rem;
  color: var(--accent-color);
}
.hero-badge-floating strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-color);
}
.hero-badge-floating span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-color3);
}

/* Hero Slider Controls */
.hero .swiper-pagination {
  bottom: 28px;
}
.hero .swiper-pagination-bullet {
  background: var(--primary-color3);
  opacity: 0.4;
  width: 8px;
  height: 8px;
}
.hero .swiper-pagination-bullet-active {
  opacity: 1;
  width: 24px;
  border-radius: 4px;
  background: var(--primary-color);
}
.hero-slide-counter {
  position: absolute;
  bottom: 28px;
  left: 40px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-color3);
  z-index: 10;
}
.hero-slide-counter span {
  color: var(--primary-color);
}

/* INSTRUMENTS */
.instruments-section {
  background: var(--background-color);
}

.instruments-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  justify-content: center;
}
.inst-tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: var(--background-color2);
  color: var(--text-color3);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-fa);
}
.inst-tab:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.inst-tab.active {
  background: var(--gradient-main);
  color: var(--light-color);
  border-color: transparent;
  box-shadow: var(--shadow-purple);
}

.inst-panel {
  display: none;
}
.inst-panel.active {
  display: grid;
}

.instruments-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}
.instrument-card {
  background: var(--background-color2);
  border: 1.5px solid var(--border-color2);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color2);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.instrument-card:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.instrument-icon {
  font-size: 1.6rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* WHY US */
.why-us-section {
  background: var(--background-color3);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.why-img-wrap {
  position: relative;
}
.why-main-img {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-color);
}
.why-accent-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gradient-main);
  color: var(--light-color);
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-purple);
}
.why-accent-card strong {
  font-size: 2rem;
  font-weight: 900;
  display: block;
}
.why-accent-card span {
  font-size: 0.8rem;
  opacity: 0.9;
}

.why-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
.why-feature {
  background: var(--background-color2);
  border: 1px solid var(--border-color2);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.why-feature:hover {
  border-color: var(--border-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.why-feature-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}
.why-feature h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-color);
}
.why-feature p {
  font-size: 0.82rem;
  color: var(--text-color3);
  line-height: 1.6;
}

/* TEACHERS SLIDER */
.teachers-section {
  background: var(--background-color2);
}

.teacher-card {
  background: var(--background-color);
  border: 1.5px solid var(--border-color2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.teacher-card:hover {
  border-color: var(--border-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.teacher-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.teacher-body {
  padding: 18px 18px 10px;
}
.teacher-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 4px;
}
.teacher-instrument {
  font-size: 0.83rem;
  color: var(--text-color3);
  margin-bottom: 12px;
}
.teacher-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.teacher-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border-color2);
}
.teacher-social-icon {
  font-size: 1.2rem;
  color: var(--primary-color3);
  transition: var(--transition-fast);
  cursor: pointer;
}
.teacher-social-icon:hover {
  color: var(--secondary-color);
  transform: scale(1.15);
}

/* GALLERY */
.home-gallery-section {
  background: var(--background-color);
}
.gallery-slide-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

/* COURSES (slider) */
.home-courses-section {
  background: var(--background-color3);
}

/* NEWS (slider) */
.home-news-section {
  background: var(--background-color2);
}

.news-card-featured .card-img {
  aspect-ratio: 16/9;
}

/* EVENTS */
.events-section {
  background: var(--background-color3);
}

.event-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--background-color2);
  border: 1.5px solid var(--border-color2);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.event-card:hover {
  border-color: var(--border-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.event-date-block {
  flex-shrink: 0;
  width: 60px;
  height: 68px;
  background: var(--gradient-main);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  box-shadow: var(--shadow-purple);
}
.event-date-block strong {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}
.event-date-block span {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
}

.event-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
}
.event-info p {
  font-size: 0.85rem;
  color: var(--text-color3);
  line-height: 1.65;
  margin-bottom: 12px;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.event-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-color3);
}
.event-meta i {
  color: var(--primary-color);
}

/* CTA BAND */
.cta-band {
  background: var(--gradient-main);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.cta-band::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-band-text h2 {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--light-color);
  margin-bottom: 8px;
}
.cta-band-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin: 0;
}
.cta-band-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-band .btn-primary {
  background: var(--light-color);
  color: var(--primary-color);
  box-shadow: none;
}
.cta-band .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}
.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--light-color);
}
.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--light-color);
}
.why-description {
  color: var(--text-color3);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-top: 14px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual {
    display: none;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .why-img-wrap {
    display: none;
  }
  .cta-band-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-band-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .gallery-slide-img {
    height: 260px;
  }
  .instruments-tabs {
    gap: 6px;
  }
  .inst-tab {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
  .why-features {
    grid-template-columns: 1fr;
  }
}
