.policy,
.success {
  padding-block: 80px 60px !important;
  min-height: 92vh;
}

@media (max-width: 768px) {
  .policy {
    padding-block: 60px 60px !important;
  }
}

/* .success__text {
  margin-bottom: 27px;
}

.success__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.success__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
} */

.policy__text {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0%;
  color: #ffffff;
}

.policy__title,
.success__title {
  font-weight: 700;
  font-size: 38px;
  line-height: 150%;
  letter-spacing: 0%;
  vertical-align: middle;
  margin-bottom: 28px;
  color: #ffffff;
}

.policy__title {
  color: #ffffff;
}

.policy__text h2 {
  text-align: left;
  font-size: 21px;
}

.policy__text ul {
  padding-left: 20px;
}

.policy__text h2,
.policy__text p,
.policy__text ul {
  margin-bottom: 22px;
}

.policy__link {
  color: #ffffff;
}

h1,
h2,
h3,
h4 {
  word-break: break-word;
}

html {
  scroll-behavior: smooth;
}

.container {
  margin: 0 auto;
  max-width: 1200px !important;
  padding-inline: 20px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #b026ff;
  --secondary-color: #1a0b2e;
  --dark-bg: #05011c;
  --card-bg: #130e2f;
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --border-radius: 20px;
  --transition: all 0.3s ease;
}

body {
  font-family: "Rubik", sans-serif;
  background: #05011c;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.popup-content {
  background: linear-gradient(135deg, #1a0b2e 0%, #2a1554 100%);
  border-radius: 20px;
  padding: 50px 40px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(176, 38, 255, 0.3);
  border: 2px solid rgba(176, 38, 255, 0.2);
}

.age-popup-content {
  max-width: 700px;
}

.age-icon {
  margin-bottom: 30px;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;

  font-size: 36px;
  font-weight: 700;
  color: white;
}

.popup-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.popup-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.popup-content p a {
  color: var(--primary-color);
  text-decoration: underline;
}

.popup-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 16px 32px;
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Rubik", sans-serif;
  border-radius: 12px;
}

.btn-primary {
  background: linear-gradient(0deg, #4300ff 0%, #ff00fe 100%);

  color: white;
}

.btn-primary:hover {
  background: #9500e6;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Header */
.header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: transparent;
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(176, 38, 255, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;

}

.nav-menu {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: white;
  transition: var(--transition);
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  padding: 100px 0 100px;
  position: relative;
  overflow: hidden;
  background: url(/wp-content/themes/thetopplaygames/img/hero-dice.png) center / cover no-repeat;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #b026ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-image {
  flex: 1;
  max-width: 500px;
}

.hero-image img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(176, 38, 255, 0.5));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Casinos Section */
.casinos-section {
  padding: 60px 0;
}

.casinos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.casino-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 24px;
  border: 1px solid #554999;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.casino-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(176, 38, 255, 0.3);
}

.casino-logo {
  width: 100%;
  max-width: 270px;
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 12px;
}

.casino-logo img {
  width: 100%;
  height: auto;
}

.casino-features {
  width: 100%;
  margin-bottom: 30px;
}

.casino-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.casino-features li:last-child {
  border-bottom: none;
}

.casino-features .icon {
  color: var(--primary-color);
  font-size: 8px;
  margin-top: 8px;
}

.casino-features span:last-child {
  flex: 1;
  font-size: 15px;
}

.btn-cta {
  background: linear-gradient(0deg, #4300ff 0%, #ff00fe 100%);

  color: white;
  padding: 16px 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 20px;
  transition: var(--transition);
  text-decoration: underline;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.btn-cta:hover {
  background: #9500e6;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(176, 38, 255, 0.4);
}

/* About Section */
.about-section {
  padding: 80px 0;
}

.about-section h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 40px;
}

.about-content p {
  font-size: 16px;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
}

.faq-section h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 50px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid #554999;
  transition: var(--transition);
}

.faq-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.faq-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-item:hover {
  border-color: var(--primary-color);
}

.faq-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.faq-item .icon {
  color: var(--primary-color);
  font-size: 8px;
  margin-top: 8px;
}

.faq-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 20px;
}

/* Responsible Gaming Section */
.responsible-section {
  padding: 0px 0;
  text-align: center;
}

.responsible-section h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 30px;
}

.responsible-text {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 50px;
  line-height: 1.6;
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ffffff4d;
}

.partners-logos img {
  height: 36px;
  width: auto;

  transition: var(--transition);
}

.partners-logos img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.age-restriction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 18px;
  font-weight: 600;
}

.age-restriction .age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;

  font-size: 20px;
  font-weight: 700;
}

/* Contact Form Section */
.contact-section {
  padding: 80px 0;
}

.contact-section h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 2px solid rgba(176, 38, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-family: "Rubik", sans-serif;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
.footer {
  padding: 40px 0;

  text-align: center;
  background: #000008;
}

.footer-middle {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ffffff4d;
}

@media (max-width: 768px) {
  .footer-middle {
    flex-direction: column;
  }
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 30px;

  flex-wrap: wrap;
}

.footer-nav a {
  font-family: Rubik;
  font-weight: 500;
  font-style: Medium;
  font-size: 20px;

  line-height: 140%;
  letter-spacing: 0%;
  text-transform: uppercase;

  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--primary-color);
}

.copyright {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-image {
    max-width: 400px;
  }

  .casinos-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--secondary-color);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 20px;
    gap: 30px;
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .burger-menu {
    display: flex;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .about-section h2,
  .faq-section h2,
  .responsible-section h2,
  .contact-section h2 {
    font-size: 32px;
  }

  .popup-content {
    padding: 40px 25px;
  }

  .popup-content h2 {
    font-size: 24px;
  }

  .age-badge {
    width: 80px;
    height: 80px;
    font-size: 28px;
  }

  .popup-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .partners-logos {
    gap: 25px;
  }

  .partners-logos img {
    height: 35px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .casino-card {
    padding: 30px 20px;
  }

  .faq-item {
    padding: 20px;
  }

  .faq-item h3 {
    font-size: 18px;
  }

  .about-section h2,
  .faq-section h2,
  .responsible-section h2,
  .contact-section h2 {
    font-size: 26px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}
