/* style/promotions.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #000080;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #121212;
    --card-bg-dark: rgba(255, 255, 255, 0.08);
    --border-color-dark: rgba(255, 255, 255, 0.15);
}

.page-promotions {
    background-color: var(--background-dark);
    color: var(--text-light);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 60px;
    padding-top: var(--header-offset, 120px);
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(0, 0, 128, 0.7) 50%, var(--background-dark) 100%);
}

.page-promotions__hero-container {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__main-title {
    font-size: 3.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__hero-description {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-promotions__cta-button:hover {
    background: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-button--secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-promotions__cta-button--secondary:hover {
    background: #000066;
    color: #ffd700;
    border-color: #ffd700;
}

.page-promotions__hero-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    max-width: 1920px;
    opacity: 0.3;
    z-index: 1;
    object-fit: cover;
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

.page-promotions__types-section,
.page-promotions__claim-guide-section,
.page-promotions__why-choose-section,
.page-promotions__faq-section,
.page-promotions__cta-final-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color-dark);
}

.page-promotions__types-section {
    background-color: rgba(0, 0, 0, 0.3);
}

.page-promotions__promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__promotion-card {
    background: var(--card-bg-dark);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__promotion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__card-text {
    font-size: 0.95em;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    opacity: 0.85;
}

.page-promotions__card-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.page-promotions__card-button:hover {
    background: #000066;
    color: #ffd700;
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__guide-item {
    background: var(--card-bg-dark);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color-dark);
}

.page-promotions__guide-item-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-promotions__guide-item p {
    color: var(--text-light);
    opacity: 0.85;
}

.page-promotions__cta-center {
    text-align: center;
    margin-top: 50px;
}

.page-promotions__why-choose-section {
    background-color: rgba(0, 0, 0, 0.3);
}

.page-promotions__advantage-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-promotions__advantage-item {
    background: var(--card-bg-dark);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color-dark);
}

.page-promotions__advantage-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: brightness(1.2);
}

.page-promotions__advantage-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-promotions__advantage-item p {
    color: var(--text-light);
    opacity: 0.85;
}

.page-promotions__faq-section {
    background-color: var(--background-dark);
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ容器样式 */
.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark);
  background: var(--card-bg-dark);
}

/* FAQ默认状态 - 答案隐藏 */
.page-promotions__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 25px;
  opacity: 0;
  color: var(--text-light);
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-promotions__faq-item.active .page-promotions__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 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid var(--border-color-dark);
}

/* 问题样式 */
.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-dark);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-question:active {
  background: rgba(255, 255, 255, 0.15);
}

/* 问题标题样式 */
.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--primary-color);
}

/* 切换图标 */
.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
  background: var(--primary-color);
}

.page-promotions__cta-final-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(255, 215, 0, 0.8) 50%, var(--primary-color) 100%);
    padding: 80px 0;
    text-align: center;
}

.page-promotions__cta-final-section .page-promotions__container {
    background: transparent;
    border: none;
}

.page-promotions__cta-final-section .page-promotions__section-title {
    color: var(--secondary-color);
    text-shadow: none;
}

.page-promotions__cta-final-section .page-promotions__section-description {
    color: var(--secondary-color);
    opacity: 0.9;
}

.page-promotions__cta-final-section .page-promotions__cta-button {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
}

.page-promotions__cta-final-section .page-promotions__cta-button:hover {
    background: #000066;
    color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 2.8em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-container {
        padding: 15px;
    }
    .page-promotions__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-promotions__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__hero-image {
        opacity: 0.2;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-promotions__types-section,
    .page-promotions__claim-guide-section,
    .page-promotions__why-choose-section,
    .page-promotions__faq-section,
    .page-promotions__cta-final-section {
        padding: 50px 0;
    }

    .page-promotions__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-promotions__promotion-grid {
        gap: 20px;
    }

    .page-promotions__promotion-card {
        padding: 20px;
    }

    .page-promotions__card-image {
        height: 180px;
    }

    .page-promotions__card-title {
        font-size: 1.4em;
    }

    .page-promotions__card-text {
        font-size: 0.9em;
    }
    
    .page-promotions__card-button {
        padding: 10px 20px;
        font-size: 0.85em;
    }

    .page-promotions__guide-list,
    .page-promotions__advantage-list {
        gap: 20px;
    }

    .page-promotions__guide-item,
    .page-promotions__advantage-item {
        padding: 20px;
    }

    .page-promotions__guide-item-title,
    .page-promotions__advantage-title {
        font-size: 1.2em;
    }

    .page-promotions__advantage-icon {
        width: 80px;
        height: 80px;
    }

    .page-promotions__faq-question {
        padding: 15px 20px;
    }
    
    .page-promotions__faq-question h3 {
        font-size: 1em;
    }

    .page-promotions__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px !important;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__promotion-card,
    .page-promotions__guide-item,
    .page-promotions__advantage-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-promotions__cta-button {
        padding: 10px 20px !important;
        font-size: 0.9em !important;
    }
    .page-promotions__card-image {
        height: 150px;
    }
    .page-promotions__card-title {
        font-size: 1.2em;
    }
    .page-promotions__faq-question h3 {
        font-size: 0.9em;
    }
    .page-promotions__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
}