.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.page-terms-conditions__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #017439, #005a2e); /* Brand color gradient */
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-terms-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.page-terms-conditions__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Custom color for main title for impact */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-terms-conditions__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.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.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-terms-conditions__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #e01b1b;
    transform: translateY(-2px);
}

.page-terms-conditions__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #FFFF00;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
    transform: translateY(-2px);
}

.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #1a1a2e; /* Match body background from shared.css */
    color: #ffffff; /* Light text for dark background */
}

.page-terms-conditions__section-title {
    font-size: 2em;
    color: #017439; /* Primary brand color for section titles */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #017439;
    padding-bottom: 10px;
    font-weight: bold;
}

.page-terms-conditions__content-area p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-terms-conditions__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 0;
}

.page-terms-conditions__list li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

.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.4);
    min-width: 200px;
    min-height: 200px;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    padding: 60px 20px;
    background-color: #017439; /* Primary brand color for FAQ background */
    color: #ffffff;
    text-align: center;
}

.page-terms-conditions__faq-section .page-terms-conditions__section-title {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.page-terms-conditions__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.page-terms-conditions__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__faq-item summary {
    list-style: none; /* Hide default marker */
}
.page-terms-conditions__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
    color: #ffffff; /* Ensure text is white */
}

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

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

.page-terms-conditions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-terms-conditions__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Links within content */
.page-terms-conditions__content-area a {
    color: #FFFF00; /* Highlight links with custom yellow */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions__content-area a:hover {
    color: #e01b1b; /* Darker red on hover */
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-terms-conditions__main-title {
        font-size: 2.2em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-terms-conditions__main-title {
        font-size: 2em;
    }

    .page-terms-conditions__intro-text {
        font-size: 1em;
    }

    .page-terms-conditions__cta-group {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        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: 30px 15px;
    }

    .page-terms-conditions__section-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-terms-conditions p,
    .page-terms-conditions li {
        font-size: 0.95em;
    }

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

    .page-terms-conditions__hero-section,
    .page-terms-conditions__content-area,
    .page-terms-conditions__faq-section,
    .page-terms-conditions__container,
    .page-terms-conditions__faq-list,
    .page-terms-conditions__cta-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-terms-conditions__faq-item {
      padding-left: 0;
      padding-right: 0;
    }

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

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

/* Ensure no CSS filter changes image color */
.page-terms-conditions img {
    filter: none;
}