/* style/blog-open88-promotions-tips.css */

/* Custom Colors */
:root {
    --open88-primary-color: #11A84E;
    --open88-secondary-color: #22C768;
    --open88-button-gradient-start: #2AD16F;
    --open88-button-gradient-end: #13994A;
    --open88-card-bg: #11271B;
    --open88-background: #08160F;
    --open88-text-main: #F2FFF6;
    --open88-text-secondary: #A7D9B8;
    --open88-border: #2E7A4E;
    --open88-glow: #57E38D;
    --open88-gold: #F2C14E;
    --open88-divider: #1E3A2A;
    --open88-deep-green: #0A4B2C;
    --text-color-light-bg: #333333; /* For light backgrounds */
    --text-color-dark-bg: #F2FFF6; /* For dark backgrounds */
}

/* Base styles for the page content, assuming body has --header-offset padding-top */
.page-blog-open88-promotions-tips {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark-bg); /* Default text color for the page, assuming a dark body background from shared.css */
    background-color: var(--open88-background); /* Override for specific sections if needed, but main background is from shared.css */
}

/* Hero Section */
.page-blog-open88-promotions-tips__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    box-sizing: border-box;
    text-align: center;
    background-color: var(--open88-background); /* Ensure hero background is dark */
    overflow: hidden; /* Prevent content overflow */
}

.page-blog-open88-promotions-tips__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height of the image wrapper */
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.page-blog-open88-promotions-tips__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog-open88-promotions-tips__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    color: var(--open88-text-main);
}

.page-blog-open88-promotions-tips__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--open88-text-main);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-blog-open88-promotions-tips__intro-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--open88-text-secondary);
}

.page-blog-open88-promotions-tips__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-blog-open88-promotions-tips__btn-primary,
.page-blog-open88-promotions-tips__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
}

.page-blog-open88-promotions-tips__btn-primary {
    background: var(--open88-button-gradient-start); /* Fallback for browsers without gradient */
    background: linear-gradient(180deg, var(--open88-button-gradient-start) 0%, var(--open88-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog-open88-promotions-tips__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog-open88-promotions-tips__btn-secondary {
    background: transparent;
    color: var(--open88-text-main);
    border: 2px solid var(--open88-border);
}

.page-blog-open88-promotions-tips__btn-secondary:hover {
    background-color: rgba(var(--open88-primary-color), 0.1);
    transform: translateY(-2px);
}

.page-blog-open88-promotions-tips__cta-buttons--bottom {
    margin-top: 50px;
}

/* Content Area */
.page-blog-open88-promotions-tips__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    box-sizing: border-box;
    background-color: var(--open88-background); /* Ensure content area background is dark */
    color: var(--open88-text-main);
}

.page-blog-open88-promotions-tips__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 25px;
    color: var(--open88-text-main);
    text-align: center;
}

.page-blog-open88-promotions-tips__paragraph {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--open88-text-secondary);
}

.page-blog-open88-promotions-tips__keyword {
    font-weight: 600;
    color: var(--open88-primary-color);
}

.page-blog-open88-promotions-tips__paragraph a {
    color: var(--open88-gold);
    text-decoration: underline;
}
.page-blog-open88-promotions-tips__paragraph a:hover {
    color: var(--open88-glow);
}

/* Promo Types Section */
.page-blog-open88-promotions-tips__promo-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.page-blog-open88-promotions-tips__card {
    background-color: var(--open88-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--open88-border);
}

.page-blog-open88-promotions-tips__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
}

.page-blog-open88-promotions-tips__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--open88-text-main);
    padding: 0 15px;
}

.page-blog-open88-promotions-tips__card-text {
    font-size: 0.95rem;
    color: var(--open88-text-secondary);
    padding: 0 15px;
}

/* Guide Section */
.page-blog-open88-promotions-tips__guide-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.page-blog-open88-promotions-tips__guide-item {
    background-color: var(--open88-card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--open88-border);
}

.page-blog-open88-promotions-tips__guide-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--open88-primary-color);
}

