/* Nhúng Google Font - Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/*
Theme Name: soicauclub.com
Author: Admin
Version: 3.0 (iOS 26 Glassmorphism Rework)
*/

/* =======================================================================
    ========== 1. BIẾN MÀU CHỦ ĐẠO & KIỂU CHUNG (GLASS BASE) ==========
    ======================================================================= */

/* 1. KHAI BÁO BIẾN CSS (Tối ưu cho Glassmorphism hiện đại) */
:root {
    --primary-color: #007bff; /* Màu xanh dương chủ đạo */
    --hover-color: #0056b3;    /* Màu khi hover */
    --text-color: #333333;      /* Màu chữ chính */
    
    /* GLASSMORPHISM VARIANTS (Hiện đại, trong hơn, viền rõ hơn) */
    --glass-bg: rgba(255, 255, 255, 0.15); /* Nền kính lỏng: TRONG HƠN */
    --glass-bg-lite: rgba(255, 255, 255, 0.5); /* Nền cho các khối phụ */
    --glass-blur: blur(16px); /* Độ mờ LỚN HƠN */
    --glass-shadow: 0 10px 30px rgba(31, 38, 135, 0.2); /* Đổ bóng nhẹ hơn, lan tỏa hơn */
    --glass-border: 1px solid rgba(255, 255, 255, 0.4); /* VIỀN KÍNH RÕ RÀNG */
    
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 18px; /* Bo góc lớn hơn cho khối chính */
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ÁP DỤNG FONT CHUNG LÊN BODY (Đã loại bỏ GLASS WRAPPER CHÍNH) */
body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 750px;
    margin: auto;
    box-shadow: var(--shadow);
    /* FIX: Thêm overflow-x hidden ở body để tránh giật cuộn ngang toàn trang */
    overflow-x: hidden;
}

/* =======================================================================
    ========== *** GLASS WRAPPER MỚI CHO NỘI DUNG CHÍNH *** ==========
    ======================================================================= */
.wp-content-wrapper {
    /* GLASS WRAPPER CHÍNH (Đã chuyển từ body sang đây) */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    
    max-width: 750px;
    margin: 5px auto; /* Căn giữa nội dung chính */
    
    /* FIX: Ổn định Render cho Backdrop Filter để tránh Flickering */
    transform: translate3d(0, 0, 0);
    will-change: transform;
}
/* ======================================================================= */


strong, b {
    font-weight: 700;
}

/* Tránh nội dung vượt khỏi vùng chứa */
.lottery-block, .lottery-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

/* ========== LIÊN KẾT ========== */
a {
    text-decoration: none;
    color: var(--primary-color);
    text-transform: none;
}
a:hover, a:focus {
    color: var(--hover-color);
    text-decoration: underline;
}

/* =======================================================================
    ========== 2. HEADER & NAVIGATION ==========
    ======================================================================= */

#header {
    text-align: center;
    background: var(--primary-color);
    padding: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 0;
}

/* MENU CHÍNH (.menu-chinh) - Glassmorphism */
.menu-chinh {
    width: 100%;
    margin: 2px auto;
    overflow: hidden;
    
    background: var(--glass-bg-lite);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    border: var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    /* FIX: Ổn định Render cho Menu */
    transform: translate3d(0, 0, 0);
}

/* MENU LIST (ul.menu-list-chinh) - Flex Container */
.menu-chinh .menu-list-chinh {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    
    list-style: none;
    margin: 0;
    padding: 3px;
    background: transparent;
}

/* MENU ITEM (li) */
.menu-chinh .menu-list-chinh li {
    flex: 1 1 0;
    margin: 0 3px;
}

