* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Kanit", sans-serif;
}
a {
  text-decoration: none;
  color: #000;
}

ul,
li {
  list-style: none;
}

.container-dst {
  max-width: 1200px;
  margin: auto;
}

.container-dst-c-c {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-dst-c-b {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.container-dst-c-ar {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.page-title-container {
  display: inline-block;
  cursor: pointer;
}

.page-title {
  color: #060a3d;
  padding: calc(3%) 0;
  display: inline-block;
  position: relative;
}

.page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 20%;
  height: 3px;
  width: 0;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}

.page-title:hover::after {
  width: 100%;
}

.btn-buy {
  padding: 10px 30px;
  outline: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #fc7600;
  color: white;
}

body {
  font-family: "Kanit", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f6f4ff;
  color: #222;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}

/* Theme variables (shared) */
:root {
  --color-primary: #060a3d;
  --color-main: rgba(66, 48, 170, 1);
  --color-secondary: #ff6b50;
  --color-primary-hover: #a80017;
  --color-accent: #ff4a2f;
  --color-bg: #f7f7f7;
  --color-black: #111;
  --color-bg-2: #333333;
  --gap: 10px;
  --container-padding: 16px;
  --radius-lg: 12px;
  --radius-sm: 6px;

  /* FONT */
  --font-size-p: clamp(0.9rem, 0.85rem + 0.25vw, 1.1rem);
  --font-size-h3: clamp(1.2rem, 1rem + 1vw, 1.5rem);
  --font-size-h2: clamp(1.5rem, 1.2rem + 1.5vw, 2.2rem);
  --font-size-h1: clamp(1.8rem, 1.5rem + 2.5vw, 3rem);
}

/* ==========================
   GLOBAL STYLES
========================== */

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ==========================
   HEADER / NAVBAR
========================== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 99;
  background-color: var(--color-main);
  color: white;
  padding: 18px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  transition: all 0.4s ease;
}

.logo img:hover {
  transform: scale(1.08);
  filter: brightness(1.2) drop-shadow(0 0 10px rgba(120, 90, 220, 0.7))
    drop-shadow(0 0 20px rgba(120, 90, 220, 0.5))
    drop-shadow(0 0 30px rgba(66, 48, 170, 0.4));
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  position: relative;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: #ff6b50;
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: #ff6b50;
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a.active {
  color: #ff6b50;
}

.nav-links li a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  padding: 0 10px;
}

/* STATE */
.list-loading-state {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.list-loading-state p {
  font-size: 1.2rem;
  color: #666;
}

/* ==========================
   HERO SECTION
========================== */
.hero {
  position: relative;
  text-align: left;
  color: white;
  margin-top: 82px;
}

.hero-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  filter: brightness(70%);
}

.hero-text {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 900px;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================
   STATS SECTION
========================== */
.stats {
  padding: 40px 0;
}

.section-title-container {
  background-color: #fff;
  padding: 10px 0;
  margin-top: 40px;
  border-radius: 20px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  padding-left: 20px;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.stat-item {
  padding: 20px;
  text-align: center;
  cursor: pointer;
  display: inline-block;
  border-radius: 12px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease;
  position: relative;
}

.stat-item:hover {
  transform: translateY(-5px) scale(1.05);
  color: #ff4a2f;
}

.stat-label {
  font-family: "Kanit", sans-serif;
  color: #333333;
  font-size: 2rem;
  font-weight: 700;
}

.stat-value {
  font-size: 4rem;
  font-weight: 700;
  color: #333333;
}

.stat-label,
.stat-value {
  transition: color 0.4s ease, text-shadow 0.4s ease, filter 0.4s ease;
}
.stat-item:hover .stat-label {
  color: #000;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.stat-item:hover .stat-value {
  color: #000;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  filter: brightness(1.5);
}

/* ==========================
   FILTER SECTION
========================== */

.club-filter {
  margin: 20px 0;
}

.club-filter__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20px 0;
}

.club-filter__search-group {
  display: flex;
  align-items: center;
}

.club-filter__input {
  padding: 10px;
  border: 1px solid #ccc;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 280px;
}

.club-filter__input:focus {
  border: 1px solid #fff;
  box-shadow: 0 0 0 2px #ccc;
}

.club-filter__button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-main);
  color: #fff;
  border: 1px solid transparent;
  padding: 10px 16px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.club-filter__button .search-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  stroke: #fff;
}

.club-filter__button:hover {
  background-color: #000;
}

.club-filter__controls {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.club-filter__controls .ss-main {
  flex: 1;
  min-width: 11.5rem;
}

/* .club-filter__select {
  display: flex;
  align-items: center;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
} */

.club-filter__select label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.club-filter__select select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
}

/* ==========================
   CLUB LIST / CARDS
========================== */
.club-list {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 20px 0;
}

.club-card {
  border-radius: 20px;
  background-color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.club-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}

.club-card__logo {
  width: 30%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 10px;
}

.club-card__logo img {
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.club-card__body {
  width: 70%;
  display: flex;
  flex-direction: row;
  margin: 20px 10px;
  justify-content: space-between;
}

.club-card__info {
  gap: 10px;
}

.club-card__header {
  max-width: fit-content;
  border: 1px solid var(--color-main);
  border-radius: 4px;
  padding: 2px;
  margin-bottom: 10px;
}

.club-card__date {
  text-align: center;
  color: var(--color-main);
  font-size: 12px;
  font-weight: bold;
  padding: 4px;
}

.club-card__title {
  font-size: 1.2rem;
  font-weight: bold;
  padding: 4px;
}

.club-card__address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  padding: 4px;
  line-clamp: 1;
}

.club-card__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  stroke: #000;
}

