/* style/index-popular-games-introduction.css */

:root {
    --primary-color: #003366; /* Deep Blue */
    --secondary-color: #FFCC00; /* Gold/Amber */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212;
    --bg-light: #f8f8f8;
    --border-color: #e0e0e0;
}

.page-index-popular-games-introduction {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default text color for dark body background */
    line-height: 1.6;
    padding-top: 0; /* Handled by individual sections */
}

/* ------------------ Video Section ------------------ */
.page-index-popular-games-introduction__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Desktop: Adjust for fixed header */
    background-color: var(--bg-dark);
}

.page-index-popular-games-introduction__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-popular-games-introduction__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-popular-games-introduction__video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games-introduction__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.2);
}

.page-index-popular-games-introduction__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 on parent <a> */
}

.page-index-popular-games-introduction__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-popular-games-introduction__video-link:hover .page-index-popular-games-introduction__video-overlay {
    opacity: 1;
}

.page-index-popular-games-introduction__video-click-hint {
    color: var(--text-light);
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    background: rgba(0, 51, 102, 0.8); /* Using primary color with transparency */
    border-radius: 5px;
    white-space: nowrap;
}

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

.page-index-popular-games-introduction__play-now-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color); /* Gold/Amber for CTA */
    color: var(--text-dark);
    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(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    min-width: 150px;
}

.page-index-popular-games-introduction__play-now-button:hover {
    background: #e6b800; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games-introduction__play-now-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ------------------ General Section Styles ------------------ */
.page-index-popular-games-introduction__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-light); /* Default for dark sections */
}

.page-index-popular-games-introduction__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page-index-popular-games-introduction__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-index-popular-games-introduction__cta-button {
    display: inline-block;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    white-space: normal;
    word-wrap: break-word;
}

.page-index-popular-games-introduction__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-index-popular-games-introduction__btn-primary:hover {
    background: #002244; /* Darker primary */
    border-color: #002244;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games-introduction__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-index-popular-games-introduction__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games-introduction__cta-full-width {
    margin-top: 50px;
    text-align: center;
}

/* ------------------ Title Section ------------------ */
.page-index-popular-games-introduction__title-section {
    background-color: var(--primary-color);
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
}

.page-index-popular-games-introduction__title-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-index-popular-games-introduction__main-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color);
}

.page-index-popular-games-introduction__title-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ------------------ Games Showcase Section ------------------ */
.page-index-popular-games-introduction__games-showcase {
    padding: 80px 20px;
    background-color: var(--bg-dark);
}

.page-index-popular-games-introduction__games-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-index-popular-games-introduction__game-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-light);
}

.page-index-popular-games-introduction__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index-popular-games-introduction__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index-popular-games-introduction__game-card-title {
    font-size: 22px;
    font-weight: bold;
    margin: 20px 20px 10px;
    color: var(--secondary-color);
}

.page-index-popular-games-introduction__game-card-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index-popular-games-introduction__game-card-title a:hover {
    color: #ffd700; /* Brighter gold on hover */
}

.page-index-popular-games-introduction__game-card-description {
    font-size: 15px;
    padding: 0 20px 20px;
    flex-grow: 1;
    color: rgba(255, 255, 255, 0.8);
}

.page-index-popular-games-introduction__game-card-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px 20px;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-index-popular-games-introduction__game-card-button:hover {
    background: #002244;
}

/* ------------------ Mobile Betting Section ------------------ */
.page-index-popular-games-introduction__mobile-betting {
    padding: 80px 20px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-index-popular-games-introduction__mobile-betting .page-index-popular-games-introduction__section-title,
.page-index-popular-games-introduction__mobile-betting .page-index-popular-games-introduction__section-description {
    color: var(--text-dark);
}

.page-index-popular-games-introduction__mobile-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-index-popular-games-introduction__mobile-content {
    flex: 1;
}

.page-index-popular-games-introduction__mobile-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    font-size: 17px;
}

.page-index-popular-games-introduction__mobile-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.page-index-popular-games-introduction__mobile-features li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.page-index-popular-games-introduction__mobile-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-index-popular-games-introduction__mobile-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ------------------ FAQ Section ------------------ */
.page-index-popular-games-introduction__faq-section {
    padding: 80px 20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-index-popular-games-introduction__faq-section .page-index-popular-games-introduction__section-title,
.page-index-popular-games-introduction__faq-section .page-index-popular-games-introduction__section-description {
    color: var(--text-light);
}

.page-index-popular-games-introduction__faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-index-popular-games-introduction__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index-popular-games-introduction__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-light);
}

.page-index-popular-games-introduction__faq-item.active .page-index-popular-games-introduction__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #002244; /* Darker primary when active */
}

.page-index-popular-games-introduction__faq-question:hover {
    background: #002a52;
    border-color: #002a52;
}

.page-index-popular-games-introduction__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--text-light);
}

