@media screen and (max-width: 1024px) {
/* mobile.css - only mobile/tablet styles */

/* Base adjustments for touch devices */
body, html {
  font-size: 14px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: white;
}

/* Full screen video adjustments */
#myVideo {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: brightness(0.8);
  pointer-events: none;
}

/* Header links font & padding */
header nav a {
  font-size: 14px;
  padding: 12px 16px;
}

/* Toggle button */
#myBtn {
  font-size: 16px;
  padding: 10px 18px;
}

/* Logo adjustments for mobile */
.logo {
  top: 15px;
  left: 15px;
}

.logo img {
  height: 60px; /* smaller logo */
  width: auto;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Smooth fade behavior for logo + menu */
.logo,
.side-header,
.hamburger-container {
  transition: opacity 0.4s ease, transform 0.4s ease;
}


/* Hide logo & side nav when scrolling */
/*.logo.hide-on-scroll,
.side-header.hide-on-scroll,
.hamburger-container.logo.hide-on-scroll {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
} */

.logo.hide-on-scroll,
.side-header.hide-on-scroll,
.hamburger-container.hide-on-scroll {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}


/* Side nav panel */
.side-header {
  width: 220px;
}

/* Mobile card layout */
.trainer-card, .fighter-card {
  flex-direction: column;
  width: 90%;
  max-width: 380px;
  height: 500px;
  padding: 15px;
  gap: 10px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

/* Trainer & Fighter card images */
.trainer-card .left-section img,
.fighter-card .left-section img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  margin-bottom: 0;
  flex-shrink: 0;
}

/* Reduce card width */
.trainer-card,
.fighter-card {
  width: 600px;
}

/* Achievements scroll box */
.achievements {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 5px;
  margin-top: 10px;
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.4;
  -webkit-overflow-scrolling: touch;
}

/* Optional fade effect at bottom */
.achievements::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.5));
  pointer-events: none;
}

.achievements-wrapper {
  position: relative;
  max-height: 300px;
  overflow-y: auto;
}

.achievements-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.3));
  pointer-events: none;
}

.no-fade::after {
  display: none !important;
}

/* See More button */
.see-more-btn {
  display: block;
  position: absolute;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 5px;
  font-size: 14px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* Expanded state */
.expanded .achievements {
  max-height: none;
}

.expanded .achievements::after {
  display: none;
}

.trainer-card.expanded, .fighter-card.expanded {
  height: auto;
}

.left-section img {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
}

.content {
  max-width: 90%;
  font-size: 1.5rem;
  padding: 15px;
}

.gallery-container {
  grid-template-columns: 1fr;
  gap: 15px;
}

.gallery-container img {
  width: 100%;
  height: auto;
}

#scroll-arrow {
  width: 12px;
  height: 12px;
  bottom: 15px;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }

.normal-section {
  padding: 40px 10px;
}

#trainers-wrapper {
  margin-top: 50vh;
}

#fighters-wrapper {
  margin-top: 50px;
}

.trainer-card .achievements,
.fighter-card .achievements {
  max-height: 200px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 5px;
}

/* Branches page adjustments */
body.branches-page .fighter-card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  overflow-x: hidden;
}

body.branches-page .fighters-container {
  padding: 0 10px;
  box-sizing: border-box;
}

body.branches-page .fighter-card iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  display: block;
}

body.branches-page .normal-section {
  margin-top: 40px;
}

/* Contact page adjustments */
body.contact-page .normal-section {
  margin-top: 80px;
}

/* Gallery page adjustments */
body.gallery-page .normal-section {
  margin-top: 40px;
}

/*---------------------*/
/* Hamburger & slide menu */
/*---------------------*/
/* Hamburger & slide menu for mobile/tablet */
/* Hide desktop nav entirely on mobile */
.side-header,
.side-header.visible {
  display: none !important;
}

/* Hamburger icon */

/* Hamburger container */
.hamburger-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999; /* above everything */
}

.hamburger-container.hide-on-scroll {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}


/* Hamburger icon */
.hamburger {
  display: block;
  width: 35px;
  height: 30px;
  cursor: pointer;
  z-index: 2100; /* above menu so cross shows */
  position: relative; /* for absolute span positioning */
  pointer-events: auto;
}

/* Hamburger lines */
.hamburger span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

/* Position each line */
.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

/* Cross animation */
.hamburger.open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Slide menu */
.hamburger-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  padding-left: 20px;
  z-index: 2000; /* below hamburger */
}

.hamburger-menu a {
  color: #fff;
  text-decoration: none;
  margin-bottom: 25px;
  font-size: 18px;
  font-weight: 500;
}

/* Open menu */
.hamburger-menu.open {
  transform: translateX(0);
}


/*gallery page hamburger properties */

.contact-page .hamburger span,
.branches-page .hamburger span,
.gallery-page .hamburger span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: #000;   /* black bars */
  border-radius: 2px;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

/* Open hamburger (cross) = white bars so visible on black menu) */
.contact-page .hamburger.open span,
.branches-page .hamburger.open span,
.gallery-page .hamburger.open span  {
    background: #fff;
}



}
 /* <-- closes the max-width: 1024px media query */
