/* style/ththao.css */

/* Base styles for the page-ththao scope */
.page-ththao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background sections */
  background-color: #f5f5f5; /* A light background for main content area */
}

/* Color palette from custom config */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B;
}

/* General section styling */
.page-ththao__section {
  padding: 60px 20px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.page-ththao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-ththao__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-ththao__section-title--light {
  color: var(--text-main);
}

.page-ththao__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-ththao__text-block--light {
  color: var(--text-secondary);
}

.page-ththao__text-block--center {
  text-align: center;
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* body already handles --header-offset */
  margin-bottom: 20px;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height to avoid excessively tall hero */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-ththao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-ththao__hero-content {
  padding: 40px 20px;
  text-align: center;
  background-color: #ffffff; /* Light background for text */
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  margin-top: -50px; /* Overlap slightly for visual continuity */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
  color: #333333; /* Dark text for light background */
}

.page-ththao__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-ththao__description {
  font-size: 1.2em;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* CTA Buttons */
.page-ththao__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-ththao__cta-buttons--center {
  margin-top: 40px;
}

.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-ththao__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-ththao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-ththao__btn-secondary {
  background-color: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-ththao__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-ththao__btn-link {
  background: none;
  border: none;
  color: var(--secondary-color);
  padding: 5px 10px;
  font-size: 1em;
  text-decoration: underline;
}

.page-ththao__btn-link:hover {
  color: var(--primary-color);
}

/* Dark background sections */
.page-ththao__dark-bg {
  background-color: var(--deep-navy); /* #08162B */
  color: var(--text-secondary); /* AFC4E8 */
}

.page-ththao__dark-bg .page-ththao__section-title {
  color: var(--text-main); /* F3F8FF */
}

/* Feature Cards */
.page-ththao__features-grid,
.page-ththao__types-grid,
.page-ththao__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ththao__feature-card,
.page-ththao__type-card,
.page-ththao__promo-card {
  background-color: var(--card-bg); /* #10233F */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  color: var(--text-secondary); /* AFC4E8 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ththao__feature-card .page-ththao__feature-icon,
.page-ththao__type-card .page-ththao__type-image,
.page-ththao__promo-card .page-ththao__promo-image {
  width: 100%;
  max-width: 250px; /* Adjust max-width for content images */
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-ththao__feature-title,
.page-ththao__type-title,
.page-ththao__promo-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main); /* F3F8FF */
}

.page-ththao__feature-description,
.page-ththao__type-description,
.page-ththao__promo-description {
  font-size: 1em;
  color: var(--text-secondary); /* AFC4E8 */
}

/* Guide List */
.page-ththao__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-ththao__guide-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-left: 5px solid var(--secondary-color);
  color: #333333; /* Dark text for light background */
}

.page-ththao__guide-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-ththao__guide-description {
  font-size: 1em;
  color: #555555;
}

/* Tips List */
.page-ththao__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-ththao__tip-item {
  background-color: var(--card-bg); /* #10233F */
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border-left: 5px solid var(--gold-color);
  color: var(--text-secondary); /* AFC4E8 */
}

.page-ththao__tip-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main); /* F3F8FF */
}

.page-ththao__tip-description {
  font-size: 1em;
  color: var(--text-secondary); /* AFC4E8 */
}

/* FAQ Section */
.page-ththao__faq-list {
  margin-top: 40px;
}

.page-ththao__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  color: #333333; /* Dark text for light background */
}

.page-ththao__faq-item summary {
    list-style: none;
}

.page-ththao__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
  color: var(--primary-color);
}

.page-ththao__faq-item[open] .page-ththao__faq-question {
    background-color: var(--primary-color);
    color: var(--text-main);
}

.page-ththao__faq-question .page-ththao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-ththao__faq-item[open] .page-ththao__faq-question .page-ththao__faq-toggle {
  transform: rotate(45deg);
}

.page-ththao__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

.page-ththao__faq-answer p {
    margin-bottom: 10px;
}

.page-ththao__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-ththao {
    font-size: 15px;
  }

  .page-ththao__section {
    padding: 40px 15px;
  }

  .page-ththao__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-ththao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-ththao__description {
    font-size: 1em;
  }

  .page-ththao__hero-content {
    padding: 30px 15px;
    margin-top: -30px;
  }

  .page-ththao__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-ththao__btn-primary,
  .page-ththao__btn-secondary,
  .page-ththao__btn-link {
    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;
  }

  .page-ththao__cta-buttons,
  .page-ththao__button-group,
  .page-ththao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-ththao__features-grid,
  .page-ththao__types-grid,
  .page-ththao__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Mobile image responsiveness */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__container,
  .page-ththao__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-ththao__hero-section {
      padding-left: 0;
      padding-right: 0;
  }

  .page-ththao__hero-content {
      border-radius: 0;
  }

  .page-ththao__feature-card,
  .page-ththao__type-card,
  .page-ththao__promo-card {
    padding: 20px;
  }

  .page-ththao__feature-icon,
  .page-ththao__type-image,
  .page-ththao__promo-image {
    max-width: 100%;
  }

  .page-ththao__guide-item,
  .page-ththao__tip-item,
  .page-ththao__faq-item {
    padding: 20px;
  }

  .page-ththao__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-ththao__faq-answer {
    padding: 10px 20px 15px;
  }
}