/* style/doi-tac.css */

/* Base styles for the page content */
.page-doi-tac {
  background-color: var(--bg-color, #0A0A0A); /* Inherit from shared or use default dark */
  color: #FFF6D6; /* Main text color for dark background */
  font-family: 'Arial', sans-serif; /* Example font */
  line-height: 1.6;
}

.page-doi-tac__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-doi-tac__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  color: #F2C14E; /* Brand gold for main title */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-doi-tac__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem); /* Responsive H2 font size */
  font-weight: 600;
  color: #F2C14E; /* Brand gold for section titles */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-doi-tac__intro-text,
.page-doi-tac p,
.page-doi-tac li,
.page-doi-tac__contact-text {
  color: #FFF6D6; /* Light text for dark background */
  font-size: 1.1rem;
  margin-bottom: 15px;
}

/* Hero Section (title block) */
.page-doi-tac__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: #0A0A0A; /* Explicitly set dark background */
}

.page-doi-tac__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-doi-tac__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button fits container */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-doi-tac__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
  color: #333333; /* Dark text for light button background (contrast fix) */
  border: none;
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.3); /* Glow */
}

.page-doi-tac__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.5);
  transform: translateY(-2px);
}

.page-doi-tac__btn-secondary {
  background-color: #111111; /* Card BG color */
  color: #F2C14E; /* Brand gold text */
  border: 2px solid #3A2A12; /* Border color */
}

.page-doi-tac__btn-secondary:hover {
  background-color: #3A2A12; /* Border color as hover background */
  color: #FFF6D6; /* Text Main color */
  transform: translateY(-2px);
}

/* Why Partner Section */
.page-doi-tac__why-partner-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-doi-tac__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-doi-tac__text-content {
  flex: 1 1 55%;
  min-width: 300px;
}

.page-doi-tac__image-wrapper {
  flex: 1 1 35%;
  text-align: center;
}

.page-doi-tac__section-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: block; /* Ensure no extra space below image */
  margin: 0 auto; /* Center image */
}

.page-doi-tac__feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-doi-tac__feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #FFF6D6;
}

.page-doi-tac__feature-list li::before {
  content: '✔'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: #FFD36B; /* Glow color for checkmark */
  font-weight: bold;
}

/* How to Join Section */
.page-doi-tac__how-to-join-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG color */
}

.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: #0A0A0A; /* Background color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-doi-tac__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 211, 107, 0.2);
}

.page-doi-tac__step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #333333; /* Dark text for icon number */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 3px 10px rgba(255, 211, 107, 0.4);
}

.page-doi-tac__step-title {
  font-size: 1.5rem;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-doi-tac__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

/* Contact Section */
.page-doi-tac__contact-section {
  padding: 60px 0;
  background-color: #0A0A0A;
  text-align: center;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-doi-tac__container {
    padding: 0 15px !important; /* Adjust padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO Section (for main title and intro) */
  .page-doi-tac__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px !important;
  }

  .page-doi-tac__main-title {
    font-size: 2rem !important; /* Adjust H1 for mobile */
    margin-bottom: 15px !important;
  }

  .page-doi-tac__intro-text {
    font-size: 1rem !important;
  }

  .page-doi-tac__cta-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  .page-doi-tac__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Section Titles */
  .page-doi-tac__section-title {
    font-size: 1.8rem !important; /* Adjust H2 for mobile */
    margin-bottom: 25px !important;
  }

  /* Why Partner Section */
  .page-doi-tac__why-partner-section {
    padding: 40px 0 !important;
  }

  .page-doi-tac__content-grid {
    flex-direction: column !important; /* Stack text and image vertically */
    gap: 30px !important;
  }

  .page-doi-tac__text-content {
    order: 2 !important; /* Text below image */
  }

  .page-doi-tac__image-wrapper {
    order: 1 !important; /* Image above text */
  }

  .page-doi-tac__section-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* How to Join Section */
  .page-doi-tac__how-to-join-section {
    padding: 40px 0 !important;
  }

  .page-doi-tac__steps-grid {
    grid-template-columns: 1fr !important; /* Single column for steps */
    gap: 20px !important;
  }

  .page-doi-tac__step-item {
    padding: 25px !important;
  }

  .page-doi-tac__step-title {
    font-size: 1.3rem !important;
  }

  /* Contact Section */
  .page-doi-tac__contact-section {
    padding: 40px 0 !important;
  }

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

  /* Ensure content areas do not cause overflow */
  .page-doi-tac__hero-section,
  .page-doi-tac__why-partner-section,
  .page-doi-tac__how-to-join-section,
  .page-doi-tac__contact-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}