:root {
  --primary-color: #fead00;
  --secondary-color: #1a1a1a;
  --text-color: #ffffff;
  --accent-color: #b10d0d;
  --border-color: #ffff65;
  --background-dark: #1e2128;
  --header-background-color: #201f1f;
  --card-background-color: #2c3039;
  --card-background-color: #2c3039;
  --border-radius-lg: 12px;
  --border-radius-md: 8px;
  --border-radius-sm: 8px;
  --container-max-width: 1100px;
  --white-color: rgb(229, 231, 235);
  --toplist-font-color:#000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--background-dark);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  display: inline-block;
  line-height: 1;
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  text-decoration: underline;
}

.d-flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.5rem;
}

.mt-3 {
  margin-top: 24px !important;
}

.mt-4 {
  margin-top: 32px !important;
}

.mt-7 {
  margin-top: 56px !important;
}

.mt-8 {
  margin-top: 64px !important;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--primary-color);
}

.font-bold {
  font-weight: bold;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  min-width: 128px;
  width: 100%;
}

/* Navbar */
.navbar {
  background-color: var(--secondary-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
}

.navbar-right {
  gap: 0.5rem;
}

.nav-text {
  display: none;
}

.main-navbar .navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin: 0 auto;
  max-width: var(--container-max-width);
}

.logo {
  display: flex;
  align-items: center;
  width: 84px;
  font-size: 1.2rem;
  font-weight: bold;
}

.logo a {
  display: inline-block;
  line-height: 1;
}

.logo img {
  width: 100%;
}

.logo .highlight {
  color: var(--primary-color);
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-register {
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  width: unset;
  min-width: unset;
  background-color: var(--primary-color);
}

.btn-login {
  padding: 0.5rem 0.75rem;
  width: unset;
  min-width: unset;
  white-space: nowrap;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background-color: transparent;
}

.nav-links {
  padding: 0.5rem 0;
  font-weight: bold;
  display: none;
  list-style: none;
  background-color: #000;
  z-index: 9999;
}

.nav-links li {
  padding: 0.5rem 0;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links .active {
  color: var(--primary-color);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: 0.3s;
}

/* Mobile Menu */
.nav-links.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 58.5px;
  left: 0;
  right: 0;
  background-color: var(--secondary-color);
  padding: 1rem;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  padding-left: 1rem;
  list-style-type: none;
}

.dropdown svg {
  margin-left: 0.5rem;
}

/* Hero Section */
.hero {
  height: 300px;
  margin-top: 59px;
  padding: 4rem 1rem;
  text-align: center;
  background: url("../imgs/hero-img.png") top/cover;
}

.hero-title {
  font-size: 1.2rem;
  padding: 0 32px;
  margin: 0 auto;
}

main {
  margin-top: -250px;
  padding: 0 1rem;
}

/* Betting Sites */
.betting-sites {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0;
}

.site-card {
  background-color: var(--white-color);
  /*border: 1px solid var(--primary-color); */
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.site-card + .site-card {
  margin-top: 0.75rem;
}

.site-card.featured {
  border: 1px solid var(--accent-color);
}
.site-card h3, 
.site-card ul *{
    color:#000;
}

.site-header {
  width: 100%;
  display: flex;
  overflow: hidden;
  align-items: center;
  padding: 0 16px;
  font-size: 1rem;
  background-color: var(--accent-color);
}

.site-header h2 {
  display: flex;
  justify-content: center;
  flex: 1;
  text-align: center;
  font-size: 1rem;
  /*padding: 0 15%;*/
}

.site-header .premium-container {
  display: flex;
  justify-content: center;
}

.site-header .premium-container {
  position: relative;
}

.site-header .premium {
  overflow: hidden;
  display: flex;
  width: 42px;
  height: 42px;
  transform: translateX(-6px);
  align-items: center;
  justify-content: center;
  position: relative;
}

.site-header .premium p {
  overflow: hidden;
  position: absolute;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: -2px;
  line-height: 42px;
}

.site-body {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  gap: 1rem;
}

.site-info {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  text-align: center;
  border-radius: 100%;
  color: #000;
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
  border: 1px solid var(--border-color);
  background-color: var(--primary-color);
}

.site-image {
  margin-top: -1rem;
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
}

.site-image img {
  max-width: 100%;
}

.featured .site-image {
  margin-top: 1rem;
}

.site-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-transform: uppercase;
  font-size: 1rem;
  margin-top: 1.5rem;
}

.site-rating .rating {
  display: flex;
  margin-top: 4px;
}

.site-features {
  margin-top: 1.5rem;
  gap: 0.5rem;
  position: relative;
  padding-left: 1rem;
}
.featured .site-features img{
    margin-right: 5px;
    float:left;
    margin-top: 5px;
}
.featured .site-features{
    padding: 0;
    list-style-type: none;
}
.site-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-actions > a {
  width: 100%;
}

.featured .site-actions .btn-bet {
  background-color: var(--accent-color);
  border-color: #ff0000;
  color: white;
}

.site-actions .btn-bet {
  background-color: var(--primary-color);
  border: 1px solid var(--border-color);
  color: #000;
}

.site-actions .btn-details {
  background-color: #5d667e;
  color: var(--text-color);
}

/* Intro section */
.intro-section {
  padding: 1rem;
  margin: 0 auto;
  max-width: var(--container-max-width);

  background-color: var(--card-background-color);
  border-radius: var(--border-radius-lg);
}

.intro-section .custom-scroll {
  padding-right: 12px;
  max-height: 500px;
  overflow: auto;
}

.intro-section img {
  max-width: 100%;
}

.intro-section h2 a {
  color: white;
  text-decoration: none;
}

.intro-section h2 a:hover {
  text-decoration: underline;
}

.intro-section p + p {
  margin-top: 1.5rem;
}

/* Blog Section */
.blog-section {
  padding: 2rem;
  margin: 0 auto;
  max-width: var(--container-max-width);
  background-color: var(--card-background-color);
  border-radius: var(--border-radius-lg);
}

.blog-section h1, .blog-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin: 0 auto;
}

