/* ============================================
   PREMIUM ENHANCEMENTS
   ============================================ */

/* --- Hero slider caption styles --- */
.swiper-slider {
  position: relative;
  min-height: 100vh;
  height: 100vh !important;
}
.swiper-slider .swiper-wrapper {
  height: 100% !important;
}
.swiper-slider .swiper-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100% !important;
  position: relative;
}
.swiper-slider .swiper-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,29,51,0.45) 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}
.hero-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 14vh;
  z-index: 5;
  pointer-events: none;
}
.hero-caption .container {
  pointer-events: auto;
}
.hero-badge {
  display: inline-block;
  font: 600 12px/1.4 "Work Sans", Arial, sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #cda45e;
  background: rgba(41, 41, 58, 0.6);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero-heading {
  font: 700 52px/1.1 "Zilla Slab", Georgia, serif;
  color: #fff;
  margin: 0 0 16px 0;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4), 0 1px 10px rgba(0,0,0,0.3);
}
.hero-heading .accent {
  color: #cda45e;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4), 0 0 20px rgba(205,164,94,0.3);
}
.hero-sub {
  font: 400 17px/1.6 "Work Sans", Arial, sans-serif;
  color: rgba(255,255,255,0.9);
  max-width: 540px;
  margin: 0 0 24px 0;
  text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

/* --- reveal-up animation --- */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.7s ease forwards;
}
.reveal-up:nth-child(2) { animation-delay: 0.15s; }
.reveal-up:nth-child(3) { animation-delay: 0.3s; }
.reveal-up:nth-child(4) { animation-delay: 0.45s; }
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* --- premium buttons --- */
.btn-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font: 700 14px/1 "Work Sans", Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-premium.gold {
  background: linear-gradient(135deg, #cda45e, #b8913d);
  color: #fff;
  box-shadow: 0 4px 15px rgba(205, 164, 94, 0.35);
}
.btn-premium.gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(205, 164, 94, 0.5);
}
.btn-premium.ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn-premium.ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
.btn-premium .shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-premium:hover .shine {
  left: 150%;
}

/* --- Disable hover shadow on banner & teacher images in about pages --- */
.banner-container img,
.custom-teacher-card img,
.teacher-image-wrap img {
  box-shadow: none !important;
  filter: none !important;
}

/* --- Smooth page scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Smooth transitions on everything interactive --- */
a, button, .card, .contact-card, .thumbnail-thin,
.form-input, .form-label, .rd-navbar-link,
.rd-nav-item, .brand img, .button {
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* --- Button hover lift & shadow --- */
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 41, 58, 0.15);
}
.button:active {
  transform: translateY(0);
}

/* --- Nav link hover smooth --- */
.rd-nav-link {
  position: relative;
}
.rd-nav-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 178, 98, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  pointer-events: none;
}
.rd-nav-link:hover::before {
  width: 60px;
  height: 60px;
}

/* --- Footer links smooth color fade --- */
.footer-classic a {
  transition: color 0.3s ease, padding-left 0.25s ease;
}
.footer-classic a:hover {
  padding-left: 4px;
}

/* --- Card lift effect --- */
.card, .contact-card, .thumbnail-thin {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s ease !important;
}
.card:hover, .contact-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04) !important;
}

/* --- Image zoom on hover --- */
.card-img-top, .thumbnail-thin-image, .img-rounded {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.card:hover .card-img-top,
.thumbnail-thin:hover .thumbnail-thin-image {
  transform: scale(1.08);
}

/* --- Button micro-animations --- */
.button-primary-gradient {
  position: relative;
  overflow: hidden;
}
.button-primary-gradient::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}
.button-primary-gradient:hover::after {
  width: 300px;
  height: 300px;
}
.button-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,146,61,0.3);
}
.button-primary-gradient:active {
  transform: translateY(0);
}

/* --- Input focus animation --- */
.form-input {
  border: 1px solid #e0e0e0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}
.form-input:focus {
  border-color: #ffb262 !important;
  box-shadow: 0 0 0 3px rgba(255,178,98,0.15) !important;
  outline: none;
}
.form-input:focus + .form-label,
.form-input.input-filled + .form-label {
  color: #ffb262 !important;
}

/* --- Navbar underline slide (center-out) --- */
.rd-navbar-static .rd-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffb262, #ff923d);
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), left 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.rd-navbar-static .rd-nav-link:hover::after,
.rd-navbar-static .rd-nav-item.active .rd-nav-link::after {
  left: 0;
  width: 100%;
  transform: translateX(0);
}

