/* ===================================
   987bet Casino - Main Stylesheet
   Mobile First Approach
   =================================== */

/* ===================================
   Variables & Reset
   =================================== */
:root {
  --color-primary: #749417;
  --color-primary-hover: #8ea93c;
  --color-secondary: #9dc32c;
  --color-accent: #fff45c;
  --color-bg-dark: #1a1a1a;
  --color-bg-light: #f8f8f8;
  --color-text: #333333;
  --color-white: #ffffff;
  --color-border: #e0e0e0;
  
  --font-primary: 'Arial', sans-serif;
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-white);
  background-color: #8ea93c;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* ===================================
   Header
   =================================== */
.header {
  background-color: var(--color-primary);
  border-bottom: 1px solid var(--color-secondary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__container {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  height: 20px;
  width: auto;
}

.header__nav {
  display: none;
}

.header__nav.active {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.header__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.header__nav-item {
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.header__nav-link {
  color: var(--color-white);
  font-weight: 500;
}

.header__nav-link.active {
  color: var(--color-accent);
  font-weight: 700;
}

.header__nav-link:hover,
.header__nav-item:hover .header__nav-link {
    color: var(--color-accent) !important;
}

.header__nav-item:hover .header__nav-link.active {
    color: var(--color-accent) !important;
}

.header__buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.header__burger {
  display: block;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-white);
  margin: 5px 0;
  transition: var(--transition);
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 4px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-primary-hover);
}

.btn--primary:hover {
  background-color: #fff45c;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 244, 92, 0.4);
}

.btn--secondary {
  background-color: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.btn--secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-primary-hover);
  transform: translateY(-2px);
}

.btn__icon {
  font-size: 1.2rem;
}

/* ===================================
   Main Content
   =================================== */
.main {
  min-height: calc(100vh - 200px);
  background-color: #8ea93c;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section {
  margin-bottom: 3rem;
}

.section__title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-accent);
}

.section__content {
  margin-bottom: 2rem;
}

.section__text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.section__text a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
}

.section__text a:hover {
  color: var(--color-white);
}

.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  padding: 3rem 1rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin: 2rem 0;
}

.cta-section__title {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-section__text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.cta-section__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  padding: 3rem 1rem;
  text-align: center;
  color: var(--color-white);
}

.hero__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero__image {
  margin-top: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Content Sections
   =================================== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.content-grid .btn {
  background-color: var(--color-accent);
  color: #8ea93c;
  border: none;
}

.content-grid .btn:hover {
  background-color: var(--color-white);
  color: #8ea93c;
}

.content-item {
  background-color: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-accent);
}

.content-item__title {
  color: #8ea93c;
  margin-bottom: 1rem;
}

.content-item p {
  color: var(--color-text);
}

.content-item__list {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.content-item__list li {
  margin-bottom: 0.5rem;
}

/* ===================================
   Features Table
   =================================== */
.features-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.features-table th,
.features-table td {
  color: var(--color-text);
}

.features-table__wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.features-table th,
.features-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.features-table th {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}

.features-table tr:hover {
  background-color: var(--color-bg-light);
}

/* ===================================
   Images
   =================================== */
.content-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-container {
  margin: 1.5rem 0;
}

.image-container img {
  width: 100%;
  border-radius: var(--border-radius);
}

/* ===================================
   FAQ Section
   =================================== */
.faq {
  background-color: var(--color-bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.faq__title {
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.faq__item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.faq__answer {
  color: var(--color-white);
  line-height: 1.6;
}

.faq__answer a {
  color: var(--color-accent);
}

.faq {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ===================================
   Footer
   =================================== */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  padding: 3rem 1rem 1rem;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__column {
  margin-bottom: 1.5rem;
}

.footer__title {
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__payment {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer__payment-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.footer__warning {
  background-color: rgba(255, 0, 0, 0.2);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  text-align: center;
  color: #ffcccc;
  font-weight: 600;
}

@media (min-width: 1280px) {
    .header__container {
        padding: 1rem;
      }
    
      .header__logo {
        height: 35px;
        width: auto;
      }
    
      .header__nav {
        display: flex;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
      }
    
      .header__nav-list {
        flex-direction: row;
        gap: 0;
      }
    
      .header__burger {
        display: none;
      }
}

/* ===================================
   Responsive: Tablet (768px - 1024px)
   =================================== */
@media (min-width: 768px) {


  .btn {
    padding: 0.875rem 2rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero__title {
    font-size: 3rem;
  }

  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__top {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__image {
    max-width: 600px;
    margin: 2rem auto;
  }
}

/* ===================================
   Responsive: Desktop (1024px+)
   =================================== */
@media (min-width: 1024px) {
  .container {
    padding: 3rem 2rem;
  }

  .header__container {
    padding: 1rem;
  }

  .header__nav-list {
    gap: 1rem;
  }

  .section__title {
    font-size: 2.5rem;
  }

  .content-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__top {
    grid-template-columns: repeat(4, 1fr);
  }

  h1 {
    font-size: 3rem;
  }

  .hero__title {
    font-size: 3.5rem;
  }

  .hero__image {
    max-width: 800px;
  }

  .cta-section {
    padding: 4rem 2rem;
  }
}

/* ===================================
   Hero Slider
   =================================== */
.hero-slider {
  width: 100%;
  position: relative;
  max-width: 1200px;
  margin: 4rem auto;
  overflow: hidden;
  border-radius: var(--border-radius);

}

.banner-swiper {
  width: 100%;
  height: auto;
  min-height: 200px;
}

.banner-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-swiper .swiper-slide a {
  display: block;
  width: 100%;
}

.banner-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 200px;
}

/* Swiper Navigation */
.banner-swiper .swiper-button-next,
.banner-swiper .swiper-button-prev {
  color: var(--color-accent);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.banner-swiper .swiper-button-next:after,
.banner-swiper .swiper-button-prev:after {
  font-size: 18px;
}

.banner-swiper .swiper-button-next {
  right: 10px;
}

.banner-swiper .swiper-button-prev {
  left: 10px;
}

.banner-swiper .swiper-pagination-bullet {
  background-color: var(--color-accent);
  opacity: 0.5;
}

.banner-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background-color: var(--color-accent);
}

/* Responsive slider */
@media (min-width: 768px) {
  .banner-swiper .swiper-slide img {
    min-height: 300px;
  }
}

@media (min-width: 1024px) {
  .banner-swiper .swiper-slide img {
    min-height: 400px;
  }
  
  .banner-swiper .swiper-button-next,
  .banner-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
  }
  
  .banner-swiper .swiper-button-next:after,
  .banner-swiper .swiper-button-prev:after {
    font-size: 22px;
  }
}

/* ===================================
   Utilities
   =================================== */
.text-center {
  text-align: center;
}

.text-justify {
  text-align: justify;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden {
  display: none !important;
}

@media (max-width: 480px) {
    .header__container {
        flex-wrap: wrap;
    }

    .header__buttons {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        order: 3;
    }

    .header__buttons .btn {
        width: 100%;
    }
}