/* General styles for the casino page */
.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); /* From shared.css */
}

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

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

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

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

.page-casino__section-intro {
    font-size: 18px;
    color: var(--text-secondary); /* Lighter text for intros */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Buttons */
.page-casino__btn-primary {
    display: inline-block;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Custom button gradient */
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-casino__btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--glow); /* Glow color for secondary button text */
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid var(--glow); /* Glow color for border */
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-casino__btn-secondary:hover {
    background-color: var(--glow);
    color: var(--deep-navy); /* Dark text on glow background */
    border-color: var(--glow);
}

/* Cards */
.page-casino__card {
    background-color: var(--card-bg); /* Custom card background */
    border: 1px solid var(--border-color); /* Custom border color */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in a grid have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: var(--text-main);
}

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

.page-casino__card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
    object-fit: cover;
    min-width: 200px; /* Ensure card images are not too small */
    min-height: 200px;
}

.page-casino__card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold); /* Gold for card titles */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-casino__card-text {
    font-size: 16px;
    color: var(--text-secondary); /* Secondary text color for card text */
    margin-bottom: 15px;
    flex-grow: 1; /* Allow text to grow and push button to bottom */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.page-casino__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop hero */
    display: block;
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-casino__main-title {
    font-size: clamp(36px, 5vw, 56px); /* Clamp for responsive H1 */
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-casino__description {
    font-size: clamp(16px, 2vw, 20px);
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

.page-casino__feature-card .page-casino__card-text {
    margin-bottom: 0; /* No button in feature card, so remove bottom margin */
}

/* Game Categories Section */
.page-casino__game-category {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.page-casino__game-category:last-child {
    margin-bottom: 0;
}

.page-casino__game-category--reverse {
    flex-direction: row-reverse;
}

.page-casino__game-content {
    flex: 1;
    padding: 20px 0;
}

.page-casino__game-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-casino__game-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

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

.page-casino__game-description {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-casino__game-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-casino__game-list li {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-casino__game-list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--glow);
    font-size: 18px;
    line-height: 1;
}

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

.page-casino__promotions-grid .page-casino__card img {
     /* Fixed height for promo images */
    width: 100%;
    object-fit: cover;
}

/* How to Join Section */
.page-casino__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__step-card {
    padding-top: 40px;
    position: relative;
    background-color: var(--card-bg);
}

.page-casino__step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--glow); /* Glow color for step number background */
    color: var(--deep-navy); /* Dark text on glow background */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border: 3px solid var(--deep-navy); /* Dark border for contrast */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__step-card .page-casino__card-text {
    margin-bottom: 20px;
}

.page-casino__download-app {
    text-align: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 40px;
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__download-title {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 15px;
}

.page-casino__download-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Responsible Gaming Section */
.page-casino__responsible-content {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: center;
    font-size: 17px;
    color: var(--text-secondary);
}

.page-casino__responsible-content p {
    margin-bottom: 20px;
}

.page-casino__responsible-content a {
    color: var(--glow);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-casino__responsible-content a:hover {
    color: #ffffff;
}

/* FAQ Section */
.page-casino__faq-list {
    margin-top: 40px;
}

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color); /* Custom border color */
  overflow: hidden;
  background: var(--card-bg); /* Custom card background */
  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(--text-main-rgb), 0.05); /* Slightly lighter hover for dark background */
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  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); /* Gold for the toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}