/* Biến màu sắc */
:root {
    --ggbet-primary-color: #FF8C1A;
    --ggbet-secondary-color: #FFA53A;
    --ggbet-card-bg: #17191F;
    --ggbet-body-bg: #0D0E12;
    --ggbet-text-main: #FFF3E6;
    --ggbet-border-color: #A84F0C;
    --ggbet-glow-color: #FFB04D;
    --ggbet-deep-orange: #D96800;
}

.page-casino {
    font-family: 'Arial', sans-serif;
    color: var(--ggbet-text-main); /* Sử dụng màu chữ chính */
    background-color: var(--ggbet-body-bg); /* Nền tối, chữ sáng */
}

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

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

.page-casino__section-title {
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--ggbet-primary-color);
    line-height: 1.2;
}

.page-casino__section-title--light {
    color: var(--ggbet-text-main);
}

.page-casino__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px auto;
    color: var(--ggbet-text-main);
    line-height: 1.6;
}

.page-casino__content-area p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--ggbet-text-main);
}

.page-casino__content-area p:last-child {
    margin-bottom: 0;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.page-casino__btn-primary {
    background: linear-gradient(180deg, var(--ggbet-secondary-color) 0%, var(--ggbet-deep-orange) 100%);
    color: var(--ggbet-text-main);
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

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

.page-casino__btn-secondary {
    background: transparent;
    border: 2px solid var(--ggbet-primary-color);
    color: var(--ggbet-primary-color);
    margin-left: 20px;
}

.page-casino__btn-secondary:hover {
    background: var(--ggbet-primary-color);
    color: var(--ggbet-text-main);
    transform: translateY(-2px);
}

.page-casino__btn-small {
    padding: 10px 20px;
    font-size: 16px;
}

.page-casino__btn-large {
    padding: 18px 40px;
    font-size: 20px;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming body has --header-offset */
}

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

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

.page-casino__hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
    z-index: 1;
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    margin-top: 120px; /* Offset to appear below header */
}

.page-casino__hero-title {
    font-size: clamp(32px, 4.5vw, 56px); /* Responsive font size */
    font-weight: 800;
    color: var(--ggbet-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-casino__hero-description {
    font-size: 20px;
    color: var(--ggbet-text-main);
    margin-bottom: 30px;
    line-height: 1.6;
}

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

/* About Section */
.page-casino__about-section .page-casino__text-block {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

/* Games Section */
.page-casino__dark-section {
    background-color: var(--ggbet-card-bg);
}

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

.page-casino__game-card {
    background-color: var(--ggbet-body-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--ggbet-border-color);
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--ggbet-primary-color), 0.5);
}

.page-casino__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-casino__game-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ggbet-primary-color);
    margin-bottom: 10px;
    text-align: center;
    padding: 0 15px;
}

.page-casino__game-card-title a {
    color: inherit;
    text-decoration: none;
}

.page-casino__game-card-title a:hover {
    text-decoration: underline;
}

.page-casino__game-card-description {
    font-size: 15px;
    color: var(--ggbet-text-main);
    text-align: center;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-primary {
    margin-top: auto; /* Push button to bottom */
}

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

.page-casino__promo-card {
    background-color: var(--ggbet-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 25px;
    border: 1px solid var(--ggbet-border-color);
}

.page-casino__promo-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-casino__promo-card-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--ggbet-primary-color);
    margin-bottom: 15px;
    text-align: center;
    padding: 0 20px;
}

.page-casino__promo-card-description {
    font-size: 16px;
    color: var(--ggbet-text-main);
    text-align: center;
    padding: 0 20px;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

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

.page-casino__feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-casino__feature-item p {
    font-size: 16px;
    color: var(--ggbet-text-main);
    line-height: 1.6;
}

/* Mobile Section */
.page-casino__mobile-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

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

.page-casino__mobile-subtitle {
    font-size: 32px;
    font-weight: 700;
    color: var(--ggbet-primary-color);
    margin-bottom: 20px;
}

.page-casino__mobile-text p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ggbet-text-main);
    margin-bottom: 30px;
}

.page-casino__app-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-casino__btn-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-casino__btn-icon::before {
    content: '';
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.page-casino__btn-primary.page-casino__btn-icon::before {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFF3E6"%3e%3cpath d="M7.81 2.92C9.5 1.05 12.18 0 14.88 0h.01c2.14 0 4.14.93 5.56 2.56 1.76 1.99 2.14 4.88 1.04 7.27-1.12 2.45-3.4 4.11-6.14 4.11-1.34 0-2.6-.33-3.69-.93-1.09-.6-2.02-1.42-2.79-2.45-.77-1.03-1.39-2.2-1.87-3.47C6.15 7.15 6.43 4.8 7.81 2.92zM15.46 16.51c-1.39.01-2.65-.45-3.64-1.28-1.02-.85-1.84-2.01-2.4-3.32-.57-1.32-.91-2.73-.91-4.21s.34-2.89.91-4.21c.56-1.31 1.38-2.47 2.4-3.32 1-.84 2.25-1.28 3.64-1.28 1.39 0 2.65.45 3.64 1.28 1 .84 1.81 2 2.37 3.32.56 1.32.89 2.73.89 4.21s-.33 2.89-.89 4.21c-.56 1.31-1.37 2.47-2.37 3.32-1 .83-2.25 1.27-3.64 1.28zM12 18c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM12 13c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zM18.8 19.2c-1.1-1.1-2.6-1.8-4.2-1.8h-.01c-1.6 0-3.1.7-4.2 1.8-1.1 1.1-1.8 2.6-1.8 4.2v.01c0 1.6.7 3.1 1.8 4.2 1.1 1.1 2.6 1.8 4.2 1.8h.01c1.6 0 3.1-.7 4.2-1.8 1.1-1.1 1.8-2.6 1.8-4.2v-.01c0-1.6-.7-3.1-1.8-4.2zM12 21c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/%3e%3c/svg%3e');
}

.page-casino__btn-secondary.page-casino__btn-icon::before {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FF8C1A"%3e%3cpath d="M18.3 5.7c-.4-.4-1-.4-1.4 0L12 10.6 7.1 5.7c-.4-.4-1-.4-1.4 0s-.4 1 0 1.4L10.6 12l-4.9 4.9c-.4.4-.4 1 0 1.4s1 .4 1.4 0L12 13.4l4.9 4.9c.4.4 1 .4 1.4 0s.4-1 0-1.4L13.4 12l4.9-4.9c.4-.4.4-1 0-1.4z"/%3e%3c/svg%3e');
}

.page-casino__mobile-image-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
}

