/* style/affiliate-program.css */
/* body đã padding-top: var(--header-offset)；trang này không được thêm lại biến đó */

/* Màu sắc tùy chỉnh */
:root {
    --color-bg: #08160F;
    --color-card-bg: #11271B;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-affiliate-program {
    font-family: Arial, sans-serif;
    background-color: var(--color-bg); /* Sẽ được body ghi đè nếu shared.css có background-color */
    color: var(--color-text-main); /* Mặc định chữ sáng trên nền tối */
    line-height: 1.6;
}

.page-affiliate-program a {
    color: var(--color-gold); /* Liên kết trong văn bản */
    text-decoration: none;
}

.page-affiliate-program a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-affiliate-program__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Đảm bảo hình ảnh trên, nội dung dưới */
    align-items: center;
    padding: 10px 0 40px; /* Chỉ một khoảng đệm nhỏ ở trên */
    text-align: center;
    overflow: hidden; /* Ngăn tràn */
}

.page-affiliate-program__hero-image-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-affiliate-program__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.8); /* Làm mờ ảnh để chữ dễ đọc hơn nếu có chữ trên ảnh */
    /* Không dùng filter đổi màu */
}

.page-affiliate-program__hero-content {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.page-affiliate-program__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Sử dụng clamp cho kích thước chữ linh hoạt */
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-main);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-affiliate-program__hero-description {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.page-affiliate-program__cta-button {
    display: inline-block;
    background: var(--color-button-gradient);
    color: var(--color-text-main); /* Chữ trắng trên nền nút */
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.page-affiliate-program__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Sections */
.page-affiliate-program__section {
    padding: 60px 20px;
    background-color: var(--color-bg);
}

.page-affiliate-program__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-affiliate-program__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.page-affiliate-program__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-glow);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-affiliate-program__section-title--light {
    color: var(--color-text-main); /* Đảm bảo chữ sáng trên nền tối */
}

.page-affiliate-program__text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    text-align: justify;
}

.page-affiliate-program__text--light {
    color: var(--color-text-main); /* Đảm bảo chữ sáng trên nền tối */
}