/* TKO Boxing Club Redesign System - Light/Gold/Dark Blue */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-primary: #f0eff2;
  /* Light grayish-purple for main body */
  --bg-white: #ffffff;
  --bg-dark: #12151e;
  /* Dark blue/black for headers/footers */
  --bg-gold: #c6a258;

  --text-dark: #2d2d2d;
  --text-light: #ffffff;
  --text-gold: #c6a258;

  --font-main: 'Montserrat', sans-serif;

  --transition: 0.3s ease;
  --spacing-container: 2rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

bodyhtml {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Scroll To Top Button */
#scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--bg-gold);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-to-top:hover {
  background-color: #fff;
  transform: translateY(-5px);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-container);
}

.text-gold {
  color: var(--text-gold);
}

.text-center {
  text-align: center;
}

.section {
  padding: 4rem 0;
}

/* Header */
.header {
  background-color: var(--bg-white);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-gold);
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  opacity: 0.8;
}

.cart-icon {
  background-color: var(--text-dark);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Hero Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  border-bottom: 5px solid var(--bg-dark);
  /* Strip of smaller images */
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.gallery-strip {
  display: flex;
  background-color: #000;
  height: 80px;
  overflow: hidden;
}

.gallery-strip img {
  height: 100%;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.gallery-strip img:hover {
  opacity: 1;
}

/* Welcome Section */
.welcome-section {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--bg-primary);
}

.welcome-section h1 {
  color: var(--text-gold);
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.welcome-section p {
  color: #555;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Book Classes Strip */
.book-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.book-strip::before,
.book-strip::after {
  content: "";
  height: 1px;
  background-color: #ccc;
  flex: 1;
  max-width: 200px;
}

.book-strip span {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.btn-outline-gold {
  display: inline-block;
  border: 2px solid var(--bg-gold);
  color: var(--text-gold);
  padding: 0.75rem 2.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  background: transparent;
  transition: all var(--transition);
}

.btn-outline-gold:hover {
  background: var(--bg-gold);
  color: white;
}

/* Timetable */
.timetable-section {
  background-color: #e5e3e8;
  /* slightly darker grey-purple */
  padding: 4rem 0;
}

.timetable-header {
  text-align: center;
  margin-bottom: 3rem;
}

.timetable-header h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.timetable-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.timetable-table th {
  background-color: #000;
  color: var(--text-gold);
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  border: 1px solid #ddd;
}

.timetable-table td {
  padding: 1rem;
  text-align: center;
  border: 1px solid #eee;
  font-size: 0.95rem;
}

.timetable-table td:first-child {
  color: #666;
  width: 30%;
}

.timetable-table td:last-child {
  color: var(--text-gold);
  font-weight: 500;
}

.timetable-table td span.blue {
  color: #3b82f6;
}

.day-label {
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  color: var(--text-dark);
}

/* Posters */
.posters-section {
  padding: 4rem 0;
  background-color: var(--bg-primary);
}

.posters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.posters-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition);
}

.posters-grid img:hover {
  transform: translateY(-5px);
}

/* Contact Strip */
.contact-strip {
  background-color: #000;
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  object-fit: cover;
  z-index: 1;
}

.contact-strip .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-block h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.contact-block p {
  color: #aaa;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.btn-outline-white {
  display: inline-block;
  border: 1px solid white;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-size: 0.8rem;
  margin-top: 1rem;
  transition: all var(--transition);
}

.btn-outline-white:hover {
  background: white;
  color: black;
}

/* Footer */
.footer {
  background-color: #312b36;
  /* Dark violet/brown */
  color: #aaa;
  text-align: center;
  padding: 3rem 0;
}

.footer h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-icons a {
  color: var(--text-gold);
  font-size: 1.5rem;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-5px) scale(1.15);
  color: #fff;
}

.social-icons span {
  color: var(--text-gold);
  font-size: 1.5rem;
}

.copyright {
  font-size: 0.8rem;
  color: #777;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .posters-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .contact-strip .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book-strip {
    flex-direction: column;
    text-align: center;
  }

  .book-strip::before,
  .book-strip::after {
    display: none;
  }
}

/* Mega Menu Styles */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  z-index: 100;
}

.mega-nav {
  position: relative;
  width: 100%;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.nav-list>li>a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-gold);
  letter-spacing: 0.5px;
  padding: 1.5rem 0;
  /* Expanded hit area */
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-list>li>a:hover {
  color: var(--text-dark);
}

.nav-list i.fa-chevron-down {
  font-size: 0.7em;
}

/* Standard Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-white);
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 50;
  border-top: 2px solid var(--text-gold);
}

.has-dropdown:hover>.dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background var(--transition);
}

.dropdown li a:hover {
  background-color: var(--bg-primary);
  color: var(--text-gold);
}

/* Mega Menu */
.mega-menu-trigger {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-top: 2px solid var(--text-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 50;
}

.mega-menu-trigger:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem;
}