.page-casino__mobile-mockup {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--ggbet-border-color);
  overflow: hidden;
  background: var(--ggbet-card-bg);
}
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(--ggbet-primary-color), 0.1);
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--ggbet-text-main);
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--ggbet-primary-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(--ggbet-body-bg);
  border-radius: 0 0 5px 5px;
  color: var(--ggbet-text-main);
}

/* CTA Section */
.page-casino__cta-section {
    text-align: center;
    background: linear-gradient(180deg, var(--ggbet-card-bg) 0%, var(--ggbet-body-bg) 100%);
    border-top: 1px solid var(--ggbet-border-color);
}

.page-casino__cta-content {
    max-width: 900px;
}

.page-casino__cta-content .page-casino__section-title {
    color: var(--ggbet-primary-color);
}

.page-casino__cta-content .page-casino__section-description {
    color: var(--ggbet-text-main);
    margin-bottom: 50px;
}

/* Responsive Styles */

/* Desktop/Tablet common styles for images and containers */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-casino__section,
.page-casino__card,
.page-casino__container,
.page-casino__hero-image-wrap,
.page-casino__mobile-image-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Specific overrides for smaller desktops/tablets (e.g., 1024px) - if needed, not explicitly required by prompt */
@media (max-width: 1024px) {
    .page-casino__section-title {
        font-size: 34px;
    }
    .page-casino__hero-title {
        font-size: clamp(30px, 4vw, 48px);
    }
    .page-casino__hero-description {
        font-size: 18px;
    }
    .page-casino__games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-casino__promo-cards {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    .page-casino__security-features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-casino__mobile-content {
        flex-direction: column;
        text-align: center;
    }
    .page-casino__mobile-text {
        order: 2;
    }
    .page-casino__mobile-image-wrap {
        order: 1;
        margin-bottom: 30px;
    }
    .page-casino__app-buttons {
        justify-content: center;
    }
}

/* Mobile Styles @media (max-width: 768px) */
@media (max-width: 768px) {
    .page-casino__section-padding {
        padding: 40px 0;
    }

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

    .page-casino__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-casino__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-casino__content-area p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* HERO 主图区域 */
    .page-casino__hero-section {
        min-height: 500px;
        padding-top: 10px; /* Small top padding */
    }
    .page-casino__hero-image {
        object-fit: contain !important; /* 禁止 cover 裁切两侧 */
        aspect-ratio: unset !important; /* 保持图片原始比例 */
    }
    .page-casino__hero-content {
        padding: 20px 15px;
        margin-top: 80px; /* Adjust for smaller screens */
    }
    .page-casino__hero-title {
        font-size: clamp(28px, 8vw, 40px); /* 更小的 clamp 范围 */
        margin-bottom: 15px;
    }
    .page-casino__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-casino__cta-buttons {
        flex-direction: column !important; /* 移动端垂直排列 */
        gap: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0 !important; /* Remove margin for vertical stacking */
    }

    /* 产品展示图区域 */
    .page-casino__games-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 列 × 3 行 */
        gap: 20px;
        overflow-x: hidden;
    }
    .page-casino__game-card {
        padding-bottom: 15px;
    }
    .page-casino__game-card-image {
        height: 150px;
    }
    .page-casino__game-card-title {
        font-size: 20px;
    }
    .page-casino__game-card-description {
        font-size: 14px;
        padding: 0 10px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-casino__section-title-wrap,
    .page-casino__article-body {
        max-width: 100% !important;
        text-align: center;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-casino__article-figure {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* 通用图片与容器 */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__hero-image-wrap,
    .page-casino__mobile-image-wrap,
    .page-casino__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Remove padding from containers that wrap sections if section itself has padding */
    .page-casino__section-padding > .page-casino__container {
        padding-left: 0;
        padding-right: 0;
    }

    /* 按钮与按钮容器 */
    .page-casino__cta-buttons,
    .page-casino__app-buttons {
        flex-direction: column !important;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        font-size: 16px;
        padding: 12px 20px;
    }

    /* Promotions Section */
    .page-casino__promo-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-casino__promo-card-title {
        font-size: 22px;
    }

    /* Security Section */
    .page-casino__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile Section */
    .page-casino__mobile-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-casino__mobile-text {
        order: 2;
        text-align: center;
    }
    .page-casino__mobile-image-wrap {
        order: 1;
        margin-bottom: 0;
    }
    .page-casino__mobile-subtitle {
        font-size: 26px;
    }

    /* FAQ Section */
    details.page-casino__faq-item summary.page-casino__faq-question { padding: 15px; }
    .page-casino__faq-qtext { font-size: 15px; }
}