/* style/index.css */
.page-index {
    color: #ffffff; /* Body background is dark, so text should be light */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Main content background transparent to show body background */
}

.page-index__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #000000; /* Ensure this section is dark */
}

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

.page-index__video-link {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4); /* Gold shadow on hover */
}

.page-index__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.page-index__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    object-fit: cover;
    pointer-events: none; /* Prevent video controls from blocking click event */
}

.page-index__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.page-index__video-link:hover .page-index__video-overlay {
    opacity: 1;
}

.page-index__video-click-hint {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.8); /* Gold hint background */
    border-radius: 5px;
    white-space: nowrap;
}

.page-index__video-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.page-index__play-now-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Primary brand color */
    color: #000000; /* Dark text for contrast on gold */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-index__play-now-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.page-index__play-now-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.page-index__hero-section {
    background-image: url('[GALLERY:hero:1920x1080:casino_bl555,main_banner,dynamic_casino_games,gold_red]');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: #ffffff; /* Light text on potentially dark/rich background */
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.page-index__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: -1;
}

.page-index__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-index__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700; /* Gold title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

.page-index__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    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);
    border: 2px solid transparent;
}

.page-index__cta-button--primary {
    background: #FFD700; /* Gold button */
    color: #000000; /* Dark text on gold */
}

.page-index__cta-button--primary:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.page-index__cta-button--secondary {
    background: #8B0000; /* Dark red button */
    color: #ffffff; /* Light text on dark red */
    border-color: #FFD700; /* Gold border */
}

.page-index__cta-button--secondary:hover {
    background: #6a0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

.page-index__overview-section, 
.page-index__games-section, 
.page-index__faq-section, 
.page-index__brand-section, 
.page-index__blog-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    color: #ffffff; /* Light text on dark body background */
}

.page-index__overview-section {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-index__overview-container, 
.page-index__games-container, 
.page-index__faq-container, 
.page-index__brand-container, 
.page-index__blog-container {
    max-width: 1160px;
    margin: 0 auto;
}

.page-index__overview-title, 
.page-index__games-title, 
.page-index__faq-title, 
.page-index__brand-title, 
.page-index__blog-title {
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: #FFD700; /* Gold titles */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-index__overview-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.page-index__overview-content p {
    font-size: 17px;
    text-align: justify;
    color: #f0f0f0;
}

.page-index__overview-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-index__games-intro {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: #e0e0e0;
}

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

.page-index__game-card {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle gold border */
}

.page-index__game-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-index__game-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__game-card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-index__game-card-title a {
    color: #FFD700; /* Gold links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__game-card-title a:hover {
    color: #e6c200;
    text-decoration: underline;
}

.page-index__game-card-description {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 20px;
    text-align: justify;
}

.page-index__game-card-button {
    display: inline-block;
    padding: 10px 25px;
    background: #8B0000; /* Dark red button */
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid #FFD700;
}

.page-index__game-card-button:hover {
    background: #6a0000;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-index__faq-section {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-index__faq-list {
  margin-top: 30px;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle gold border */
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1); /* Slightly lighter dark background for question */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold question text */
  pointer-events: none;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold toggle icon */
  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: 30px;
  height: 30px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: #8B0000; /* Dark red when active */
}

.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #f0f0f0; /* Light text for answers */
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for answer */
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Sufficiently large max-height */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-index__faq-answer p {
    margin: 0;
    font-size: 16px;
    text-align: justify;
}

/* Brand Section */
.page-index__brand-section {
    background-color: rgba(139, 0, 0, 0.1); /* Light red transparent background */
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
}

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

.page-index__brand-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-index__brand-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__brand-item-title {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700; /* Gold title */
    margin-bottom: 15px;
    text-align: center;
}

.page-index__brand-item-description {
    font-size: 16px;
    color: #e0e0e0;
    text-align: justify;
}

/* Blog Section */
.page-index__blog-section {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-index__blog-intro {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: #e0e0e0;
}

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

.page-index__blog-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-index__blog-item:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-index__blog-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 15px;
}

