/* Gate Academy — homepage polish (keeps existing LMS structure) */
:root {
  --ga-ink: #1a1f2c;
  --ga-muted: #6b7280;
  --ga-line: rgba(26, 31, 44, 0.08);
  --ga-surface: #ffffff;
  --ga-soft: #f7f8fa;
  --ga-radius: 14px;
  --ga-shadow: 0 8px 28px rgba(26, 31, 44, 0.06);
  --ga-shadow-hover: 0 14px 36px rgba(26, 31, 44, 0.1);
}

/* ---- Page rhythm ---- */
body:has(.slider-container) .home-sections {
  margin-top: 56px !important;
  margin-bottom: 8px !important;
}

@media (min-width: 992px) {
  body:has(.slider-container) .home-sections {
    margin-top: 72px !important;
  }
}

.home-sections .section-title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--ga-ink) !important;
  margin-bottom: 0.35rem !important;
  line-height: 1.35 !important;
}

.home-sections .section-hint {
  color: var(--ga-muted) !important;
  font-size: 0.95rem !important;
  max-width: 36rem;
  line-height: 1.7 !important;
  margin-bottom: 0 !important;
}

/* ---- Hero ---- */
.slider-container.slider-hero-section2 {
  background: linear-gradient(135deg, #fff8f2 0%, #f7f8fa 45%, #ffffff 100%) !important;
  min-height: auto !important;
  padding: 48px 0 36px !important;
  border-bottom: 1px solid var(--ga-line);
}

@media (min-width: 992px) {
  .slider-container.slider-hero-section2 {
    padding: 72px 0 56px !important;
  }
}

.slider-container .slider-content.hero-section2 h1,
.slider-container.slider-hero-section2 .slider-content h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem) !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: var(--ga-ink) !important;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.slider-container .slider-content .slide-hint {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  color: var(--ga-muted) !important;
  max-width: 34rem;
}

.slider-container .slider-content .slider-search {
  border: 1px solid var(--ga-line) !important;
  border-radius: 999px !important;
  box-shadow: var(--ga-shadow) !important;
  padding: 8px 8px 8px 18px !important;
  max-width: 520px;
}

.slider-container .slider-content .slider-search .form-control {
  font-size: 0.95rem;
  background: transparent !important;
}

.slider-container .slider-content .slider-search .btn {
  border-radius: 999px !important;
  padding-left: 1.4rem !important;
  padding-right: 1.4rem !important;
  font-weight: 600;
  box-shadow: none !important;
}

.slider-container.slider-hero-section2 img.img-cover {
  border-radius: 18px;
  max-height: 420px;
  width: auto;
  margin-inline: auto;
  display: block;
  object-fit: contain !important;
}

/* ---- Stats ---- */
.stats-container {
  margin-top: -28px !important;
  position: relative;
  z-index: 5;
  padding-bottom: 8px;
}

.stats-container .stats-item {
  background: var(--ga-surface) !important;
  border: 1px solid var(--ga-line);
  border-radius: var(--ga-radius) !important;
  box-shadow: var(--ga-shadow) !important;
  padding: 1.5rem 1rem !important;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stats-container .stats-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--ga-shadow-hover) !important;
}

.stats-container .stat-number {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: var(--ga-ink) !important;
  letter-spacing: -0.02em;
}

.stats-container .stat-title {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--ga-ink) !important;
  margin-top: 0.25rem;
}

.stats-container .stat-desc {
  font-size: 0.82rem !important;
  color: var(--ga-muted) !important;
  line-height: 1.55 !important;
  max-width: 16rem;
}

.stats-container .stat-icon-box {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Course cards ---- */
.webinar-card {
  border: 1px solid var(--ga-line) !important;
  border-radius: var(--ga-radius) !important;
  box-shadow: none !important;
  overflow: hidden;
  background: var(--ga-surface) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.webinar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ga-shadow-hover) !important;
  border-color: rgba(230, 126, 34, 0.28) !important;
}

.webinar-card .image-box {
  border-radius: 0 !important;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.webinar-card .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Video band ---- */
#hero_video.hero-banner {
  z-index: 2;
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 48px auto 8px !important;
  border-radius: 18px;
  max-width: 1140px;
  box-shadow: var(--ga-shadow);
  border: 1px solid var(--ga-line);
  min-height: 320px;
  background: #111827;
}

@media (min-width: 768px) {
  #hero_video.hero-banner {
    min-height: 420px;
  }
}

#hero_video .hero-overlay {
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.35;
  position: absolute;
  background: #0f172a;
  pointer-events: none;
  z-index: 1;
}

#hero_video .player,
#hero_video #video-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---- Instructors ---- */
.instructors-swiper-container .owl-item .item,
.customers-testimonials .item {
  border: 1px solid var(--ga-line);
  border-radius: var(--ga-radius);
  background: var(--ga-surface);
  padding: 1.25rem 1rem !important;
  box-shadow: none !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.instructors-swiper-container .owl-item .item:hover,
.customers-testimonials .item:hover {
  box-shadow: var(--ga-shadow) !important;
  transform: translateY(-2px);
}

.instructors-swiper-container img,
.customers-testimonials img {
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--ga-line);
}

/* ---- Testimonials ---- */
.testimonials-container {
  background: var(--ga-soft) !important;
  padding: 56px 0 !important;
  border-top: 1px solid var(--ga-line);
  border-bottom: 1px solid var(--ga-line);
}