.mega-menu-column h4 {
  color: var(--bg-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.mega-menu-column a {
  display: block;
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}

.mega-menu-column a:hover {
  color: var(--text-gold);
  padding-left: 5px;
}

.cart-li {
  margin-left: 0.5rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }

  .mega-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-dark);
    padding: 5rem 2rem 2rem;
    transition: right var(--transition);
    overflow-y: auto;
    z-index: 99;
  }

  .mega-nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-list>li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-list>li>a {
    padding: 1rem 0;
    color: var(--bg-white);
    justify-content: space-between;
  }

  .dropdown,
  .mega-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 0;
  }

  .has-dropdown.open>.dropdown,
  .has-dropdown.open>.mega-menu {
    display: block;
    visibility: visible;
    opacity: 1;
  }

  .dropdown li a,
  .mega-menu-column a {
    color: #ccc;
    padding: 0.75rem 1rem;
    /* increase tap size */
    font-size: 0.85rem;
  }

  .mega-menu-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .mega-menu-column h4 {
    color: var(--text-gold);
    border-color: rgba(198, 162, 88, 0.3);
  }

  .cart-li {
    margin: 1rem 0 0;
    border: none !important;
  }
}

/* Interactive Gallery Section */
.anime-gallery-section {
  position: relative;
  background-color: #050505;
  padding: 6rem 0;
  overflow: hidden;
  color: #fff;
  border-bottom: 5px solid var(--bg-dark);
}

.anime-gallery-section .bg-text-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  z-index: 0;
  pointer-events: none;
}

.anime-gallery-section .bg-text-gallery {
  font-size: 15vw;
  font-family: serif;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.anime-gallery-section .splide {
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.splide__slide {
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.4);
  transform: scale(0.9);
}

.splide__slide.is-active {
  filter: brightness(1);
  transform: scale(1);
}

.splide__slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.gallery-categories {
  text-align: center;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.gallery-categories a {
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  opacity: 0.6;
  transition: opacity var(--transition);
  font-family: serif;
  letter-spacing: 1px;
}

.gallery-categories a:hover,
.gallery-categories a.active {
  opacity: 1;
}

.gallery-categories a strong {
  font-weight: 600;
}

/* Splide Customizations for Canvas Theme Look */
#header-random-slider .splide__arrow {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0;
  width: 50px;
  height: 50px;
  transition: all 0.3s ease;
  opacity: 0;
}

#header-random-slider:hover .splide__arrow {
  opacity: 1;
}

#header-random-slider .splide__arrow:hover {
  background: var(--bg-gold);
}

#header-random-slider .splide__arrow svg {
  fill: white;
  width: 20px;
  height: 20px;
}

#header-random-slider .splide__arrow--prev {
  left: 20px;
}

#header-random-slider .splide__arrow--next {
  right: 20px;
}

.page-transition-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--bg-gold);
  z-index: 9999;
}

/* Highlights Section */
.highlights-section {
  padding: 6rem 0;
  background-color: #0d0d0d;
}

.highlight-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;
  justify-content: space-between;
}

.highlight-text {
  flex: 1;
  min-width: 300px;
  color: white;
}

.highlight-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  font-weight: 600;
}

.highlight-text p {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.8;
}

.highlight-gallery {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

/* Base Gallery Class - Math Calculated in JS */
.gallery {
  --s: 400px;
  --d: 60s;
  /* animation duration */
  --n: 40;
  /* overriden by JS but base for reference */

  display: grid;
  width: var(--s);
  aspect-ratio: 1;
  overflow: hidden;
  padding: calc(var(--s)/20);
  border-radius: 50%;
  position: relative;
  clip-path: circle(49.5%);
  /* to avoid glitch */
}

.gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: inherit;
  border-radius: inherit;
  background: repeating-conic-gradient(#0b1a30 0 30deg, var(--bg-gold) 0 60deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: bg-circle var(--d) infinite cubic-bezier(.5, -0.2, .5, 1.2);
}

.gallery>img {
  grid-area: 1/1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  /* transform-origin injected via JS */
  animation: bg-circle var(--d) infinite cubic-bezier(.5, -0.2, .5, 1.2);
}

@media (max-width: 768px) {
  .gallery {
    --s: 280px;
  }
}

/* Management Page Layout */
.management-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.management-card {
  background-color: var(--bg-white);
  padding: 2.5rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #f0f0f0;
  transition: transform var(--transition);
}

.management-card:hover {
  transform: translateY(-5px);
}

.management-card img {
  border-radius: 50%;
  width: 250px;
  height: 250px;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--bg-primary);
}

.management-card h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.management-card .role {
  color: var(--text-gold);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Global Footer & 3D Social Icons */
.global-footer {
  background-color: #2b242e;
  /* Darker taupe/purple based on screenshots */
  color: #b0b0b0;
}

.global-footer h4 {
  color: white;
}

.global-footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.global-footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e5cc8f;
  /* Lighter straw/gold for icons based on screenshot */
  font-size: 1.8rem;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
  text-decoration: none;
}

/* 3D Pop Effect on Hover */
.global-footer .social-icons a:hover {
  transform: translateY(-4px) scale(1.1);
  color: white;
  /* Optional slight drop shadow to enhance 3D feel */
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

.global-footer .copyright {
  color: #888;
  font-size: 0.85rem;
}

/* Home Page Specific Slider Light Override */
.anime-gallery-section {
  background-color: #f8f9fa;
  /* Light theme override requested */
  border-bottom: 5px solid #2b242e;
  color: var(--text-dark);
}

.anime-gallery-section .bg-text-gallery {
  color: rgba(0, 0, 0, 0.04);
}

/* Remove excessive dimming since it's now light themed */
.splide__slide {
  filter: none;
  opacity: 0.5;
}

.splide__slide.is-active {
  filter: none;
  opacity: 1;
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.scroll-animate {
  transform: translateX(-50px);
}

.fade-in-right.scroll-animate {
  transform: translateX(50px);
}

.fade-in-left.is-visible,
.fade-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}