/* style/blog-fh88-code-registration-login-guide.css */

/* Custom Colors from prompt */
:root {
  --fh88-code-primary: #11A84E;
  --fh88-code-secondary: #22C768;
  --fh88-code-bg-card: #11271B;
  --fh88-code-bg-main: #08160F;
  --fh88-code-text-main: #F2FFF6;
  --fh88-code-text-secondary: #A7D9B8;
  --fh88-code-border: #2E7A4E;
  --fh88-code-glow: #57E38D;
  --fh88-code-gold: #F2C14E;
  --fh88-code-divider: #1E3A2A;
  --fh88-code-deep-green: #0A4B2C;
  --fh88-code-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content, ensuring contrast with body background */
.page-blog-fh88-code-registration-login-guide {
  background-color: var(--fh88-code-bg-main); /* Explicitly set page background to match body */
  color: var(--fh88-code-text-main); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* Container for consistent content width */
.page-blog-fh88-code-registration-login-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-blog-fh88-code-registration-login-guide section {
  padding: 60px 0;
  text-align: center;
}

.page-blog-fh88-code-registration-login-guide__section-title {
  font-size: clamp(28px, 3.5vw, 42px); /* H1/H2 font-size rule */
  color: var(--fh88-code-gold);
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.page-blog-fh88-code-registration-login-guide p {
  margin-bottom: 15px;
  color: var(--fh88-code-text-secondary);
}

/* Hero Section */
.page-blog-fh88-code-registration-login-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  overflow: hidden;
  background-color: var(--fh88-code-bg-main);
}

.page-blog-fh88-code-registration-login-guide__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  margin-bottom: 30px; /* Space between image and content */
}

.page-blog-fh88-code-registration-login-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog-fh88-code-registration-login-guide__hero-content {
  position: relative; /* Ensure content is above any background element */
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog-fh88-code-registration-login-guide__main-title {
  font-size: clamp(32px, 4vw, 56px); /* H1 font-size rule */
  color: var(--fh88-code-gold);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-blog-fh88-code-registration-login-guide__description {
  font-size: 18px;
  color: var(--fh88-code-text-secondary);
  margin-bottom: 40px;
}

.page-blog-fh88-code-registration-login-guide__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

.page-blog-fh88-code-registration-login-guide__btn-primary,
.page-blog-fh88-code-registration-login-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-blog-fh88-code-registration-login-guide__btn-primary {
  background: var(--fh88-code-button-gradient);
  color: var(--fh88-code-text-main); /* White text for dark button */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-blog-fh88-code-registration-login-guide__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  opacity: 0.9;
}

.page-blog-fh88-code-registration-login-guide__btn-secondary {
  background: transparent;
  color: var(--fh88-code-primary); /* Brand primary color for text */
  border: 2px solid var(--fh88-code-primary);
  box-shadow: inset 0 0 0 2px var(--fh88-code-primary);
}

.page-blog-fh88-code-registration-login-guide__btn-secondary:hover {
  background-color: rgba(17, 168, 78, 0.1);
  transform: translateY(-3px);
  opacity: 0.9;
}

/* Intro Section */
.page-blog-fh88-code-registration-login-guide__intro-section {
  background-color: var(--fh88-code-bg-card);
  border-top: 1px solid var(--fh88-code-divider);
  border-bottom: 1px solid var(--fh88-code-divider);
}
.page-blog-fh88-code-registration-login-guide__intro-section p {
    color: var(--fh88-code-text-secondary);
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Step Cards for Registration/Login Guide */
.page-blog-fh88-code-registration-login-guide__registration-guide,
.page-blog-fh88-code-registration-login-guide__login-guide {
  background-color: var(--fh88-code-bg-main);
  padding-bottom: 20px; /* Adjust padding for CTA */
}

.page-blog-fh88-code-registration-login-guide__step-card {
  background-color: var(--fh88-code-bg-card);
  border: 1px solid var(--fh88-code-border);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-fh88-code-registration-login-guide__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-blog-fh88-code-registration-login-guide__step-title {
  font-size: 24px;
  color: var(--fh88-code-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-blog-fh88-code-registration-login-guide__step-card p {
  color: var(--fh88-code-text-secondary);
}

.page-blog-fh88-code-registration-login-guide__cta-center {
    margin-top: 40px;
    text-align: center;
}

/* Benefits Section */
.page-blog-fh88-code-registration-login-guide__benefits-section {
  background-color: var(--fh88-code-deep-green);
  border-top: 1px solid var(--fh88-code-divider);
  border-bottom: 1px solid var(--fh88-code-divider);
}

.page-blog-fh88-code-registration-login-guide__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-blog-fh88-code-registration-login-guide__benefit-card {
  background-color: var(--fh88-code-bg-card);
  border: 1px solid var(--fh88-code-border);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog-fh88-code-registration-login-guide__benefit-title {
  font-size: 20px;
  color: var(--fh88-code-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-blog-fh88-code-registration-login-guide__benefit-card p {
  color: var(--fh88-code-text-secondary);
}

/* Troubleshooting Section */
.page-blog-fh88-code-registration-login-guide__troubleshooting-section {
    background-color: var(--fh88-code-bg-main);
    padding-bottom: 20px;
}

.page-blog-fh88-code-registration-login-guide__troubleshooting-item {
  background-color: var(--fh88-code-bg-card);
  border: 1px solid var(--fh88-code-border);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-blog-fh88-code-registration-login-guide__troubleshooting-title {
  font-size: 22px;
  color: var(--fh88-code-gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-blog-fh88-code-registration-login-guide__troubleshooting-item p {
  color: var(--fh88-code-text-secondary);
}

/* FAQ Section */
.page-blog-fh88-code-registration-login-guide__faq-section {
  background-color: var(--fh88-code-deep-green);
  border-top: 1px solid var(--fh88-code-divider);
  border-bottom: 1px solid var(--fh88-code-divider);
}

.page-blog-fh88-code-registration-login-guide__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog-fh88-code-registration-login-guide__faq-item {
  background-color: var(--fh88-code-bg-card);
  border: 1px solid var(--fh88-code-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-blog-fh88-code-registration-login-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--fh88-code-text-main);
  cursor: pointer;
  background-color: var(--fh88-code-bg-card);
  border-bottom: 1px solid var(--fh88-code-divider);
}

.page-blog-fh88-code-registration-login-guide__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog-fh88-code-registration-login-guide__faq-question::marker {
  display: none;
}

.page-blog-fh88-code-registration-login-guide__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.1);
}

.page-blog-fh88-code-registration-login-guide__faq-qtext {
    color: var(--fh88-code-gold);
}

.page-blog-fh88-code-registration-login-guide__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--fh88-code-gold);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-blog-fh88-code-registration-login-guide__faq-item[open] .page-blog-fh88-code-registration-login-guide__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an 'x' or 'minus' */
}

.page-blog-fh88-code-registration-login-guide__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 16px;
  color: var(--fh88-code-text-secondary);
  border-top: 1px solid var(--fh88-code-divider);
  background-color: var(--fh88-code-bg-card);
}

.page-blog-fh88-code-registration-login-guide__faq-answer p {
    margin-bottom: 0;
}

/* CTA Section */
.page-blog-fh88-code-registration-login-guide__cta-section {
  background-color: var(--fh88-code-bg-main);
  padding-bottom: 60px;
}

.page-blog-fh88-code-registration-login-guide__cta-section p {
    color: var(--fh88-code-text-secondary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-blog-fh88-code-registration-login-guide__section-title {
    font-size: clamp(26px, 4vw, 38px);
  }
  .page-blog-fh88-code-registration-login-guide__main-title {
    font-size: clamp(30px, 5vw, 48px);
  }
}

@media (max-width: 768px) {
  .page-blog-fh88-code-registration-login-guide section {
    padding: 40px 0;
  }
  .page-blog-fh88-code-registration-login-guide__hero-section {
    padding-top: 10px !important; /* body handles header offset, small top padding */
    padding-bottom: 40px;
  }

  .page-blog-fh88-code-registration-login-guide__hero-content {
    padding: 0 15px;
  }

  .page-blog-fh88-code-registration-login-guide__main-title {
    font-size: clamp(28px, 6vw, 40px);
    max-width: 100%;
  }

  .page-blog-fh88-code-registration-login-guide__description {
    font-size: 16px;
  }

  .page-blog-fh88-code-registration-login-guide__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }
  .page-blog-fh88-code-registration-login-guide__btn-primary,
  .page-blog-fh88-code-registration-login-guide__btn-secondary {
    width: 100% !important; /* Force full width */
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog-fh88-code-registration-login-guide__container {
    padding: 0 15px;
  }

  .page-blog-fh88-code-registration-login-guide__step-card,
  .page-blog-fh88-code-registration-login-guide__benefit-card,
  .page-blog-fh88-code-registration-login-guide__troubleshooting-item,
  .page-blog-fh88-code-registration-login-guide__faq-item {
    padding: 20px;
    margin-left: 0;
    margin-right: 0;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Image responsiveness */
  .page-blog-fh88-code-registration-login-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog-fh88-code-registration-login-guide__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-blog-fh88-code-registration-login-guide__step-image {
    min-width: unset;
    min-height: unset;
  }

  /* Ensure all containers are responsive */
  .page-blog-fh88-code-registration-login-guide__intro-section,
  .page-blog-fh88-code-registration-login-guide__registration-guide,
  .page-blog-fh88-code-registration-login-guide__login-guide,
  .page-blog-fh88-code-registration-login-guide__benefits-section,
  .page-blog-fh88-code-registration-login-guide__troubleshooting-section,
  .page-blog-fh88-code-registration-login-guide__faq-section,
  .page-blog-fh88-code-registration-login-guide__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-blog-fh88-code-registration-login-guide__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-blog-fh88-code-registration-login-guide__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-blog-fh88-code-registration-login-guide__faq-answer {
    padding: 10px 20px 15px 20px;
  }
}

/* Smart Contrast System - based on body background #08160F (dark) */
/* Text main color is #F2FFF6 (light), text secondary is #A7D9B8 (light) */
/* This ensures WCAG AA compliance for text on dark backgrounds */
.page-blog-fh88-code-registration-login-guide {
  color: var(--fh88-code-text-main); /* Light text on dark body background */
}