.page-resources-registration-guide {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default dark text for light body background */
    line-height: 1.6;
    background-color: #f8f8f8; /* Light background for the main content area */
}

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

.page-resources-registration-guide__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources-registration-guide__section-title {
    font-size: 36px;
    color: #003366; /* Auxiliary color for titles */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources-registration-guide__section-title--light {
    color: #ffffff;
}

.page-resources-registration-guide__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-resources-registration-guide__text-block--light {
    color: #f0f0f0;
}

.page-resources-registration-guide__keyword {
    font-weight: bold;
    color: #FF6600;
}

/* Hero Section */
.page-resources-registration-guide__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #FF6600, #003366); /* Gradient background for visual appeal */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-resources-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%;
}

.page-resources-registration-guide__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-resources-registration-guide__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-resources-registration-guide__subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-resources-registration-guide__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources-registration-guide__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-resources-registration-guide__btn-primary {
    background: #FF6600;
    color: #ffffff;
    border: 2px solid #FF6600;
}

.page-resources-registration-guide__btn-primary:hover {
    background: #e65c00;
    border-color: #e65c00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-registration-guide__btn-secondary {
    background: #003366;
    color: #ffffff;
    border: 2px solid #003366;
}

.page-resources-registration-guide__btn-secondary:hover {
    background: #002244;
    border-color: #002244;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-registration-guide__cta-center {
    margin-top: 40px;
    text-align: center;
}

/* Steps Section */
.page-resources-registration-guide__steps {
    background-color: #ffffff;
}

.page-resources-registration-guide__step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    padding: 30px;
    background-color: #fefefe;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-registration-guide__step-item img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-registration-guide__step-title {
    font-size: 28px;
    color: #FF6600;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.page-resources-registration-guide__step-description {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: left;
    width: 100%;
}

.page-resources-registration-guide__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

.page-resources-registration-guide__list li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #555555;
}

.page-resources-registration-guide__list li strong {
    color: #333333;
}

/* Benefits Section */
.page-resources-registration-guide__benefits {
    background-color: #e6f0f5; /* Light blueish background */
}

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

.page-resources-registration-guide__card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.page-resources-registration-guide__card img {
    width: 100%;
    height: 200px; /* Fixed height for cards */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources-registration-guide__card-title {
    font-size: 22px;
    color: #003366;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-registration-guide__card-text {
    font-size: 16px;
    color: #555555;
    flex-grow: 1;
}

/* FAQ Section */
.page-resources-registration-guide__faq {
    background-color: #f8f8f8;
}

.page-resources-registration-guide__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

/* FAQ容器样式 */
.page-resources-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-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;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-resources-registration-guide__faq-item.active .page-resources-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: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

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

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

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

/* Question title style */
.page-resources-registration-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger for better readability */
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-resources-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 events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources-registration-guide__faq-item.active .page-resources-registration-guide__faq-toggle {
  color: #003366; /* Changed to auxiliary color for better contrast on white background */
  transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
}

/* Final CTA Section */
.page-resources-registration-guide__final-cta {
    background: #003366; /* Use auxiliary color for dark background */
    color: #ffffff;
    padding: 80px 20px;
}

.page-resources-registration-guide__dark-bg {
    background: #003366;
    color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-registration-guide__cta-buttons--center {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-registration-guide__main-title {
        font-size: 42px;
    }
    .page-resources-registration-guide__subtitle {
        font-size: 18px;
    }
    .page-resources-registration-guide__section-title {
        font-size: 32px;
    }
    .page-resources-registration-guide__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources-registration-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-resources-registration-guide__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-resources-registration-guide__subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-resources-registration-guide__section {
        padding: 40px 0;
    }
    .page-resources-registration-guide__section-title {
        font-size: 28px;
    }
    .page-resources-registration-guide__text-block {
        font-size: 15px;
        padding: 0 15px; /* Add padding to text blocks */
    }
    .page-resources-registration-guide__container {
        padding: 15px;
    }

    /* Images responsive */
    .page-resources-registration-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-resources-registration-guide__hero-image {
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .page-resources-registration-guide__card img {
         /* Adjust height for mobile cards */
    }

    /* Buttons responsive */
    .page-resources-registration-guide__cta-button,
    .page-resources-registration-guide__btn-primary,
    .page-resources-registration-guide__btn-secondary,
    .page-resources-registration-guide a[class*="button"],
    .page-resources-registration-guide a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .page-resources-registration-guide__cta-buttons,
    .page-resources-registration-guide__button-group,
    .page-resources-registration-guide__btn-container,
    .page-resources-registration-guide__final-cta .page-resources-registration-guide__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    /* FAQ mobile */
    .page-resources-registration-guide__faq-question {
        padding: 15px;
    }
    
    .page-resources-registration-guide__faq-question h3 {
        font-size: 16px;
    }
    
    .page-resources-registration-guide__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    
    .page-resources-registration-guide__faq-item.active .page-resources-registration-guide__faq-answer {
        padding: 15px !important;
    }

    .page-resources-registration-guide__step-item {
        padding: 20px 15px;
    }
    .page-resources-registration-guide__step-title {
        font-size: 24px;
    }
    .page-resources-registration-guide__list {
        padding-left: 20px;
    }
    .page-resources-registration-guide__dark-bg {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources-registration-guide__main-title {
        font-size: 28px;
    }
    .page-resources-registration-guide__section-title {
        font-size: 24px;
    }
    .page-resources-registration-guide__cta-button {
        font-size: 15px;
        padding: 10px 20px;
    }
    .page-resources-registration-guide__card-title {
        font-size: 20px;
    }
    .page-resources-registration-guide__faq-question h3 {
        font-size: 15px;
    }
}

/* Ensure content containers also handle overflow on mobile */
.page-resources-registration-guide__section,
.page-resources-registration-guide__card,
.page-resources-registration-guide__container,
.page-resources-registration-guide__step-item {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.page-resources-registration-guide__card-grid {
    padding: 0 15px; /* Add some padding to grid on mobile */
}