/* ===== VARIABLES ===== */
:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --primary-light: #e3f2fd;
  --secondary: #0a1929;
  --star: #f4b400;
  --badge-green: #00a651;
  --text: #2d3436;
  --text-muted: #636e72;
  --border: #e8e8e8;
  --bg-light: #f8f9fa;
  --shadow: 0 2px 16px rgba(0,0,0,0.10);
  --shadow-hover: 0 6px 28px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--text); background: #fff; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 0 20px; height: 64px;
}
.navbar-logo { display: flex; align-items: center; }
.navbar-logo img { height: 44px; width: auto; display: block; }
.navbar-brand-right { display: flex; align-items: center; flex-shrink: 0; }
.navbar-brand-right img { height: 44px; width: auto; display: block; }
.navbar-cats {
  display: flex; gap: 4px; flex: 1; overflow-x: auto;
  scrollbar-width: none;
}
.navbar-cats::-webkit-scrollbar { display: none; }
.navbar-cat {
  white-space: nowrap; padding: 6px 14px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  transition: all 0.2s; flex-shrink: 0;
}
.navbar-cat:hover, .navbar-cat.active {
  background: var(--primary-light); color: var(--primary); font-weight: 600;
}
.navbar-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.btn-outline {
  padding: 8px 18px; border-radius: 8px; font-size: 0.88rem; font-weight: 600;
  border: 2px solid var(--text); color: var(--text); transition: all 0.2s;
}
.btn-outline:hover { background: var(--text); color: #fff; }
.btn-primary {
  padding: 8px 18px; border-radius: 8px; font-size: 0.88rem; font-weight: 600;
  background: var(--primary); color: #fff; transition: background 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); }

/* ===== HERO SLIDER ===== */
.slider-section { position: relative; overflow: hidden; }
.slider-wrapper { display: flex; transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.slide {
  min-width: 100%; height: 420px; position: relative;
  display: flex; align-items: center;
}
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 40%, rgba(0,0,0,0.10) 100%);
}
.slide-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  width: 100%;
}
.slide-tag {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 4px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.slide-title {
  font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 800;
  color: #fff; line-height: 1.15; margin-bottom: 12px; max-width: 520px;
}
.slide-subtitle {
  font-size: 1rem; color: rgba(255,255,255,0.88);
  margin-bottom: 24px; max-width: 440px; line-height: 1.5;
}
.slide-stats {
  display: flex; gap: 20px; margin-bottom: 28px;
  flex-wrap: wrap;
}
.slide-stat {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.9); font-size: 0.85rem;
}
.slide-stat-icon { font-size: 1rem; }
.slide-cta {
  padding: 12px 28px; border-radius: 10px;
  font-size: 1rem; font-weight: 700;
  background: var(--primary); color: #fff; display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.slide-cta:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Slider controls */
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.9); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  z-index: 10; font-size: 1.2rem; transition: all 0.2s;
}
.slider-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }
.slider-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.5); transition: all 0.3s;
}
.slider-dot.active { background: #fff; transform: scale(1.3); }

/* ===== SEARCH BAR ===== */
.search-bar {
  background: var(--bg-light); border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}
.search-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 12px; align-items: center;
}
.search-input-wrap { position: relative; flex: 1; }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 1rem;
}
.search-input {
  width: 100%; padding: 10px 14px 10px 40px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; outline: none; transition: border-color 0.2s;
  background: #fff;
}
.search-input:focus { border-color: var(--primary); }
.search-select {
  padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; outline: none; background: #fff; cursor: pointer;
  transition: border-color 0.2s; min-width: 160px;
}
.search-select:focus { border-color: var(--primary); }

