/* style/terms-conditions.css */

/* Base Styles for the page content */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main for dark background */
    background-color: #0A0A0A; /* Background color */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Default to column for mobile first */
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Minimal top padding, relies on body padding-top */
    text-align: center;
    background-color: #0A0A0A;
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    border: 1px solid #3A2A12; /* Border color */
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.page-terms-conditions__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* H1 font size with clamp */
    color: #FFD36B; /* Glow color for main title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-terms-conditions__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFF6D6; /* Text Main */
}

.page-terms-conditions__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons on mobile */
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-terms-conditions__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #ffffff; /* White text for contrast */
    border: none;
}

.page-terms-conditions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
}

.page-terms-conditions__btn-secondary {
    background: #111111; /* Card BG */
    color: #FFD36B; /* Glow color for text */
    border: 2px solid #3A2A12; /* Border color */
}

.page-terms-conditions__btn-secondary:hover {
    transform: translateY(-3px);
    background: #1a1a1a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-terms-conditions__section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 40px 20px;
    background-color: #111111; /* Card BG */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12; /* Border color */
}

.page-terms-conditions__section-title {
    font-size: 2em;
    color: #F2C14E; /* Main color */
    margin-bottom: 25px;
    font-weight: bold;
    border-bottom: 2px solid #3A2A12; /* Border color */
    padding-bottom: 15px;
}

.page-terms-conditions__sub-title {
    font-size: 1.5em;
    color: #FFD36B; /* Glow color */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-terms-conditions__paragraph {
    font-size: 1em;
    margin-bottom: 15px;
    color: #FFF6D6; /* Text Main */
}

.page-terms-conditions__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #FFF6D6; /* Text Main */
}

.page-terms-conditions__list-item {
    margin-bottom: 10px;
    padding-left: 5px;
}

.page-terms-conditions__list-item::marker {
    color: #F2C14E; /* Main color for list bullets */
}

.page-terms-conditions a {
    color: #F2C14E; /* Main color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
    color: #FFD36B; /* Glow color on hover */
}

/* Image with Text Block */
.page-terms-conditions__image-text-block {
    display: flex;
    flex-direction: column; /* Default to column for mobile */
    gap: 30px;
    margin-top: 30px;
    align-items: center;
}

.page-terms-conditions__image-text-block--reverse {
    flex-direction: column; /* Default to column for mobile */
}

.page-terms-conditions__content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    border: 1px solid #3A2A12; /* Border color */
}

.page-terms-conditions__text-content {
    flex: 1;
    color: #FFF6D6; /* Text Main */
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    background-color: #0A0A0A; /* Background color */
    border: none; /* Remove border for FAQ section as it's the outer container */
    padding: 60px 20px;
}

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

.page-terms-conditions__faq-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #111111; /* Card BG */
    color: #FFD36B; /* Glow color */
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
    background-color: #1a1a1a;
}

.page-terms-conditions__faq-title {
    margin: 0;
    color: #FFD36B; /* Glow color */
    font-size: 1.1em;
    flex-grow: 1;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #F2C14E; /* Main color */
}

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

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Text Main */
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value for content */
    padding: 20px !important;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-terms-conditions__hero-section {
        padding: 10px 40px 80px;
    }

    .page-terms-conditions__hero-content {
        position: relative;
        z-index: 1;
    }

    .page-terms-conditions__cta-buttons {
        flex-direction: row; /* Horizontal buttons on desktop */
    }

    .page-terms-conditions__image-text-block {
        flex-direction: row;
        text-align: left;
    }

    .page-terms-conditions__image-text-block--reverse {
        flex-direction: row-reverse;
    }

    .page-terms-conditions__text-content {
        flex: 1;
        padding-left: 30px;
    }

    .page-terms-conditions__image-text-block--reverse .page-terms-conditions__text-content {
        padding-left: 0;
        padding-right: 30px;
    }
}

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

    .page-terms-conditions__hero-section {
        padding: 10px 15px 40px;
    }

    .page-terms-conditions__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }

    .page-terms-conditions__intro-text {
        font-size: 1em;
    }

    /* Images */
    .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__hero-section,
    .page-terms-conditions__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons */
    .page-terms-conditions__cta-button,
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary,
    .page-terms-conditions a[class*="button"],
    .page-terms-conditions 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-terms-conditions__cta-buttons,
    .page-terms-conditions__button-group,
    .page-terms-conditions__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;
        flex-direction: column; /* Stack buttons vertically */
    }

    .page-terms-conditions__section-title {
        font-size: 1.5em;
    }

    .page-terms-conditions__sub-title {
        font-size: 1.2em;
    }

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

    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 15px !important;
    }
}