/* small inline elements inside cards - default inline behavior */
.club-card__icon,
.club-card__player,
.club-card__link {
  display: inline-block;
}

.club-card__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.club-card__table {
  font-size: 1rem;
  font-weight: bold;
  white-space: nowrap;
}

/* ==========================
   PAGINATION
========================== */
.pagination {
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-family: Arial, sans-serif;
  margin: 20px 0;
}

.page-btn {
  display: flex;
  align-items: center;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.page-btn:hover {
  background: #000;
}

.page-btn:hover .pagination-icon {
  stroke: #fff;
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-btn:disabled:hover {
  background: #fff;
}

.page-btn:disabled:hover .pagination-icon {
  stroke: #000;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-number {
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
  font-size: 14px;
}

.page-number.active {
  background: #0063af;
  color: #fff;
  border: 1px solid transparent;
}

.page-number:hover {
  background-color: #000;
  color: #fff;
}

.page-number:hover:not(.active) {
  background: #ccc;
  color: #000;
}

.page-dots {
  color: #ccc;
  font-size: 20px;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* ==== Giữ footer ở đáy trang ==== */
html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* container chính (nơi chứa tab nội dung) phải co giãn */
.container {
  flex: 1;
}

/* ==========================
   FOOTER
========================== */
.footer {
  display: flex;
  /* background-color: #060a3d; */
  background: var(--color-main);
  color: #fff;
  font-size: 1rem;
  min-height: 150px;
  align-items: center;
  justify-content: center;
}

.footer a {
  position: relative;
  color: #ff6b50;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #ff6b50;
  transition: width 0.3s ease;
}

.footer a:hover::after {
  width: 100%;
}

/* Utility helpers */
.section-hero-bar {
  background-color: var(--color-bg);
  padding: 10px 0;
  margin-top: 40px;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .club-card {
    width: calc(50% - 10px);
  }
}

/* TABLET BREAK POINT */
@media (max-width: 1199px) {
  .container {
    padding: 0 30px;
  }

  .hero {
    margin-top: 80px;
  }

  .hero-image {
    height: 320px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 1.5rem;
  }

  .stats {
    margin: 20px 0;
  }

  .club-filter__row {
    flex-direction: column;
    align-items: stretch;
  }

  .club-filter__search-group {
    width: 100%;
  }

  .club-filter__input {
    flex: 1;
  }

  .club-filter__controls {
    justify-content: flex-start;
  }

  .club-card {
    padding: 0;
  }
}

/* MOBILE BREAK POINT */
@media (max-width: 767px) {
  /* --- Header / Navbar --- */
  .container {
    padding: 0 15px;
  }

  .hero {
    margin-top: 50px;
  }

  .header {
    padding: 0;
  }

  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
  }

  .menu-toggle {
    display: block;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    text-align: center;
    padding: 20px 0;
    gap: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links li a {
    display: block;
  }

  .nav-links li a::after {
    position: relative;
  }

  .nav-links.active {
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    z-index: 99;
    animation: slideDown 0.3s ease forwards;
  }

  /* Footer*/
  .footer {
    align-items: center;
    justify-content: center;
  }

  .footer p {
    text-align: center;
  }

  .hero-image {
    height: 280px;
    object-fit: cover;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .stats-grid {
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
  }

  .border-right {
    display: none;
  }

  .stat-label {
    font-size: 2rem;
  }
  .stat-value {
    font-size: 4rem;
  }

  /* --- Filter Section --- */
  .club-filter__row {
    gap: 10px;
  }

  .club-filter__controls {
    flex-direction: row;
    align-items: center;
    justify-content: start;
    width: 100%;
    flex-wrap: nowrap;
  }

  .club-filter__select {
    border: 1px solid #ccc;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
  }

  .club-filter__select select {
    font-size: 0.8rem;
  }

  .club-filter__select select option {
    font-size: 0.8rem;
  }

  .club-filter__select label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #333;
  }

  .club-filter__search-group {
    width: 100%;
    display: flex;
  }

  .club-filter__input {
    flex: 1;
    min-width: 0;
    width: 100%;
  }

  /* dropdown filter */

  .club-list {
    gap: 20px;
    padding: 0 0 20px 0;
  }

  .navbar {
    padding: 10px;
  }
  .nav-links {
    gap: 12px;
    font-size: 14px;
  }
  .club-card {
    width: 100%;
  }

  .club-card__info {
    padding: 0;
  }

  .club-card__logo {
    width: 100%;
    border: none;
    height: auto;
  }

  .club-card__logo img {
    aspect-ratio: 16/9;
    object-fit: cover;
    overflow: hidden;
  }

  .club-card__body {
    position: relative;
  }

  .club-card__meta {
    position: absolute;
    top: 0;
    right: 5px;
  }

  .club-card__header {
    margin: 0;
  }

  .club-card__date {
    text-align: center;
    color: var(--color-main);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 1px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 10px;
  }

  .page-btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.3rem;
  }

  .page-numbers {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }

  .page-number {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  /* --- section title --- */
  .section-title {
    font-size: 1.25rem;
    padding-left: 10px;
  }

  .container[style*="margin-top: 40px"] {
    margin-top: 20px !important;
  }

  .club-filter__row {
    padding: 10px 0;
  }
}

@media (max-width: 1199px) {
  /* .club-filter__controls {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    width: 100%;
  } */
  .club-card {
    flex-direction: column;
    border-radius: 12px;
  }

  .club-card__logo {
    width: 100%;
    border: none;
    height: auto;
  }

  .club-card__logo img {
    aspect-ratio: 16/9;
    object-fit: cover;
    overflow: hidden;
  }

  .club-card__body {
    position: relative;
    width: 100%;
    flex-direction: column;
    gap: 15px;
    margin: 15px;
    padding: 0 10px;
    justify-content: space-between;
  }

  .club-card__meta {
    position: absolute;
    top: 0;
    right: 10px;
  }
}

/* LOW MOBILE */
@media (max-width: 400px) {
  .container {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* ==========================
   RESPONSIVE FONT SCALING
========================== */

/* Base scale: desktop */
html {
  font-size: 16px;
}

h1 {
  font-size: 2.4rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.4rem;
}
p,
a,
li,
span {
  font-size: 1rem;
}

/* ----- Tablet (768px–1199px) ----- */
@media (max-width: 1199px) and (min-width: 768px) {
  html {
    font-size: 15px; /* giảm nhẹ 6–7% */
  }

  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.7rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  p,
  a,
  li,
  span {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.4rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }

  .club-card__title {
    font-size: 1.5rem;
  }
  .club-card__address,
  .club-card__phone,
  .club-card__footer {
    font-size: 0.95rem;
  }
  .club-card__table {
    font-size: 0.9rem;
  }
}

/* ----- Mobile (<768px) ----- */
@media (max-width: 767px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  p,
  a,
  li,
  span {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 1.4rem;
  }
  .hero-description {
    font-size: 0.85rem;
  }

  .club-card__title {
    font-size: 1.5rem;
  }

  .club-card__address,
  .club-card__phone,
  .club-card__footer {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .page-number {
    font-size: 0.8rem;
  }

  .footer {
    font-size: 0.9rem;
  }

  .stat-label {
    font-size: large;
  }

  .club-filter__select {
    font-size: smaller;
  }
  .club-filter__input,
  .club-filter__button {
    font-size: small;
  }

  .club-card__table {
    font-size: 0.85rem;
  }
}

/* ----- Mobile nhỏ (<400px) ----- */
@media (max-width: 400px) {
  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }
  .club-card__title {
    font-size: 1.3rem;
  }
  .section-title {
    font-size: 1rem;
  }
  .stat-label {
    font-size: 1rem;
  }
  .stat-value {
    font-size: 2.5rem;
  }
}
