/* style/terms-conditions.css */
.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
    line-height: 1.6;
    padding-bottom: 60px;
}

/* Fixed Header Offset - desktop */
.page-terms-conditions__hero-section {
    padding-top: var(--header-offset, 120px); 
}

/* HERO Section */
.page-terms-conditions__hero-section {
    background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Main and Auxiliary colors */
    color: #000000; /* Dark text for light gradient background */
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1200px; /* Example display size */
    margin: 30px auto 0;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

.page-terms-conditions__hero-section h1 {
    font-size: clamp(2.5em, 5vw, 3.5em); /* H1 font size with clamp */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #000000; /* Ensure contrast on gradient */
}

.page-terms-conditions__hero-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #333333; /* Ensure contrast */
}

.page-terms-conditions__btn-primary {
    display: inline-block;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #000000; /* Black text for light button */
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Content Area */
.page-terms-conditions__content-area {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.page-terms-conditions__section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #111111; /* Card BG */
    border-radius: 10px;
    border: 1px solid #3A2A12; /* Border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__section h2 {
    font-size: 2.2em;
    color: #F2C14E; /* Main color */
    margin-bottom: 20px;
    border-bottom: 2px solid #3A2A12; /* Border */
    padding-bottom: 10px;
    font-weight: 600;
}

.page-terms-conditions__section h3 {
    font-size: 1.6em;
    color: #FFD36B; /* Auxiliary color */
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 500;
}

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

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

.page-terms-conditions__list li {
    margin-bottom: 8px;
}

.page-terms-conditions__list li strong {
    color: #F2C14E; /* Main color for emphasis */
}

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

.page-terms-conditions__link:hover {
    color: #FFD36B; /* Auxiliary color on hover */
}

/* Image styles */
.page-terms-conditions__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    margin-top: 60px;
    background-color: #111111; /* Card BG */
    border-radius: 10px;
    border: 1px solid #3A2A12; /* Border */
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__faq-section h2 {
    color: #F2C14E;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #3A2A12;
    padding-bottom: 10px;
}

.page-terms-conditions__faq-item {
    margin-bottom: 15px;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    overflow: hidden;
    background-color: #0A0A0A; /* Background for FAQ items */
}

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

.page-terms-conditions__faq-question:hover {
    background-color: #222222;
    color: #F2C14E; /* Main color on hover */
}

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

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

.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 for answers */
    background-color: #0A0A0A; /* Background for answers */
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 1000px !important; /* Important for JS functionality */
    padding: 15px 20px;
}

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

    /* Mobile fixed header offset */
    .page-terms-conditions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile: shared controls this */
    }

    .page-terms-conditions__hero-section h1 {
        font-size: clamp(2em, 8vw, 2.5em);
    }

    .page-terms-conditions__hero-section p {
        font-size: 1em;
    }

    .page-terms-conditions__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important; /* Button responsive */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-terms-conditions__content-area,
    .page-terms-conditions__section,
    .page-terms-conditions__faq-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-terms-conditions__section h2 {
        font-size: 1.8em;
    }

    .page-terms-conditions__section h3 {
        font-size: 1.4em;
    }

    /* Images responsive */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-terms-conditions__content-image {
        min-width: unset;
        min-height: unset;
    }
    .page-terms-conditions__faq-answer {
        padding: 0 15px;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 15px 15px;
    }
}