/* Kensei light-blue theme override */
:root {
  --primary-dark: #f7faff;
  --secondary-dark: #e9f1ff;
  --accent-red: #2f60de;
  --accent-light-red: #224bb8;
  --light-gray: #39536c;
  --medium-gray: #62768a;
  --dark-gray: #1d3550;
  --white: #172e49;
  --theme-page: linear-gradient(135deg, #ffffff 0%, #f4f7ff 48%, #e7efff 100%);
  --theme-page-reverse: linear-gradient(225deg, #ffffff 0%, #f1f6ff 52%, #e8f1ff 100%);
  --theme-surface: rgba(255, 255, 255, 0.82);
  --theme-surface-strong: rgba(255, 255, 255, 0.94);
  --theme-text: #172e49;
  --theme-muted: #60748a;
  --theme-line: rgba(47, 96, 222, 0.17);
  --theme-shadow: 0 18px 50px rgba(36, 73, 166, 0.11);
  --font-heading: Oswald, sans-serif;
  --font-body: Poppins, sans-serif;
}

html {
  background: #edf3ff;
}

body {
  color: var(--theme-text);
  background: var(--theme-page) fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 14% 18%, rgba(70, 112, 226, 0.15), transparent 30%),
    radial-gradient(circle at 86% 72%, rgba(107, 185, 238, 0.19), transparent 32%);
  content: "";
  pointer-events: none;
}

#preloader {
  color: var(--theme-text);
  background: var(--theme-page);
}

.preloader-text,
.section-title,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--theme-text);
}

p,
li,
.section-subtitle,
.about-text,
.hero-description {
  color: var(--theme-muted);
}

.text-danger {
  color: var(--accent-red) !important;
}

.bg-danger,
.badge.bg-danger {
  color: #ffffff !important;
  background-color: var(--accent-red) !important;
}

.bg-dark,
.bg-black {
  background: transparent !important;
}

section {
  color: var(--theme-text);
  background: var(--theme-page) !important;
}

section:nth-of-type(even) {
  background: var(--theme-page-reverse) !important;
}

/* Navigation */
.navbar,
.navbar.scrolled {
  border-bottom: 1px solid var(--theme-line);
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 10px 34px rgba(36, 73, 166, 0.09);
  backdrop-filter: blur(18px) saturate(130%);
}

.logo-text,
.navbar-nav .nav-link {
  color: var(--theme-text) !important;
}

.logo-icon,
.logo-accent,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--accent-red) !important;
}

.navbar-toggler {
  border-color: var(--theme-line) !important;
}

.navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(0.42);
}

/* Unified hero backgrounds */
#heroVideo {
  display: none !important;
}

.hero-bg-image,
.hero-overlay {
  background: var(--theme-page) !important;
}

.hero-overlay {
  opacity: 0.82;
}

.hero-section,
.blogdetail-hero,
.blog-hero,
.privacy-hero,
.terms-hero,
.refund-hero,
.kids-hero,
.adult-hero,
.selfdefense-hero,
.blackbelt-hero {
  color: var(--theme-text) !important;
  background: var(--theme-page) !important;
  border-bottom: 1px solid var(--theme-line);
}

.hero-title,
.hero-subtitle,
.hero-description,
.blogdetail-hero h1,
.blogdetail-hero p,
.blog-hero h1,
.blog-hero p,
.privacy-hero h1,
.privacy-hero p,
.terms-hero h1,
.terms-hero p,
.refund-hero h1,
.refund-hero p,
.kids-hero h1,
.kids-hero p,
.adult-hero h1,
.adult-hero p,
.selfdefense-hero h1,
.selfdefense-hero p,
.blackbelt-hero h1,
.blackbelt-hero p {
  color: var(--theme-text) !important;
  text-shadow: none !important;
}

/* Buttons and active controls */
.btn-danger,
.btn-cta,
.subscribe-btn,
.scroll-top-btn,
.class-icon,
.feature-icon,
.contact-icon,
.term-number,
.step-number,
.phase-number,
.timeline-icon,
.age-badge,
.audience-badge,
.belt-badge,
.level-badge {
  color: #ffffff !important;
  border-color: var(--accent-red) !important;
  background: var(--accent-red) !important;
  box-shadow: none !important;
}

.btn-danger {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: var(--accent-red);
  --bs-btn-border-color: var(--accent-red);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--accent-light-red);
  --bs-btn-hover-border-color: var(--accent-light-red);
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: var(--accent-light-red);
  --bs-btn-active-border-color: var(--accent-light-red);
}

