:root {
    /* Custom Colors */
    --primary-color: #113B7A; /* Main color */
    --secondary-color: #1D5FD1; /* Auxiliary color */
    --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-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B; /* Body background */
}

/* Base styles for the casino page */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text for dark body background */
    background-color: var(--deep-navy); /* Ensure body background is respected */
}

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

.page-casino__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-casino__text-block {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

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

/* CTA Button Styles */
.page-casino__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    margin: 10px; /* Space between buttons */
}

.page-casino__cta-button--primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid var(--gold-color);
    box-shadow: 0 0 15px rgba(79, 168, 255, 0.4);
}

.page-casino__cta-button--primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 0 20px rgba(79, 168, 255, 0.7);
    transform: translateY(-2px);
}

.page-casino__cta-button--secondary {
    background: var(--primary-color);
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.page-casino__cta-button--secondary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--deep-navy);
}

.page-casino__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Important for flex child */
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(79, 168, 255, 0.3);
    margin-bottom: 40px; /* Space between image and content */
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-casino__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
    letter-spacing: 1px;
}

.page-casino__hero-description {
    font-size: clamp(1rem, 2.5vw, 1.3rem); /* Responsive font size */
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__hero-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px; /* Space between buttons */
    margin-top: 30px;
}

/* About Section */
.page-casino__about-section {
    padding: 80px 20px;
    background-color: var(--deep-navy);
}

.page-casino__dark-section {
    background-color: var(--card-bg); /* Dark background for these sections */
    padding: 80px 20px;
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 20px;
    background-color: var(--deep-navy);
}

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

.page-casino__game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px;
    border: 1px solid var(--border-color);
}

.page-casino__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__game-title {
    font-size: 1.6rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino__game-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 20px;
}

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

.page-casino__promotion-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    border: 1px solid var(--border-color);
}

.page-casino__promotion-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__promotion-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino__promotion-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Security Section */
.page-casino__security-section {
    padding: 80px 20px;
    background-color: var(--deep-navy);
}

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

.page-casino__feature-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border-color);
}

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

.page-casino__feature-description {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 20px;
}

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

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
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(--primary-color), 0.2); /* Lighter hover for dark background */
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  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(--gold-color);
  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 for answer background */
  border-radius: 0 0 12px 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Latest Blog Section */
.page-casino__latest-blog-section {
    padding: 80px 20px;
    background-color: var(--deep-navy);
}

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

.page-casino__blog-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.page-casino__blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-casino__blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__blog-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__blog-title a {
    color: var(--gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__blog-title a:hover {
    color: var(--glow-color);
}

.page-casino__blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-casino__blog-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
    text-align: right;
    display: block;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-casino__section-title {
        font-size: 2rem;
    }
    .page-casino__hero-image {
        border-radius: 8px;
    }
    .page-casino__game-card,
    .page-casino__promotion-card,
    .page-casino__feature-item,
    .page-casino__blog-card {
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__hero-image {
        margin-bottom: 30px;
    }

    .page-casino__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-casino__hero-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 25px;
    }

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

    .page-casino__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0; /* Remove horizontal margin */
    }

    .page-casino__hero-cta-buttons .page-casino__cta-button {
        margin: 0 auto; /* Center buttons when stacked */
    }

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

    .page-casino__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-casino__text-block {
        font-size: 1rem;
    }

    .page-casino__game-categories,
    .page-casino__promotions-list,
    .page-casino__security-features,
    .page-casino__blog-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-casino__game-card,
    .page-casino__promotion-card,
    .page-casino__feature-item,
    .page-casino__blog-card {
        padding: 20px;
        min-height: auto;
    }

    .page-casino__game-image,
    .page-casino__promotion-image,
    .page-casino__blog-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Allow height to adjust */
        min-height: 200px; /* Minimum height for images */
        object-fit: cover;
    }

    .page-casino__game-title,
    .page-casino__promotion-title {
        font-size: 1.4rem;
    }

    .page-casino__faq-qtext {
        font-size: 1rem;
    }

    details.page-casino__faq-item summary.page-casino__faq-question {
        padding: 15px;
    }

    details.page-casino__faq-item .page-casino__faq-answer {
        padding: 0 15px 15px;
    }
}

/* Ensure content images are at least 200px */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* This rule ensures content area images (selected by any selector under .page-casino) are not smaller than 200px */
.page-casino img:not(.page-casino__logo):not(.page-casino__icon) { /* Exclude small shared icons if any */
    min-width: 200px;
    min-height: 200px;
}