/* 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 backgrounds */
    background-color: #f8f8f8;
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    padding: 80px 0 40px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background-color: #1E90FF; /* Auxiliary color for hero background */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.page-terms-conditions__hero-section .page-terms-conditions__container {
    position: relative;
    z-index: 2;
}

.page-terms-conditions__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold brand color for title */
    line-height: 1.2;
}

.page-terms-conditions__hero-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-terms-conditions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

/* CTA Buttons */
.page-terms-conditions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-terms-conditions__cta-buttons--center {
    margin-top: 50px;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
    background-color: #FFD700;
    color: #1E90FF; /* Dark blue text on gold button for contrast */
    border: 2px solid #FFD700;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #e6c200;
    color: #156da3;
}

.page-terms-conditions__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text on transparent/dark background */
    border: 2px solid #FFD700;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #FFD700;
    color: #1E90FF;
}

/* Content Area */
.page-terms-conditions__content-area {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-terms-conditions__section-title {
    font-size: 2em;
    color: #1E90FF; /* Dark blue for main section titles */
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFD700;
    margin-top: 40px;
}

.page-terms-conditions__section-title--white {
    color: #ffffff;
    border-bottom-color: #FFD700;
}

.page-terms-conditions__text-block {
    margin-bottom: 20px;
    font-size: 1em;
    line-height: 1.7;
    color: #333333;
}

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

/* FAQ Section */
.page-terms-conditions__faq-section {
    position: relative;
    padding: 80px 0;
    background-color: #1E90FF; /* Dark blue background for FAQ */
    color: #ffffff;
    overflow: hidden;
}

.page-terms-conditions__faq-section .page-terms-conditions__container {
    position: relative;
    z-index: 2;
}

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

.page-terms-conditions__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-terms-conditions__faq-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.1em;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD700; /* Gold for toggle icon */
}

.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;
    color: #f0f0f0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-terms-conditions__faq-answer p {
    margin-bottom: 10px;
    color: #f0f0f0;
}

.page-terms-conditions__faq-answer a {
    color: #FFD700;
    text-decoration: underline;
}

.page-terms-conditions__faq-answer a:hover {
    color: #e6c200;
}

.page-terms-conditions__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-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;
    }

    .page-terms-conditions__hero-section {
        padding: 60px 0 30px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-terms-conditions__hero-title {
        font-size: 1.8em;
    }

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

    .page-terms-conditions__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 0.95em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-terms-conditions__content-area,
    .page-terms-conditions__faq-section {
        padding: 40px 0;
    }

    .page-terms-conditions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    .page-terms-conditions__hero-image-wrapper,
    .page-terms-conditions__content-image,
    .page-terms-conditions__bg-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

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

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