/* Tournament Section Layout with Minimum Width */
.tournament-card.style4 {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: auto;
  width: 100%;
}

.tournament-player-wrap,
.tournament-player-wrap2 {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 30px 25px;
  min-height: 100%;
  min-width: 250px; /* Minimum width for content boxes */
}

.tournament-cardImg-content {
  flex: 0 0 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-width: 250px; /* Minimum width for image box */
}

.tournament-cardImg-img {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tournament-cardImg-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-title-wrap {
  width: 100%;
}

.tournament-card-title {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.tournament-card-subtitle {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Filter buttons styling */
.game-filter-btn {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fffffe;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px; /* Minimum width for buttons */
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
  background: rgba(255, 137, 6, 0.2);
  border-color: #ff8906;
}

/* Make all filter items visible by default */
.filter-item {
  display: block;
}

/* Responsive adjustments */
@media (min-width: 1200px) {
  .tournament-cardImg-img {
    height: 220px;
  }

  .tournament-player-wrap,
  .tournament-player-wrap2 {
    padding: 40px 30px;
    min-width: 300px; /* Increased min-width for larger screens */
  }

  .tournament-player-wrap {
    min-width: 420px; /* Increased min-width for larger screens */
  }

  .tournament-cardImg-content {
    min-width: 300px !important; /* Increased min-width for larger screens */
  }

  .tournament-card-title {
    font-size: 15px;
  }

  .tab-btn {
    min-width: 140px; /* Larger buttons on big screens */
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .tournament-cardImg-content {
    flex: 0 0 28%;
  }

  .tournament-cardImg-img {
    height: 180px;
  }

  .tournament-player-wrap,
  .tournament-player-wrap2 {
    padding: 25px 20px;
    min-width: 220px; /* Adjusted min-width for medium screens */
  }

  .tournament-cardImg-content {
    min-width: 220px; /* Adjusted min-width for medium screens */
  }

  .tournament-card-title {
    font-size: 14px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .tournament-card.style4 {
    flex-direction: column;
    min-height: auto;
  }

  .tournament-cardImg-content {
    order: 2;
    flex: none;
    width: 100%;
    padding: 20px;
    margin: 0;
    min-width: unset; /* Remove min-width on smaller screens */
  }

  .tournament-player-wrap {
    order: 1;
    min-width: unset; /* Remove min-width on smaller screens */
  }

  .tournament-player-wrap2 {
    order: 3;
    min-width: unset; /* Remove min-width on smaller screens */
  }

  .tournament-cardImg-img {
    height: 200px;
    max-width: 400px;
    margin: 0 auto;
  }

  .game-filter-btn {
    gap: 8px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 110px; /* Smaller buttons on tablets */
  }
}

@media (max-width: 767px) {
  .tournament-card.style4 {
    flex-direction: column;
    min-height: auto;
    justify-content: center;
    align-items: center;
  }

  .tournament-cardImg-content {
    order: 2;
    flex: none;
    width: 100%;
    padding: 15px;
    margin: 0;
    min-width: unset; /* Remove min-width on mobile */
  }

  .tournament-player-wrap {
    order: 1;
    padding: 25px 20px;
    min-width: unset; /* Remove min-width on mobile */
  }

  .tournament-player-wrap2 {
    order: 3;
    padding: 25px 20px;
    min-width: unset; /* Remove min-width on mobile */
  }

  .tournament-cardImg-img {
    height: 180px;
  }

  .tournament-card-title {
    font-size: 14px;
  }

  .game-filter-btn {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .tab-btn {
    width: 100%;
    max-width: 280px;
    margin-bottom: 5px;
    text-align: center;
    min-width: unset; /* Let buttons take full width on mobile */
  }
}

@media (max-width: 575px) {
  .tournament-player-wrap,
  .tournament-player-wrap2 {
    padding: 20px 15px;
  }

  .tournament-cardImg-content {
    padding: 15px;
  }

  .tournament-cardImg-img {
    height: 150px;
  }

  .tournament-card-title {
    font-size: 13px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 12px;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .tournament-player-wrap,
  .tournament-player-wrap2 {
    padding: 15px 12px;
  }

  .tournament-cardImg-content {
    padding: 12px;
  }

  .tournament-cardImg-img {
    height: 120px;
  }

  .tournament-card-title {
    font-size: 12px;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 11px;
    max-width: 220px;
  }
}

/* Space class for section */
.space {
  padding: 0 0 80px 0;
}

/* Container adjustments */

/* Row and column adjustments */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}
.roww {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start !important;
}

.row.gy-30 {
  margin-top: -30px;
}

.row.gy-30 > * {
  margin-top: 30px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 10px;
  min-width: 300px; /* Minimum width for columns */
}

.col-lg-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
  min-width: 300px; /* Minimum width for columns */
}

.col-lg-auto {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  padding: 0 15px;
  min-width: 200px; /* Minimum width for auto columns */
}

.justify-content-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* Wrapper */
.company-strip-wrapper {
  width: 100%;
  /* padding: 10px 0 40px;  */
  position: relative;
  overflow: hidden;
}

.company-strip-wrapper.left {
  padding: 20px 0 20px; /* extra top padding */
}
.company-strip-wrapper.right {
  padding: 10px 0 60px; /* extra top padding */
}

/* Strip */
.company-strip {
  width: 100%;
  overflow: visible;
  position: relative;
}

.company-strip-track {
  display: flex;
  width: calc(200% + 40px);
  animation: moveLeft 30s linear infinite;
  gap: 20px;
}

/* Cards */
.company-card {
  flex: 0 0 auto;
  min-width: 200px;
  height: 120px;
  background: rgba(20, 30, 40, 0.7); /* translucent dark */
  border: 2px solid var(--theme-color); /* neon border */
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 255, 128, 0.25); /* soft glow */
}

/* Shine effect */
.company-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 128, 0.25),
    transparent
  );
  transition: left 0.5s ease;
}

.company-card:hover::before {
  left: 100%;
}

/* .company-card:hover {
    border-color: #00ff80;
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 0 25px rgba(0, 255, 128, 0.6);
} */

.company-card:hover {
  border-color: #bb2729;
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 25px rgba(187, 39, 41, 0.6);
}

/* Company name */
.company-name {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: #e0ffe0;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 15px;
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(0, 255, 128, 0.7);
}
/* Animations */
@keyframes moveLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes moveRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Left-moving strip */
.company-strip-wrapper.left .company-strip-track {
  animation: moveLeft 30s linear infinite;
}

/* Right-moving strip */
.company-strip-wrapper.right .company-strip-track {
  animation: moveRight 30s linear infinite;
}

/* Pause on hover */
.company-strip:hover .company-strip-track {
  animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .company-card {
    min-width: 180px;
    height: 110px;
  }
  .company-name {
    font-size: 15px;
  }
}

@media (max-width: 992px) {
  .company-strip-wrapper {
    padding: 30px 0;
  }
  .company-card {
    min-width: 160px;
    height: 100px;
  }
  .company-name {
    font-size: 14px;
  }
  .company-strip-track {
    gap: 15px;
    animation-duration: 25s;
  }
}

@media (max-width: 768px) {
  .company-strip-wrapper {
    padding: 25px 0;
  }
  .company-card {
    min-width: 140px;
    height: 90px;
  }
  .company-name {
    font-size: 13px;
    padding: 0 10px;
  }
  .company-strip-track {
    gap: 12px;
    animation-duration: 20s;
  }
}

@media (max-width: 576px) {
  .company-strip-wrapper {
    padding: 20px 0;
  }
  .company-card {
    min-width: 120px;
    height: 80px;
    border-radius: 12px;
  }
  .company-name {
    font-size: 12px;
    padding: 0 8px;
  }
  .company-strip-track {
    gap: 10px;
    animation-duration: 18s;
  }
}

@media (max-width: 480px) {
  .company-card {
    min-width: 110px;
    height: 70px;
    border-radius: 10px;
  }
  .company-name {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  .company-strip-track {
    gap: 8px;
    animation-duration: 15s;
  }
}