.page-index-popular-games-introduction__faq-toggle {
    font-size: 28px;
    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; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-index-popular-games-introduction__faq-item.active .page-index-popular-games-introduction__faq-toggle {
    transform: rotate(180deg);
    color: #ffd700;
}

.page-index-popular-games-introduction__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 25px;
    opacity: 0;
    background: rgba(255, 255, 255, 0.05); /* Lighter background for answer on dark theme */
    border-left: 1px solid var(--primary-color);
    border-right: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.page-index-popular-games-introduction__faq-item.active .page-index-popular-games-introduction__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-index-popular-games-introduction__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* ------------------ Brand Section ------------------ */
.page-index-popular-games-introduction__brand-section {
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-index-popular-games-introduction__brand-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-index-popular-games-introduction__brand-section .page-index-popular-games-introduction__section-title {
    color: var(--secondary-color);
}

.page-index-popular-games-introduction__brand-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-popular-games-introduction__brand-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-popular-games-introduction__brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games-introduction__brand-item-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-index-popular-games-introduction__brand-item h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-index-popular-games-introduction__brand-item p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* ------------------ Blog Section ------------------ */
.page-index-popular-games-introduction__blog-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-index-popular-games-introduction__blog-section .page-index-popular-games-introduction__section-title,
.page-index-popular-games-introduction__blog-section .page-index-popular-games-introduction__section-description {
    color: var(--text-dark);
}

.page-index-popular-games-introduction__blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-index-popular-games-introduction__blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-popular-games-introduction__blog-item {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-index-popular-games-introduction__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-popular-games-introduction__blog-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-index-popular-games-introduction__blog-item-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-index-popular-games-introduction__blog-item-title {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 20px 10px;
    color: var(--primary-color);
}

.page-index-popular-games-introduction__blog-item-excerpt {
    font-size: 15px;
    padding: 0 20px;
    color: var(--text-dark);
    flex-grow: 1;
}

.page-index-popular-games-introduction__blog-item-date {
    font-size: 13px;
    color: #666;
    padding: 0 20px 20px;
    margin-top: 15px;
    display: block;
}

/* ------------------ Responsive Design ------------------ */
@media (max-width: 1024px) {
    .page-index-popular-games-introduction__main-title {
        font-size: 38px;
    }
    .page-index-popular-games-introduction__section-title {
        font-size: 32px;
    }
    .page-index-popular-games-introduction__mobile-container {
        flex-direction: column;
        text-align: center;
    }
    .page-index-popular-games-introduction__mobile-image-wrapper {
        margin-top: 40px;
    }
    .page-index-popular-games-introduction__mobile-features {
        text-align: left;
    }
}

@media (max-width: 768px) {
    /* Mobile specific padding-top for fixed header */
    .page-index-popular-games-introduction__video-section {
        padding-top: 10px !important; /* Mobile: Adjust for fixed header */
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 40px;
    }
    
    .page-index-popular-games-introduction__video-container,
    .page-index-popular-games-introduction__video-link,
    .page-index-popular-games-introduction__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-index-popular-games-introduction__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain; /* Ensure video fits within bounds */
    }
    
    .page-index-popular-games-introduction__play-now-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
    }

    .page-index-popular-games-introduction {
        font-size: 15px;
        line-height: 1.6;
    }

    .page-index-popular-games-introduction__title-section,
    .page-index-popular-games-introduction__games-showcase,
    .page-index-popular-games-introduction__mobile-betting,
    .page-index-popular-games-introduction__faq-section,
    .page-index-popular-games-introduction__brand-section,
    .page-index-popular-games-introduction__blog-section {
        padding: 40px 15px;
    }

    .page-index-popular-games-introduction__main-title {
        font-size: 30px;
    }

    .page-index-popular-games-introduction__section-title {
        font-size: 26px;
    }

    .page-index-popular-games-introduction__title-description,
    .page-index-popular-games-introduction__section-description {
        font-size: 16px;
    }

    .page-index-popular-games-introduction__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index-popular-games-introduction__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px;
        padding: 12px 20px;
    }

    .page-index-popular-games-introduction__game-grid,
    .page-index-popular-games-introduction__brand-content,
    .page-index-popular-games-introduction__blog-list {
        grid-template-columns: 1fr;
    }

    .page-index-popular-games-introduction__faq-question {
        padding: 15px 20px;
    }

    .page-index-popular-games-introduction__faq-question h3 {
        font-size: 16px;
    }

    .page-index-popular-games-introduction__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

    .page-index-popular-games-introduction__faq-answer {
        padding: 0 20px;
    }
    .page-index-popular-games-introduction__faq-item.active .page-index-popular-games-introduction__faq-answer {
        padding: 15px 20px !important;
    }
    
    /* Ensure all images are responsive */
    .page-index-popular-games-introduction img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-index-popular-games-introduction__game-card-image,
    .page-index-popular-games-introduction__mobile-image,
    .page-index-popular-games-introduction__brand-item-icon,
    .page-index-popular-games-introduction__blog-item-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Allow height to adjust naturally */
    }
    
    .page-index-popular-games-introduction__game-card-image {
        height: 180px;
    }
    .page-index-popular-games-introduction__blog-item-image {
        height: 180px;
    }

    /* General container padding for mobile to prevent overflow */
    .page-index-popular-games-introduction__title-container,
    .page-index-popular-games-introduction__games-container,
    .page-index-popular-games-introduction__mobile-container,
    .page-index-popular-games-introduction__faq-container,
    .page-index-popular-games-introduction__brand-container,
    .page-index-popular-games-introduction__blog-container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Specific padding for content inside containers */
    .page-index-popular-games-introduction__game-card,
    .page-index-popular-games-introduction__brand-item,
    .page-index-popular-games-introduction__blog-item {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .page-index-popular-games-introduction__main-title {
        font-size: 24px;
    }
    .page-index-popular-games-introduction__section-title {
        font-size: 22px;
    }
    .page-index-popular-games-introduction__title-description,
    .page-index-popular-games-introduction__section-description {
        font-size: 15px;
    }
    .page-index-popular-games-introduction__video-click-hint {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }
}