.page-terms-conditions {
    background-color: #121212; /* Matches body background for consistency */
    color: #ffffff; /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-terms-conditions__hero-banner {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: #1A2B42;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--header-offset, 120px) 5% 60px; /* Adjust padding-top with header offset */
    gap: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-terms-conditions__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
}

.page-terms-conditions__hero-title {
    font-size: 48px;
    font-weight: bold;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-terms-conditions__hero-description {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-terms-conditions__hero-button {
    display: inline-block;
    background-color: #FFD700;
    color: #1A2B42;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-terms-conditions__hero-button:hover {
    background-color: #e0b800;
    color: #0d1a2b;
}

.page-terms-conditions__hero-image {
    flex: 1;
    min-width: 400px;
    max-width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-terms-conditions__hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-terms-conditions__content-section {
    padding: 60px 0;
    background-color: #121212;
}

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

.page-terms-conditions__section-block {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #1A2B42; /* Midnight blue background for content blocks */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__section-title {
    font-size: 32px;
    color: #FFD700; /* Gold for section titles */
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 15px;
}

.page-terms-conditions__subsection-title {
    font-size: 24px;
    color: #f0f0f0;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid #FFD700;
    padding-left: 15px;
}

.page-terms-conditions__section-block p {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 15px;
    text-align: justify;
}

.page-terms-conditions__section-block ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-terms-conditions__section-block li {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 8px;
}

.page-terms-conditions__section-block a {
    color: #FFD700; /* Gold for links within content */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions__section-block a:hover {
    color: #e0b800;
}

.page-terms-conditions__contact-button {
    display: inline-block;
    background-color: #FFD700;
    color: #1A2B42;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-terms-conditions__contact-button:hover {
    background-color: #e0b800;
    color: #0d1a2b;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    padding: 40px 0;
    background-color: #121212;
}

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

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

.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 15px;
    opacity: 0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 2000px !important; /* Use !important to ensure priority */
    padding: 20px 15px !important;
    opacity: 1;
    background: #1A2B42; /* Darker background for FAQ answer */
    border-radius: 0 0 5px 5px;
    color: #ffffff;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #2A3E5C; /* Slightly lighter dark blue for questions */
    border: 1px solid #3C5A80;
    border-radius: 5px;
    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: #3C5A80;
    border-color: #4A6B93;
}

.page-terms-conditions__faq-question:active {
    background: #4A6B93;
}

.page-terms-conditions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #FFD700; /* Gold for FAQ questions */
}

.page-terms-conditions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold for toggle icon */
    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-item.active .page-terms-conditions__faq-toggle {
    color: #ffffff; /* White when active */
    transform: rotate(45deg); /* Change from + to X visually */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-banner {
        flex-direction: column;
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
    }

    .page-terms-conditions__hero-content {
        max-width: 100%;
    }

    .page-terms-conditions__hero-image {
        min-width: unset;
        max-width: 100%;
    }

    .page-terms-conditions__hero-title {
        font-size: 40px;
    }

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

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

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

    .page-terms-conditions__hero-banner {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        gap: 20px;
    }

    .page-terms-conditions__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-terms-conditions__hero-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-terms-conditions__content-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-block {
        padding: 20px;
        margin-bottom: 30px;
    }

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

    .page-terms-conditions__subsection-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
        padding-left: 10px;
    }

    .page-terms-conditions__section-block p,
    .page-terms-conditions__section-block li {
        font-size: 15px;
    }

    .page-terms-conditions__contact-button {
        padding: 10px 20px;
        font-size: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-terms-conditions__faq-section {
        padding: 30px 0;
    }

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

    .page-terms-conditions__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        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;
    }

    /* General image responsive rule for content area */
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}