.page-index__blog-link {
    display: block;
    padding: 0 20px;
    text-decoration: none;
    color: inherit;
}

.page-index__blog-item-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFD700; /* Gold title */
    transition: color 0.3s ease;
}

.page-index__blog-link:hover .page-index__blog-item-title {
    color: #e6c200;
}

.page-index__blog-item-excerpt {
    font-size: 15px;
    color: #c0c0c0;
    margin-bottom: 15px;
    padding: 0 20px;
    text-align: justify;
}

.page-index__blog-item-date {
    display: block;
    font-size: 14px;
    color: #8B0000; /* Dark red date */
    text-align: right;
    padding: 0 20px 20px;
}

.page-index__view-all-button-container {
    text-align: center;
    margin-top: 50px;
}

.page-index__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background: #FFD700; /* Gold button */
    color: #000000; /* Dark text on gold */
    text-decoration: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__view-all-button:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__main-title {
        font-size: 40px;
    }
    .page-index__overview-title, 
    .page-index__games-title, 
    .page-index__faq-title, 
    .page-index__brand-title, 
    .page-index__blog-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-index {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-index__video-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-index__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    
    .page-index__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-index__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 4px;
        overflow: hidden !important;
    }
    
    .page-index__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
        object-fit: contain; 
    }
    
    .page-index__video-cta {
        margin-top: 20px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .page-index__play-now-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 30px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-index__video-click-hint {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }

    .page-index__hero-section {
        padding: 60px 15px;
    }

    .page-index__main-title {
        font-size: 32px;
    }

    .page-index__hero-description {
        font-size: 17px;
    }

    .page-index__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-index__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-index__overview-section, 
    .page-index__games-section, 
    .page-index__faq-section, 
    .page-index__brand-section, 
    .page-index__blog-section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-index__overview-title, 
    .page-index__games-title, 
    .page-index__faq-title, 
    .page-index__brand-title, 
    .page-index__blog-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-index__overview-content {
        gap: 20px;
    }

    .page-index__overview-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-index__games-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-index__game-card {
        padding: 20px;
    }

    .page-index__game-card-image {
        height: 150px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-index__game-card-title {
        font-size: 20px;
    }

    .page-index__faq-question {
      padding: 15px;
      flex-wrap: wrap;
    }
    
    .page-index__faq-question h3 {
      font-size: 15px;
      margin-bottom: 0;
      width: calc(100% - 40px);
    }
    
    .page-index__faq-toggle {
      margin-left: 10px;
      width: 24px;
      height: 24px;
      font-size: 20px;
    }
    
    .page-index__faq-answer {
      padding: 0 15px;
    }
    
    .page-index__faq-item.active .page-index__faq-answer {
      padding: 15px !important;
    }

    .page-index__brand-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index__brand-image {
        height: 180px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-index__blog-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-index__blog-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index__blog-item-image {
        height: 180px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-index__blog-link {
        padding: 0 15px;
    }

    .page-index__blog-item-title {
        font-size: 18px;
    }

    .page-index__blog-item-excerpt {
        font-size: 14px;
        padding: 0 15px;
    }

    .page-index__blog-item-date {
        padding: 0 15px 15px;
    }

    .page-index__view-all-button-container {
        margin-top: 30px;
    }

    .page-index__view-all-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px;
        padding: 12px 25px;
    }

    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-index__section, .page-index__card, .page-index__container, .page-index__game-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-index__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-index__cta-button {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-index__main-title {
        font-size: 28px;
    }
    .page-index__overview-title, 
    .page-index__games-title, 
    .page-index__faq-title, 
    .page-index__brand-title, 
    .page-index__blog-title {
        font-size: 24px;
    }
    .page-index__hero-description {
        font-size: 16px;
    }
    .page-index__game-card-title {
        font-size: 18px;
    }
    .page-index__game-card-description {
        font-size: 14px;
    }
    .page-index__brand-item-title {
        font-size: 20px;
    }
    .page-index__brand-item-description {
        font-size: 14px;
    }
    .page-index__blog-item-title {
        font-size: 16px;
    }
}