/* style/terms-conditions.css */

/* Variables */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f5f5f5;
  --bg-dark: #222222;
  --border-color: #e0e0e0;
}

/* Base Styles for the page content */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
}

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

/* Hero Banner */
.page-terms-conditions .hero-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 80px 0;
  text-align: center;
  color: var(--text-light); /* Light text on dark/gradient background */
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--primary-color);
}

.page-terms-conditions .hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay for text readability */
    z-index: 1;
}

.page-terms-conditions .hero-banner .container {
  position: relative;
  z-index: 2;
}

.page-terms-conditions .hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-terms-conditions .hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-terms-conditions .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-dark); /* Dark text on gold button for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--text-dark); /* Add border for extra contrast */
}

.page-terms-conditions .cta-button:hover {
  background: var(--secondary-color); /* Dark red on hover */
  color: var(--text-light); /* Light text on dark red */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--text-light);
}

/* Content Section */
.page-terms-conditions .content-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-terms-conditions .section-intro {
  text-align: center;
  margin-bottom: 50px;
}

.page-terms-conditions .section-title {
  font-size: 2.5em;
  color: var(--secondary-color); /* Dark red for main titles */
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-terms-conditions .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.page-terms-conditions .terms-item {
  margin-bottom: 40px;
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--primary-color);
}

.page-terms-conditions .item-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-terms-conditions ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-terms-conditions ul li {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-terms-conditions strong {
  color: var(--secondary-color);
}

/* Images within content */
.page-terms-conditions .content-image {
  width: 100%;
  max-width: 800px; /* Limit image width for better flow */
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

/* FAQ Section */
.page-terms-conditions .faq-section {
  background-color: var(--bg-light);
  padding: 60px 0;
}

.page-terms-conditions .faq-list {
  margin-top: 40px;
}

.page-terms-conditions .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-terms-conditions .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color); /* Gold background for questions */
  color: var(--text-dark); /* Dark text on gold for contrast */
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-terms-conditions .faq-question:hover {
  background: var(--secondary-color); /* Dark red on hover */
  color: var(--text-light); /* Light text on dark red */
}

.page-terms-conditions .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
  color: inherit; /* Inherit color from parent */
}

.page-terms-conditions .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease, color 0.3s ease;
  color: inherit; /* Inherit color from parent */
}

.page-terms-conditions .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--text-light); /* Keep light text if question hover changes color */
}

.page-terms-conditions .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
  color: var(--text-dark);
}

.page-terms-conditions .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  border-top: 1px solid var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-terms-conditions .hero-title {
    font-size: 2.8em;
  }
  .page-terms-conditions .hero-description {
    font-size: 1.1em;
  }
  .page-terms-conditions .section-title {
    font-size: 2em;
  }
  .page-terms-conditions .item-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions .hero-banner {
    padding: 60px 0;
  }
  .page-terms-conditions .hero-title {
    font-size: 2.2em;
  }
  .page-terms-conditions .hero-description {
    font-size: 1em;
  }
  .page-terms-conditions .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-terms-conditions .content-section,
  .page-terms-conditions .faq-section {
    padding: 40px 0;
  }
  .page-terms-conditions .section-title {
    font-size: 1.8em;
  }
  .page-terms-conditions .item-title {
    font-size: 1.3em;
  }
  .page-terms-conditions .terms-item {
    padding: 20px;
  }
  .page-terms-conditions ul {
    margin-left: 20px;
  }
  .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 .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.5em;
  }
  .page-terms-conditions .item-title {
    font-size: 1.2em;
  }
  .page-terms-conditions .faq-question h3 {
    font-size: 1em;
  }
  .page-terms-conditions .faq-toggle {
    font-size: 20px;
  }
}