/* style/terms-conditions.css */

/* Base styles for the page content wrapper */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #000; /* Inherited from body, but reinforce for clarity */
}

/* Fixed navigation bar spacing for the first content module */
.page-terms-conditions__padding-top {
    padding-top: 120px; /* Desktop spacing */
}

/* Hero banner for the terms page */
.page-terms-conditions__hero-banner {
    background: linear-gradient(135deg, #0A2463, #1A3A70); /* Dark blue gradient */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 1; /* Ensure it's above other elements if needed */
}

.page-terms-conditions__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for emphasis */
    font-weight: 700;
    line-height: 1.2;
}

.page-terms-conditions__hero-description {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.9;
}

/* General content section */
.page-terms-conditions__content-section {
    padding: 60px 20px;
    background-color: #0d0d0d; /* Slightly lighter dark background for contrast with body */
    color: #ffffff;
}

.page-terms-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-terms-conditions__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for main titles */
    margin-top: 40px;
    margin-bottom: 30px;
    font-weight: 600;
}

.page-terms-conditions__subsection-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 500;
}

.page-terms-conditions__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-terms-conditions__text-block ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-terms-conditions__text-block li {
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-terms-conditions__link {
    color: #FFD700; /* Gold for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-terms-conditions__link:hover {
    color: #ffffff;
}

/* Images */
.page-terms-conditions__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Call to Action Button */
.page-terms-conditions__cta-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #0A2463; /* Dark blue text */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #FFD700;
}

.page-terms-conditions__cta-button:hover {
    background-color: #0A2463; /* Dark blue on hover */
    color: #FFD700; /* Gold text on hover */
    border-color: #FFD700;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
    padding: 60px 0;
    background-color: #0A2463; /* Brand dark blue for FAQ section */
    color: #ffffff;
    margin-top: 40px;
    border-radius: 10px;
}

.page-terms-conditions__faq-section .page-terms-conditions__section-title {
    color: #FFD700; /* Gold for FAQ title */
    text-align: center;
    margin-bottom: 40px;
}

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

/* FAQ container style */
.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ default state - answer hidden */
.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #1A3A70; /* Slightly lighter dark blue for answer background */
  color: #f0f0f0;
}

/* FAQ expanded state - 🚨 Using !important and sufficient max-height to ensure expansion */
.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important, value large enough for any content */
  padding: 20px !important; /* Adjust padding as needed */
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

/* Question style */
.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0A2463; /* Dark blue for question background */
  border: 1px solid #1A3A70;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-terms-conditions__faq-question:hover {
  background: #1A3A70; /* Slightly lighter dark blue on hover */
  border-color: #FFD700; /* Gold border on hover */
}

.page-terms-conditions__faq-question:active {
  background: #0A2463;
}

/* Question title style */
.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold for question text */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.page-terms-conditions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(0deg); /* No rotation for +/- */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-terms-conditions__hero-title {
        font-size: 2.8em;
    }
    .page-terms-conditions__section-title {
        font-size: 2.2em;
    }
    .page-terms-conditions__subsection-title {
        font-size: 1.6em;
    }
    .page-terms-conditions__text-block p,
    .page-terms-conditions__text-block li {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    /* Mobile image responsive adaptation (MUST HAVE) */
    .page-terms-conditions img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      box-sizing: border-box !important;
    }
    
    .page-terms-conditions__hero-banner {
        padding: 60px 15px;
    }

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

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

    .page-terms-conditions__content-section {
        padding: 40px 15px;
    }
    
    .page-terms-conditions__padding-top {
        padding-top: 100px !important; /* Mobile spacing */
    }

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

    .page-terms-conditions__subsection-title {
        font-size: 1.4em;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-terms-conditions__text-block p,
    .page-terms-conditions__text-block ul,
    .page-terms-conditions__text-block li {
        font-size: 0.95em;
    }

    .page-terms-conditions__cta-button {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    .page-terms-conditions__faq-section {
        padding: 40px 15px;
    }

    .page-terms-conditions__faq-section .page-terms-conditions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .page-terms-conditions__faq-item {
        border-radius: 5px;
    }

    .page-terms-conditions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
        border-radius: 5px;
    }
    
    .page-terms-conditions__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-terms-conditions__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    
    .page-terms-conditions__faq-answer {
        padding: 0 15px;
    }
    
    .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
        padding: 15px !important;
    }

    /* All containers with images should also be responsive */
    .page-terms-conditions__container,
    .page-terms-conditions__text-block,
    .page-terms-conditions__faq-list {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}