.blog-card {
  overflow: hidden;
  transition: transform 0.3s;
}

.blog-card > a {
  width: 100%;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card h3 {
  margin-top: 1rem;
  font-size: 1rem;
}

.blog-card h3 a {
  color: var(--text-color);
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  padding: 4rem 1.5rem 1rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.footer-section h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-section:first-child h3 {
  margin-bottom: 2rem;
}

.footer-section h3::after {
  content: " ";
  display: block;
  margin-top: 16px;
  width: 54px;
  height: 3px;
  background-color: white;
}

.footer-section ul li a {
  display: flex;
  align-items: center;
}

.footer-section ul li svg {
  margin-right: 8px;
  fill: white;
}

.footer-section ul li:hover svg {
  fill: var(--primary-color);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.responsible-gaming {
  margin-top: 1rem;
}

.footer-bottom {
  display: flex;
  gap: 2rem;
  flex-direction: column;
  justify-content: space-between;
  max-width: var(--container-max-width);
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hashtags {
  color: var(--primary-color);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.main-detail {
  margin-top: 80px;
}

.navigation {
  flex-wrap: wrap;
  font-weight: bold;
  gap: 0.5rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 2rem 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navigation a {
  white-space: nowrap;
  color: var(--primary-color);
  text-decoration: none;
}

.navigation a:hover {
  text-decoration: underline;
}

#scrollToTopBtn {
  display: none;
  position: fixed;
  width: 48px;
  height: 48px;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 100%;
  background-color: var(--primary-color);
  backdrop-filter: blur(70px);
}

#scrollToTopBtn svg {
  fill: white;
}

/* Desktop Styles */
@media (min-width: 768px) {
  .hero {
    margin-top: 130px;
  }

  .main-detail {
    margin-top: 160px;
  }

  .menu-toggle {
    display: none;
  }

  .navbar-container {
    display: flex;
    max-width: var(--container-max-width);
    flex-wrap: wrap;
    margin: auto;
    padding: 1rem 2rem;
  }

  .logo {
    width: 120px;
  }

  .btn-login,
  .btn-register {
    padding: 0.75rem 1.5rem;
  }

  .nav-links {
    position: fixed;
    display: flex;
    width: 100%;
    order: 4;
    gap: 2rem;
    justify-content: center;
    background-color: #000;
    top: 81px;
    z-index: 999;
  }

  .dropdown-content {
    padding-left: 0;
    list-style-type: none;
    display: none;
    position: absolute;
    background-color: var(--secondary-color);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    padding: 0.5rem 1rem;
    display: block;
  }

  .dropdown-content a:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
  }

  .hero {
    height: 600px;
  }

  .hero-title {
    font-size: 1.685rem;
    padding: 0;
    margin: 0 auto;
  }

  main {
    padding: 0 2rem;
  }

  .betting-sites {
    padding: 0;
  }

  .site-header .premium-container {
    transform: translateX(-32px);
    width: 30%;
    margin-right: -30%;
  }

  .site-body {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    column-gap: 3rem;
  }

  .site-info {
    grid-area: 1 / 1 / 3 / 2;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-right: 3rem;
  }

  .site-info > * {
    flex-shrink: 0;
  }

  .site-info .site-image {
    margin-top: 0;
    width: 164px;
  }

  .site-info::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
  }

  .site-rating {
    margin-top: 0;
    width: auto;
  }

  .site-features {
    grid-area: 1 / 2 / 2 / 4;
    margin-top: 0;
  }

  .site-actions {
    grid-area: 2 / 2 / 3 / 4;
    margin-top: 0;
    align-items: center;
  }

  .intro-section {
    padding: 1rem 1rem;
  }

  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .footer-section {
    text-align: left;
  }

  .footer-section:nth-child(3) {
    grid-area: 2 / 2 / 3 / 3;
  }

  .footer-bottom {
    flex-direction: row;
  }

  .footer-bottom-right {
    text-align: right;
  }

  .blog-grid {
    grid-template-columns: repeat(
      auto-fit,
      minmax(calc((1100px - 3 * 1.5rem - 64px) / 4), 1fr)
    );
  }
}

.custom-scroll::-webkit-scrollbar {
  width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
  border-radius: 8px;
  background-color: rgba(59, 61, 59, 1);
}

.custom-scroll::-webkit-scrollbar-thumb {
  width: 8px;
  border-radius: 8px;
  background-color: var(--primary-color);
}

@media screen and (min-width: 1100px) {
  main {
    padding: 0;
  }

  .navbar-container {
    padding: 1rem 0;
  }

  .navbar-left .nav-text {
    display: block;
    padding-left: 4rem;
    position: relative;
  }
  .navbar-left .nav-text::before {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    transform: translateX(32px);
    background: rgba(255, 255, 255, 0.1);
  }

  .betting-sites {
    padding: 0;
  }

  .site-header .premium-container {
    transform: translateX(2px);
    width: auto;
    margin-right: 0;
  }

  .site-body {
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 1fr;
    column-gap: 3rem;
  }

  .site-info {
    grid-area: 1 / 1 / 2 / 2;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding-right: 3rem;
  }

  .site-rating {
    align-items: flex-start;
  }

  .site-features {
    grid-area: 1 / 2 / 1 / 4;
    margin-top: 0;
  }

  .site-features::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
  }

  .site-actions {
    grid-area: 1 / 4 / 1 / 5;
    margin-top: 0;
    align-items: center;
    flex-direction: column;
    justify-content: center;
  }

  .featured .site-image {
    width: 218px;
  }

  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-section:nth-child(3) {
    grid-area: 1 / 3 / 1 / 4;
  }
}


.pagination a{
    display: block;
    width: 33px;
    height: 33px;
    line-height: 33px;
    border: 1px solid #fff;
    border-radius: 5px;
    text-align: center;
    color: #FFF;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}
.pagination a:hover,.pagination a.active{
    background-color: #fff;
    color: #2F97F0;
}
.pagination{
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 11px;
    padding: 19px 0;
    margin-top: 20px;
}