:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
    --border-color-rgb: 36, 77, 132; /* RGB for border-color to use in rgba() */
}

/* Base styles and container */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text on dark body */
    background-color: var(--deep-navy); /* Body background from shared.css */
    padding-top: 10px; /* Small padding, body handles --header-offset */
}

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

.page-casino__section {
    padding: 60px 0;
}

.page-casino__section-small {
    padding: 30px 0;
}

.page-casino__dark-section {
    background: var(--card-bg); /* Using custom dark background for sections */
    color: var(--text-main);
}

.page-casino__light-bg {
    background: #ffffff;
    color: #333333; /* Dark text on light background */
}

/* Typography */
.page-casino__main-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--gold); /* Gold for main titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-casino__hero-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
}

.page-casino__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-casino__section-description {
    font-size: 17px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
}

.page-casino__game-card-title,
.page-casino__promo-title,
.page-casino__feature-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-main);
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-casino__game-card-text,
.page-casino__promo-text,
.page-casino__feature-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-casino__content-text p {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-casino__copyright-text {
    font-size: 14px;
    text-align: center;
    color: var(--text-secondary);
}

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

.page-casino__cta-buttons--center {
    margin-top: 40px;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-casino__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: var(--text-main); /* White text */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

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

.page-casino__btn-secondary:hover {
    background: rgba(var(--border-color-rgb), 0.2);
    transform: translateY(-2px);
}

.page-casino__btn-small {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    background: var(--gold);
    color: var(--deep-navy); /* Dark text on gold */
    font-weight: 600;
}

.page-casino__btn-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Hero Section */
.page-casino__hero-section {
    padding-bottom: 60px;
    padding-top: 10px; /* Small padding, body handles --header-offset */
}

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

.page-casino__game-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__game-card-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
}

/* Live Experience */
.page-casino__content-flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-casino__content-text {
    flex: 1;
}

.page-casino__content-image {
    flex: 1;
}

.page-casino__image-full {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-height: 200px; /* Enforce min image size */
}

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

.page-casino__promo-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-casino__promo-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
}

/* Game Trial Section */
.page-casino__game-trial-wrapper {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Ensure iframe stays within bounds */
}

.page-casino__game-trial-frame {
    width: 100%;
    height: 600px; /* Default height for iframe */
    border: none;
    border-radius: 5px;
    display: block; /* Remove extra space below iframe */
}

/* Why Choose Us */
.page-casino__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-casino__feature-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #333333; /* Dark text on light background */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__feature-item .page-casino__feature-title,
.page-casino__feature-item .page-casino__feature-text {
    color: #333333;
}

.page-casino__feature-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

/* FAQ Section */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main);
}
details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-casino__faq-item summary.page-casino__faq-question::-webkit-details-marker {
  display: none;
}
details.page-casino__faq-item summary.page-casino__faq-question:hover {
  background: rgba(var(--border-color-rgb), 0.2);
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-main);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: var(--deep-navy); /* Slightly darker background for answer */
  border-radius: 0 0 5px 5px;
}
.page-casino__faq-answer p {
    color: var(--text-secondary); /* Lighter text for answer content */
}

/* Bottom CTA */
.page-casino__cta-bottom-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Images: Global responsiveness and minimum size */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space nicely */
}

/* Responsive styles for mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
        padding-top: 5px; /* Adjust for mobile */
    }

    .page-casino__container {
        padding: 0 15px;
    }

    .page-casino__section {
        padding: 40px 0;
    }

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

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

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

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

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
        padding: 0 15px; /* Add padding to container for buttons */
        width: 100%;
        box-sizing: border-box;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-small {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-casino__game-grid,
    .page-casino__promo-grid,
    .page-casino__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__feature-item {
        padding: 20px;
    }
    
    .page-casino__game-card-image,
    .page-casino__promo-image,
    .page-casino__image-full,
    .page-casino__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px;
        object-fit: cover;
    }

    .page-casino__content-flex {
        flex-direction: column;
        gap: 30px;
    }
    
    .page-casino__game-trial-frame {
        height: 400px; /* Adjust iframe height for mobile */
    }

    details.page-casino__faq-item summary.page-casino__faq-question { padding: 15px; }
    .page-casino__faq-qtext { font-size: 15px; }
    details.page-casino__faq-item .page-casino__faq-answer { padding: 0 15px 15px; }

    /* Ensure all content containers are responsive */
    .page-casino__hero-section,
    .page-casino__game-categories,
    .page-casino__live-experience,
    .page-casino__promotions,
    .page-casino__game-trial-section,
    .page-casino__why-choose-us,
    .page-casino__faq-section,
    .page-casino__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Small adjustments for very small screens */
@media (max-width: 480px) {
    .page-casino__main-title {
        font-size: 28px;
    }
    .page-casino__section-title {
        font-size: 24px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        padding: 10px 15px;
        font-size: 15px;
    }
    .page-casino__game-trial-frame {
        height: 300px;
    }
}