/* style/terms-conditions.css */
.page-terms-conditions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light body background */
    background-color: #f4f4f4;
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, #FFD700, #000080);
    color: #ffffff;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    overflow: hidden;
}

.page-terms-conditions__main-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    line-height: 1.2;
}

.page-terms-conditions__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    color: #f0f0f0;
}

.page-terms-conditions__hero-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Content Section */
.page-terms-conditions__content-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for content */
    border-radius: 15px;
    margin: 30px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__section-title {
    font-size: 32px;
    color: #000080;
    margin-bottom: 25px;
    text-align: left;
    border-bottom: 3px solid #FFD700;
    padding-bottom: 10px;
    margin-top: 40px;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333333;
}

.page-terms-conditions ul,
.page-terms-conditions ol {
    margin-bottom: 15px;
    padding-left: 25px;
    font-size: 16px;
    color: #333333;
}

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

.page-terms-conditions a {
    color: #000080;
    text-decoration: underline;
}

.page-terms-conditions a:hover {
    color: #FFD700;
}

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

/* FAQ Section */
.page-terms-conditions__faq-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    border-radius: 15px;
    margin: 30px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-terms-conditions__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-terms-conditions__faq-question:hover {
    background: #f5f5f5;
}

.page-terms-conditions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none;
}

.page-terms-conditions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #000080;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: #fdfdfd;
    color: #555555;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    border-top: 1px solid #eee;
}

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

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

    .page-terms-conditions__section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-terms-conditions__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-terms-conditions__section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .page-terms-conditions p,
    .page-terms-conditions ul,
    .page-terms-conditions ol,
    .page-terms-conditions li {
        font-size: 15px;
    }

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

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

    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-terms-conditions__hero-image {
        border-radius: 5px;
    }

    .page-terms-conditions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-terms-conditions__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }

    .page-terms-conditions__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

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

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

@media (max-width: 480px) {
    .page-terms-conditions__main-title {
        font-size: 26px;
    }

    .page-terms-conditions__section-title {
        font-size: 22px;
    }

    .page-terms-conditions p,
    .page-terms-conditions ul,
    .page-terms-conditions ol,
    .page-terms-conditions li {
        font-size: 14px;
    }
}