.page-terms-conditions {
    background-color: var(--background-color, #B71C1C); /* Fallback to custom background color */
    color: var(--text-main-color, #FFF5E1); /* Main text color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Ensure body padding-top is handled by shared.css, this section only needs small top padding */
.page-terms-conditions__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as per requirement */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
    background-color: #B71C1C; /* Custom background color for hero */
}

.page-terms-conditions__hero-image-wrapper {
    width: 100%;
    max-height: 400px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-terms-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability if text were overlayed, but text is below */
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    color: #FFF5E1; /* Text color for hero section */
}

.page-terms-conditions__main-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFD86A; /* Gold color for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-terms-conditions__cta-buttons {
    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: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal;
    word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
    color: #7A0E0E; /* Deep Red text for primary button */
    border: 2px solid #F2B544; /* Custom border color */
}

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

.page-terms-conditions__btn-secondary {
    background: #D32F2F; /* Card BG color */
    color: #FFF5E1; /* Text Main color */
    border: 2px solid #F2B544; /* Custom border color */
}

.page-terms-conditions__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #C91F17; /* Main color */
}

.page-terms-conditions__content-section {
    padding: 40px 0;
    background-color: #B71C1C; /* Custom background color */
}

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

.page-terms-conditions__section-title {
    font-size: 32px;
    font-weight: 700;
    color: #FFD86A; /* Gold color for section titles */
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: left;
    border-bottom: 2px solid #F2B544; /* Custom border color */
    padding-bottom: 10px;
}

.page-terms-conditions__text-block {
    background-color: #D32F2F; /* Card BG color */
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #FFF5E1; /* Text Main color */
}

.page-terms-conditions__text-block p {
    margin-bottom: 15px;
    color: #FFF5E1; /* Text Main color */
}

.page-terms-conditions__text-block p:last-child {
    margin-bottom: 0;
}

.page-terms-conditions__sub-title {
    font-size: 24px;
    font-weight: 600;
    color: #FFD86A; /* Gold color for sub-titles */
    margin-top: 0;
    margin-bottom: 20px;
}

.page-terms-conditions__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 25px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-terms-conditions__text-block a:hover {
    color: #FFCC66; /* Glow color on hover */
}

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

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

details.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Custom border color */
  overflow: hidden;
  background: #D32F2F; /* Card BG color */
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF5E1; /* Text Main color */
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question:hover {
  background: #C91F17; /* Main color on hover */
}
.page-terms-conditions__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1; /* Text Main color */
}
.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F4D34D; /* Gold color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
  padding: 0 20px 20px;
  background: #C91F17; /* Main color for answer background */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1; /* Text Main color */
}
details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer p {
    margin-bottom: 0;
}


/* --- Responsive Styles (Mobile) --- */
@media (max-width: 768px) {
    .page-terms-conditions__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        padding-bottom: 20px;
    }

    .page-terms-conditions__hero-image-wrapper {
        max-height: 250px; /* Adjust hero image height for mobile */
    }

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

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

    .page-terms-conditions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .page-terms-conditions__btn-primary,
    .page-terms-conditions__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important; /* Force full width for buttons */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0;
    }

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

    .page-terms-conditions__container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

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

    .page-terms-conditions__text-block {
        padding: 20px;
        margin-bottom: 20px;
    }

    .page-terms-conditions__sub-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .page-terms-conditions__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
    }

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

    details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question { padding: 15px; }
    .page-terms-conditions__faq-qtext { font-size: 15px; }
    details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer { padding: 0 15px 15px; }
}

/* Ensure general image responsiveness for all images within the page content */
.page-terms-conditions img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-terms-conditions__section,
.page-terms-conditions__card,
.page-terms-conditions__container,
.page-terms-conditions__cta-buttons,
.page-terms-conditions__button-group,
.page-terms-conditions__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}