.btn-outline-danger {
  --bs-btn-color: var(--accent-red);
  --bs-btn-border-color: var(--accent-red);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--accent-red);
  --bs-btn-hover-border-color: var(--accent-red);
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: var(--accent-light-red);
  --bs-btn-active-border-color: var(--accent-light-red);
  color: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
  background-color: transparent !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus-visible {
  color: #ffffff !important;
  border-color: var(--accent-red) !important;
  background-color: var(--accent-red) !important;
}

.btn-outline-danger:active {
  color: #ffffff !important;
  border-color: var(--accent-light-red) !important;
  background-color: var(--accent-light-red) !important;
}

.btn-danger:hover,
.btn-cta:hover,
.subscribe-btn:hover,
.scroll-top-btn:hover {
  color: #ffffff !important;
  border-color: var(--accent-light-red) !important;
  background: var(--accent-light-red) !important;
  transform: translateY(-2px);
}

.btn-outline-light {
  color: var(--accent-light-red) !important;
  border-color: var(--accent-red) !important;
  background: rgba(255, 255, 255, 0.58) !important;
}

.btn-outline-light:hover {
  color: #ffffff !important;
  background: var(--accent-red) !important;
}

.btn:active,
.subscribe-btn:active,
.scroll-top-btn:active {
  transform: translateY(1px) scale(0.98) !important;
}

/* Light surfaces */
.feature-item,
.class-card,
.instructor-card,
.testimonial-card,
.contact-form-card,
.contact-info-card,
.newsletter-box,
.blogdetail-main,
.quote-box,
.point-item,
.author-box,
.comment-form,
.comment,
.sidebar-widget,
.blog-post,
.featured-post,
.related-post,
.policy-section,
.terms-section,
.highlight-box,
.process-step,
.age-group-card,
.benefit-card,
.parent-testimonial,
.faq-item,
.faq-item-adult,
.faq-item-blackbelt,
.faq-item-selfdefense,
.program-card,
.program-card-selfdefense,
.benefit-item,
.benefit-item-blackbelt,
.principle-item,
.student-testimonial,
.student-testimonial-selfdefense,
.testimonial-blackbelt,
.program-comparison,
.technique-box,
.scenario-card,
.phase-card,
.timeline-content,
.elite-box,
.policy-card {
  color: var(--theme-text) !important;
  border-color: var(--theme-line) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(235, 241, 255, 0.8)) !important;
  box-shadow: var(--theme-shadow) !important;
}

.feature-item:hover,
.class-card:hover,
.instructor-card:hover,
.testimonial-card:hover,
.blog-post:hover,
.benefit-card:hover,
.program-card:hover,
.program-card-selfdefense:hover,
.phase-card:hover {
  border-color: rgba(47, 96, 222, 0.34) !important;
  box-shadow: 0 24px 60px rgba(36, 73, 166, 0.16) !important;
}

.feature-item h4,
.class-header h4,
.instructor-info h4,
.testimonial-author h5,
.contact-form-card h4,
.contact-info-card h4,
.contact-details h5,
.timeline-content h4,
.adult-section h3,
.adult-section h4,
.blackbelt-section h3,
.blackbelt-section h4,
.selfdefense-section h3,
.selfdefense-section h4 {
  color: var(--theme-text) !important;
}

.feature-item p,
.class-body p,
.class-features li,
.instructor-bio,
.instructor-experience,
.testimonial-text,
.testimonial-author p,
.contact-details p,
.adult-section p,
.adult-section li,
.blackbelt-section p,
.blackbelt-section li,
.kids-section p,
.kids-section li,
.selfdefense-section p,
.selfdefense-section li {
  color: var(--theme-muted) !important;
}

.class-footer {
  border-color: var(--theme-line);
  background: rgba(230, 238, 255, 0.68) !important;
}

.belt-level {
  color: #ffffff;
  background: rgba(47, 96, 222, 0.92) !important;
}

/* Galleries keep their photography, only their outer areas become light */
.gallery-section,
.kids-gallery,
.adult-gallery,
.selfdefense-gallery,
.blackbelt-gallery {
  background: var(--theme-page-reverse) !important;
}