.testimonials-container .testimonials-card,
.testimonials-swiper .swiper-slide > div {
  border-radius: var(--ga-radius) !important;
  border: 1px solid var(--ga-line);
  box-shadow: none !important;
  background: var(--ga-surface);
}

/* ---- Blog cards ---- */
.blog-grid,
.home-sections .blog-card,
.home-sections [class*="blog"] .card {
  border-radius: var(--ga-radius);
}

/* ---- FAQ / trust ---- */
#home-trust-faq {
  background: var(--ga-surface);
  border: 1px solid var(--ga-line);
  border-radius: 18px;
  padding: 2rem 1.5rem !important;
  box-shadow: none !important;
}

#home-trust-faq .section-title {
  margin-bottom: 0.25rem !important;
}

#home-trust-faq h3 {
  color: var(--ga-ink);
  margin-bottom: 0.5rem;
}

#home-trust-faq .btn-primary {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
}

/* ---- Promo / find-instructor blocks ---- */
.find-instructor-section,
.reward-program-section {
  overflow: hidden;
}

.find-instructor-section-hero,
.reward-program-section-hero {
  border-radius: 16px;
  box-shadow: var(--ga-shadow);
}

/* ---- Swiper dots ---- */
.swiper-pagination-bullet {
  background: #cbd5e1 !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
  width: 22px !important;
  border-radius: 999px !important;
}

/* ---- Top bar + nav: public pages only (not panel) ---- */
body:not(.panel-layout) .top-navbar {
  background: #111827 !important;
  border-bottom: none !important;
}

body:not(.panel-layout) .top-navbar,
body:not(.panel-layout) .top-navbar .text-dark-blue,
body:not(.panel-layout) .top-navbar > .container a,
body:not(.panel-layout) .top-navbar .top-contact-box a,
body:not(.panel-layout) .top-navbar .navbar-search a,
body:not(.panel-layout) .top-navbar .dropdown > button,
body:not(.panel-layout) .top-navbar .js-side-cart-toggle,
body:not(.panel-layout) .top-navbar .form-control {
  color: rgba(255, 255, 255, 0.88) !important;
}

body:not(.panel-layout) .top-navbar .form-control {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body:not(.panel-layout) .top-navbar .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

body:not(.panel-layout) .top-navbar .border-bottom {
  border-bottom-color: transparent !important;
}

body:not(.panel-layout) .top-navbar .border-left {
  border-left-color: rgba(255, 255, 255, 0.15) !important;
}

body:not(.panel-layout) #navbar.navbar {
  background: #1f2937 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  border-bottom: none !important;
}

body:not(.panel-layout) #navbar .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.55rem 0.85rem !important;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

body:not(.panel-layout) #navbar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

body:not(.panel-layout) #navbar .menu-category > ul > li {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

/* White text only on the top toggle — not inside the white dropdown */
body:not(.panel-layout) #navbar .menu-category > ul > li > .categories-toggle-btn .text-dark-blue,
body:not(.panel-layout) #navbar .menu-category > ul > li > .categories-toggle-btn span.text-dark-blue {
  color: #fff !important;
}

body:not(.panel-layout) #navbar .menu-category > ul > li > .categories-toggle-btn svg {
  stroke: rgba(255, 255, 255, 0.9);
}

body:not(.panel-layout) #navbar .menu-category .cat-dropdown-menu {
  border: 1px solid var(--ga-line);
  border-radius: 14px;
  box-shadow: var(--ga-shadow-hover);
  background: #fff;
}

body:not(.panel-layout) #navbar .menu-category .cat-dropdown-menu .text-dark-blue,
body:not(.panel-layout) #navbar .menu-category .cat-dropdown-menu span.text-dark-blue {
  color: #1f2937 !important;
}

body:not(.panel-layout) #navbar .menu-category .cat-dropdown-menu svg {
  stroke: #4b5563;
}

body:not(.panel-layout) #navbar .navbar-brand img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

body:not(.panel-layout) #navbar .navbar-toggler-icon {
  filter: invert(1);
}

/* ---- Featured course slides ---- */
.feature-slider {
  border-radius: var(--ga-radius) !important;
  overflow: hidden;
  border: 1px solid var(--ga-line);
  box-shadow: var(--ga-shadow);
}

.feature-slider .feature-slider-card {
  backdrop-filter: blur(2px);
}

.feature-slider .card-title {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.35 !important;
}

/* ---- Section spacing ---- */
.home-sections.home-sections-swiper {
  padding-top: 8px;
  padding-bottom: 8px;
}

.home-sections .section {
  scroll-margin-top: 90px;
}

/* ---- Promo banners ---- */
.home-sections .banner,
.home-sections .advertising-banner,
.advertising-banner img {
  border-radius: 16px;
  overflow: hidden;
}

/* ---- Footer breathe ---- */
footer,
.footer {
  margin-top: 24px;
}

@media (max-width: 767.98px) {
  .slider-container.slider-hero-section2 {
    padding: 28px 0 20px !important;
  }

  .stats-container {
    margin-top: 12px !important;
  }

  #hero_video.hero-banner {
    margin: 24px 12px 8px !important;
    border-radius: 14px;
    min-height: 220px;
    width: auto;
  }

  #home-trust-faq {
    margin-left: 12px;
    margin-right: 12px;
    width: auto;
  }
}
