/* style/casino.css */
:root {
    --primary-color: #1A2B4C;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212;
    --bg-light: #f9f9f9;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.08);
    --card-border-dark-mode: rgba(255, 255, 255, 0.15);
}

.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default to light text for dark body background */
    background-color: var(--bg-dark);
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

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

.page-casino__section-title {
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-casino__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  overflow: hidden;
}

.page-casino__video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-casino__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__video-link:hover {
  transform: scale(1.01);
}

.page-casino__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-casino__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  background-size: cover;
  background-position: center center;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click */
}

.page-casino__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5); /* Darker overlay for text readability */
  opacity: 1; /* Always visible for dark background */
  pointer-events: none;
  z-index: 1;
}

.page-casino__video-link:hover .page-casino__video-overlay {
  opacity: 0.8; /* Slightly less opaque on hover */
}

.page-casino__video-click-hint {
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  padding: 15px 30px;
  background: rgba(255, 215, 0, 0.8); /* Gold with transparency */
  border-radius: 10px;
  white-space: nowrap;
  pointer-events: none;
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-casino__main-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-casino__cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
}

.page-casino__btn-primary {
    background: var(--secondary-color); /* Gold */
    color: var(--primary-color); /* Dark Blue */
    border: 2px solid var(--secondary-color);
}

.page-casino__btn-primary:hover {
    background: #e6c200;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary {
    background: transparent;
    color: var(--secondary-color); /* Gold */
    border: 2px solid var(--secondary-color);
}

.page-casino__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-casino__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  position: relative;
  z-index: 2; /* Above video and overlay */
}

.page-casino__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__play-now-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-casino__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Introduction Section */
.page-casino__introduction-section {
    background-color: var(--bg-light); /* Light background for contrast */
    color: var(--text-dark);
    padding: 80px 0;
}

.page-casino__introduction-section .page-casino__section-title {
    color: var(--primary-color);
    text-shadow: none;
}

.page-casino__introduction-section .page-casino__text-block {
    color: var(--text-dark);
}

/* Games Overview Section */
.page-casino__games-overview-section {
    background-color: var(--primary-color);
    padding: 80px 0;
}

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

.page-casino__game-card {
    background: var(--card-bg-dark-mode);
    border: 1px solid var(--card-border-dark-mode);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-light);
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-casino__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--card-border-dark-mode);
}

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

.page-casino__game-card-description {
    font-size: 15px;
    color: var(--text-light);
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-casino__game-card-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Features Section */
.page-casino__features-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 80px 0;
}

.page-casino__features-section .page-casino__section-title {
    color: var(--primary-color);
    text-shadow: none;
}

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

.page-casino__feature-item {
    background: #ffffff;
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-casino__feature-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    flex-grow: 1;
}

.page-casino__feature-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Promotions Section */
.page-casino__promotions-section {
    background-color: var(--primary-color);
    padding: 80px 0;
}

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

.page-casino__promotion-card {
    background: var(--card-bg-dark-mode);
    border: 1px solid var(--card-border-dark-mode);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-light);
}

.page-casino__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-casino__promotion-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--card-border-dark-mode);
}

.page-casino__promotion-card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-color);
    padding: 0 15px;
}

.page-casino__promotion-card-description {
    font-size: 15px;
    color: var(--text-light);
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-casino__promotion-card-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Guide Section */
.page-casino__guide-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 80px 0;
}

.page-casino__guide-section .page-casino__section-title {
    color: var(--primary-color);
    text-shadow: none;
}

.page-casino__guide-section .page-casino__section-description {
    color: var(--text-dark);
}

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

.page-casino__step-item {
    background: #ffffff;
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-casino__step-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    flex-grow: 1;
}

.page-casino__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: var(--primary-color);
    padding: 80px 0;
}

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

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-dark);
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--bg-light);
  border-radius: 0 0 5px 5px;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--card-border-dark-mode);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-casino__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary-color);
}

.page-casino__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

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

.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: 15px;
  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(45deg); /* Plus sign rotates to X */
}

.page-casino__faq-app-button {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.page-casino__faq-app-button:hover {
  background: #e6c200;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 80px 0;
}

.page-casino__responsible-gaming-section .page-casino__section-title {
    color: var(--primary-color);
    text-shadow: none;
}

.page-casino__responsible-gaming-section .page-casino__text-block {
    color: var(--text-dark);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Final CTA Section */
.page-casino__cta-final-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
}

.page-casino__cta-final-section .page-casino__section-title {
    color: var(--secondary-color);
}

.page-casino__cta-final-section .page-casino__section-description {
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__main-title {
        font-size: 40px;
    }
    .page-casino__hero-description {
        font-size: 18px;
    }
    .page-casino__section-title {
        font-size: 32px;
    }
    .page-casino__section-description {
        font-size: 16px;
    }
    .page-casino__hero-content {
      padding: 60px 20px;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-casino__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    
    .page-casino__hero-content {
      padding: 40px 15px;
      border-radius: 8px;
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    .page-casino__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-casino__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-casino__cta-button, .page-casino__play-now-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .page-casino__video-cta {
      margin-top: 20px;
    }

    .page-casino__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-casino__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-casino__text-block {
        font-size: 15px;
    }

    .page-casino__games-grid, .page-casino__features-grid, .page-casino__promotions-grid, .page-casino__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino__game-card-title, .page-casino__feature-title, .page-casino__promotion-card-title, .page-casino__step-title {
        font-size: 20px;
    }

    .page-casino__game-card-description, .page-casino__feature-description, .page-casino__promotion-card-description, .page-casino__step-description {
        font-size: 14px;
    }

    .page-casino__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-casino__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-casino__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-casino__faq-answer {
        padding: 0 15px;
    }
    
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px !important;
    }

    /* Mobile image and video responsiveness */
    .page-casino img, .page-casino video, .page-casino__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
      box-sizing: border-box !important;
    }

    .page-casino__video-container, .page-casino__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
      position: relative; /* ensure context for absolute children */
      height: auto; /* Allow height to adjust */
      padding-bottom: 56.25%; /* 16:9 aspect ratio */
    }
    
    .page-casino__video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover; /* Cover the aspect ratio space */
    }
    
    .page-casino__video-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    .page-casino__game-card-image, .page-casino__promotion-card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .page-casino__main-title {
        font-size: 28px;
    }
    .page-casino__hero-description {
        font-size: 15px;
    }
    .page-casino__section-title {
        font-size: 24px;
    }
    .page-casino__section-description {
        font-size: 14px;
    }
    .page-casino__hero-content {
      padding: 30px 10px;
    }
    .page-casino__video-click-hint {
      font-size: 16px;
      padding: 10px 20px;
    }
    .page-casino__faq-question h3 {
        font-size: 15px;
    }
    .page-casino__faq-toggle {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }
}