/* style/resources-maximize-promotions.css */

/* Base Styles */
.page-resources-maximize-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: var(--secondary-color, #FFFFFF);
}

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

.page-resources-maximize-promotions__section-title {
    color: #26A9E0;
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-maximize-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-resources-maximize-promotions__text-block {
    font-size: 17px;
    margin-bottom: 25px;
    text-align: justify;
}

.page-resources-maximize-promotions__inline-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-resources-maximize-promotions__inline-link:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-resources-maximize-promotions__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); /* Ensure content is not hidden by fixed header */
    background-color: #f0f8ff; /* Light background for hero */
}

.page-resources-maximize-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources-maximize-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-resources-maximize-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-resources-maximize-promotions__hero-content h1 {
    font-size: 48px;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.page-resources-maximize-promotions__hero-content p {
    font-size: 20px;
    color: #333333;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-resources-maximize-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(38, 169, 224, 0.4);
}

.page-resources-maximize-promotions__cta-button:hover {
    background: #1e87c2;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(38, 169, 224, 0.6);
}

.page-resources-maximize-promotions__cta-button--secondary {
    background: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    box-shadow: none;
}

.page-resources-maximize-promotions__cta-button--secondary:hover {
    background: #e0f2ff;
    color: #1e87c2;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-maximize-promotions__cta-button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


/* Card Grid for Promotion Types */
.page-resources-maximize-promotions__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-resources-maximize-promotions__card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources-maximize-promotions__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.page-resources-maximize-promotions__card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Enforce minimum size for card images */
}

.page-resources-maximize-promotions__card-title {
    font-size: 22px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-resources-maximize-promotions__card p {
    font-size: 16px;
    color: #555555;
    text-align: justify;
}

/* Strategy List */
.page-resources-maximize-promotions__strategy-list {
    margin-bottom: 50px;
}

.page-resources-maximize-promotions__strategy-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-resources-maximize-promotions__strategy-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    object-fit: cover;
    align-self: center;
    min-height: 200px; /* Enforce minimum size for strategy images */
}

.page-resources-maximize-promotions__strategy-title {
    font-size: 24px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-resources-maximize-promotions__strategy-item p {
    font-size: 17px;
    color: #444444;
    text-align: justify;
}

/* Mistake List */
.page-resources-maximize-promotions__mistake-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.page-resources-maximize-promotions__mistake-item {
    background: #fffafa; /* Slightly red background to indicate warning */
    border-left: 5px solid #EA7C07;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.page-resources-maximize-promotions__mistake-title {
    font-size: 20px;
    color: #EA7C07;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-resources-maximize-promotions__mistake-item p {
    font-size: 16px;
    color: #666666;
    text-align: justify;
}

/* FAQ Section */
.page-resources-maximize-promotions__faq-list {
    margin-top: 40px;
    margin-bottom: 50px;
}

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

/* FAQ默认状态 - 答案隐藏 */
.page-resources-maximize-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.3s ease;
    padding: 0 20px;
    opacity: 0;
}

/* FAQ展开状态 - 6a8 使用!important和足够大的max-height确保一定能展开 */
.page-resources-maximize-promotions__faq-item.active .page-resources-maximize-promotions__faq-answer {
    max-height: 2000px !important; /* 6a8 Sử dụng!important đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
    padding: 20px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    border-top: 1px solid #e0e0e0;
}

/* Vấn đề phong cách */
.page-resources-maximize-promotions__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-maximize-promotions__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources-maximize-promotions__faq-question:active {
    background: #eeeeee;
}

/* Vấn đề tiêu đề phong cách */
.page-resources-maximize-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp chuột */
    color: #333333;
}

/* Chuyển đổi biểu tượng */
.page-resources-maximize-promotions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Ngăn biểu tượng chặn sự kiện nhấp chuột */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #26A9E0;
    border-radius: 50%;
}

.page-resources-maximize-promotions__faq-item.active .page-resources-maximize-promotions__faq-toggle {
    color: #FFFFFF;
    background-color: #26A9E0;
    transform: rotate(45deg); /* Thay đổi thành X hoặc chỉ xoay + thành - */
}

/* Nội dung câu trả lời FAQ */
.page-resources-maximize-promotions__faq-answer p {
    font-size: 16px;
    color: #555555;
    margin: 0;
    text-align: justify;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-maximize-promotions__hero-content h1 {
        font-size: 40px;
    }
    .page-resources-maximize-promotions__hero-content p {
        font-size: 18px;
    }
    .page-resources-maximize-promotions__section-title {
        font-size: 28px;
    }
    .page-resources-maximize-promotions__card-title {
        font-size: 20px;
    }
    .page-resources-maximize-promotions__strategy-title {
        font-size: 22px;
    }
    .page-resources-maximize-promotions__faq-question h3 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    /* Fixed Header Offset for mobile */
    .page-resources-maximize-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-maximize-promotions__hero-content h1 {
        font-size: 32px;
    }
    .page-resources-maximize-promotions__hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-resources-maximize-promotions__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important; /* Ensure buttons are full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources-maximize-promotions__cta-button-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources-maximize-promotions__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-resources-maximize-promotions__text-block {
        font-size: 16px;
    }

    /* Images responsiveness */
    .page-resources-maximize-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-maximize-promotions__section,
    .page-resources-maximize-promotions__card,
    .page-resources-maximize-promotions__container,
    .page-resources-maximize-promotions__strategy-item,
    .page-resources-maximize-promotions__mistake-item,
    .page-resources-maximize-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-maximize-promotions__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources-maximize-promotions__card img {
        min-
    }
    .page-resources-maximize-promotions__strategy-item img {
        min-
    }
    .page-resources-maximize-promotions__mistake-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* FAQ Mobile */
    .page-resources-maximize-promotions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources-maximize-promotions__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-resources-maximize-promotions__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-resources-maximize-promotions__faq-answer {
        padding: 0 15px;
    }
    .page-resources-maximize-promotions__faq-item.active .page-resources-maximize-promotions__faq-answer {
        padding: 15px !important;
    }
}

/* Color Contrast Fixes (if needed) */
.page-resources-maximize-promotions__dark-bg {
    color: #ffffff; /* Deep blue background with white text */
    background: #26A9E0;
}

.page-resources-maximize-promotions__light-bg {
    color: #333333; /* White background with dark text */
    background: #ffffff;
}

.page-resources-maximize-promotions__faq-item.active .page-resources-maximize-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}