/* =============================================
   Base Reset & Variables
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #3182ce;
  --color-primary-dark: #2a4365;
  --color-red: #c53030;
  --color-red-bright: #ff0505;
  --color-red-dark: #742a2a;
  --color-text: #23282d;
  --color-text-light: #4a5568;
  --color-bg: #f7f7f7;
  --color-hero: #2d3748;
  --color-white: #ffffff;
  --color-border: #e0e0e0;
  --color-green: #276749;
  --color-green-bg: #f0fff4;
  --radius: 8px;
  --shadow: 0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --transition: 0.3s ease;
  --font: 'Roboto', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 18px;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

a {
  color: var(--color-red-bright);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-red-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

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

/* =============================================
   Header
   ============================================= */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.main-nav a:hover {
  color: var(--color-red-bright);
  border-bottom-color: var(--color-red-bright);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--color-text);
  padding: 4px 8px;
}

/* =============================================
   Hero Section
   ============================================= */
.hero-section {
  background: var(--color-hero);
  color: var(--color-white);
  padding: 60px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--color-white);
}

.hero-text p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.65;
}

.btn-primary {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
}

.hero-image img {
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

/* =============================================
   Sections Common
   ============================================= */
section {
  padding: 64px 0;
}

section h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-desc {
  color: var(--color-text-light);
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 720px;
}

/* =============================================
   Casino Rating Grid
   ============================================= */
.section-rating {
  background: var(--color-white);
}

.casino-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.casino-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.casino-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.casino-card.featured {
  border-color: var(--color-red);
  border-width: 2px;
}

.casino-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.casino-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.casino-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.casino-name-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.casino-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.stars {
  color: #f6ad55;
  font-size: 16px;
  letter-spacing: 1px;
}

.rating-score {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-light);
}

.casino-bonus {
  background: #fff5f5;
  color: var(--color-red);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #fed7d7;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.casino-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  background: #ebf8ff;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #bee3f8;
}

.casino-btns {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-play {
  flex: 1;
  display: block;
  text-align: center;
  background: var(--color-red);
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background var(--transition), transform var(--transition);
}

.btn-play:hover {
  background: var(--color-red-dark);
  transform: translateY(-1px);
}

.btn-review {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 14px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-review:hover {
  background: var(--color-primary);
  color: var(--color-white) !important;
}

/* =============================================
   Comparison Table
   ============================================= */
.section-compare {
  background: var(--color-bg);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  font-size: 16px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: var(--color-hero);
  color: var(--color-white);
  font-weight: 700;
  font-size: 15px;
}

.compare-table thead th:first-child {
  border-radius: 12px 0 0 0;
}

.compare-table thead th:last-child {
  border-radius: 0 12px 0 0;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: #f9fafb;
}

.compare-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.highlight-green {
  color: var(--color-green);
  font-weight: 600;
}

/* =============================================
   Guide Steps
   ============================================= */
.section-guide {
  background: var(--color-white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.step-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.step-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* =============================================
   Popular Games
   ============================================= */
.section-games {
  background: var(--color-bg);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.game-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.game-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.game-icon {
  font-size: 44px;
  margin-bottom: 14px;
  line-height: 1;
}

.game-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}

.game-card p {
  font-size: 13px;
  color: var(--color-text-light);
}

/* =============================================
   Payment Methods
   ============================================= */
.section-payments {
  background: var(--color-bg);
}

.payments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.payment-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-item strong {
  font-size: 15px;
  color: var(--color-text);
  font-weight: 700;
}

.payment-item span {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* =============================================
   FAQ
   ============================================= */
.section-faq {
  background: var(--color-bg);
}

.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
  font-family: var(--font);
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--color-red);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-question:hover {
  color: var(--color-red);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* =============================================
   Legal / Responsible Gaming
   ============================================= */
.section-legal {
  background: var(--color-white);
}

.section-legal p {
  color: var(--color-text-light);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 860px;
  line-height: 1.7;
}

.responsible-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.responsible-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}

.responsible-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.responsible-item p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* =============================================
   Author Bio
   ============================================= */
.section-author {
  background: var(--color-bg);
}

.author-box {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-border);
}

.author-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.author-title {
  font-size: 14px;
  color: var(--color-red);
  font-weight: 500;
  margin-bottom: 16px;
}

.author-info p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.author-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-block;
  color: var(--color-primary) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 16px;
  border: 1px solid var(--color-primary);
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
}

.social-link:hover {
  background: var(--color-primary);
  color: var(--color-white) !important;
}

/* =============================================
   Hero top casinos
   ============================================= */
.hero-updated {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}

.hero-top-casinos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.hero-casino-btn {
  display: block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--color-white) !important;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition);
}