/* MENU LINK (a) */
.menu-chinh .menu-list-chinh li a {
    display: block;
    width: 100%;
    
    /* Styling nút */
    background: var(--primary-color);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;

    /* Responsive Text & Padding */
    padding: clamp(5px, 1vw, 8px) clamp(10px, 2vw, 15px);
    font-size: clamp(13px, 2vw, 16px);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* HIỆU ỨNG HOVER */
.menu-chinh .menu-list-chinh li a:hover {
    background: var(--hover-color);
    transform: translateY(-2px);    
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* MEDIA QUERIES (Tối ưu cho mobile) */
@media (max-width: 480px) {
    .menu-chinh .menu-list-chinh li a {
        font-size: clamp(10px, 3vw, 13px);    
        padding: 5px 2px;
    }
}


/* =======================================================================
    ========== 3. KHỐI NỘI DUNG & TIÊU ĐỀ (GLASS BLOCKS) ==========
    ======================================================================= */

.container, .box {
    /* ÁP DỤNG GLASSMORPHISM CŨNG NHƯ BODY */
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    
    padding: 3px;
    border-radius: var(--radius-lg);
    margin: 3px auto 5px;
    
    /* FIX: Ổn định Render cho các khối Container */
    transform: translate3d(0, 0, 0);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 14px;
    margin: 10px 0;
    padding: 0 5px;
}
.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Tiêu đề */
.custom-h1-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 5px 0;
    padding: 2px 0;
    width: 100%;
}
.post-title {
    font-size: 24px;
    font-weight: 700;
    text-align: left;
    color: var(--primary-color);
    margin: 5px 5px;
    margin-left: 5px; /* Tăng lề trái */
}

.site-title {
    font-size: 24px;
    font-weight: 900;
    text-align: left;
    color: var(--primary-color);
    margin: 5px 5px;
    margin-left: 20px; /* Tăng lề trái */
}

.section-title {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 700;
    margin: 10px 0 5px;
    color: var(--primary-color);
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
}

/* =======================================================================
    ========== 4. LISTS, FORM & UTILITIES (ĐÃ CHỈNH SỬA LI) ==========
    ======================================================================= */

/* DANH SÁCH BÀI VIẾT */
.post-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

/* Mục danh sách - LI */
.post-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    padding-bottom: 8px;
    /* KHÔNG có padding-left để border-bottom trải hết chiều rộng */
}
/* Liên kết - A (Áp dụng padding cho nội dung để cân bằng) */
.post-list li a {
    color: var(--text-color);
    font-weight: 500;
    display: block;
    padding-left: 15px; /* Dịch chuyển nội dung chữ vào trong */
    padding-right: 15px;    
}
.post-list li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* PHÂN TRANG */
.pagination {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}
.pagination .page-numbers {
    margin: 0 4px;
    padding: 6px 12px;
    background: var(--glass-bg-lite);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    transition: all 0.25s;
    font-weight: 500;
}
.pagination .current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.5);
}
.pagination .page-numbers:hover {
    background: var(--hover-color);
    color: #fff;
    border-color: var(--hover-color);
}