/* --- Gradient heading accent --- */
h2, .heading-2 {
  background: linear-gradient(135deg, #29293a 0%, #ffb262 25%, #cda45e 50%, #ffb262 75%, #29293a 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 6s ease-in-out infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Counter number styling --- */
.counter-minimal-counter {
  background: linear-gradient(135deg, #ffb262, #ff923d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700 !important;
}

/* --- Blog badge styling --- */
.badge {
  transition: all 0.3s ease !important;
}
.card:hover .badge {
  background: #ffb262 !important;
  transform: translateY(-2px);
}

/* --- Section separator --- */
.section + .section {
  position: relative;
}
.section.bg-gray-100 + .section.bg-gray-100,
.section.bg-default + .section.bg-default {
  border-top: 1px solid rgba(0,0,0,0.03);
}

/* --- Preloader spinner premium --- */
.cssload-speeding-wheel {
  border-width: 3px !important;
  border-top-color: #ffb262 !important;
  border-right-color: #ffb262 !important;
}

/* --- Footer premium --- */
.footer-classic {
  position: relative;
}
.footer-classic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffb262, #ff923d, #ffb262);
}

/* --- Link underline effect --- */
a:not(.button):not(.rd-nav-link):not(.brand):not(.badge) {
  position: relative;
  text-decoration: none !important;
}
a:not(.button):not(.rd-nav-link):not(.brand):not(.badge)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffb262;
  transition: width 0.3s ease;
}
a:not(.button):not(.rd-nav-link):not(.brand):not(.badge):hover::after {
  width: 100%;
}

/* --- Smooth page load --- */
.page {
  animation: pageFadeIn 0.5s ease;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Level cards (about page) --- */
.level-card {
  padding: 30px 15px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  border-bottom: 4px solid #e2e8f0;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}
.level-card:hover {
  transform: translateY(-5px);
  border-bottom-color: #cda45e;
  box-shadow: 0 12px 25px rgba(205,164,94,0.25);
  animation: borderGlow 1.2s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% {
    border-bottom-color: #cda45e;
    box-shadow: 0 12px 25px rgba(205,164,94,0.25);
  }
  50% {
    border-bottom-color: #f5d78e;
    box-shadow: 0 12px 35px rgba(205,164,94,0.55);
  }
}

/* --- Flag emoji gentle sway --- */
@keyframes flagSway {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}
.lang-flags a:hover .flag-emoji {
  animation: flagSway 0.6s ease-in-out;
}
.level-icon-box {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: rgba(205, 164, 94, 0.12);
  color: #cda45e;
  border-radius: 50%;
  margin: 0 auto 15px;
  font-size: 24px;
  font-weight: 700;
}

/* --- Global polish: smoother rendering + selection color --- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection {
  background: #cda45e;
  color: #ffffff;
}

/* --- Section header accent (centered sections get a soft gold divider) --- */
.section.text-center .heading-2::after,
.section.text-center h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #cda45e, #ffb262);
}

/* --- Card titles get a subtle gold hover --- */
.card-title {
  transition: color 0.3s ease;
}
.card:hover .card-title {
  color: #cda45e;
}

/* --- Navbar gets a soft blur/premium feel once stuck on scroll --- */
.rd-navbar-classic.rd-navbar-static.rd-navbar--is-stuck .rd-navbar-main-outer,
.rd-navbar-classic.rd-navbar-static.rd-navbar--is-clone .rd-navbar-main-outer {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(41, 41, 58, 0.06);
}

/* --- Brand logo gentle hover lift --- */
.rd-navbar-brand .brand {
  display: inline-block;
  transition: transform 0.3s ease;
}
.rd-navbar-brand .brand:hover {
  transform: scale(1.04);
}
.rd-navbar-brand .brand img {
  animation: logoFloat 3s ease-in-out infinite;
}

/* --- Brooklyn logo floating animation --- */
@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}
/* --- Footer links: gold hover instead of default underline noise --- */
.footer-classic a:not(.button) {
  transition: color 0.25s ease;
}
.footer-classic a:not(.button):hover {
  color: #ffb262;
}

/* --- Eyebrow labels (small uppercase kickers like "Blog", "Gallery") --- */
.text-muted[style*="letter-spacing"] {
  display: inline-block;
  font-weight: 700 !important;
  color: #b9790a !important;
  background: #fff3da;
  border: 1px solid #f5d998;
  border-radius: 30px;
  padding: 6px 18px !important;
}

/* --- Blog / news cards (index) --- */
.card.border-0.shadow-sm {
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(31, 31, 31, 0.06) !important;
  border: 1px solid #f4ecd8 !important;
}
.card.border-0.shadow-sm:hover {
  box-shadow: 0 18px 34px rgba(205, 164, 94, 0.18) !important;
}
.card .badge.position-absolute {
  border-radius: 30px !important;
  box-shadow: 0 4px 10px rgba(205, 164, 94, 0.35);
}
.card .card-body {
  padding: 26px 24px !important;
}
.card-text {
  line-height: 1.7;
}

/* --- Gallery thumbnails: soften the sharp default template look --- */
.thumbnail-thin {
  border-radius: 12px;
}
.thumbnail-thin-inner {
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}
.thumbnail-thin-image {
  border-radius: 12px;
}

/* --- Progress bars (levels on homepage) --- */
.progress-linear .progress-bar-linear-wrap {
  height: 6px !important;
  border-radius: 6px;
  background: #eef0f4 !important;
  overflow: hidden;
}
.progress-linear .progress-bar-linear {
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 146, 61, 0.45);
}
.progress-linear .progress-header p {
  font-weight: 600;
  color: #29293a;
}
.progress-linear .progress-value {
  font-weight: 700;
  color: #cda45e;
}

/* --- Footer stat counters --- */
.counter-minimal {
  position: relative;
  padding-left: 18px;
  border-left: 3px solid #cda45e;
}
.counter-minimal-counter {
  font-size: 34px !important;
}
.counter-minimal-title {
  color: #b7bac2;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* --- Mobile refinements --- */
@media (max-width: 767px) {
  .rd-navbar-fixed .rd-navbar-panel {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  h1, .heading-1 {
    font-size: 28px !important;
  }
}

/* --- Typewriter effect --- */
.typewriter-text {
  display: inline;
}
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #cda45e;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blinkCursor 0.8s steps(1) infinite;
}
@keyframes blinkCursor {
  50% { opacity: 0; }
}

/* --- Chart bar rise-up --- */
.chart-bar {
  transition: height 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Button ripple --- */
.button {
  position: relative;
  overflow: hidden;
}
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}
