/* style/terms-conditions.css */

/* Base styles for the page content */
.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 */
}

/* Fixed header offset for the first content section */
.page-terms-conditions__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 60px;
    background-color: #017439; /* Brand primary color for hero */
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-terms-conditions__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.page-terms-conditions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 1;
}

/* General section styling */
.page-terms-conditions__section {
    padding: 60px 20px;
}

.page-terms-conditions__content-area {
    max-width: 1000px;
    margin: 0 auto;
}

.page-terms-conditions__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-terms-conditions__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Alternating background colors for sections */
.page-terms-conditions__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark than body for distinction */
    color: #ffffff;
}

.page-terms-conditions__light-bg {
    background-color: #2a2a2a; /* Another dark shade, but distinct */
    color: #ffffff;
}

/* Specific text block styling */
.page-terms-conditions__text-block {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

.page-terms-conditions__text-block p {
    flex: 1;
    min-width: 300px; /* Ensure paragraphs don't become too narrow */
    font-size: 1.1em;
    line-height: 1.8;
}

.page-terms-conditions__text-block h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand primary color for subheadings */
}

/* Add flex basis for faq-list within text-block */
.page-terms-conditions__text-block .page-terms-conditions__faq-list {
    flex: 1;
    min-width: 300px; /* Ensure faq list doesn't become too narrow */
    margin: 0; /* Override margin from general faq-list styling */
}

/* Image alignment within text blocks */
.page-terms-conditions__image-right,
.page-terms-conditions__image-left {
    flex-shrink: 0;
    width: 400px; /* Fixed width for larger screens */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__image-right {
    margin-left: 30px;
}

.page-terms-conditions__image-left {
    margin-right: 30px;
    order: -1; /* Place image on left */
}

/* Ensure images meet minimum size requirements */
.page-terms-conditions__text-block img {
    min-width: 200px;
    min-height: 200px;
}


/* Button styling */
.page-terms-conditions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
    color: #ffffff;
}

.page-terms-conditions__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-terms-conditions__video-cta {
    margin-top: 30px;
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-terms-conditions__video-cta:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
    color: #ffffff;
}

/* Link styling */
.page-terms-conditions a {
    color: #90ee90; /* Lighter green for links on dark background */
    text-decoration: underline;
}

.page-terms-conditions a:hover {
    color: #017439;
    text-decoration: none;
}

/* Video section styling */
.page-terms-conditions__video-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-terms-conditions__video-container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-terms-conditions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-terms-conditions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer; /* Indicate clickability */
}

/* FAQ Section */
.page-terms-conditions__faq-list {
    max-width: 800px;
    /* margin: 40px auto 0; */ /* Removed to allow flex-item behavior */
}

.page-terms-conditions__faq-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #017439;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background-color: #1a1a1a;
    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 content */
    padding: 20px;
}

.page-terms-conditions__faq-answer p {
    margin: 0;
    font-size: 1.1em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-title {
        font-size: 2.8em;
    }
    .page-terms-conditions__section-title {
        font-size: 2em;
    }
    .page-terms-conditions__text-block {
        flex-direction: column;
        align-items: center;
    }
    .page-terms-conditions__image-right,
    .page-terms-conditions__image-left {
        width: 100%;
        max-width: 600px;
        margin: 0;
    }
    .page-terms-conditions__image-left {
        order: initial; /* Reset order for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-terms-conditions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-terms-conditions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
        padding-bottom: 40px;
    }
    .page-terms-conditions__hero-title {
        font-size: 2.2em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1em;
    }
    .page-terms-conditions__section {
        padding: 40px 15px;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary,
.page-terms-conditions a[class*="button"],
.page-terms-conditions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-terms-conditions__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-terms-conditions__video-container,
.page-terms-conditions__video-wrapper,
.page-terms-conditions__section,
.page-terms-conditions__content-area,
.page-terms-conditions__faq-list,
.page-terms-conditions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size on mobile too */
        min-height: 200px !important;
    }
    .page-terms-conditions video,
.page-terms-conditions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-terms-conditions__faq-question h3 {
        font-size: 1em;
    }
    .page-terms-conditions__faq-answer p {
        font-size: 0.95em;
    }
    /* Ensure content blocks don't cause horizontal scroll */
    .page-terms-conditions__text-block {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.5em;
    }
    .page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}