/* style/terms-conditions.css */

/* Base styles for the terms and conditions page */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background: var(--site-background, #FFFFFF); /* Inherit from shared or default to white */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background-image: url('[GALLERY:hero_bg:1920x1080:online_betting,casino,mobile_gaming,abstract_pattern,ses_chau_au,green_white]');
    background-size: cover;
    background-position: center;
}

.page-terms-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-terms-conditions__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Yellow for prominence */
}

.page-terms-conditions__intro-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

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

.page-terms-conditions__btn-primary {
    background-color: #C30808; /* Custom Register/Login button color */
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #C30808;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-terms-conditions__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

/* Content Area */
.page-terms-conditions__content-area {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for content */
    color: #333333; /* Dark text for light background */
}

.page-terms-conditions__section-title {
    font-size: 2em;
    color: #017439; /* Brand primary color for titles */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-terms-conditions__section-title--white {
    color: #ffffff; /* White text for dark background sections */
}

.page-terms-conditions p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-terms-conditions__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-terms-conditions__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-terms-conditions__sub-list {
    list-style: circle;
    margin-left: 20px;
    margin-top: 5px;
}

.page-terms-conditions__sub-list-item {
    margin-bottom: 5px;
}

.page-terms-conditions__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__content-area a {
    color: #017439; /* Brand primary color for links */
    text-decoration: underline;
}

.page-terms-conditions__content-area a:hover {
    color: #005f2e;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 60px 0;
}

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

.page-terms-conditions__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
}

.page-terms-conditions__faq-question h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 1000px !important; /* Use !important to override potential inline styles or lower specificity */
    padding: 15px 25px 20px;
}

.page-terms-conditions__faq-answer p {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__main-title {
        font-size: 2.2em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }
}

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

    /* Fixed header offset for mobile */
    .page-terms-conditions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    
    .page-terms-conditions__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-terms-conditions__intro-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-terms-conditions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-terms-conditions__content-area,
    .page-terms-conditions__faq-section {
        padding: 40px 0;
    }

    .page-terms-conditions__section-title {
        font-size: 1.6em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__list {
        margin-left: 20px;
    }

    .page-terms-conditions__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-terms-conditions__faq-question h3 {
        font-size: 1.1em;
    }

    .page-terms-conditions__faq-answer {
        padding: 0 20px;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 10px 20px 15px;
    }

    /* Images responsiveness */
    .page-terms-conditions img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container,
    .page-terms-conditions__faq-section,
    .page-terms-conditions__hero-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow-x: hidden; /* Prevent horizontal scroll for content sections */
    }
    .page-terms-conditions__cta-buttons {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important; /* Ensure buttons wrap */
      gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__main-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.4em;
    }
    .page-terms-conditions__hero-section {
        min-height: 300px;
    }
}