/* style/resources-w88-access-guide.css */

/* Base styles for the page content, ensuring proper text color for dark body background */
.page-resources-w88-access-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Text color for dark body background */
    background-color: transparent; /* Main content area will inherit body background if not set */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

/* Hero Section */
.page-resources-w88-access-guide__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.page-resources-w88-access-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.page-resources-w88-access-guide__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-resources-w88-access-guide__hero-content {
    max-width: 900px;
    padding: 20px;
    z-index: 1;
}

.page-resources-w88-access-guide__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-resources-w88-access-guide__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Call to Action Buttons */
.page-resources-w88-access-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources-w88-access-guide__btn-primary,
.page-resources-w88-access-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-resources-w88-access-guide__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-resources-w88-access-guide__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

.page-resources-w88-access-guide__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-resources-w88-access-guide__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-resources-w88-access-guide__btn-full-width {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.page-resources-w88-access-guide__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Content Area */
.page-resources-w88-access-guide__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #0d0d0d; /* Slightly lighter dark background for content sections */
    color: #ffffff;
}

.page-resources-w88-access-guide__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-resources-w88-access-guide__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    margin-bottom: 30px;
    text-align: center;
    padding-top: 30px;
}

.page-resources-w88-access-guide__sub-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-resources-w88-access-guide p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-resources-w88-access-guide ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-resources-w88-access-guide li {
    margin-bottom: 8px;
    color: #f0f0f0;
}

.page-resources-w88-access-guide a {
    color: #26A9E0;
    text-decoration: none;
}

.page-resources-w88-access-guide a:hover {
    text-decoration: underline;
}

/* Image with Text Block */
.page-resources-w88-access-guide__image-text-block {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.page-resources-w88-access-guide__image-text-block .page-resources-w88-access-guide__image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    object-fit: cover;
    width: 100%; /* Ensure image fills its flex container */
    height: auto;
}

.page-resources-w88-access-guide__image-text-block .page-resources-w88-access-guide__text-content {
    flex: 2;
    min-width: 300px;
}

/* Video Section */
.page-resources-w88-access-guide__video-section {
    margin-bottom: 40px;
    text-align: center;
}

.page-resources-w88-access-guide__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-resources-w88-access-guide__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    max-width: 100%;
    display: block;
    cursor: pointer;
}

.page-resources-w88-access-guide__video-description {
    font-style: italic;
    color: #cccccc;
    margin-top: 10px;
}

/* Product Grid */
.page-resources-w88-access-guide__product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-resources-w88-access-guide__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources-w88-access-guide__card:hover {
    transform: translateY(-5px);
}

.page-resources-w88-access-guide__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
    margin-left: auto;
    margin-right: auto;
}

.page-resources-w88-access-guide__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-resources-w88-access-guide__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-resources-w88-access-guide__card-title a:hover {
    text-decoration: underline;
}

.page-resources-w88-access-guide__card-description {
    font-size: 0.95em;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Promotion List */
.page-resources-w88-access-guide__promo-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-resources-w88-access-guide__promo-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for promo items */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-align: center;
}

.page-resources-w88-access-guide__promo-image {
    max-width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Support List */
.page-resources-w88-access-guide__support-list {
    list-style-type: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: center;
}

.page-resources-w88-access-guide__support-list li {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: #f0f0f0;
    font-weight: bold;
}

/* FAQ Section */
.page-resources-w88-access-guide__faq-list {
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-resources-w88-access-guide__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-resources-w88-access-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #26A9E0; /* Brand color for question background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-resources-w88-access-guide__faq-question:hover {
    background-color: #1e87c0;
}

.page-resources-w88-access-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources-w88-access-guide__faq-item.active .page-resources-w88-access-guide__faq-toggle {
    transform: rotate(45deg); /* Plus sign to X or minus */
}

.page-resources-w88-access-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
    color: #f0f0f0;
}

.page-resources-w88-access-guide__faq-item.active .page-resources-w88-access-guide__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px;
}

.page-resources-w88-access-guide__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Final CTA */
.page-resources-w88-access-guide__cta-final {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-w88-access-guide__main-title {
        font-size: 2.8em;
    }
    .page-resources-w88-access-guide__section-title {
        font-size: 2em;
    }
    .page-resources-w88-access-guide__sub-title {
        font-size: 1.5em;
    }
    .page-resources-w88-access-guide__hero-section {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .page-resources-w88-access-guide {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-resources-w88-access-guide__hero-section {
        height: 400px;
    }

    .page-resources-w88-access-guide__main-title {
        font-size: 2.2em;
    }

    .page-resources-w88-access-guide__intro-text {
        font-size: 1em;
    }

    .page-resources-w88-access-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-w88-access-guide__btn-primary,
    .page-resources-w88-access-guide__btn-secondary,
    .page-resources-w88-access-guide a[class*="button"],
    .page-resources-w88-access-guide a[class*="btn"] {
        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;
    }
    
    .page-resources-w88-access-guide__cta-buttons,
    .page-resources-w88-access-guide__button-group,
    .page-resources-w88-access-guide__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }

    .page-resources-w88-access-guide__section-title {
        font-size: 1.8em;
    }
    .page-resources-w88-access-guide__sub-title {
        font-size: 1.3em;
    }

    .page-resources-w88-access-guide__content-area {
        padding: 30px 15px;
    }

    .page-resources-w88-access-guide__image-text-block {
        flex-direction: column;
    }
    .page-resources-w88-access-guide__image-text-block .page-resources-w88-access-guide__image {
        min-width: unset;
        width: 100%;
    }
    .page-resources-w88-access-guide__image-text-block .page-resources-w88-access-guide__text-content {
        min-width: unset;
    }

    /* Images responsiveness */
    .page-resources-w88-access-guide img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-w88-access-guide__section,
    .page-resources-w88-access-guide__card,
    .page-resources-w88-access-guide__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video responsiveness */
    .page-resources-w88-access-guide video,
    .page-resources-w88-access-guide__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-w88-access-guide__video-section,
    .page-resources-w88-access-guide__video-container,
    .page-resources-w88-access-guide__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources-w88-access-guide__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources-w88-access-guide__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources-w88-access-guide__product-grid,
    .page-resources-w88-access-guide__promo-list {
        grid-template-columns: 1fr;
    }

    .page-resources-w88-access-guide__card-image,
    .page-resources-w88-access-guide__promo-image {
        height: auto; /* Allow auto height on mobile for better aspect ratio */
        max-height: 250px; /* Cap max height */
    }
}

/* Contrast Fix (Emergency) */
.page-resources-w88-access-guide__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-resources-w88-access-guide__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}