*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
  margin: 0;
  padding: 0;
}
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* Full navbar wrapper */
.navbar {
  width: 100%;
  background-color: #0047ab;
  padding: 10px 0;
  z-index: 1000;
}
.nav-links li {
  list-style: none; /* EXTRA SAFE */
}
/* Flex container inside navbar */
.navbar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 50px; /* spacing between logo and nav */
}
.navbar .nav-links a { text-transform: uppercase !important; }

/* Logo container */
.logo-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo image */
.logo {
  max-height: 90px;
}

/* Navigation links */
.nav-links {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
}


.profile-container {
  display: flex;
  flex-direction: row;
  padding-top: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* wrap on smaller screens */

}

.profile-hero {
  background-image: url('../images/bg-ring.jpg'); /* or whichever path you're using */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 700px; /* or set fixed like 700px if you prefer */
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-left img {
  max-width: 390px;
  height: auto;
  border-radius: 10px;
}

.profile-right {
  margin-left: 50px;
  max-width: 500px;
  text-transform: uppercase;
  

}

h1 {
  font-size: 50px;
  font-family: 'Anton', sans-serif;

}

h3 {
  font-size: 22px;
  margin-top: 5px;
  color: #ffffff;
}

.flag-icon {
  width: 65px;
  height: auto;
  margin-left: 18px;
  vertical-align: middle;
  border-radius: 2px;
}


.stats {
  display: flex;
  gap: 40px;
  margin: 30px 0;
  font-size: 18px;
}

.stats div {
  text-align: center;
}

.stats strong {
  font-size: 40px;
  display: block;
}

.breadcrumbs {
  font-size: 14px;
  margin: 10px 20px;
  color: #666;
}

.breadcrumbs a {
  color: #004aad;  /* or gray */
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 6px;
}

.breadcrumbs li::after {
  content: "›";
  margin-left: 6px;
  color: #aaa;
}

.breadcrumbs li:last-child::after {
  content: "";
}

@media (max-width: 768px) {
  .profile-container {
   flex-direction: column;
    padding: 20px 10px;
  }

  .profile-left img {
    max-width: 100%;     /* ✅ Ensure image never overflows */
    height: auto;
  }

  .profile-right {
    margin-left: 0;     /* ✅ Remove left offset */
    padding: 0 10px;     /* ✅ Add safe padding */
    text-align: center;  /* ✅ Optional: align center for better UX */
  }

  .profile-right h1 {
    font-size: 28px;
    text-align: center;
  }

  .profile-right h3 {
    font-size: 16px;
    text-align: center;
  }

  .stats {
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    justify-content: center;
  }

  .stats strong {
    font-size: 28px;
  }

  .details li {
    font-size: 14px;
  }

  .flag-icon {
    width: 40px;
    margin-left: 10px;
  }
}


.details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details li {
  margin: 20px 0;
  font-size: 16px;
}

.fighter-description-block {
  background-image: url('../images/des-bg.jpg'); /* ✅ updated */
  background-size: cover;
  background-position: center;
  padding: 40px 20px;
  color: #fff;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.fighter-description-block h2 {
  font-style: italic;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 20px;
  color: #fff;
}

.fighter-description-block p {
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  color: #e0e0e0;
}

.fight-history {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
}

.fight-history h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #fff;
}
.fight-history table::-webkit-scrollbar {
  height: 6px;
}
.fight-history table::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 3px;
}

/* Wrapper for horizontal scroll */
.fight-history table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  max-width: 100%;
  background-color: rgba(133, 67, 67, 0.3); /* Optional for visibility */
}
.table-scroll-wrapper {
  overflow-x: auto;
  max-width: 100%;
  margin: 0 auto; /* ✅ Center the scroll container */
  -webkit-overflow-scrolling: touch;
}

.table-scroll-wrapper table {
  margin: 0 auto;        /* ✅ Center the table within */
  min-width: 600px;      /* ✅ Avoid shrinking too much */
  white-space: nowrap;   /* ✅ Force scroll if needed */
}


.fight-history th, .fight-history td {
  padding: 12px 10px;
}

.fight-history th {
  font-weight: 600;
  border-bottom: 2px solid #444;
}


.result.win {
  background-color: #00c481;
  color: #000;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.result.loss {
  background-color: #af0202;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
}
.result.lose {
  background-color: #af0202;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
}
.show-more-container {
  text-align: center;
  margin-top: 20px;
}

#show-more-btn {
  background: none;
  border: none;
  font-weight: bold;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  position: relative;
}

#show-more-btn::before,
#show-more-btn::after {
  content: '';
  position: absolute;
  height: 1px;
  width: 30%;
  background: #777;
  top: 50%;
}

#show-more-btn::before {
  left: -35%;
}
#show-more-btn::after {
  right: -35%;
}

/* Gallery layout */

.gallery-masonry {
  column-count: 3;
  column-gap: 12px;
}

.image-wrapper {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-wrapper img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .gallery-masonry {
    column-count: 1;
  }
}


@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.shadow-lg {
  box-shadow: 0 10px 15px rgba(0,0,0,0.3);
}

.overflow-hidden {
  overflow: hidden;
}

.rounded-lg {
  border-radius: 12px;
}

img.hover\:scale-105:hover {
  transform: scale(1.05);
}

.transition-transform {
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .burger {
    display: none !important;
  }
}


@media (max-width: 767px) {
  .navbar-container {
    flex-direction: column;       /* ✅ Stack logo and nav links vertically */
    align-items: center;          /* ✅ Center content horizontally */
  }
  .burger {
    display: block;
    font-size: 24px;
    color: white;
    cursor: pointer;
    margin-top: 10px;;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #0047ab;
    width: 100%;
    padding: 20px 0;
   border-bottom: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  }
    .nav-links li {
    margin: 10px 0;            /* ✅ add spacing between items */
  }


  .nav-links.show {
    display: flex;
      opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  }
   .overlay h1 {
    font-size: 50px ; /* ← forces override */
    line-height: 1.2 ;
   }
  .overlay p {
    font-size: 16px;
  }
  .fight-history table {
    overflow-x: auto;
    display: block;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
}}