.page-blog-open88-promotions-tips__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* List Section */
.page-blog-open88-promotions-tips__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-blog-open88-promotions-tips__list-item {
    background-color: var(--open88-card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--open88-primary-color);
}

.page-blog-open88-promotions-tips__list-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--open88-text-main);
}

/* FAQ Section */
.page-blog-open88-promotions-tips__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog-open88-promotions-tips__faq-item {
    background-color: var(--open88-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--open88-border);
}

.page-blog-open88-promotions-tips__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: var(--open88-deep-green);
    color: var(--open88-text-main);
    font-size: 1.15rem;
    font-weight: 600;
    border-bottom: 1px solid var(--open88-divider);
    list-style: none; /* For details/summary */
}

/* Hide default marker for details/summary */
.page-blog-open88-promotions-tips__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-blog-open88-promotions-tips__faq-item summary {
    list-style: none;
}

.page-blog-open88-promotions-tips__faq-qtext {
    flex-grow: 1;
}

.page-blog-open88-promotions-tips__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--open88-glow);
}

.page-blog-open88-promotions-tips__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: var(--open88-text-secondary);
    background-color: var(--open88-card-bg);
}

/* Ensure paragraph inside faq answer has correct color */
.page-blog-open88-promotions-tips__faq-answer .page-blog-open88-promotions-tips__paragraph {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog-open88-promotions-tips__content-area {
        padding: 40px 15px;
    }
    .page-blog-open88-promotions-tips__promo-types,
    .page-blog-open88-promotions-tips__guide-section {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-blog-open88-promotions-tips__hero-section {
        padding: 10px 15px 40px;
    }
    .page-blog-open88-promotions-tips__main-title {
        font-size: 2rem;
    }
    .page-blog-open88-promotions-tips__intro-text {
        font-size: 1rem;
    }
    .page-blog-open88-promotions-tips__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-blog-open88-promotions-tips__btn-primary,
    .page-blog-open88-promotions-tips__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-blog-open88-promotions-tips__section-title {
        font-size: 1.8rem;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-blog-open88-promotions-tips__paragraph {
        font-size: 0.95rem;
    }
    .page-blog-open88-promotions-tips__card-title,
    .page-blog-open88-promotions-tips__guide-title,
    .page-blog-open88-promotions-tips__list-title {
        font-size: 1.2rem;
    }

    /* Mobile image responsiveness */
    .page-blog-open88-promotions-tips img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness (if any, though none on this page) */
    .page-blog-open88-promotions-tips video,
    .page-blog-open88-promotions-tips__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-blog-open88-promotions-tips__video-section,
    .page-blog-open88-promotions-tips__video-container,
    .page-blog-open88-promotions-tips__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-blog-open88-promotions-tips__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* General container responsiveness for mobile */
    .page-blog-open88-promotions-tips__section,
    .page-blog-open88-promotions-tips__card,
    .page-blog-open88-promotions-tips__container,
    .page-blog-open88-promotions-tips__promo-types,
    .page-blog-open88-promotions-tips__guide-section,
    .page-blog-open88-promotions-tips__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Color Contrast Enforcement */
.page-blog-open88-promotions-tips__dark-bg {
  color: var(--open88-text-main); /* Deep green background, light text */
  background-color: var(--open88-deep-green);
}

.page-blog-open88-promotions-tips__light-bg {
  color: var(--text-color-light-bg); /* Placeholder for light background, dark text */
  background-color: #ffffff;
}

/* Specific text color for links in dark background */
.page-blog-open88-promotions-tips a {
    color: var(--open88-gold); /* Gold for links on dark background */
}
.page-blog-open88-promotions-tips a:hover {
    color: var(--open88-glow);
}

.page-blog-open88-promotions-tips__faq-question {
    color: var(--open88-text-main); /* Ensure FAQ question text is light */
}
.page-blog-open88-promotions-tips__faq-answer {
    color: var(--open88-text-secondary); /* Ensure FAQ answer text is secondary light */
}