/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styling */
body {
  font-family: 'Roboto', sans-serif;
  background: #F8F5F2;
  color: #333;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #F8F5F2 0%, #FFFFFF 100%);
  padding: 4rem 2rem;
  text-align: left;
  color: #2C3E50;
}
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;

}
.hero-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.hero-details img {
  max-width: 100%;
  width: 400px;
  border-radius: 8px;
}
.hero-details p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 500px;
}

/* Main Content Area - Designed for Rich Text */
.main-content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
}

/* Text Blocks for lengthy content */
p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* Header Styling */
/****************************************
  HEADER STYLES (Similar to Screenshot)
****************************************/
.top-header {
  background-color: #2C3E50; /* Dark navy background */
  color: #ECF0F1;            /* Light text */
  border-bottom: 4px solid #D4AF37; /* Gold border at the bottom */
  width: 100%;
}

.top-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO AREA */
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo img {
  height: 50px;   /* Adjust as needed */
  width: auto;
  object-fit: contain;
}

.site-title {
  font-size: 1.2rem;
  font-weight: bold;
}

/* NAVIGATION */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav li a {
  color: #ECF0F1;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem;
  transition: color 0.3s;
}

.main-nav li a:hover {
  color: #D4AF37; /* Gold hover accent */
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
  .top-header-container {
    flex-direction: column;
    justify-content: center;
  }
  .main-nav ul {
    flex-direction: column;
    margin-top: 0.5rem;
  }
}


.logo img {
  max-height: 60px;      /* Logo height will not exceed 60px */
  max-width: 200px;      /* Logo width will not exceed 200px */
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Section Styling */
.section {
  margin-bottom: 2rem;
}
.section h2 {
  margin-bottom: 1rem;
  color: #2C3E50;
  font-size: 2rem;
  border-bottom: 2px solid #D4AF37;
  padding-bottom: 0.5rem;
}
.section h3 {
  margin: 1.5rem 0 0.5rem;
  color: #444;
  font-size: 1.5rem;
}

/* Images */
.section img {
  max-width: 100%;
  display: block;
  margin: 1rem 0;
  border-radius: 8px;
}

/* Custom Bullet List */
.custom-bullets {
  list-style: none;
  padding-left: 1.5rem;
}
.custom-bullets li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
}
.custom-bullets li:before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #D4AF37;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Custom Numbered List */
.custom-numbered {
  counter-reset: custom-counter;
  list-style: none;
  padding-left: 2rem;
}
.custom-numbered li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.8rem;
}
.custom-numbered li:before {
  counter-increment: custom-counter;
  content: counter(custom-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: #D4AF37;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Table Styling */
/* Modern Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 1rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table thead {
  background: #D4AF37; /* refined gold accent */
  color: #fff;
}

table thead th {
  padding: 1rem;
  text-align: center;
}

table tbody tr {
  transition: background 0.3s;
}

table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

table tbody tr:hover {
  background: #f1f1f1;
}

table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

table tbody tr:last-child td {
  border-bottom: none;
}


/* Special Blocks for Pros & Cons */
.pros-block,
.cons-block {
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.pros-block {
  background: #F0F8E2;
  border-left: 5px solid #D4AF37;
}
.cons-block {
  background: #FDEDEC;
  border-left: 5px solid #E74C3C;
}
.pros-block h3,
.cons-block h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

/* Footer Styling */
/* Footer (Similar to Screenshot, Using Existing Color Palette) */
.site-footer {
  background-color: #2C3E50; /* Dark navy background */
  color: #ECF0F1;           /* Light text */
  font-size: 0.9rem;
  padding: 2rem 1rem;
}

/* Wrapper sections for easy layout */
.footer-top, .footer-middle, .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Footer Top Row */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #444; /* Subtle divider */
}

/* Navigation Links */
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.footer-nav a {
  color: #ECF0F1;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-nav a:hover {
  color: #D4AF37; /* Gold accent on hover */
}

/* Responsible Gambling Logos */
.footer-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-logos img {
  height: 40px;
  transition: transform 0.3s;
}
.footer-logos img:hover {
  transform: scale(1.1);
}

/* Footer Middle Row */
.footer-middle {
  border-bottom: 1px solid #444;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}
.footer-middle p {
  margin: 0.5rem 0;
  line-height: 1.6;
  color: #BDC3C7; /* Slightly lighter gray for disclaimers */
}

/* Footer Bottom Row */
.footer-bottom {
  text-align: center;
}
.footer-bottom p {
  margin: 0.5rem 0;
}
.footer-bottom a {
  color: #ECF0F1;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s;
}
.footer-bottom a:hover {
  color: #D4AF37;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
  .footer-logos {
    margin-top: 1rem;
  }
}


/* Responsive Adjustments */
@media (max-width: 768px) {
  .header-container, .footer-container {
    flex-direction: column;
    text-align: center;
  }
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .hero-details {
    flex-direction: column;
    gap: 1rem;
  }
  .responsible-gambling {
    justify-content: center;
    margin-top: 1rem;
  }
}


/* FAQ Section Styling */
/* FAQ Section Styling */
.faq-section {
  background: #FFFFFF;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 1.5rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.25rem;
  font-weight: bold;
  color: #2C3E50;
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 1rem;
  color: #555;
  margin-top: 0.5rem;
  /* Optional: Remove left margin and border styling if not desired */
  margin-left: 0;
  border-left: none;
  padding-left: 0;
}

 /* === TOP CASINO LIST STYLES === */

/* Section title над топом */
.section-title {
  font-size: 1.75rem;
  font-weight: bold;
  color: #212936;
  text-align: center;
  margin: 2rem 0 1rem;
}

/* Wrapper для списку казино */
.casino-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Карточка казино */
.casino-card {
  position: relative;              /* для бейджа rank */
  display: flex;
  flex-direction: row;
  background: #212936;             /* фон карточки */
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  border-left: 4px solid #4e80ee;  /* акцентна лінія зліва */
  padding: 15px;                   /* відступи всередині карточки */
}

/* Бейдж з номером (rank) */
.rank {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: #4e80ee;
  color: #ffffff;
  border-radius: 0 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Колонка з логотипом */
.card-image {
  flex: 0 0 20%;         /* ~20% ширини карточки на десктопі */
  max-width: 120px;      /* компактний логотип */
  min-width: 120px;
  aspect-ratio: 1 / 1;
  background: #f7f7f7;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin: 0 auto;        /* центр на мобілці */
}

.card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Основний контент карточки (назва, рейтинг, оффер, кнопки) */
.card-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 180px 200px; /* casino-info | offers | actions */
  align-items: center;
  padding: 1rem;
  gap: 2rem;
}

/* Блок з назвою казино та рейтингом */
.casino-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.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;
}

/* Оффер (бонуси + фріспіни) */
.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;
}

.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;
}

/* Блок з кнопками та дисклеймером */
.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  justify-self: center;
}

.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;
}

/* Анімація кнопки Play Now */
@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); }
}

/* === RESPONSIVE === */

/* Десктоп: зсуваємо назву казино та рейтинг праворуч */
@media (min-width: 768px) {
  .casino-info {
    margin-left: 75px;
    text-align: left;
  }

  .card-image {
    max-width: 200px;
    margin-right: 20px; /* відступ між логотипом і контентом */
  }
}

/* Мобільна адаптація */
@media (max-width: 768px) {
  .casino-card {
    flex-direction: column;
  }

  .card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .casino-info {
    align-items: center;
    text-align: center;
    margin-left: 0;
  }

  .card-image {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0 auto 1rem;
  }

  .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;
  }
}
