/* style.css - CSS chung cho các trang Zo789 */

/* Reset mặc định và cấu trúc cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #003087; /* Màu nền chính - xanh dương đậm */
    color: #F5F5F5; /* Màu chữ chính - xám nhạt, dễ đọc */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Container chính */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px;
    background-color: #003087; /* Nền container đồng bộ */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Đổ bóng nội dung */
    border-radius: 10px;
}
section{
    padding:0 30px;
}

/* Header (h1) */
#header-main, #header-promo, #header-win, #header-cashback, #header-mobile {
    text-align: center;
}

h1 {
    font-size: 29px;
    font-weight: bold;
    text-transform: uppercase;
    color: #FFD700; /* Màu vàng ánh kim nổi bật */
    margin-bottom: 20px;
}

/* Section */
#content-section-1, #content-section-2, #content-section-3,
#promo-section-1, #promo-section-2, #promo-section-3,
#win-section-1, #win-section-2, #win-section-3,
#cashback-section-1, #cashback-section-2, #cashback-section-3,
#mobile-section-1, #mobile-section-2, #mobile-section-3 {
    margin-bottom: 30px; /* Khoảng cách giữa các section */
}

/* Liên kết */
a {
    color: #FFD700; /* Màu vàng ánh kim cho liên kết */
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FFFFFF; /* Chuyển sang trắng khi hover */
    text-decoration: underline;
    transform: scale(1.05); /* Phóng to nhẹ */
    background-color: rgba(255, 215, 0, 0.2); /* Nền sáng nhẹ */
}

/* Ảnh minh họa */
figure img {
    max-width: 640px !important;
    width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
    animation: imageFade 1s ease-in-out; /* Animation cho ảnh */
}

figcaption {
    text-align: center;
    font-style: italic;
    color: #F5F5F5;
    margin-top: 10px;
}

/* Animation cho ảnh */
@keyframes imageFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Bảng dữ liệu */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1A4B9E; /* Xanh dương nhạt hơn nền chính */
    color: #F5F5F5;
    margin: 20px 0;
}

.table th, .table td {
    padding: 12px;
    border: 1px solid #FFD700; /* Viền vàng ánh kim */
    text-align: left;
}

.table th {
    background-color: #FFD700; /* Nền tiêu đề bảng */
    color: #003087; /* Chữ xanh đậm */
    font-weight: bold;
}

.table tbody tr:nth-child(even) {
    background-color: #2A5DB0; /* Xanh dương nhạt hơn cho dòng chẵn */
}

/* Footer */
#footer-main, #footer-promo, #footer-win, #footer-cashback, #footer-mobile {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #FFD700;
}

#footer-main a, #footer-promo a, #footer-win a, #footer-cashback a, #footer-mobile a {
    text-decoration: underline; /* Gạch chân liên kết trong footer */
    color: #FFD700;
}

#footer-main a:hover, #footer-promo a:hover, #footer-win a:hover, #footer-cashback a:hover, #footer-mobile a:hover {
    color: #FFFFFF;
    background-color: transparent; /* Không thêm nền khi hover trong footer */
}

/* Responsive cho di động */
@media (max-width: 768px) {
    h1 {
        font-size: 24px; /* Giảm kích thước chữ trên mobile */
    }

    .container {
        padding: 15px;
    }

    figure img {
        max-width: 100%; /* Ảnh full width trên mobile */
    }

    .table th, .table td {
        font-size: 14px; /* Giảm kích thước chữ trong bảng */
        padding: 8px;
    }
}