.hero-casino-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

/* =============================================
   Guide note
   ============================================= */
.guide-note {
  margin-top: 28px;
  background: #fffbeb;
  border-left: 4px solid #f6ad55;
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* =============================================
   Safest Casinos
   ============================================= */
.section-safest {
  background: var(--color-white);
}

.safest-list {
  margin: 24px 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.safest-list li {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
  list-style: decimal;
}

.safest-list a {
  font-weight: 600;
}

.safest-note {
  margin-top: 24px;
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  background: var(--color-bg);
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

/* =============================================
   Games note
   ============================================= */
.games-note {
  margin-top: 28px;
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* =============================================
   Content lists
   ============================================= */
.content-list {
  margin: 16px 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-list li {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.65;
  list-style: disc;
}

.content-ordered-list {
  margin: 16px 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-ordered-list li {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.65;
  list-style: decimal;
}

/* =============================================
   Section spacing for text-heavy sections
   ============================================= */
.section-realmoney,
.section-legal,
.section-choose,
.section-security {
  background: var(--color-white);
}

.section-realmoney p,
.section-legal p,
.section-choose p,
.section-security p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 900px;
}

.section-realmoney h3,
.section-legal h3,
.section-choose h3,
.section-security h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin: 28px 0 12px;
}

/* =============================================
   Payments note
   ============================================= */
.section-payments p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 900px;
}

.section-payments h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin: 28px 0 20px;
}

.payments-note {
  margin-top: 20px;
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* =============================================
   Support section
   ============================================= */
.section-support {
  background: var(--color-bg);
}

.section-support p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 900px;
}

.support-contact {
  margin-top: 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text) !important;
}

.support-contact a {
  font-weight: 700;
}

/* =============================================
   News section
   ============================================= */
.section-news {
  background: var(--color-white);
}

.news-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

.news-item:hover {
  box-shadow: var(--shadow-sm);
}

.news-date {
  font-size: 13px;
  color: var(--color-text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

.news-item a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
}

.news-item a:hover {
  color: var(--color-red-bright);
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--color-hero);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 24px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.footer-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  transition: color var(--transition);
}

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

.footer-contact p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-contact a {
  color: rgba(255,255,255,0.9);
}

.footer-contact a:hover {
  color: var(--color-white);
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-disclaimer {
  padding-top: 8px;
}

.footer-disclaimer p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  max-width: 900px;
  margin-bottom: 6px;
}

.footer-disclaimer a {
  color: rgba(255,255,255,0.7);
}

.footer-disclaimer a:hover {
  color: var(--color-white);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  .casino-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .responsible-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    z-index: 99;
    padding: 16px 20px;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-image {
    order: -1;
  }

  section {
    padding: 40px 0;
  }

  section h2 {
    font-size: 24px;
  }

  .casino-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .payments-grid {
    grid-template-columns: 1fr;
  }

  .responsible-grid {
    grid-template-columns: 1fr;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    gap: 20px;
  }

  .author-links {
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .news-item {
    flex-direction: column;
    gap: 4px;
  }

  .hero-top-casinos {
    gap: 8px;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 0;
  }

  .hero-text h1 {
    font-size: 22px;
  }

  .casino-card {
    padding: 18px;
  }

  .games-grid {
    grid-template-columns: 1fr 1fr;
  }
}
