/* style/terms-conditions.css */

/* Base styles for the page content */
.page-terms-conditions {
    font-family: 'Arial', sans-serif;
    background-color: #08160F; /* Custom background color */
    color: #F2FFF6; /* Main text color */
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom before footer */
}

/* Hero Section */
.page-terms-conditions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, header offset handled by body */
    overflow: hidden; /* Prevent content overflow */
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text */
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    max-height: 500px; /* Limit hero image height on desktop */
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-terms-conditions__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    color: #F2FFF6; /* Main text color */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__description {
    font-size: 1.1em;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Content Area */
.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #11271B; /* Card BG for content sections */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
}

.page-terms-conditions__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: #F2FFF6; /* Main text color */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #2E7A4E; /* Border color */
    padding-bottom: 10px;
}

.page-terms-conditions__subsection-title {
    font-size: clamp(1.4em, 2.5vw, 2em);
    color: #A7D9B8; /* Secondary text color */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 500;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    color: #F2FFF6; /* Ensure paragraph text is light */
}

.page-terms-conditions ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #F2FFF6; /* Ensure list item text is light */
}

.page-terms-conditions li {
    margin-bottom: 8px;
    color: #F2FFF6; /* Ensure list item text is light */
}

/* Links */
.page-terms-conditions a {
    color: #57E38D; /* Glow color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
    color: #2AD16F; /* Button top gradient color on hover */
    text-decoration: none;
}

/* Call to Action Buttons */
.page-terms-conditions__cta-wrapper {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-terms-conditions__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6; /* Main text color for button */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-terms-conditions__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* Button top gradient color */
    border: 2px solid #2AD16F;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-secondary:hover {
    background-color: #2AD16F;
    color: #F2FFF6;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Image Gallery (for content images) */
.page-terms-conditions__image-gallery {
    margin: 30px auto;
    text-align: center;
    width: 100%;
    max-width: 800px; /* Limit width for content images */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__gallery-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px 20px;
    background-color: #11271B; /* Card BG for content sections */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-terms-conditions__faq-item {
    background-color: #08160F; /* Background color for FAQ item */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #F2FFF6; /* Main text color */
    cursor: pointer;
    background-color: #0A4B2C; /* Deep Green for summary background */
    transition: background-color 0.3s ease;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-terms-conditions__faq-question:hover {
    background-color: #1E3A2A; /* Divider color on hover */
}

.page-terms-conditions__faq-qtext {
    flex-grow: 1;
}

.page-terms-conditions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow color */
}

.page-terms-conditions__faq-answer {
    padding: 0 25px 15px;
    font-size: 1em;
    color: #A7D9B8; /* Secondary text color */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    max-height: 0; /* Hidden by default for JS fallback */
    overflow: hidden;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 15px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-image {
        max-height: 400px;
    }
}

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

    .page-terms-conditions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-terms-conditions__hero-image-wrapper,
    .page-terms-conditions__hero-content,
    .page-terms-conditions__content-area,
    .page-terms-conditions__image-gallery,
    .page-terms-conditions__faq-section,
    .page-terms-conditions__cta-wrapper,
    .page-terms-conditions__button-group,
    .page-terms-conditions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-terms-conditions__hero-image,
    .page-terms-conditions__gallery-image,
    .page-terms-conditions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

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

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

    .page-terms-conditions__subsection-title {
        font-size: 1.2em;
    }

    .page-terms-conditions__cta-wrapper {
        flex-direction: column; /* Stack buttons vertically */
        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;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ specific mobile adjustments */
    .page-terms-conditions__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-terms-conditions__faq-answer {
        padding: 0 20px 10px;
    }
    .page-terms-conditions__faq-item[open] .page-terms-conditions__faq-answer {
        padding-top: 10px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__main-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.3em;
    }
    .page-terms-conditions__subsection-title {
        font-size: 1.1em;
    }
}