/* FORM TÌM KIẾM (Glassmorphism Input) */
.search-form {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 15px;
    gap: 10px;
    flex-wrap: wrap;
}
.search-form input[type="text"] {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: var(--radius-md);
    /* GLASS INPUT STYLE */
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    
    width: 80%;
    max-width: 700px;
    transition: all 0.3s;
}
.search-form input[type="text"]:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.search-form button {
    padding: 10px 20px;
    font-size: 16px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
}
.search-form button:hover {
    background: var(--hover-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* =======================================================================
    ========== 5. COMPONENTS (AUTHOR, LIST10, RELATED, ETC.) ==========
    ======================================================================= */

/* Tác Giả (Author Box - Glassmorphism) */
.author-box-advanced {
    display: flex;
    gap: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: var(--glass-border);
    padding: 15px;
    margin-top: 10px;
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    align-items: center;
    
    /* FIX: Ổn định Render */
    transform: translate3d(0, 0, 0);
}
.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}
.author-name {
    font-size: 18px;
    font-weight: 700;
}
.author-bio {
    font-size: 13px;
    color: #555;
}

/* List 10 (Khối cảnh báo nổi bật - Glassmorphism) */
.list10 {
    background: var(--glass-bg-lite);    
    backdrop-filter: blur(5px);
    border: var(--glass-border);
    border-left: 5px solid #dd0000;
    padding: 15px 20px;
    margin: 15px 0;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    
    /* FIX: Ổn định Render */
    transform: translate3d(0, 0, 0);
}
.list10:hover {
    background-color: rgba(255, 255, 255, 0.7);    
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.list10 a {
    font-weight: 700;
    color: #dd0000;
}

/* Bài viết liên quan (Glassmorphism) */
.related-posts {
    background-color: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: var(--glass-border);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    
    /* FIX: Ổn định Render */
    transform: translate3d(0, 0, 0);
}
.related-posts h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Menu danh sách (bmenu3 & list1 - Glassmorphism) */
.bmenu3 {
    background-color: var(--primary-color);
    padding: 10px 15px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}
.list1 {
    background-color: var(--glass-bg-lite);    
    border: var(--glass-border);
    padding: 10px 15px;
    margin: 0;
    border-top: none;
    display: flex;
    align-items: center;
    font-size: 15px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
.list1+.list1 {
    border-top: none;
}
.list1:last-child {
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}
.list1:hover {
    background-color: rgba(255, 255, 255, 0.85);
}
.list1 a {
    font-weight: 500;
    color: var(--primary-color);
}

/* Testimonials Container (Glassmorphism) */
.testimonial-container {
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin: 10px auto;
    box-shadow: var(--glass-shadow);
    
    /* FIX: Ổn định Render */
    transform: translate3d(0, 0, 0);
}
.testimonial-box {
    background: rgba(240, 240, 245, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 15px;
}
.testimonial-box span {
    color: #059669;
    font-weight: 700;
}

/* Danh sách bình luận (Glassmorphism) */
.comment-list li {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(248, 248, 248, 0.7);    
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Thông báo (Glassmorphism) */
.notice {
    padding: 15px;
    border: 1px dashed #ffc107;
    background: rgba(255, 248, 225, 0.7);    
    color: #856404;
    border-radius: var(--radius-md);
    margin: 20px 0;
}
.notice.success {
    border-color: var(--primary-color);
    background: rgba(230, 255, 237, 0.7);
    color: #155724;
}

/* =======================================================================
    ========== 6. BUTTONS & FOOTER (GLASSMORPHISM IOS STYLE) ==========
    ======================================================================= */

/* Class tiện ích để căn giữa các nút inline-block/text bên trong khối cha. 
    Dùng: <div class="center-buttons-wrapper">...nút...</div> */
.center-buttons-wrapper {
    text-align: center;    
    margin-top: 15px;    
    margin-bottom: 15px;
}

/* Buttons - Áp dụng Glassmorphism, bo tròn và hiệu ứng hover nâng nhẹ (iOS style) */
.xem-them-wrapper a,
.more-link .button,
.button2 {
    display: inline-block;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    
    /* GLASS STYLE */
    border-radius: var(--radius-md); /* Bo tròn */
    color: var(--primary-color); /* Màu chữ chính */
    background: var(--glass-bg-lite); /* Nền kính lỏng */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: var(--glass-border); /* Viền kính rõ ràng */

    /* HIỆU ỨNG CHUNG */
    transition: all 0.25s ease;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); /* Đổ bóng nhẹ */
}

.center-buttons-wrapper {
    text-align: center; /* Đây là dòng quan trọng nhất */
    margin-top: 15px;	
    margin-bottom: 15px;
}

/* HIỆU ỨNG HOVER NÂNG LÊN VÀ SÁNG HƠN (iOS style) */
.xem-them-wrapper a:hover,
.more-link .button:hover,
.button2:hover {
    transform: translateY(-2px); /* Nâng nhẹ */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Đổ bóng rõ hơn */
    background: rgba(255, 255, 255, 0.7); /* Sáng hơn */
    color: var(--hover-color);
}

/* FOOTER (Glassmorphism) */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--glass-bg);
    backdrop-filter: blur(8px);
    border-top: var(--glass-border);
    padding: 15px 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--glass-shadow);
    
    /* FIX: Ổn định Render Footer */
    transform: translate3d(0, 0, 0);
}
/* =======================================================================
    FOOTER STYLES (Đã Tăng Kích Thước Chữ)
    ======================================================================= */

/* Khối liên hệ Telegram và Menu điều hướng dưới */
.footer-contact-links {
    text-align: center;
    margin-top: 20px;
}

/* Text Liên Hệ Telegram: Tăng lên 20px */
.footer-contact-links .telegram-text {
    font-size: 20px;
}
.footer-contact-links .telegram-link {
    display: inline-block;
    margin-right: 15px;
}

/* Khối các liên kết giới thiệu/liên hệ: Tăng lên 14px */
.footer-contact-links .footer-nav-links {
    font-size: 14px;
}

/* Khối Đồng hành cùng chuyên trang */
.footer-partner-box {
    text-align: center;
    font-size: 15px; /* Tăng từ 14px lên 15px */
    color: var(--text-color); /* Dùng biến để thống nhất */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    max-width: 100%;
}

/* Khối Footer Chính */
.site-footer {
    text-align: center;
    display: flex;
    justify-content: center;
    background-color: #e0f7e9;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-top: 5px;
    /* FIX: Thêm transform */
    transform: translate3d(0, 0, 0);
}

/* Tiêu đề cầu vồng (id r1) */
.site-footer .footer-main-title {
    text-align: center;
    margin: 10px 0;
    font-size: 20px; /* Thêm font size cho H2 để rõ ràng */
}

/* Product By: Tăng lên 15px */
.site-footer .footer-product-by {
    color: red;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Copyright và Địa chỉ: Tăng lên 15px */
.site-footer .footer-copyright {
    color: #000;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Liên kết trang web trong Copyright */
.site-footer .footer-copyright .site-link {
    color: black;
    text-decoration: none;
    font-weight: 700;
}

/* Liên hệ QC */
.site-footer .footer-qc-contact {
    color: #bf0f0f;
    font-size: 15px; /* Tăng lên 15px */
}

/* Liên kết trong Liên hệ QC */
.site-footer .footer-qc-contact a {
    color: #c92828;
    text-decoration: none;
}

/* =======================================================================
    7. BLOG POST COMPONENTS (Breadcrumbs, Marquee, Post Navigation)
    ======================================================================= */

/* Breadcrumbs Wrapper (Thay thế style inline) */
.breadcrumbs-wrapper {
    width: 100%;
    /* Bỏ max-width 1200px nếu theme max-width là 750px */
    max-width: 750px; 
    margin: 10px auto;
    /* Dùng class .breadcrumbs đã định nghĩa font-size 14px và color #555 */
}

/* Khung chữ chạy (Marquee Wrapper) */
.marquee-wrapper {
    background: #e0f7e0; /* Màu nền xanh lá nhạt */
    padding: 5px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-bottom: 15px; /* Thêm khoảng cách với nội dung dưới */
}

/* Nội dung chữ chạy (Marquee Content) */
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    /* Sử dụng biến speed đã có trong CSS gốc nếu muốn điều chỉnh tốc độ ở đây */
    animation: scrollText 20s linear infinite; 
}

/* Text trong Marquee */
.marquee-text {
    font-size: 14px;
    color: red;
}

/* Link trong Marquee */
.marquee-link {
    color: red !important; /* Đảm bảo link cũng có màu đỏ */
    font-weight: 700;
}

/* Post Navigation Wrapper (Khung điều hướng trước/sau) */
.post-navigation-wrapper {
    margin: 30px 0;
    text-align: center;
}

/* Flex Container cho 2 liên kết trước/sau */
.post-navigation-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 10px; /* Thêm padding nhẹ cho mobile */
}

/* Style cho từng liên kết điều hướng */
.prev-post-link a, 
.next-post-link a {
    display: block;
    padding: 8px 10px;
    background: var(--glass-bg-lite);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    /* Giới hạn chiều rộng link trên mobile để không bị tràn */
    max-width: 100%; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.next-post-link a {
    text-align: right;
}

.prev-post-link a:hover,
.next-post-link a:hover {
    background: var(--hover-color);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Đảm bảo liên kết trống giữ chỗ để flexbox hoạt động */
.prev-post-link.empty-link,
.next-post-link.empty-link {
    min-width: 10px; /* Chỉ cần một khoảng cách nhỏ để duy trì justify-content */
}