/* style/casino.css */

:root {
    --primary-color: #0A2463;
    --secondary-color: #E1B12C;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e; /* Slightly lighter than shared.css dark bg for contrast in specific sections */
    --border-color: #e0e0e0;
}

/* General page styling */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for the page, assuming dark body bg */
    background-color: var(--bg-dark); /* Fallback/example, actual body bg from shared.css */
}

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

.page-casino__heading {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.page-casino__sub-heading {
    font-size: 28px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-casino__paragraph {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

.page-casino__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-casino__list-item {
    margin-bottom: 10px;
    font-size: 16px;
}

/* Sections */
.page-casino__section {
    padding: 60px 0;
    position: relative;
}

.page-casino__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-casino__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-casino__light-bg .page-casino__heading,
.page-casino__light-bg .page-casino__sub-heading {
    color: var(--primary-color);
}

.page-casino__light-bg .page-casino__paragraph,
.page-casino__light-bg .page-casino__list-item {
    color: var(--text-dark);
}

/* Buttons */
.page-casino__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-casino__center-button {
    text-align: center;
    margin-top: 40px;
}

.page-casino__btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.page-casino__btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.page-casino__btn-primary:hover {
    background-color: #f0c240;
    border-color: #f0c240;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.page-casino__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-tertiary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 10px 25px;
    font-size: 16px;
}

.page-casino__btn-tertiary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-link {
    color: var(--secondary-color);
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font-size: 16px;
    font-weight: normal;
}

.page-casino__btn-link:hover {
    color: #f0c240;
    text-decoration: none;
}

/* Image base styles */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* HERO Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Fixed nav spacing */
  margin-top: 0;
  background-color: var(--primary-color); /* Fallback */
}

.page-casino__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-casino__hero-image {
  width: 100%;
  margin: 0;
}

.page-casino__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* LOGO Carousel Section */
.page-casino__logo-carousel-section {
  width: 100%;
  padding: 30px 20px;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__logo-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.page-casino__logo-carousel {
  display: flex;
  gap: 15px;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.page-casino__logo-carousel::-webkit-scrollbar {
  display: none;
}

.page-casino__logo-item {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

.page-casino__logo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.page-casino__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  pointer-events: auto;
}

.page-casino__logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Games Display Section */
.page-casino__games-section {
  width: 100%;
  padding: 60px 20px;
  background: var(--bg-dark);
}

.page-casino__games-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-casino__games-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}

.page-casino__featured-game-area {
  width: 100%;
}

.page-casino__featured-game-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: var(--secondary-color);
  text-align: left;
}

.page-casino__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--primary-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-casino__featured-game-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-casino__featured-game-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.page-casino__featured-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-casino__games-grid-area {
  width: 100%;
}

.page-casino__games-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.page-casino__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
}

.page-casino__games-tab:hover {
  color: var(--text-light);
}

.page-casino__games-tab.active {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-casino__games-tab.active + .page-casino__games-tab {
  color: rgba(255, 255, 255, 0.6);
}

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

.page-casino__games-grid.active {
  display: grid;
}

.page-casino__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--primary-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.page-casino__game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-casino__game-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-casino__game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-casino__game-card-title {
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 0 0;
  padding: 0 5px 10px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* Quick Access Section */
.page-casino__section--quick-access {
    padding: 80px 0;
}

.page-casino__link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-casino__quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    padding: 25px 15px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    height: 180px; /* Fixed height for consistent look */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: #1c3d80; /* Slightly lighter primary on hover */
}

.page-casino__quick-link-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.page-casino__quick-link-text {
    font-size: 17px;
    font-weight: bold;
    line-height: 1.3;
}

/* Core Games Detail Section */
.page-casino__section--core-games {
    padding: 80px 0;
}

.page-casino__game-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__game-detail-card {
    background-color: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__game-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-casino__game-detail-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-casino__game-detail-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-casino__game-detail-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    text-align: justify;
}

/* Promotions Section */
.page-casino__section--promotions {
    padding: 80px 0;
}

.page-casino__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__promo-card {
    background-color: var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.page-casino__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__promo-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-casino__promo-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-casino__promo-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* Safety Section */
.page-casino__section--safety {
    padding: 80px 0;
}

.page-casino__safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__safety-item {
    background-color: var(--bg-dark);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__safety-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-casino__safety-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-casino__safety-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

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

.page-casino__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-casino__faq-item.active .page-casino__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page-casino__faq-question:hover {
  background: #1c3d80;
  border-color: rgba(255, 255, 255, 0.25);
}

.page-casino__faq-question:active {
  background: #152e64;
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none;
}

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(180deg);
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-casino__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
    color: rgba(255, 255, 255, 0.8);
}

/* Blog Section */
.page-casino__section--blog {
    padding: 80px 0;
}

.page-casino__blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__blog-card {
    background-color: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__blog-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.page-casino__blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.page-casino__blog-content {
    padding: 25px;
    color: var(--text-light);
}

.page-casino__blog-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-casino__blog-excerpt {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    text-align: justify;
}

.page-casino__blog-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__heading {
    font-size: 30px;
  }
  .page-casino__sub-heading {
    font-size: 24px;
  }
  .page-casino__games-layout {
    grid-template-columns: 1fr;
  }
  .page-casino__featured-game-image {
    height: 400px;
  }
  .page-casino__games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-casino__quick-link-card {
    height: 160px;
  }
  .page-casino__quick-link-card img {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
  }
  .page-casino__quick-link-text {
    font-size: 16px;
  }
  .page-casino__game-detail-card img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-top: 10px; /* Mobile fixed nav spacing */
  }
  .page-casino__logo-carousel-section {
    padding: 20px 15px;
  }
  .page-casino__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
  }
  .page-casino__logo-carousel {
    gap: 12px;
  }
  .page-casino__logo-item a {
    padding: 8px;
  }
  .page-casino__games-section {
    padding: 40px 15px;
  }
  .page-casino__heading {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-casino__sub-heading {
    font-size: 20px;
  }
  .page-casino__paragraph {
    font-size: 15px;
  }
  .page-casino__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn {
    width: 100%;
    padding: 10px 20px;
    font-size: 16px;
  }
  .page-casino__featured-game-image {
    height: 300px;
  }
  .page-casino__games-tabs {
    gap: 15px;
    justify-content: center;
  }
  .page-casino__games-tab {
    font-size: 16px;
  }
  .page-casino__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-casino__game-card-image {
    height: 150px;
  }
  .page-casino__game-card-title {
    font-size: 13px;
    padding: 0 3px 8px;
  }
  .page-casino__section--quick-access {
    padding: 50px 0;
  }
  .page-casino__link-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-casino__quick-link-card {
    height: 140px;
    padding: 20px 10px;
  }
  .page-casino__quick-link-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
  }
  .page-casino__quick-link-text {
    font-size: 14px;
  }
  .page-casino__game-detail-grid,
  .page-casino__promo-grid,
  .page-casino__safety-grid,
  .page-casino__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-casino__game-detail-card img {
    height: 180px;
  }
  .page-casino__game-detail-title {
    font-size: 20px;
  }
  .page-casino__promo-card img {
    height: 150px;
  }
  .page-casino__promo-title {
    font-size: 18px;
  }
  .page-casino__safety-item img {
    width: 80px;
    height: 80px;
  }
  .page-casino__safety-title {
    font-size: 20px;
  }
  .page-casino__faq-question {
    padding: 15px 20px;
  }
  .page-casino__faq-question h3 {
    font-size: 16px;
  }
  .page-casino__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-casino__faq-answer {
    padding: 0 20px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px !important;
  }
  .page-casino__faq-answer p {
    font-size: 15px;
  }
  .page-casino__blog-card img {
    height: 180px;
  }
  .page-casino__blog-title {
    font-size: 18px;
  }
  /* Ensure all images and their containers are responsive on mobile */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__container,
  .page-casino__section,
  .page-casino__promo-card,
  .page-casino__safety-item,
  .page-casino__blog-card,
  .page-casino__game-detail-card,
  .page-casino__featured-game,
  .page-casino__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__logo-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-casino__heading {
    font-size: 22px;
  }
  .page-casino__sub-heading {
    font-size: 18px;
  }
  .page-casino__featured-game-image {
    height: 220px;
  }
  .page-casino__games-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  .page-casino__games-tab {
    font-size: 15px;
  }
  .page-casino__games-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__game-card-image {
    height: 180px;
  }
  .page-casino__link-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__quick-link-card {
    height: 120px;
    padding: 15px 10px;
  }
  .page-casino__quick-link-card img {
    width: 50px;
    height: 50px;
  }
  .page-casino__quick-link-text {
    font-size: 13px;
  }
  .page-casino__game-detail-card img {
    height: 150px;
  }
  .page-casino__promo-card img {
    height: 120px;
  }
  .page-casino__blog-card img {
    height: 150px;
  }
}