/* style/doi-tac.css */

:root {
  --fly88-primary: #FF8C1A;
  --fly88-secondary: #FFA53A;
  --fly88-card-bg: #17191F;
  --fly88-background: #0D0E12;
  --fly88-text-main: #FFF3E6;
  --fly88-border: #A84F0C;
  --fly88-glow: #FFB04D;
  --fly88-deep-orange: #D96800;
}

.page-doi-tac {
  font-family: Arial, sans-serif;
  color: var(--fly88-text-main); /* Default text color for the page content */
  background-color: var(--fly88-background);
}

.page-doi-tac__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--fly88-background);
  color: var(--fly88-text-main);
  text-align: center;
}

.page-doi-tac__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
}

.page-doi-tac__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-doi-tac__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--fly88-secondary);
}

.page-doi-tac__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--fly88-text-main);
}

.page-doi-tac__hero-cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.page-doi-tac__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-doi-tac__btn-primary {
  background: linear-gradient(180deg, var(--fly88-secondary) 0%, var(--fly88-deep-orange) 100%);
  color: #ffffff;
  border: none;
}

.page-doi-tac__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-doi-tac__btn-secondary {
  background: transparent;
  color: var(--fly88-secondary);
  border: 2px solid var(--fly88-secondary);
}

.page-doi-tac__btn-secondary:hover {
  background: var(--fly88-secondary);
  color: var(--fly88-background);
}

.page-doi-tac__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-doi-tac__hero-main-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-doi-tac__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-doi-tac__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--fly88-primary);
  text-align: center;
  margin-bottom: 20px;
}

.page-doi-tac__section-title--light {
  color: var(--fly88-text-main);
}

.page-doi-tac__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--fly88-text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-doi-tac__section-description--light {
  color: var(--fly88-text-main);
}

.page-doi-tac__why-partner-section {
  background-color: var(--fly88-background);
}

.page-doi-tac__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-doi-tac__feature-item {
  background-color: var(--fly88-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--fly88-border);
  color: var(--fly88-text-main);
}

.page-doi-tac__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--fly88-primary);
  box-shadow: 0 0 15px var(--fly88-glow);
}

.page-doi-tac__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-doi-tac__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--fly88-secondary);
}

.page-doi-tac__feature-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fly88-text-main);
}

.page-doi-tac__dark-section {
  background-color: var(--fly88-primary);
  padding: 60px 20px;
  color: var(--fly88-text-main);
}

.page-doi-tac__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-doi-tac__models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-doi-tac__model-card {
  background-color: var(--fly88-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--fly88-border);
  color: var(--fly88-text-main);
  display: flex;
  flex-direction: column;
}

.page-doi-tac__model-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-doi-tac__model-title {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 20px 20px 10px;
  color: var(--fly88-secondary);
}

.page-doi-tac__model-text {
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 20px 20px;
  flex-grow: 1;
  color: var(--fly88-text-main);
}

.page-doi-tac__btn-link {
  display: inline-block;
  margin: 0 20px 20px;
  padding: 10px 20px;
  background-color: var(--fly88-deep-orange);
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-doi-tac__btn-link:hover {
  background-color: var(--fly88-primary);
}

.page-doi-tac__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-doi-tac__benefit-item {
  background-color: var(--fly88-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--fly88-border);
  color: var(--fly88-text-main);
}

.page-doi-tac__benefit-icon {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-doi-tac__benefit-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--fly88-secondary);
}

.page-doi-tac__benefit-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fly88-text-main);
}

.page-doi-tac__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-doi-tac__step-item {
  background-color: var(--fly88-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--fly88-border);
  color: var(--fly88-text-main);
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-doi-tac__step-number {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--fly88-secondary) 0%, var(--fly88-deep-orange) 100%);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-doi-tac__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--fly88-secondary);
}

.page-doi-tac__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fly88-text-main);
}

.page-doi-tac__join-cta {
  text-align: center;
  margin-top: 50px;
}

.page-doi-tac__faq-list {
  margin-top: 40px;
}

.page-doi-tac__faq-item {
  background-color: var(--fly88-card-bg);
  border: 1px solid var(--fly88-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--fly88-text-main);
}

.page-doi-tac__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--fly88-secondary);
  list-style: none; /* For details/summary */
}

.page-doi-tac__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-doi-tac__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-doi-tac__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fly88-text-main);
}

.page-doi-tac__cta-bottom-section {
  background-color: var(--fly88-deep-orange);
  padding: 80px 20px;
  text-align: center;
  color: var(--fly88-text-main);
}

.page-doi-tac__cta-bottom-section .page-doi-tac__section-title {
  color: #ffffff;
}

.page-doi-tac__cta-bottom-section .page-doi-tac__section-description {
  color: #ffffff;
  margin-bottom: 50px;
}

/* General image styling for content sections */
.page-doi-tac img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensures images behave predictably */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-doi-tac__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-doi-tac__hero-content {
    text-align: center;
    flex: 1 1 100%;
  }

  .page-doi-tac__hero-cta-buttons {
    justify-content: center;
  }

  .page-doi-tac__hero-image {
    flex: 1 1 100%;
  }

  .page-doi-tac__icon-box-media {
    width: 180px;
    height: 180px;
  }

  .page-doi-tac__model-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-doi-tac {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-doi-tac__hero-section {
    padding-top: 10px !important; /* Adhere to the 10px rule */
    padding-bottom: 40px;
  }

  .page-doi-tac__hero-container {
    padding: 20px 15px;
    gap: 20px;
  }

  .page-doi-tac__hero-title {
    font-size: 2.2rem; /* Adjusted for mobile */
    margin-bottom: 15px;
  }

  .page-doi-tac__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-doi-tac__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-doi-tac__cta-button {
    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-doi-tac__content-area,
  .page-doi-tac__dark-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-doi-tac__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-doi-tac__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-doi-tac__features-grid,
  .page-doi-tac__models-grid,
  .page-doi-tac__benefits-grid,
  .page-doi-tac__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-doi-tac__feature-item,
  .page-doi-tac__model-card,
  .page-doi-tac__benefit-item,
  .page-doi-tac__step-item,
  .page-doi-tac__faq-item {
    padding: 20px;
  }

  .page-doi-tac__icon-box-media {
    width: 160px; /* Maintain circular shape */
    height: 160px; /* Maintain circular shape */
    margin-bottom: 20px;
  }

  .page-doi-tac__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .page-doi-tac__feature-title,
  .page-doi-tac__model-title,
  .page-doi-tac__benefit-title,
  .page-doi-tac__step-title {
    font-size: 1.3rem;
  }

  .page-doi-tac__model-image {
    height: 180px;
  }

  .page-doi-tac__btn-link {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    text-align: center;
  }

  .page-doi-tac__step-item {
    padding-top: 50px;
  }

  .page-doi-tac__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .page-doi-tac__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-doi-tac__faq-answer {
    padding: 0 15px 15px;
  }

  .page-doi-tac__cta-bottom-section {
    padding: 60px 15px;
  }

  /* General image responsive styling */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
}