/* style/terms-conditions.css */

/* General page styling */
.page-terms-conditions {
    background-color: #0A0A0A; /* Background color from custom palette */
    color: #FFF6D6; /* Main text color from custom palette, for contrast on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 10px 0 60px 0; /* 10px top padding for header offset, 60px bottom */
    overflow: hidden; /* Ensure no image overflow */
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 40px; /* Space between image and text */
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-terms-conditions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: #FFD36B; /* Auxiliary color for titles */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-terms-conditions__hero-description {
    font-size: 1.1rem;
    color: #FFF6D6;
    margin-bottom: 30px;
}

/* Content Section */
.page-terms-conditions__content-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Consistent background */
}

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

.page-terms-conditions__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #F2C14E; /* Main color for section titles */
    margin-top: 50px;
    margin-bottom: 25px;
    font-weight: bold;
    line-height: 1.3;
}

.page-terms-conditions__paragraph {
    font-size: 1rem;
    color: #FFF6D6; /* Main text color */
    margin-bottom: 20px;
    text-align: justify;
}

.page-terms-conditions__paragraph a {
    color: #FFD36B; /* Link color */
    text-decoration: underline;
}

.page-terms-conditions__paragraph a:hover {
    color: #F2C14E;
}

.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.3);
}

/* Call to Action Buttons */
.page-terms-conditions__cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.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.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width calculation */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-terms-conditions__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button color */
    color: #111111; /* Dark text for light button */
    border: none;
}

.page-terms-conditions__btn-primary:hover {
    background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-terms-conditions__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Main color for text */
    border: 2px solid #F2C14E; /* Border color from custom palette */
}

.page-terms-conditions__btn-secondary:hover {
    background: #F2C14E;
    color: #111111; /* Dark text for filled button */
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* FAQ Section */
.page-terms-conditions__faq-list {
    margin-top: 40px;
}

.page-terms-conditions__faq-item {
    background-color: #111111; /* Card BG color */
    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 25px;
    cursor: pointer;
    background-color: #111111;
    color: #FFF6D6;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1); /* Slight hover effect */
}

.page-terms-conditions__faq-title {
    margin: 0;
    color: #FFF6D6; /* Ensure title color is visible */
    font-size: 1.1rem; /* Match question font size */
    font-weight: bold;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #F2C14E; /* Toggle icon color */
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    transform: rotate(45deg);
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding is 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #111111; /* Consistent with card background */
    color: #FFF6D6;
}

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

.page-terms-conditions__faq-answer .page-terms-conditions__paragraph {
    margin-bottom: 0; /* Remove extra margin for paragraphs inside answer */
}

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

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

    .page-terms-conditions__hero-image {
        margin-bottom: 20px;
    }

    .page-terms-conditions__hero-content {
        padding: 0 15px;
    }

    .page-terms-conditions__main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

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

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

    .page-terms-conditions__container {
        padding: 0 15px;
    }

    .page-terms-conditions__section-title {
        font-size: 1.8rem;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .page-terms-conditions__paragraph {
        font-size: 0.95rem;
    }

    .page-terms-conditions__image {
        margin: 20px auto;
    }

    .page-terms-conditions__cta-group {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
        margin-bottom: 30px;
    }

    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-terms-conditions__faq-title {
        font-size: 1rem;
    }

    .page-terms-conditions__faq-answer {
        padding: 0 20px;
    }

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

    /* Mobile image adaptation */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure contrast for specific elements if needed */
.page-terms-conditions__hero-section h1,
.page-terms-conditions__hero-section p {
    color: #FFF6D6; /* Ensure text is light on dark background */
}
.page-terms-conditions__faq-question {
    color: #FFF6D6;
}
.page-terms-conditions__faq-answer {
    color: #FFF6D6;
}