/* ===== O'ZGARUVCHILAR ===== */
:root {
  --primary: #6C3CE1;
  --primary-dark: #5228CC;
  --primary-light: #EDE8FF;
  --accent: #FF6B35;
  --accent2: #00C9A7;
  --bg: #F7F5FF;
  --card: #FFFFFF;
  --text: #1A1340;
  --muted: #6B6B8D;
  --border: #E4DEFF;
  --shadow: 0 4px 24px rgba(108,60,225,0.10);
  --shadow-hover: 0 8px 40px rgba(108,60,225,0.18);
  --radius: 16px;
  --radius-sm: 10px;
}

/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, #4A1FA3 0%, #6C3CE1 50%, #8B5CF6 100%);
  padding: 0 0 32px;
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
header::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
}
.logo { display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; }
.logo-icon {
  width: 38px; height: 38px;
  background: white;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  overflow: hidden;
}
.logo-text { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 18px; }
.header-title { color: white; padding: 8px 24px 0; }
.header-title h1 { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 28px; line-height: 1.2; }
.header-title p { font-size: 14px; opacity: 0.8; margin-top: 4px; }

/* ===== QIDIRUV ===== */
.search-bar { margin: 20px 16px 0; position: relative; z-index: 1; }
.search-bar input {
  width: 100%;
  padding: 14px 48px 14px 18px;
  border-radius: 12px;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  outline: none;
  color: var(--text);
}
.search-bar input::placeholder { color: #9999BB; }
.search-icon {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted); font-size: 18px;
}

/* ===== FILTER CHIPLAR ===== */
.filters { padding: 16px 16px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.chip.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== KURS KARTALAR ===== */
.cards { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.25s;
  border: 1.5px solid rgba(108,60,225,0.07);
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card-inner { display: flex; }
.card-img {
  width: 110px; min-width: 110px;
  height: 130px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px; flex: 1; }
.card-fan {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px; font-weight: 700;
  border-radius: 6px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-title { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 16px; line-height: 1.3; margin-bottom: 6px; }
.card-teacher { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; }
.card-price { font-weight: 800; font-size: 15px; color: var(--primary); }
.btn-ariza {
  padding: 7px 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-ariza:hover { background: #e55a25; transform: scale(1.04); }

/* ===== REKLAMA BANNER ===== */
.banner-swiper { max-width: 100%; margin: 20px auto; }
.swiper-slide { text-align: center; }
.banner-media {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 220px;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-media img { width: 100%; height: 100%; object-fit: contain; }
.banner-media video { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.banner-text { margin-top: 8px; font-size: 14px; color: #333; }
.banner-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  font-size: 13px;
}

/* ===== BO'SH HOLAT ===== */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 56px; margin-bottom: 12px; }
.empty h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--text); }

/* ===== PASTKI NAV ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 14px;
  z-index: 100;
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 10px; }
.bottom-nav a.active { color: var(--primary); }
.nav-icon { font-size: 22px; }
.pb-nav { padding-bottom: 70px; }

/* ===== TABLET (600px+) ===== */
@media (min-width: 600px) {
  .cards { display: grid; grid-template-columns: 1fr 1fr; padding: 20px; gap: 16px; }
  .card-inner { flex-direction: column; }
  .card-img { width: 100%; height: 180px; min-width: unset; }
  .card-body { padding: 16px; }
  .card-title { font-size: 17px; }
  .header-title h1 { font-size: 32px; }
  .search-bar { margin: 24px 20px 0; }
  .filters { padding: 16px 20px 0; }
}

/* ===== DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  header { padding: 0 0 40px; }
  .header-top { padding: 24px 40px 20px; }
  .header-title { padding: 8px 40px 0; }
  .header-title h1 { font-size: 40px; }
  .header-title p { font-size: 16px; }
  .search-bar { margin: 28px 40px 0; max-width: 700px; }
  .search-bar input { padding: 16px 52px 16px 20px; font-size: 16px; }
  .filters { padding: 20px 40px 0; gap: 10px; }
  .chip { padding: 8px 20px; font-size: 14px; }
  .cards { grid-template-columns: repeat(3, 1fr); padding: 24px 40px; gap: 20px; max-width: 1400px; margin: 0 auto; }
  .card-img { height: 200px; }
  .card-body { padding: 18px; }
  .card-title { font-size: 18px; }
  .card-price { font-size: 16px; }
  .bottom-nav { display: none; }
  .pb-nav { padding-bottom: 24px; }
}

/* ===== KATTA EKRAN (1440px+) ===== */
@media (min-width: 1440px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .search-bar { max-width: 800px; }
}

/* ===== SWIPER NAVIGATION ===== */
.banner-swiper {
  padding: 0 10px 32px;
  position: relative;
}
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary) !important;
  background: white;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(108,60,225,0.18);
  top: 45% !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 14px !important;
  font-weight: 900;
}
.swiper-pagination-bullet-active {
  background: var(--primary) !important;
}
.swiper-pagination-bullet {
  background: var(--muted);
  opacity: 0.5;
}

/* Mobilida navigation tugmalar yashirinadi */
@media (max-width: 599px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  .banner-swiper {
    padding: 0 0 28px;
  }
}

/* ===== HERO SLIDER ===== */
.hero-slider-wrap {
  margin: 0;
  overflow: hidden;
}
.hero-swiper {
  width: 100%;
  height: 200px;
}
.hero-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
}
.hero-slide-content {
  color: white;
  max-width: 500px;
}
.hero-slide-icon {
  font-size: 40px;
  margin-bottom: 10px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-slide-content h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero-slide-content p {
  font-size: 13px;
  opacity: 0.88;
  margin-bottom: 14px;
}
.hero-cta {
  display: inline-block;
  padding: 8px 22px;
  background: rgba(255,255,255,0.22);
  border: 1.5px solid rgba(255,255,255,0.5);
  color: white;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}
.hero-cta:hover {
  background: rgba(255,255,255,0.35);
}
.hero-pagination {
  bottom: 8px !important;
}
.hero-pagination .swiper-pagination-bullet {
  background: rgba(255,255,255,0.6) !important;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: white !important;
  width: 20px;
  border-radius: 4px;
}

@media (min-width: 600px) {
  .hero-swiper { height: 220px; }
  .hero-slide-content h2 { font-size: 24px; }
  .hero-slide-content p { font-size: 14px; }
  .hero-slide-icon { font-size: 48px; }
}
@media (min-width: 1024px) {
  .hero-swiper { height: 260px; }
  .hero-slide-content h2 { font-size: 30px; }
  .hero-slide-content p { font-size: 15px; }
  .hero-slide-icon { font-size: 56px; }
  .hero-cta { padding: 10px 28px; font-size: 14px; }
}