/* ===== TRAINERS SECTION ===== */
.trainers-section { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 8px;
}
.section-title { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.section-subtitle { font-size: 0.88rem; color: var(--text-muted); }
.trainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ===== TRAINER CARD ===== */
.trainer-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  box-shadow: var(--shadow); transition: all 0.3s; cursor: pointer;
  display: flex; flex-direction: column;
}
.trainer-card:hover {
  box-shadow: var(--shadow-hover); transform: translateY(-4px);
  border-color: var(--primary);
}
.trainer-card-img {
  height: 180px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.trainer-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: #fff;
  border: 4px solid rgba(255,255,255,0.4);
  position: relative; z-index: 1;
}
.trainer-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--badge-green); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.trainer-card-online {
  position: absolute; top: 12px; right: 12px;
  background: #fff; color: var(--text-muted);
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 4px;
}
.online-dot { width: 7px; height: 7px; background: var(--badge-green); border-radius: 50%; }
.trainer-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.trainer-card-name { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.trainer-card-title { font-size: 0.83rem; color: var(--text-muted); line-height: 1.4; }
.trainer-card-loc {
  font-size: 0.80rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.trainer-card-rating {
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
}
.stars { color: var(--star); font-size: 0.85rem; letter-spacing: 1px; }
.rating-val { font-size: 0.85rem; font-weight: 700; }
.rating-count { font-size: 0.78rem; color: var(--text-muted); }
.trainer-card-footer {
  padding: 12px 16px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.trainer-price { font-size: 1rem; font-weight: 800; color: var(--text); }
.trainer-price small { font-size: 0.72rem; font-weight: 400; color: var(--text-muted); }
.trainer-students { font-size: 0.78rem; color: var(--text-muted); }

/* ===== HOW IT WORKS ===== */
.how-section {
  background: var(--bg-light); padding: 60px 20px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.how-inner { max-width: 1200px; margin: 0 auto; }
.how-title { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: 8px; }
.how-desc { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 0.95rem; }
.how-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.how-step { text-align: center; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 900; margin: 0 auto 16px;
}
.step-icon { font-size: 2rem; margin: 0 auto 12px; }
.step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { padding: 60px 20px; }
.testimonials-inner { max-width: 1200px; margin: 0 auto; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 32px;
}
.testimonial-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.testimonial-header { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: #fff; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.95rem; }
.testimonial-sub { font-size: 0.78rem; color: var(--text-muted); }
.testimonial-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; font-style: italic; }
.testimonial-stars { color: var(--star); margin-top: 12px; font-size: 0.85rem; }

/* ===== FAQ ===== */
.faq-section { background: var(--bg-light); padding: 60px 20px; }
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq-list { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left; padding: 16px 20px;
  font-size: 0.95rem; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--primary-light); }
.faq-icon { font-size: 1.2rem; flex-shrink: 0; transition: transform 0.3s; color: var(--primary); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  padding: 0 20px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.65;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 16px; }

/* ===== FOOTER ===== */
.footer { background: var(--secondary); color: rgba(255,255,255,0.85); padding: 48px 20px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px; margin-bottom: 40px;
}
.footer-col-title { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 0.83rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-logo { display: flex; align-items: center; }
.footer-logo img { height: 36px; width: auto; display: block; filter: brightness(0) invert(1); }

/* ===== PROFILE PAGE ===== */
.profile-breadcrumb {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  font-size: 0.82rem; color: var(--text-muted);
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.profile-breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }
.profile-main { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; }
.profile-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.profile-left {}
.profile-header-box { margin-bottom: 28px; }
.profile-title { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.profile-modality {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 20px;
}
.modality-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; }
.modality-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.modality-tag {
  padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600;
  background: var(--primary-light); color: var(--primary);
}
.modality-tag.secondary { background: #e8f5e9; color: #2e7d32; }
.modality-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 8px; display: flex; align-items: center; gap: 5px; }
.badge-ambassador {
  background: #e8f5e9; border: 1px solid #c8e6c9; border-radius: var(--radius-sm);
  padding: 12px 16px; display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 24px;
}
.badge-ambassador-icon { font-size: 1.4rem; }
.badge-ambassador-text { font-size: 0.82rem; color: #2e7d32; line-height: 1.5; }
.badge-ambassador-text strong { font-weight: 700; }
.profile-section { margin-bottom: 32px; }
.profile-section-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.profile-text { font-size: 0.92rem; line-height: 1.75; color: var(--text); }
.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.profile-tag {
  padding: 5px 14px; border: 1px solid var(--border); border-radius: 20px;
  font-size: 0.80rem; color: var(--text-muted); background: var(--bg-light);
}

/* Opinions */
.opinion-card {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px; margin-bottom: 14px; background: #fff;
}
.opinion-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.opinion-user { display: flex; align-items: center; gap: 10px; }
.opinion-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; color: #fff; flex-shrink: 0;
}
.opinion-name { font-weight: 700; font-size: 0.92rem; }
.opinion-stars { color: var(--star); font-size: 0.85rem; }
.opinion-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.opinion-reply {
  margin-top: 12px; padding: 12px 14px;
  background: var(--bg-light); border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.opinion-reply-from { font-size: 0.78rem; font-weight: 700; color: var(--primary); margin-bottom: 5px; }
.opinion-reply-text { font-size: 0.84rem; color: var(--text-muted); line-height: 1.5; }

/* Prices table */
.prices-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.prices-table th {
  background: var(--bg-light); font-size: 0.80rem; color: var(--text-muted);
  padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--border);
}
.prices-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.prices-table tr:last-child td { border-bottom: none; }
.price-val { font-weight: 800; font-size: 1rem; }

/* Profile sidebar */
.profile-sidebar {}
.sidebar-card {
  position: sticky; top: 80px;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: #fff;
}
.sidebar-avatar-wrap {
  height: 200px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.sidebar-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.sidebar-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; font-weight: 800; color: #fff;
  border: 5px solid rgba(255,255,255,0.4);
  position: relative; z-index: 1;
}
.sidebar-body { padding: 20px; }
.sidebar-name { font-size: 1.4rem; font-weight: 800; text-align: center; margin-bottom: 4px; }
.sidebar-reviews { text-align: center; color: var(--primary); font-size: 0.83rem; margin-bottom: 16px; cursor: pointer; }
.sidebar-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.sidebar-stat-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 2px; }
.sidebar-stat-val { font-size: 1rem; font-weight: 700; }
.btn-contact {
  width: 100%; padding: 13px; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 1rem; font-weight: 700;
  transition: background 0.2s; display: block; text-align: center; margin-bottom: 10px;
}
.btn-contact:hover { background: var(--primary-dark); }
.btn-free-class {
  width: 100%; padding: 11px; border-radius: 10px;
  border: 2px solid var(--primary); color: var(--primary); font-size: 0.9rem; font-weight: 700;
  transition: all 0.2s; display: block; text-align: center; background: #fff;
}
.btn-free-class:hover { background: var(--primary-light); }

/* Similar trainers */
.similar-section {
  border-top: 1px solid var(--border); padding: 40px 20px;
  max-width: 1200px; margin: 0 auto;
}
.similar-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-top: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { order: -1; }
  .sidebar-card { position: static; }
}
@media (max-width: 640px) {
  .slide { height: 300px; }
  .slide-content { padding: 0 20px; }
  .navbar-cats { display: none; }
  .slide-stats { gap: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