.gallery-overlay,
.gallery-overlay-adult,
.gallery-overlay-blackbelt,
.gallery-overlay-selfdefense {
  color: #ffffff !important;
  background: linear-gradient(transparent, rgba(17, 45, 69, 0.84)) !important;
}

.gallery-overlay h5,
.gallery-overlay-adult h5,
.gallery-overlay-blackbelt h5,
.gallery-overlay-selfdefense h5 {
  color: #ffffff !important;
}

/* Forms */
.form-control,
.form-select,
.subscribe-input {
  color: var(--theme-text) !important;
  border-color: var(--theme-line) !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

.form-control::placeholder,
.subscribe-input::placeholder {
  color: #8294a5 !important;
}

.form-control:focus,
.form-select:focus,
.subscribe-input:focus {
  color: var(--theme-text) !important;
  border-color: var(--accent-red) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 0.24rem rgba(47, 96, 222, 0.15) !important;
}

/* Tables and policy content */
tbody,
td,
tfoot,
th,
thead,
tr {
  color: var(--theme-text) !important;
  border-color: var(--theme-line) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.refund-table th,
.requirements-table th,
.schedule-table th,
.schedule-table-adult th,
.schedule-table-selfdefense th,
.terms-table th {
  color: #ffffff !important;
  background: var(--accent-red) !important;
}

.refund-table tr:nth-child(even),
.requirements-table tr:nth-child(even),
.schedule-table tr:nth-child(even),
.schedule-table-adult tr:nth-child(even),
.schedule-table-selfdefense tr:nth-child(even) {
  background: rgba(233, 240, 255, 0.74) !important;
}

.highlight-term,
.warning-term,
.info-term,
.blackbelt-warning,
.warning-box,
.blackbelt-info,
.info-box,
.blackbelt-highlight,
.program-highlight,
.no-refund,
.partial-refund,
.full-refund {
  color: var(--theme-text) !important;
  border-color: var(--accent-red) !important;
  background: rgba(235, 242, 255, 0.9) !important;
}

/* CTA and policy bands */
.cta-kids,
.cta-adult,
.cta-selfdefense,
.cta-blackbelt,
.contact-privacy,
.acceptance-box,
.refund-process,
.contact-refund,
.last-updated,
.last-updated-terms,
.last-updated-refund {
  color: var(--theme-text) !important;
  border: 1px solid var(--theme-line);
  background: var(--theme-page-reverse) !important;
  box-shadow: var(--theme-shadow);
}

.cta-kids h2,
.cta-adult h2,
.cta-selfdefense h2,
.cta-blackbelt h2,
.contact-privacy h3,
.acceptance-box h3,
.refund-process h3,
.contact-refund h3,
.cta-kids p,
.cta-adult p,
.cta-selfdefense p,
.cta-blackbelt p,
.contact-privacy p,
.acceptance-box p,
.refund-process p,
.contact-refund p {
  color: var(--theme-text) !important;
  border-color: var(--accent-red) !important;
}

/* Footer */
.footer {
  color: var(--theme-text);
  border-top: 1px solid var(--theme-line);
  background: var(--theme-page-reverse) !important;
}

.footer::before {
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}

.footer-logo,
.footer h5,
.footer-text,
.footer-links a,
.footer-bottom p,
.newsletter-text,
.footer-social a,
.social-links a {
  color: var(--theme-text) !important;
}

.footer-text,
.footer-bottom p,
.newsletter-text {
  color: var(--theme-muted) !important;
}

.footer-social a,
.social-links a {
  border-color: var(--theme-line);
  background: rgba(255, 255, 255, 0.66) !important;
}

.footer-social a:hover,
.social-links a:hover {
  color: #ffffff !important;
  border-color: var(--accent-red);
  background: var(--accent-red) !important;
}

.footer-logo i {
  color: var(--accent-red);
  filter: none;
}

.footer hr,
hr {
  border-color: var(--theme-line) !important;
}

@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid var(--theme-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--theme-shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Inova-inspired How We Work process, adapted to the Kensei light-blue theme */
.kensei-process-section {
  position: relative;
  overflow: hidden;
  padding: 108px 0 116px !important;
  border-top: 1px solid var(--theme-line);
  border-bottom: 1px solid var(--theme-line);
  background:
    radial-gradient(circle at 8% 16%, rgba(65, 110, 226, 0.16), transparent 25%),
    radial-gradient(circle at 92% 82%, rgba(118, 195, 241, 0.3), transparent 30%),
    linear-gradient(132deg, #ffffff 0%, #f2f6ff 47%, #e7efff 100%) !important;
}

.kensei-process-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.46;
  background-image:
    linear-gradient(rgba(47, 96, 222, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 96, 222, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, #121212 18%, #121212 82%, transparent);
}

.kensei-process-section .container {
  position: relative;
}

.kensei-process-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 66px;
}

.kensei-process-heading > div {
  max-width: 680px;
}

.kensei-process-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-red);
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kensei-process-heading .section-title {
  margin-bottom: 14px;
  text-align: left;
}

.kensei-process-heading .section-subtitle {
  max-width: 62ch;
  margin: 0;
  text-align: left;
}

.kensei-process-cta {
  flex: 0 0 auto;
  margin-bottom: 4px;
}

.kensei-process-track {
  position: relative;
  padding: 12px 0 0;
}

.kensei-process-route {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  overflow: visible;
  pointer-events: none;
}

.kensei-process-route path {
  fill: none;
  stroke: rgba(47, 96, 222, 0.38);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 3 10;
  vector-effect: non-scaling-stroke;
}

.kensei-process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kensei-process-item {
  min-width: 0;
  color: var(--theme-text);
}

.kensei-process-item:nth-child(even) {
  padding-top: 50px;
}

.kensei-process-icon {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  margin-bottom: 30px;
  place-items: center;
  color: var(--accent-red);
  border: 1px solid rgba(47, 96, 222, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 38px -20px rgba(36, 73, 166, 0.42);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.kensei-process-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kensei-process-number {
  position: absolute;
  top: -10px;
  right: -7px;
  min-width: 31px;
  color: var(--accent-red);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-align: center;
}

.kensei-process-copy h3 {
  margin-bottom: 12px;
  color: var(--theme-text);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.25;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kensei-process-copy p {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.86rem;
  line-height: 1.72;
}

.kensei-process-item:hover .kensei-process-icon {
  color: #ffffff;
  border-color: var(--accent-red);
  background: var(--accent-red);
  transform: translateY(-6px) scale(1.03);
}

.kensei-process-item:hover .kensei-process-copy h3 {
  color: var(--accent-red);
}

.kensei-process-item:active .kensei-process-icon {
  transform: translateY(-2px) scale(0.98);
}

@media (max-width: 991px) {
  .kensei-process-section {
    padding: 82px 0 88px !important;
  }

  .kensei-process-heading {
    align-items: flex-start;
    margin-bottom: 52px;
  }

  .kensei-process-route {
    display: none;
  }

  .kensei-process-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .kensei-process-list::before {
    content: "";
    position: absolute;
    top: 42px;
    bottom: 42px;
    left: 41px;
    border-left: 2px dashed rgba(47, 96, 222, 0.34);
  }

  .kensei-process-item,
  .kensei-process-item:nth-child(even) {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 0 0 34px;
  }

  .kensei-process-item:last-child {
    padding-bottom: 0;
  }

  .kensei-process-icon {
    margin: 0;
  }
}

@media (max-width: 575px) {
  .kensei-process-section {
    padding: 68px 0 72px !important;
  }

  .kensei-process-heading {
    display: block;
    margin-bottom: 44px;
  }

  .kensei-process-heading .section-title,
  .kensei-process-heading .section-subtitle {
    text-align: left;
  }

  .kensei-process-cta {
    margin-top: 24px;
  }

  .kensei-process-list::before {
    left: 34px;
  }

  .kensei-process-item,
  .kensei-process-item:nth-child(even) {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 30px;
  }

  .kensei-process-icon {
    width: 70px;
    height: 70px;
  }

  .kensei-process-icon svg {
    width: 26px;
    height: 26px;
  }

  .kensei-process-number {
    right: -5px;
  }
}

/* Refined About section: clean image crop and balanced split layout */
.home-view section.about-section {
  position: relative;
  overflow: hidden;
  margin-top: -1px;
  padding: 104px 0 !important;
  background:
    radial-gradient(
      ellipse 72% 26% at 50% 0%,
      rgba(79, 159, 222, 0.44) 0%,
      rgba(79, 159, 222, 0.44) 18%,
      rgba(79, 159, 222, 0.34) 35%,
      rgba(79, 159, 222, 0.14) 52%,
      rgba(79, 159, 222, 0) 68%
    ),
    radial-gradient(circle at 88% 55%, rgba(59, 112, 230, 0.16), transparent 22%),
    radial-gradient(circle at 10% 76%, rgba(104, 190, 241, 0.15), transparent 30%),
    linear-gradient(
      180deg,
      #bad8ee 0%,
      #c1dcf1 8%,
      #cee5f7 18%,
      #dfedfc 30%,
      #f5f8ff 58%,
      #eef4ff 100%
    ) !important;
}

.about-section::before {
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  background: linear-gradient(
    90deg,
    #b8d6ed 0%,
    #b0d2ee 5%,
    #a8d0eb 10%,
    #9fcaeb 15%,
    #98c7e7 20%,
    #91c6e7 25%,
    #8ec2e8 30%,
    #8cc0e6 35%,
    #8bbfe7 40%,
    #8bbfe6 50%,
    #8bc0e5 60%,
    #8fc2e8 70%,
    #9cc9ea 80%,
    #a8d0eb 90%,
    #b1d4ed 95%,
    #b8d6ed 100%
  );
  -webkit-mask-image: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.88) 24%, transparent 100%);
  mask-image: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.88) 24%, transparent 100%);
  content: "";
  pointer-events: none;
}

.about-section::after {
  position: absolute;
  top: 9%;
  right: -7%;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(47, 96, 222, 0.11);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(46px, 5vw, 78px);
  align-items: center;
  margin-right: 0;
  margin-left: 0;
}

.about-layout > [class*="col-"] {
  width: auto;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.about-copy {
  display: flex;
  flex-direction: column;
}

:is(.about-section, .about-content-slot) .section-title {
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 3.1vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

:is(.about-section, .about-content-slot) .section-subtitle {
  max-width: 610px;
  margin-bottom: 22px;
  font-size: 1.05rem;
  line-height: 1.75;
}

:is(.about-section, .about-content-slot) .about-text {
  max-width: 640px;
  margin: 0 0 30px;
  padding-top: 22px;
  border-top: 1px solid var(--theme-line);
  line-height: 1.8;
}

.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 !important;
}

.about-feature-grid > [class*="col-"] {
  width: auto;
  padding: 0;
  margin: 0 !important;
}

:is(.about-section, .about-content-slot) .feature-item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 15px;
  min-height: 142px;
  padding: 20px;
  border: 1px solid var(--theme-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow: 0 14px 36px rgba(36, 73, 166, 0.08) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

:is(.about-section, .about-content-slot) .feature-item:hover {
  border-color: rgba(47, 96, 222, 0.32) !important;
  box-shadow: 0 20px 44px rgba(36, 73, 166, 0.13) !important;
  transform: translateY(-4px);
}

:is(.about-section, .about-content-slot) .feature-icon {
  grid-row: 1 / span 2;
  width: 50px;
  height: 50px;
  margin: 0;
  align-self: start;
  font-size: 1.15rem;
}

:is(.about-section, .about-content-slot) .feature-item h4 {
  margin: 1px 0 6px;
  font-size: 1.24rem;
  line-height: 1.25;
}

:is(.about-section, .about-content-slot) .feature-item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
}

.about-visual {
  display: flex;
  align-items: center;
}

.about-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(47, 96, 222, 0.18);
  border-radius: 32px !important;
  background: #dfeaff;
  box-shadow: 0 26px 60px rgba(36, 73, 166, 0.16) !important;
  line-height: 0;
}

.about-image::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  content: "";
  pointer-events: none;
}

.about-image .about-image-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  border-radius: 0 !important;
  object-fit: cover;
  object-position: center;
  box-shadow: none !important;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image:hover .about-image-media {
  transform: scale(1.025);
}

/* Keep all eight instructor profiles aligned across both rows */
:is(.instructors-section, .instructors-content-slot) .row.g-4 > [class*="col-"] {
  display: flex;
}

:is(.instructors-section, .instructors-content-slot) .instructor-card {
  display: flex;
  flex: 1;
  flex-direction: column;
}

:is(.instructors-section, .instructors-content-slot) .instructor-info {
  display: flex;
  flex: 1;
  flex-direction: column;
}

:is(.instructors-section, .instructors-content-slot) .instructor-bio {
  flex: 1;
}

:is(.instructors-section, .instructors-content-slot) .instructor-experience {
  margin-top: auto;
}

@media (max-width: 1199px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .about-copy {
    max-width: 860px;
  }

  .about-image {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 767px) {
  .about-section {
    padding: 72px 0 !important;
  }

  .about-section::after {
    display: none;
  }

  .about-layout {
    gap: 34px;
  }

  :is(.about-section, .about-content-slot) .section-title {
    font-size: 2.25rem;
  }

  .about-feature-grid {
    grid-template-columns: 1fr;
  }

  :is(.about-section, .about-content-slot) .feature-item {
    min-height: 0;
  }

  .about-image {
    aspect-ratio: 4 / 3;
    border-radius: 24px !important;
  }
}

/* Hero-cube inspired glass material for content icons */
/* Disabled to restore the earlier flat module controls.
:is(
  .feature-icon,
  .class-icon,
  .contact-icon,
  .kensei-process-icon,
  .benefit-icon,
  .benefit-icon-blackbelt,
  .program-icon,
  .program-icon-selfdefense,
  .principle-icon,
  .phase-icon,
  .technique-icon,
  .point-icon,
  .timeline-icon
) {
  --glass-front: rgba(42, 112, 222, 0.72);
  --glass-depth: rgba(12, 52, 157, 0.46);
  --glass-highlight: rgba(226, 249, 255, 0.88);
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff !important;
  border: 1px solid rgba(239, 252, 255, 0.94) !important;
  border-radius: 15px !important;
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.16) 22%, transparent 43%),
    radial-gradient(circle at 31% 24%, rgba(222, 248, 255, 0.7), transparent 33%),
    linear-gradient(145deg, rgba(132, 207, 249, 0.66) 0%, var(--glass-front) 48%, rgba(22, 66, 183, 0.86) 100%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(91, 174, 241, 0.26),
    inset 7px 8px 13px rgba(247, 254, 255, 0.34),
    inset -12px -14px 18px var(--glass-depth),
    inset 0 -2px 0 rgba(7, 44, 144, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 20px 25px -18px rgba(19, 60, 151, 0.62),
    0 7px 10px -8px rgba(17, 67, 175, 0.42) !important;
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  transform: perspective(520px) rotateX(-5deg) rotateY(6deg) translateZ(0);
  transform-origin: 50% 70%;
  will-change: transform;
  transition:
    transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

:is(
  .feature-icon,
  .class-icon,
  .contact-icon,
  .kensei-process-icon,
  .benefit-icon,
  .benefit-icon-blackbelt,
  .program-icon,
  .program-icon-selfdefense,
  .principle-icon,
  .phase-icon,
  .technique-icon,
  .point-icon,
  .timeline-icon
)::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: 31%;
  border-top: 1px solid rgba(255, 255, 255, 0.98);
  background: linear-gradient(180deg, rgba(239, 252, 255, 0.86), rgba(151, 215, 252, 0.24));
  clip-path: polygon(0 0, 100% 0, 80% 100%, 18% 100%);
  content: "";
  pointer-events: none;
}

:is(
  .feature-icon,
  .class-icon,
  .contact-icon,
  .kensei-process-icon,
  .benefit-icon,
  .benefit-icon-blackbelt,
  .program-icon,
  .program-icon-selfdefense,
  .principle-icon,
  .phase-icon,
  .technique-icon,
  .point-icon,
  .timeline-icon
)::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 31%;
  border-right: 1px solid rgba(218, 245, 255, 0.68);
  background:
    linear-gradient(180deg, rgba(128, 203, 250, 0.25), rgba(15, 65, 173, 0.42)),
    linear-gradient(90deg, rgba(218, 247, 255, 0.18), transparent);
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 80%);
  content: "";
  pointer-events: none;
}

:is(
  .feature-icon,
  .class-icon,
  .contact-icon,
  .kensei-process-icon,
  .benefit-icon,
  .benefit-icon-blackbelt,
  .program-icon,
  .program-icon-selfdefense,
  .principle-icon,
  .phase-icon,
  .technique-icon,
  .point-icon,
  .timeline-icon
) > :is(i, svg) {
  position: relative;
  z-index: 2;
  color: #ffffff !important;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.28))
    drop-shadow(0 3px 4px rgba(8, 31, 108, 0.44));
}

.class-icon {
  width: 88px;
  height: 88px;
  margin: 20px 0 6px 24px;
  border-radius: 19px !important;
  font-size: 2rem;
}

.about-section .feature-icon {
  border-radius: 14px !important;
}

.kensei-process-icon {
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: 19px !important;
}

.kensei-process-number {
  top: 9px;
  right: 8px;
  z-index: 3;
  min-width: 0;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.58rem;
  text-shadow: 0 1px 2px rgba(8, 34, 112, 0.5);
}

.contact-icon {
  width: 56px;
  height: 56px;
  margin-right: 18px;
  border-radius: 17px !important;
}

:is(.benefit-icon, .benefit-icon-blackbelt, .principle-icon, .technique-icon) {
  margin: 0 auto 18px;
}

:is(.program-icon, .program-icon-selfdefense, .phase-icon) {
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  border-radius: 18px !important;
}

.point-icon {
  width: 44px;
  height: 44px;
  margin: 0 15px 0 0;
  border-radius: 14px !important;
  font-size: 1.1rem;
}

.timeline-icon {
  width: 56px;
  height: 56px;
  border-radius: 17px !important;
  font-size: 0.78rem;
}

:is(.term-number, .step-number, .phase-number) {
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.76) !important;
  border-radius: 12px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 38%),
    linear-gradient(145deg, rgba(113, 197, 244, 0.72), rgba(47, 96, 222, 0.9) 56%, rgba(19, 53, 170, 0.94)) !important;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.94),
    inset -7px -8px 14px rgba(8, 35, 132, 0.3),
    0 10px 18px -10px rgba(23, 63, 168, 0.64) !important;
  transform: perspective(380px) rotateX(-4deg) rotateY(5deg);
}

:is(
  .feature-item:hover .feature-icon,
  .class-card:hover .class-icon,
  .contact-item:hover .contact-icon,
  .benefit-card:hover .benefit-icon,
  .program-card:hover .program-icon,
  .program-card-selfdefense:hover .program-icon-selfdefense,
  .principle-item:hover .principle-icon,
  .technique-box:hover .technique-icon,
  .phase-card:hover .phase-icon
) {
  filter: saturate(1.04) brightness(1.05);
  transform: perspective(520px) rotateX(0deg) rotateY(0deg) translateY(-6px) scale(1.035);
  box-shadow:
    inset 0 0 0 1px rgba(103, 186, 246, 0.3),
    inset 8px 9px 15px rgba(248, 254, 255, 0.38),
    inset -13px -15px 19px rgba(8, 35, 132, 0.38),
    0 24px 31px -19px rgba(20, 61, 153, 0.68),
    0 8px 12px -9px rgba(17, 67, 175, 0.46) !important;
}

:is(
  .feature-item,
  .class-card,
  .contact-item,
  .kensei-process-item,
  .benefit-card,
  .program-card,
  .program-card-selfdefense,
  .principle-item,
  .phase-card,
  .technique-box,
  .point-item
) {
  perspective: 760px;
}

@media (max-width: 575px) {
  .class-icon {
    width: 78px;
    height: 78px;
    margin: 18px 0 4px 22px;
    border-radius: 17px !important;
  }

  .contact-icon {
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(
    .feature-icon,
    .class-icon,
    .contact-icon,
    .kensei-process-icon,
    .benefit-icon,
    .benefit-icon-blackbelt,
    .program-icon,
    .program-icon-selfdefense,
    .principle-icon,
    .phase-icon,
    .technique-icon,
    .point-icon,
    .timeline-icon
  ) {
    transition-duration: 0.01ms;
    transform: none;
  }
}
*/

/* Instructor content keeps the original background slot without inheriting
   the narrower About-copy measure. */
.instructors-content-slot::after {
  display: none;
  content: none;
}

.instructors-content-slot .section-subtitle {
  width: max-content;
  max-width: min(100%, 1180px);
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(0.82rem, 1.1vw, 1.1rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.instructors-content-slot .section-title {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: 1px;
}

/* Home testimonial carousel: render exactly one testimonial at a time. */
.testimonials-section .carousel-inner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
}

.testimonials-section .carousel-item {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  backface-visibility: hidden;
  transform: none !important;
  transition: none !important;
}

.testimonials-section .carousel-item.active {
  display: block !important;
  visibility: visible;
  opacity: 1;
}

.testimonials-section .testimonial-card,
.testimonials-section .testimonial-card:hover {
  box-shadow: none !important;
}

@media (max-width: 767px) {
  .instructors-content-slot .section-title {
    font-size: 2rem;
  }

  .instructors-content-slot .section-subtitle {
    width: auto;
    max-width: 36rem;
    white-space: normal;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .instructors-content-slot .section-title {
    font-size: 2.2rem;
  }
}
