/* Algemene reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Basis styling */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* Main container: beperkte breedte op desktop */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

p {
  font-size: 1.2em;
  line-height: 1.5;
  margin: 20px 5px;
}

/* Header styling */




/* ----- HEADER STYLING ----- */
.custom-header {
  background-color: #111; /* Dark background */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between; 
  padding: 10px 20px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* Logo container: left side */
.logo-container {
  display: flex;
  align-items: center;
  z-index: 2;
}

.logo-image {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.site-name {
  margin-left: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Navigation: center links on desktop */
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  z-index: 5; /* Ensure navigation and dropdown appear above other elements */
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 12px; /* Reduced gap to fit more links */
  padding: 0;
  margin: 0;
}

.main-nav li a {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem; /* Slightly smaller font */
  white-space: nowrap; /* Prevent wrapping */
  padding: 8px 5px;
  display: block;
}

.main-nav li a:hover {
  text-decoration: none;
  color: #AE1C28; /* Red from the Dutch flag */
}

/* Dropdown styles with hover fix */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
  color: #fff;
}

/* Adjusted dropdown styling with hover fix */
.dropdown-content {
  position: absolute;
  background-color: #222;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
  z-index: 10;
  top: calc(100% - 5px); /* Move up slightly to remove gap */
  left: 0;
  border-radius: 4px;
  overflow: hidden;
  padding-top: 10px; /* Add padding at top for hover buffer */
}

.dropdown-content a {
  padding: 12px 16px !important;
  display: block;
  text-align: left;
  border-bottom: 1px solid #333;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #333;
  color: #AE1C28 !important;
}

/* Desktop hover behavior with delay */
@media (min-width: 769px) {
  /* Create invisible area to help maintain hover state */
  .dropdown::after {
    content: '';
    position: absolute;
    height: 20px; /* Buffer height */
    width: 100%;
    bottom: -10px;
    left: 0;
  }
  
  /* Show dropdown on hover with transition */
  .dropdown-content {
    opacity: 0;
    visibility: hidden;
    display: block; /* Always display but hide with opacity/visibility */
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
  }
  
  .dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Small arrow indicator for dropdown items */
  .dropbtn::after {
    content: " ▼";
    font-size: 0.7em;
    vertical-align: 1px;
    margin-left: 3px;
    opacity: 0.7;
  }
}

/* Menu button (hamburger) on the right */
.menu-button {
  display: none; /* Hidden on desktop by default */
  cursor: pointer;
  z-index: 9999; /* Very high to ensure it's clickable */
  transition: opacity 0.2s; /* Visual feedback animation */
  min-width: 44px; /* Larger touch target */
  min-height: 44px;
}

.menu-button:active {
  opacity: 0.7; /* Visual feedback when pressed */
}

/* Hamburger icon styling */
.hamburger-icon {
  width: 25px;
  height: 3px;
  background-color: #fff;
  position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 3px;
  background-color: #fff;
  left: 0;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  top: 8px;
}

/* ----- RESPONSIVE RULES ----- */
@media (max-width: 768px) {
  /* Hide horizontal nav, show hamburger icon */
  .main-nav {
    position: static; /* Reset positioning */
    width: 100%;
  }
  
  .main-nav ul {
    display: none;
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
    align-items: center;
    text-align: center;
  }
  
  /* Show nav when active - use !important to ensure it displays */
  .main-nav ul.active {
    display: flex !important;
  }
  
  .main-nav li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }
  
  /* Dropdown on mobile - different behavior */
  .dropdown-content {
    position: static;
    background-color: #1a1a1a;
    width: 100%;
    box-shadow: none;
    padding-top: 0;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    display: none; /* Hide by default on mobile */
  }
  
  .dropdown-content a {
    text-align: center;
    padding: 10px !important;
  }
  
  /* Dropdown toggle for mobile */
  .dropdown-active .dropdown-content {
    display: block !important; /* !important to override any conflicting styles */
  }
  
  /* Add a + indicator for mobile dropdown */
  .dropbtn::after {
    content: " +";
    font-size: 1em;
    margin-left: 5px;
  }
  
  /* Change indicator when dropdown is open */
  .dropdown-active .dropbtn::after {
    content: " -";
  }
  
  .menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin: -10px; /* Offset padding to maintain visual position */
  }
  
  /* Increase tap target for dropdown buttons on mobile */
  .dropbtn {
    padding: 10px 5px;
    display: block;
    width: 100%;
  }
}

