/* CSS cho trang Đăng ký */
.page-register { color: #FFF5E1; background-color: #B71C1C; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.page-register a { text-decoration: none; color: inherit; }
.page-register img { max-width: 100%; height: auto; display: block; }
.page-register h1, .page-register h2, .page-register h3 { color: #FFF5E1; }

.page-register__hero-section { position: relative; padding: 10px 16px; text-align: center; }
.page-register__hero-image { width: 100%; height: auto; border-radius: 8px; border: 2px solid #F2B544; margin-bottom: 20px; }
.page-register__hero-content { padding: 0 16px; }
.page-register__main-title { font-weight: 700; line-height: 1.3; margin-bottom: 16px; color: #FFD86A; }
.page-register__intro-text { max-width: 800px; margin: 0 auto 24px; font-size: 1.1rem; line-height: 1.6; }
.page-register__cta-button { display: inline-block; background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); color: #7A0E0E; padding: 14px 28px; border-radius: 8px; font-weight: bold; font-size: 1.1rem; text-transform: uppercase; transition: transform 0.2s; border: 1px solid #E6B800; }
.page-register__cta-button:hover { transform: translateY(-2px); }

.page-register__banner-section { max-width: 1200px; margin: 12px auto; padding: 0 16px; }
.page-register__banner-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.page-register__banner-thumbs a { display: block; border-radius: 8px; overflow: hidden; border: 2px solid #F2B544; transition: transform 0.2s; }
.page-register__banner-thumbs a:hover { transform: scale(1.03); }
.page-register__banner-thumbs img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; }

.page-register__intro-section, .page-register__posts-section, .page-register__promo-section, .page-register__list-section, .page-register__faq-section { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }
.page-register__section-title { font-weight: 700; margin-bottom: 24px; text-align: center; color: #FFD86A; font-size: 1.8rem; }

.page-register__posts-track { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.page-register__post-card { background-color: #D32F2F; border-radius: 8px; overflow: hidden; border: 1px solid #F2B544; box-shadow: 0 4px 6px rgba(0,0,0,0.3); flex: 1 1 calc(25% - 16px); display: flex; flex-direction: column; }
.page-register__post-card img { width: 100%; height: auto; object-fit: cover; }
.page-register__post-title { font-size: 1rem; padding: 12px 12px 0; margin: 0; }
.page-register__post-title a { color: #FFD86A; }
.page-register__post-excerpt { font-size: 0.9rem; padding: 8px 12px 12px; flex-grow: 1; margin: 0; }

.page-register__promo-section { text-align: center; }
.page-register__promo-section img { border-radius: 8px; margin: 0 auto 20px; border: 2px solid #F2B544; }
.page-register__promo-section p { max-width: 800px; margin: 0 auto 24px; font-size: 1.1rem; }

.page-register__list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.page-register__list-item { background-color: #D32F2F; border-radius: 8px; overflow: hidden; border: 1px solid #F2B544; padding-bottom: 16px; }
.page-register__list-item img { width: 100%; height: auto; object-fit: cover; }
.page-register__list-item h3 { font-size: 1.2rem; padding: 16px 16px 0; color: #FFD86A; }
.page-register__list-item p { padding: 8px 16px 0; font-size: 0.95rem; }

.page-register__faq-item { background-color: #D32F2F; border-radius: 8px; margin-bottom: 12px; border: 1px solid #F2B544; }
.page-register__faq-question { font-size: 1.1rem; padding: 16px; margin: 0; cursor: pointer; color: #FFD86A; position: relative; }
.page-register__faq-question::after { content: '+'; position: absolute; right: 16px; font-size: 1.5rem; line-height: 1; transition: transform 0.3s; }
.page-register__faq-question.is-active::after { transform: rotate(45deg); }
.page-register__faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.page-register__faq-answer p { padding: 0 16px 16px; margin: 0; }
.page-register__faq-question.is-active + .page-register__faq-answer { max-height: 500px; transition: max-height 0.5s ease-in; }

.page-register__cta-section { text-align: center; padding: 40px 16px; background: linear-gradient(135deg, #7A0E0E 0%, #B71C1C 100%); border-top: 2px solid #F2B544; border-bottom: 2px solid #F2B544; }
.page-register__cta-section h2 { font-size: 2rem; margin-bottom: 16px; color: #FFD86A; }
.page-register__cta-section p { font-size: 1.1rem; margin-bottom: 24px; max-width: 800px; margin-left: auto; margin-right: auto; }

@media (max-width: 768px) {
  .page-register__main-title { font-size: 1.5rem; }
  .page-register__banner-thumbs { grid-template-columns: repeat(2, 1fr); }
  .page-register__post-card { flex-basis: 100%; }
  .page-register__list-grid { grid-template-columns: 1fr; }
  .page-register__section-title { font-size: 1.5rem; }
  .page-register__cta-section h2 { font-size: 1.6rem; }
  .page-register__cta-button { width: 100%; max-width: 100%; box-sizing: border-box; padding: 16px; white-space: normal; word-wrap: break-word; }
  .page-register img { max-width: 100% !important; height: auto !important; }
}