/* style/terms-conditions.css */

/* --- General Page Styling --- */
.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 handled by shared.css */
}

/* --- Hero Section --- */
.page-terms-conditions__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #003366 0%, #001a33 100%); /* Deep st666 blue gradient */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    z-index: 10;
    margin-bottom: 30px;
}

.page-terms-conditions__hero-title {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700; /* Gold accent for title */
}

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

.page-terms-conditions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.3; /* Subtle background image */
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for better text contrast */
}

/* --- Content Area --- */
.page-terms-conditions__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff; /* Light background for readability */
    color: #333333; /* Dark text for contrast on light background */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-top: -50px; /* Slightly overlap hero for visual flow */
    position: relative;
    z-index: 1;
}

.page-terms-conditions__container {
    max-width: 900px;
    margin: 0 auto;
}

.page-terms-conditions__section-title {
    font-size: 2.2em;
    color: #003366; /* st666 blue for main titles */
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FFD700; /* Gold underline */
    padding-bottom: 10px;
}

.page-terms-conditions h3 {
    font-size: 1.6em;
    color: #003366;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-terms-conditions p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1.1em;
}

.page-terms-conditions__highlight {
    font-weight: bold;
    color: #003366; /* Highlight important terms with st666 blue */
}

.page-terms-conditions a {
    color: #003366; /* Link color */
    text-decoration: underline;
}

.page-terms-conditions a:hover {
    color: #FFD700; /* Gold on hover */
}

.page-terms-conditions__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-terms-conditions__list li {
    margin-bottom: 10px;
}

.page-terms-conditions__content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element for max-width */
}

/* --- Buttons --- */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
}

.page-terms-conditions__btn-primary {
    background-color: #FFD700; /* Gold button */
    color: #003366; /* st666 blue text */
    border: 2px solid #FFD700;
}

.page-terms-conditions__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #001a33;
}

.page-terms-conditions__btn-secondary {
    background-color: transparent;
    color: #003366; /* st666 blue text */
    border: 2px solid #003366;
}

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

.page-terms-conditions__cta-group {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
    justify-content: center;
}

/* --- FAQ Section --- */
.page-terms-conditions__faq-section {
    margin-top: 40px;
}

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

.page-terms-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #eaf2f8; /* Light blue background for questions */
    color: #003366;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

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

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

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

.page-terms-conditions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #333333;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

.page-terms-conditions__faq-answer p {
    margin-bottom: 0; /* Remove extra margin for last paragraph in answer */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-title {
        font-size: 2.5em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.8em;
    }
    .page-terms-conditions h3 {
        font-size: 1.4em;
    }
    .page-terms-conditions p,
    .page-terms-conditions__list li {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding: 60px 15px;
    }
    .page-terms-conditions__hero-title {
        font-size: 2em;
    }
    .page-terms-conditions__hero-description {
        font-size: 1em;
    }
    .page-terms-conditions__content-area {
        padding: 40px 15px;
        margin-top: -30px;
    }
    .page-terms-conditions__section-title {
        font-size: 1.6em;
        margin-top: 30px;
    }
    .page-terms-conditions h3 {
        font-size: 1.2em;
    }
    .page-terms-conditions p,
    .page-terms-conditions__list 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;
    }
    
    .page-terms-conditions__section,
    .page-terms-conditions__card,
    .page-terms-conditions__container,
    .page-terms-conditions__hero-section,
    .page-terms-conditions__content-area,
    .page-terms-conditions__faq-section,
    .page-terms-conditions__faq-item {
      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 */
    }

    /* Mobile button responsiveness */
    .page-terms-conditions__cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        align-items: center;
    }
    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        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;
    }
    
    /* Ensure no double padding on content area */
    .page-terms-conditions__content-area {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* FAQ specific mobile adjustments */
    .page-terms-conditions__faq-question {
      padding: 15px 20px;
    }
    .page-terms-conditions__faq-question h3 {
      font-size: 1.1em;
    }
    .page-terms-conditions__faq-answer {
      padding: 0 20px;
    }
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
      padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-terms-conditions__hero-title {
        font-size: 1.8em;
    }
    .page-terms-conditions__section-title {
        font-size: 1.4em;
    }
    .page-terms-conditions h3 {
        font-size: 1.1em;
    }
    .page-terms-conditions p,
    .page-terms-conditions__list li {
        font-size: 0.9em;
    }
}