/* Medium screens - adjust spacing when it gets tight */
@media (max-width: 992px) and (min-width: 769px) {
  .main-nav ul {
    gap: 10px; /* Even less space between links */
  }
  
  .main-nav li a {
    font-size: 0.9rem; /* Smaller font */
    padding: 5px 5px;
  }
  
  .custom-header {
    padding: 10px 15px; /* Less padding on sides */
  }
}








/* Custom paragraaf stijl */
.custom-paragraph {
  font-size: 1.1em;
  margin: 20px 0;

}

/* Responsive afbeelding stijl */
.responsive-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border: 3px solid #d80027;
}

/* Unieke stijl voor bullet-lijsten */
/* Стилізація секції для буліт-списку */
.bullet-list-section {
  margin: 40px 20px;
  padding: 20px;
  background-color: #fff;
  border-left: 5px solid #d80027;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.bullet-list-section h2 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 15px;
  font-size: 1.8em;
}

/* Оновлений дизайн буліт-списку */
.custom-bullet-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.custom-bullet-list li {
  position: relative;
  padding-left: 25px; /* Відступ для маркера */
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1em;
  line-height: 1.5;
}

/* Сучасний круглий маркер */
.custom-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;     /* Ширина маркера */
  height: 10px;    /* Висота маркера */
  background-color: #d80027; /* Колір маркера */
  border-radius: 50%;        /* Робить маркер круглим */
}

/* Мобільні налаштування */
@media (max-width: 768px) {
  .bullet-list-section {
    margin: 20px;
    padding: 15px;
  }
  
  .bullet-list-section h2 {
    font-size: 1.6em;
  }
  
  .custom-bullet-list li {
    font-size: 0.95em;
  }
}




/* Unieke stijl voor genummerde lijsten */
/* Розділ покрокового посібника */
.step-by-step-section {
  margin: 40px 20px;
  padding: 20px;
  background-color: #fff;
  border-left: 5px solid #d80027;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.step-by-step-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #111;
}

