:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --dark-background: #0a0a0a;
    --light-text: #ffffff;
    --dark-text: #333333;
    --light-gray-bg: #f1f3f5;
    --border-color: #e0e0e0;
}

/* Fixed nav padding for the first content module */
.page-slot-games__first-module {
    padding-top: 120px; /* Desktop: Adjust based on actual fixed header height */
}

.page-slot-games {
    color: var(--light-text); /* Light text on dark body background */
    background-color: var(--dark-background); /* Inherited from shared.css, ensure text contrast */
    font-family: 'Arial', sans-serif;
}

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

.page-slot-games__main-title {
    font-size: 38px;
    font-weight: bold;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.3;
}

.page-slot-games__section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--light-text);
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-slot-games__intro-text,
.page-slot-games__section-description {
    font-size: 17px;
    line-height: 1.7;
    color: #e0e0e0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-slot-games__highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

/* --- Introduction Section --- */
.page-slot-games__introduction-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for this section */
}

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

.page-slot-games__feature-item {
    background: rgba(255, 255, 255, 0.08); /* Light transparent background for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.page-slot-games__feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    max-width: 100%; /* Responsive image */
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__feature-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--light-text);
    margin-bottom: 10px;
}

.page-slot-games__feature-description {
    font-size: 15px;
    color: #cccccc;
    line-height: 1.6;
}

.page-slot-games__cta-wrapper {
    text-align: center;
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-slot-games__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 220px;
}

.page-slot-games__cta-button--primary {
    background: var(--primary-color);
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}

.page-slot-games__cta-button--primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__cta-button--secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-slot-games__cta-button--secondary:hover {
    background: var(--secondary-color);
    color: var(--dark-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Core Games Section --- */
.page-slot-games__core-games-section {
    padding: 60px 0;
    background-color: var(--dark-background);
}

.page-slot-games__game-category {
    margin-bottom: 60px;
}

.page-slot-games__category-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.page-slot-games__game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    justify-content: center;
}

.page-slot-games__game-card--small {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__game-card--small:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.page-slot-games__game-thumbnail {
    width: 100%;
    height: 150px; /* Fixed height for thumbnails */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    max-width: 100%; /* Responsive image */
    display: block;
}

.page-slot-games__game-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--light-text);
    margin-bottom: 8px;
}

.page-slot-games__game-slogan {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.5;
}

.page-slot-games__game-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-slot-games__game-button:hover {
    background: #0056b3;
}

/* --- Promotions Section --- */
.page-slot-games__promotions-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

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

.page-slot-games__promo-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__promo-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.page-slot-games__promo-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Responsive image */
    display: block;
}

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

.page-slot-games__promo-description {
    font-size: 15px;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-slot-games__promo-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-slot-games__promo-button:hover {
    background: #0056b3;
}

/* --- Latest News Section --- */
.page-slot-games__latest-news-section {
    padding: 60px 0;
    background-color: var(--dark-background);
}

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

.page-slot-games__news-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__news-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.page-slot-games__news-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Responsive image */
    display: block;
}

.page-slot-games__news-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-slot-games__news-link {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games__news-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-slot-games__news-excerpt {
    font-size: 15px;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.page-slot-games__news-date {
    font-size: 13px;
    color: #999999;
}

/* --- FAQ Section --- */
.page-slot-games__faq-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

.page-slot-games__faq-list {
    margin-top: 40px;
}

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

.page-slot-games__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;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Light transparent background */
  border-radius: 0 0 5px 5px;
  color: #cccccc;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1); /* Light transparent background */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-slot-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

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

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

.page-slot-games__faq-toggle {
  font-size: 24px;
  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: 28px;
  height: 28px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: 34px;
    }
    .page-slot-games__section-title {
        font-size: 28px;
    }
    .page-slot-games__intro-text,
    .page-slot-games__section-description {
        font-size: 16px;
    }
    .page-slot-games__feature-item,
    .page-slot-games__promo-card,
    .page-slot-games__news-card {
        padding: 20px;
    }
    .page-slot-games__feature-title {
        font-size: 20px;
    }
    .page-slot-games__game-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .page-slot-games__game-thumbnail {
        height: 130px;
    }
    .page-slot-games__game-name {
        font-size: 18px;
    }
    .page-slot-games__promo-thumbnail {
        height: 150px;
    }
    .page-slot-games__promo-title {
        font-size: 20px;
    }
    .page-slot-games__news-thumbnail {
        height: 180px;
    }
    .page-slot-games__news-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-slot-games__first-module {
        padding-top: 100px !important; /* Mobile: Adjust based on actual mobile fixed header height */
    }
    .page-slot-games__container {
        padding: 0 15px;
    }
    .page-slot-games__main-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .page-slot-games__section-title {
        font-size: 24px;
        margin-top: 40px;
        margin-bottom: 15px;
    }
    .page-slot-games__intro-text,
    .page-slot-games__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-slot-games__features-grid,
    .page-slot-games__promo-grid,
    .page-slot-games__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-slot-games__feature-item,
    .page-slot-games__promo-card,
    .page-slot-games__news-card {
        padding: 15px;
    }
    .page-slot-games__feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    .page-slot-games__feature-title {
        font-size: 18px;
    }
    .page-slot-games__feature-description {
        font-size: 14px;
    }
    .page-slot-games__cta-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__cta-button {
        font-size: 16px;
        padding: 12px 25px;
        min-width: unset;
        width: 100%;
    }
    .page-slot-games__category-title {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-slot-games__game-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .page-slot-games__game-card--small {
        padding: 15px;
    }
    .page-slot-games__game-thumbnail {
        height: 100px;
        margin-bottom: 10px;
    }
    .page-slot-games__game-name {
        font-size: 16px;
    }
    .page-slot-games__game-slogan {
        font-size: 13px;
        margin-bottom: 10px;
    }
    .page-slot-games__game-button {
        padding: 8px 15px;
        font-size: 14px;
    }
    .page-slot-games__promo-thumbnail {
        height: 120px;
    }
    .page-slot-games__promo-title {
        font-size: 18px;
    }
    .page-slot-games__promo-description {
        font-size: 14px;
    }
    .page-slot-games__promo-button {
        padding: 8px 20px;
        font-size: 14px;
    }
    .page-slot-games__news-thumbnail {
        height: 150px;
    }
    .page-slot-games__news-title {
        font-size: 16px;
    }
    .page-slot-games__news-excerpt {
        font-size: 14px;
    }
    .page-slot-games__news-date {
        font-size: 12px;
    }
    .page-slot-games__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-slot-games__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-slot-games__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-slot-games__faq-answer {
        padding: 0 15px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure all images are responsive and prevent overflow */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__feature-item,
    .page-slot-games__game-card--small,
    .page-slot-games__promo-card,
    .page-slot-games__news-card,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific override for container padding to avoid double padding */
    .page-slot-games__container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-slot-games__introduction-section .page-slot-games__container,
    .page-slot-games__core-games-section .page-slot-games__container,
    .page-slot-games__promotions-section .page-slot-games__container,
    .page-slot-games__latest-news-section .page-slot-games__container,
    .page-slot-games__faq-section .page-slot-games__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}