/* style/resources-nh88-registration-guide.css */

/* Root variables for consistent styling */
:root {
    --primary-color: #017439; /* Main brand green */
    --secondary-color: #FFFFFF; /* Auxiliary white */
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --register-button-bg: #C30808; /* Custom color for Register/Login */
    --register-button-text: #FFFF00; /* Custom font color for Register/Login */
    --section-bg-light: #f9f9f9;
}

.page-resources-nh88-registration-guide {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light body background */
    background-color: var(--secondary-color); /* Matches body background assumption */
    padding-top: var(--header-offset, 120px); /* Apply header offset to main content */
}

/* Hero Section */
.page-resources-nh88-registration-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Gradient background */
    color: var(--text-light); /* Light text on gradient background */
}

.page-resources-nh88-registration-guide__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure container takes full width up to max-width */
}

.page-resources-nh88-registration-guide__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-resources-nh88-registration-guide__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-resources-nh88-registration-guide__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-resources-nh88-registration-guide__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light); /* Light text for title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.page-resources-nh88-registration-guide__intro-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light); /* Light text for intro */
}

.page-resources-nh88-registration-guide__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Custom button styles for Register/Login */
.page-resources-nh88-registration-guide__btn-register {
    background: var(--register-button-bg); /* #C30808 */
    color: var(--register-button-text); /* #FFFF00 */
    border: 2px solid var(--register-button-text);
}

.page-resources-nh88-registration-guide__btn-register:hover {
    background: #a30707; /* Darken for hover effect */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-resources-nh88-registration-guide__section {
    padding: 80px 0;
    background-color: var(--secondary-color); /* Default light background */
    color: var(--text-dark);
}

.page-resources-nh88-registration-guide__why-choose {
    background-color: var(--section-bg-light);
}

.page-resources-nh88-registration-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-resources-nh88-registration-guide__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-resources-nh88-registration-guide__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: var(--text-dark);
}

/* Features Grid */
.page-resources-nh88-registration-guide__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-nh88-registration-guide__feature-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.page-resources-nh88-registration-guide__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-nh88-registration-guide__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources-nh88-registration-guide__feature-item p {
    font-size: 1em;
    color: var(--text-dark);
}

/* Registration Steps */
.page-resources-nh88-registration-guide__registration-steps {
    background-color: var(--secondary-color);
}

.page-resources-nh88-registration-guide__step-by-step {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 50px;
}

.page-resources-nh88-registration-guide__step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.page-resources-nh88-registration-guide__step-item:nth-child(even) {
    flex-direction: column-reverse; /* Example for alternating layout */
}

.page-resources-nh88-registration-guide__step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-resources-nh88-registration-guide__step-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-resources-nh88-registration-guide__step-item p {
    font-size: 1.1em;
    margin-bottom: 15px;
    max-width: 800px;
    color: var(--text-dark);
}

.page-resources-nh88-registration-guide__step-item ul {
    list-style-type: disc;
    text-align: left;
    margin-left: 20px;
    padding-left: 0;
    margin-bottom: 20px;
    max-width: 800px;
    color: var(--text-dark);
}

.page-resources-nh88-registration-guide__step-item li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

.page-resources-nh88-registration-guide__step-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-resources-nh88-registration-guide__call-to-action-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: var(--section-bg-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-resources-nh88-registration-guide__call-to-action-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Post Registration Section */
.page-resources-nh88-registration-guide__post-registration {
    background-color: var(--section-bg-light);
}

.page-resources-nh88-registration-guide__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-nh88-registration-guide__card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}

.page-resources-nh88-registration-guide__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-nh88-registration-guide__card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources-nh88-registration-guide__card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources-nh88-registration-guide__card-title a:hover {
    text-decoration: underline;
}

.page-resources-nh88-registration-guide__card p {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow paragraph to grow */
}

.page-resources-nh88-registration-guide__card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

/* FAQ Section */
.page-resources-nh88-registration-guide__faq-section {
    background-color: var(--secondary-color);
}

.page-resources-nh88-registration-guide__faq-list {
    margin-top: 50px;
}

/* FAQ容器样式 */
.page-resources-nh88-registration-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-resources-nh88-registration-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-dark);
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo mở rộng */
.page-resources-nh88-registration-guide__faq-item.active .page-resources-nh88-registration-guide__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo độ ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--section-bg-light);
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-resources-nh88-registration-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-nh88-registration-guide__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-nh88-registration-guide__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-resources-nh88-registration-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click event */
  color: var(--text-dark);
}

/* Toggle icon */
.page-resources-nh88-registration-guide__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources-nh88-registration-guide__faq-item.active .page-resources-nh88-registration-guide__faq-toggle {
  color: var(--primary-color);
  transform: rotate(180deg); /* Rotate for minus sign effect */
}


/* Conclusion Section */
.page-resources-nh88-registration-guide__conclusion {
    background-color: var(--section-bg-light);
    text-align: center;
}

.page-resources-nh88-registration-guide__final-cta {
    margin-top: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-resources-nh88-registration-guide__final-cta p {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-dark);
}


/* Link styles */
.page-resources-nh88-registration-guide a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-nh88-registration-guide a:hover {
    color: #005a2e; /* Darken primary color */
    text-decoration: underline;
}
.page-resources-nh88-registration-guide__hero-content a {
    color: var(--register-button-text); /* Yellow on dark red button */
}
.page-resources-nh88-registration-guide__hero-content a:hover {
    color: var(--register-button-text); /* Still yellow on hover */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-nh88-registration-guide__main-title {
        font-size: 2.8em;
    }
    .page-resources-nh88-registration-guide__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    /* Mobile header offset */
    .page-resources-nh88-registration-guide {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources-nh88-registration-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-resources-nh88-registration-guide__hero-image img {
        border-radius: 4px;
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources-nh88-registration-guide__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-resources-nh88-registration-guide__intro-text {
        font-size: 1.1em;
        margin-bottom: 20px;
    }

    .page-resources-nh88-registration-guide__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        margin-top: 15px;
        max-width: 100% !important; /* Button responsive */
        width: 100% !important; /* Button responsive */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-nh88-registration-guide__section {
        padding: 40px 0;
    }

    .page-resources-nh88-registration-guide__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources-nh88-registration-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-resources-nh88-registration-guide__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-resources-nh88-registration-guide__features-grid,
    .page-resources-nh88-registration-guide__grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-nh88-registration-guide__feature-item,
    .page-resources-nh88-registration-guide__card {
        padding: 25px;
    }

    .page-resources-nh88-registration-guide__feature-title,
    .page-resources-nh88-registration-guide__card-title {
        font-size: 1.3em;
    }

    .page-resources-nh88-registration-guide__step-by-step {
        gap: 40px;
    }

    .page-resources-nh88-registration-guide__step-item {
        padding: 30px;
    }

    .page-resources-nh88-registration-guide__step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-resources-nh88-registration-guide__step-title {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
}