/* Список кроків */
.step-guide {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.step-guide li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

/* Круглий номер кроку */
.step-number {
  flex: 0 0 40px;
  height: 40px;
  background-color: #d80027;
  color: #fff;
  border-radius: 50%;
  font-size: 1.2em;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

/* Контейнер для вмісту кроку */
.step-content h3 {
  margin: 0;
  font-size: 1.4em;
  font-family: 'Montserrat', sans-serif;
  color: #111;
}

.step-content p {
  margin: 5px 0 0;
  font-size: 1em;
  line-height: 1.5;
  color: #333;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
  .step-guide li {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    font-size: 1em;  /* трохи зменшено, щоб число вміщувалося */
    margin-right: 0;
    margin-bottom: 10px;
  }
}



/* Modern Table Styling - General Purpose */
.table-section {
  margin: 40px 0;
  padding: 0 20px;
  font-family: 'Montserrat', sans-serif;
}

.table-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Modern Table Styling */
.content-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

/* Table Headers */
.content-table thead th {
  background: linear-gradient(90deg, #0F4C81 0%, #62269E 50%, #C41E3A 100%);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border: none;
}

/* Table Cells */
.content-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eaeaea;
  font-size: 0.9rem;
  color: #333;
}

/* Row Styling */
.content-table tbody tr:last-child td {
  border-bottom: none;
}

.content-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.content-table tbody tr:hover {
  background-color: #f5f5f5;
}

/* Link Styling */
.content-table a {
  color: #0F4C81;
  text-decoration: none;
  transition: color 0.2s ease;
}

.content-table a:hover {
  color: #C41E3A;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .content-table {
    font-size: 0.9rem;
  }
  
  .content-table th,
  .content-table td {
    padding: 10px 12px;
  }
}

/* Extra Small Devices */
@media (max-width: 576px) {
  .table-section {
    margin: 30px 0;
  }
  
  .content-table th {
    font-size: 0.85rem;
    padding: 10px 8px;
  }
  
  .content-table td {
    font-size: 0.8rem;
    padding: 8px;
  }
}


/* Footer styling */
.custom-footer {
  background-color: #111; /* Same dark background as header */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between; 
  padding: 20px;
  flex-wrap: wrap; /* Allows items to stack on smaller screens */
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.footer-nav li a {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav li a:hover {
  text-decoration: none;
  color: #AE1C28; /* Red from the Dutch flag */
}

.footer-copy {
  font-size: 0.9em;
}

/* Mobile adjustments for footer */
@media (max-width: 768px) {
  .custom-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-nav ul {
    flex-direction: column;
    gap: 10px;
  }
  .footer-logo {
    margin-bottom: 15px;
  }
  .footer-copy {
    margin-top: 15px;
  }
}

/* Responsive regels */
@media (max-width: 768px) {
nav, main {
    padding: 15px;
  }
  .custom-paragraph {
    font-size: 1em;
  }
  .custom-bullet-list, .custom-numbered-list {
    padding-left: 30px;
  }
}


.hero-section {
  background: linear-gradient(135deg, #004d99, #d80027);
  color: #fff;
  padding: 40px 20px;
  font-family: 'Montserrat', sans-serif;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
}

/* Top section with logo and info */
.hero-top {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  gap: 30px;
}

.casino-logo {
  flex: 0 0 160px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.casino-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.casino-info {
  flex: 1;
  text-align: left;
}

.hero-section h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2em;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero-section p {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* Rating stars */
.casino-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.stars {
  color: #FFD700;
  font-size: 24px;
  letter-spacing: 2px;
}

.half-star {
  position: relative;
  display: inline-block;
}

.half-star::after {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.3);
}

.rating-text {
  font-size: 18px;
  font-weight: 600;
}

/* Bottom section with bonus and CTA */
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.bonus-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  flex: 1;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.bonus-label {
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 5px;
}

.bonus-amount {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 5px;
}

.bonus-extra {
  font-size: 1.1em;
  font-weight: 500;
}

.play-button {
  display: inline-block;
  background: #FFDD00;
  color: #111;
  font-weight: 700;
  padding: 16px 30px;
  font-size: 1.2em;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.play-button:hover {
  background: #FFE44D;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-top {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .casino-logo {
    flex: 0 0 120px;
    margin: 0 auto;
  }
  
  .casino-info {
    text-align: center;
  }
  
  .casino-rating {
    justify-content: center;
  }
  
  .hero-bottom {
    flex-direction: column;
    gap: 20px;
  }
  
  .bonus-box {
    width: 100%;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 1.8em;
  }
  
  .bonus-amount {
    font-size: 1.5em;
  }
  
  .play-button {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .hero-section {
    padding: 30px 15px;
  }
  
  .hero-section h1 {
    font-size: 1.6em;
  }
  
  .hero-section p {
    font-size: 1em;
  }
  
  .stars {
    font-size: 20px;
  }
  
  .bonus-amount {
    font-size: 1.3em;
  }
}



/* Pros & Cons Section */
.pros-cons-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 40px 20px;
  gap: 20px;
}

.pros-block,
.cons-block {
  background-color: #fff;
  padding: 20px;
  width: 48%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

/* Distinct left border colors for a visual cue */
.pros-block {
  border-left: 5px solid #d80027;
}

.cons-block {
  border-left: 5px solid #ff9933;
}

/* Headings for both blocks */
.pros-block h2,
.cons-block h2 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 15px;
}

/* Remove default list styles */
.pros-block ul,
.cons-block ul {
  list-style: none;
  padding-left: 0;
}

/* Custom bullet icons for each list item */
.pros-block ul li::before {
  content: "✔️";
  margin-right: 8px;
  color: #d80027;
}

.cons-block ul li::before {
  content: "❌";
  margin-right: 8px;
  color: #ff9933;
}

.pros-block ul li,
.cons-block ul li {
  margin-bottom: 10px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .pros-cons-section {
    flex-direction: column;
  }
  .pros-block,
  .cons-block {
    width: 100%;
  }
}



/* FAQ Секція */
.faq-section {
  margin: 40px 20px;
  padding: 20px;
  background-color: #fff;
  border-left: 5px solid #d80027;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.faq-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #111;
}

/* FAQ Елементи */
.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.faq-item:last-child {
  border-bottom: none;
}

/* Стилизований заголовок питання */
.faq-question {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
  color: #d80027;
  cursor: pointer;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

/* При відкритті питання */
.faq-item[open] .faq-question {
  background-color: #e6f7ff;
}

/* Відповідь */
.faq-answer {
  margin-top: 10px;
  font-size: 1em;
  color: #333;
  padding-left: 10px;
}

/* Адаптивні налаштування */
@media (max-width: 768px) {
  .faq-section {
    margin: 20px;
    padding: 15px;
  }
  
  .faq-section h2 {
    font-size: 1.6em;
  }
  
  .faq-question {
    font-size: 1.1em;
    padding: 8px;
  }
  
  .faq-answer {
    font-size: 0.95em;
  }
}


/* Стиль для кнопки "Вгору" */
/* Стиль для кнопки "Вгору" */
.to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #d80027;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 24px; /* збільшено для кращої видимості стрілки */
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.to-top:hover {
  background-color: #0088cc;
}


@media (max-width: 768px) {
  .to-top {
    display: none;
  }
}


/* 1) Casino TOP Styles */

/* 2) Wrapper */
.casino-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 3) Card */
.casino-card {
  position: relative;              /* for rank badge */
  display: flex;
  flex-direction: row;
  background: #212936;             /* card background */
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  border-left: 4px solid #4e80ee;  /* accent border */
}

/* 4) Rank badge */
.rank {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: #4e80ee;             /* primary accent */
  color: #ffffff;
  border-radius: 0 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* 5) Image column and responsive tweaks */
.card-image {
  flex: 0 0 20%;                   /* ~20% of card width */
  max-width: 240px;                /* desktop limit */
  min-width: 120px;                /* mobile limit */
  aspect-ratio: 1 / 1;             /* square */
  background: #f7f7f7;             /* neutral frame */
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 768px) {
  .card-image {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0 auto 1rem;
  }
}

/* 6) Main content area - FIXED: Using CSS Grid for consistent layout */
.card-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 180px 200px; /* casino-info | offers | actions */
  align-items: center;
  padding: 1rem;
  gap: 2rem;
}

/* 7) Casino info (title + rating) */
.casino-info {
  display: flex;
  flex-direction: column;
  min-width: 0; /* Allow text to wrap/truncate if needed */
}
.casino-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ffffff;
}
.rating {
  margin-top: 0.25rem;
  display: flex;
}
.rating .star {
  color: #FFD700;
  font-size: 1rem;
  margin-right: 2px;
}

/* 8) Offers block - FIXED: Removed auto margins */
.offers {
  width: 180px;
  padding: 1rem 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(140, 172, 229, 0.1);
  border: 1px solid #4e80ee;
  border-radius: 4px;
  justify-self: center; /* Center within its grid cell */
}
.offers .bonus,
.offers .freespins {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.offers .bonus::before,
.offers .freespins::before {
  content: attr(data-label);
  font-size: 1.25rem;
  font-weight: bold;
  color: #4e80ee;
  margin-bottom: 0.25rem;
}
.offers .amount {
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
}

/* 9) Actions (buttons + disclaimer) - FIXED: Positioned in grid */
.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  justify-self: center; /* Center within its grid cell */
}
.btn-primary,
.btn-secondary {
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-primary {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  background: linear-gradient(45deg, #4e80ee, #8cace5);
  color: #ffffff;
  animation: earthquake 4s ease-in-out infinite;
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #8cace5, #4e80ee);
}
.btn-secondary {
  width: 160px;
  padding: 0.75rem;
  font-size: 0.85rem;
  background: #212936;
  color: #8cace5;
  border: 1px solid #8cace5;
}
.btn-secondary:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.disclaimer {
  font-size: 0.75rem;
  color: #ffffff;
  margin-top: 0.5rem;
  text-align: center;
}

/* 10) Shake animation */
@keyframes earthquake {
  0%   { transform: translate(0, 0) rotate(0deg); }
  2%   { transform: translate(-2px, 1px) rotate(-1deg); }
  4%   { transform: translate(-2px, -1px) rotate(1deg); }
  6%   { transform: translate(2px, 1px) rotate(0deg); }
  8%   { transform: translate(2px, -1px) rotate(1deg); }
  10%  { transform: translate(-2px, 1px) rotate(-1deg); }
  11%, 100% { transform: translate(0, 0) rotate(0deg); }
}

/* 11) Mobile adaptation - FIXED: Better responsive grid */
@media (max-width: 768px) {
  .casino-card {
    flex-direction: column;
  }
  .card-content {
    display: flex; /* Switch back to flexbox on mobile */
    flex-direction: column;
    gap: 1rem;
  }
  .casino-info {
    align-items: center;
    text-align: center;
  }
  .offers {
    width: 80%;
    margin: 0 auto 1rem;
  }
  .actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }
  .btn-primary,
  .btn-secondary {
    width: 48%;
  }
  .disclaimer {
    order: 1;
    width: 100%;
    margin-top: 0.75rem;
  }
}

/* Section title */
.section-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #212936;
  text-align: center;
  margin: 2rem 0 1rem;
}




.image-container {
  text-align: center; /* centers the image horizontally */
  margin: 1em 0;      /* optional spacing */
}

.image-container img {
  max-width: 800px;   /* choose a max size for the image */
  width: 100%;        /* makes it responsive but not bigger than 600px */
  height: auto;       /* keeps proportions */
  display: inline-block;
}






h2 {
  font-size: 2.2rem;
  font-weight: bold;
  color: #000;
  text-align: left;
  margin: 2rem 0 1rem 0;
}

h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #333446;
  margin: 1.5rem 0 0.5rem 0;
}



/* ── Other similar casinos block ────────────────────────────────── */
.similar-casinos {
  margin: 2rem auto;
  padding: 0 20px;
  max-width: 900px;
}

.similar-casinos .section-title1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: #212936;
}

/* ── Cards grid ───────────────────────────────────────────────── */
.similar-casinos .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* ── Individual card ──────────────────────────────────────────── */
.similar-casinos .casino-card1 {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ── Logo container (fixes all logos at same vertical position) ─ */
.similar-casinos .casino-card1 .card-image1 {
  height: 120px;              /* fixed height for uniformity */
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Logo image sizing ────────────────────────────────────────── */
.similar-casinos .casino-card1 .card-image1 img {
  max-height: 100%;           /* fill container vertically */
  max-width: 70%;             /* don’t overflow horizontally */
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ── Review link styled like H3 ───────────────────────────────── */
.similar-casinos .casino-link {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0.75rem 0 0;
  text-decoration: none;
  transition: color 0.2s ease;
}
.similar-casinos .casino-link:hover {
  color: #4E8CFF;
}

/* ── Mobile fallback ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .similar-casinos .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
