/* Nhúng Google Font - Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
/*Theme Name: soicaumb888.com
Author: Admin
Version: 1.0
*/

/* ========== BIẾN MÀU CHỦ ĐẠO & KIỂU CHUNG ========== */
:root {
    --primary-color: #2E3192; /* Màu xanh chủ đạo */
    --hover-color: #1C39BB;   /* Màu khi hover */
    --text-color: #000;       /* Màu chữ chính */
    --bg-light: #f6f6f6;      /* Nền sáng */
    --shadow: 0 7px 22px rgba(0, 0, 0, 0.3); /* Bóng đổ */
    --radius-sm: 3px;         /* Bo góc nhỏ */
    --radius-md: 5px;         /* Bo góc trung bình */
    --radius-lg: 8px;         /* Bo góc lớn */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}


body {
    font-family: 'Roboto', Arial, Helvetica, Geneva, Swiss, SunSans-Regular; /* Thêm 'Roboto' */
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-color);
    max-width: 750px;
    margin: auto;
    box-shadow: var(--shadow);
}
strong, b {
    font-weight: 700; /* Đảm bảo font-weight là 700 để chữ đậm hiển thị đúng */
}

/* Đảm bảo văn bản ngắt dòng đúng cách */
* {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Tránh nội dung vượt khỏi vùng chứa */
.container, .box, .lottery-block, .lottery-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}
/* Logo full chiều ngang */
.site-logo {
    text-align: center; /* Canh giữa logo */
}
.site-logo img {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
/* ========== LIÊN KẾT ========== */
a {
    text-decoration: none;
    color: #000;
}

a strong {
    text-transform: none !important;
}
a:hover, a:focus {
    color: #a92f25;
    text-decoration: none;
}

/* ========== HEADER ========== */
#header {
    text-align: center;
    background: #1C39BB;
    padding: 6px;
    color: #fff;
    font-size: 15px;
}

/* MENU WRAPPER */
.extra-menu-wrapper {
    width: 100%;                          /* Chiều rộng tối đa */
    background: #FFFFFF;                  /* Nền trắng */
    border: 2px solid #1C39BB;            /* Viền màu xanh lá */
    border-radius: 5px;                   /* Bo góc nhẹ */
    margin: 2px auto;                     /* Căn giữa với lề trên dưới 2px */
    overflow: hidden;                     /* Ẩn phần tràn ra, không hiển thị thanh cuộn */
}

.navigation.extra-navigation {
    width: 100%;                          /* Chiếm toàn bộ chiều ngang */
}

.navigation.extra-navigation .menu-list {
    display: flex;                        /* Sử dụng Flexbox để hiển thị các mục menu */
    flex-wrap: nowrap;                   /* Không cho các mục menu xuống dòng */
    justify-content: space-between;      /* Căn đều khoảng cách giữa các mục */
    padding: 2px;                    /* Khoảng đệm trên dưới 2px, trái phải 4px */
    background: #FFFFFF;                 /* Nền trắng */
    margin: 0;                           /* Xóa khoảng cách ngoài mặc định */
    list-style: none;                    /* Bỏ dấu chấm đầu dòng của danh sách */
}

.navigation.extra-navigation .menu-list li {
    flex: 1 1 0;                         /* Các mục menu co giãn đều nhau */
    margin: 0 2px;                       /* Khoảng cách giữa các mục menu trái phải 2px */
}

.navigation.extra-navigation .menu-list li a {
    display: block;                      /* Biến thành khối để có thể set width/height */
    width: 100%;                         /* Chiếm toàn bộ chiều ngang của thẻ cha <li> */
    background: #2E3192;                 /* Nền màu xanh lá */
    color: #fff;                         /* Màu chữ trắng */
    padding: clamp(2px, 0.5vw, 5px) clamp(6px, 1.2vw, 10px); /* GẦN VIỀN HƠN: giảm padding top-bottom, tăng left-right */
    font-size: clamp(13px, 2vw, 17px);   /* CHỮ TO HƠN */
    border-radius: 5px;                  /* Bo góc nhẹ */
    text-decoration: none;               /* Bỏ gạch chân liên kết */
    text-align: center;                  /* Căn giữa chữ */
    white-space: nowrap;                /* Không cho chữ xuống dòng */
    overflow: hidden;                   /* Ẩn nội dung vượt giới hạn */
    text-overflow: ellipsis;           /* Thêm dấu “…” nếu chữ dài quá */
    transition: background 0.3s ease;   /* Hiệu ứng chuyển màu nền mượt mà khi hover */
}

.navigation.extra-navigation .menu-list li a:hover {
    background: #5ca82e;                /* Màu nền thay đổi khi hover */
}

@media (max-width: 480px) {
    .navigation.extra-navigation .menu-list li a {
        font-size: clamp(11px, 3vw, 13px);  /* Cỡ chữ lớn hơn chút ở màn nhỏ */
        padding: 3px 5px;                   /* Padding nhỏ hơn nhưng vẫn thoáng */
    }
}



/* ========== DÃY SỐ MAY MẮN ========== */
#lucky-number {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0;
    color: #e53900;
    background: #fff4e5;
    border: 1px dashed #e53900;
    border-radius: 6px;
    padding: 5px;
}

/* ====== VÙNG CUỘN TỰ ĐỘNG ====== */
.scroll-wrapper {
    position: relative;
    height: 450px; /* Điều chỉnh chiều cao vùng cuộn */
    overflow: hidden; /* Ẩn thanh cuộn, ngăn scroll thủ công */
    pointer-events: none; /* Vô hiệu hóa thao tác tay */
    mask-image: linear-gradient(to top, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Nội dung cuộn */
.scroll-content {
    display: flex;
    flex-direction: column;
    animation: autoScroll 25s linear infinite;
}

/* ====== KHỐI XỔ SỐ ====== */
.lottery-block {
    background: #fff;
    border: 2px solid #3caa3e;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin: 10px auto;
    max-width: 700px;
    animation: fadeIn 0.8s ease-in-out;
}

.lottery-block h2 {
    font-size: 22px;
    color: #3caa3e;
    text-align: center;
    margin-bottom: 6px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

.lottery-block h3 {
    font-size: 18px;
    margin-top: 5px;
    color: #0073aa;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.lottery-block p {
    font-size: 14px;
    color: #222;
    line-height: 1.5;
    margin: 6px 0;
}

.lottery-block p:last-child {
    color: #004085;
    font-style: italic;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
}

/* ====== CHỮ SỐ ====== */
.lottery-block .num {
    display: inline-block;
    background: #3caa3e;
    color: #fff;
    padding: 3px 6px;
    border-radius: 5px;
    margin: 2px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lottery-block .num:hover {
    background: #2a8d2d;
    transform: scale(1.08);
}


/* ========== BẢNG KẾT QUẢ ========== */
.lottery-table {
    width: 100%;
    border-collapse: collapse;
    margin: 5px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.lottery-table th,
.lottery-table td {
    border: 1px solid #ddd;
    padding: 10px 14px;
    text-align: center;
    font-size: 16px;
}
.lottery-table th {
    background: var(--primary-color);
    color: #fff;
    font-weight: bold;
}
.lottery-table tr:nth-child(even) {
    background: #f9f9f9;
}
.lottery-table tr:hover {
    background-color: #e3f2fd;
}

/* ====== HIỆU ỨNG CUỘN MỜ DẦN ====== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== CUỘN TỰ ĐỘNG TỪ DƯỚI LÊN ====== */
@keyframes autoScroll {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(-100%);
    }
}


/* ========== KHỐI BOX & CONTAINER ========== */
.container, .box {
    background: #fff;
    padding: 5px;
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.03);
    margin-bottom: 5px;
}
/* ========== TIÊU ĐỀ BÀI VIẾT ========== */
/* Thêm margin-left để tăng khoảng cách lề trái */
.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: 700;
    text-align: left;
    color: var(--primary-color);
    margin: 5px 5px;
    margin-left: 20px; /* Tăng lề trái */
}

.section-title {
    background: #e9f0ff;
    color: #0141B6;
    font-weight: bold;
    padding: 6px 8px;
    margin-top: 8px;
    border-left: 4px solid #0141B6;
    border-radius: 2px;
}


/* ========== DANH SÁCH BÀI VIẾT ========== */
.post-list {
    list-style: none;
    margin-left: 2px; /* Giữ lại margin-left hoặc thay đổi giá trị này */
    padding-left: 10px; /* Thêm khoảng cách lề trái cho toàn bộ danh sách */
}

.post-list li {
 border-bottom: 1px solid #c2e0c6;
    margin-bottom: 5px;
}

.post-list li a {
    color: var(--text-color);
}

.post-list li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ========== PHÂN TRANG ========== */
.pagination {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}
.pagination .page-numbers {
    margin: 0 5px;
    padding: 4px 6px;
    background: #eaeaea;
    border-radius: var(--radius-sm);
    color: var(--text-color);
}
.pagination .current {
    background: var(--primary-color);
    color: #fff;
}
/* ========== FORM TÌM KIẾM ========== */
.search-form {
    display: flex; /* Sử dụng Flexbox để sắp xếp các phần tử con */
    justify-content: center; /* Căn giữa các phần tử theo chiều ngang */
	margin-top: 5px; /* Khoảng cách phía trên form */
    margin-bottom: 5px; /* Khoảng cách phía dưới form */
    gap: 10px; /* Khoảng cách giữa input và nút button */
    flex-wrap: wrap; /* Cho phép xuống dòng nếu không đủ chỗ */
}

.search-form input[type="text"] {
    padding: 10px 20px; /* Khoảng cách trong input (trên dưới 10px, trái phải 20px) */
    font-size: 16px; /* Cỡ chữ dễ nhìn */
    border-radius: var(--radius-sm); /* Bo tròn góc dùng biến CSS (bo nhẹ) */
    border: 1px solid #ddd; /* Viền xám nhạt */
    width: 80%; /* Chiếm 80% chiều ngang khối cha */
    max-width: 700px; /* Không vượt quá 700px để giữ form gọn gàng */
}

.search-form button {
    padding: 10px 20px; /* Kích thước nút (giống input để đồng đều) */
    font-size: 16px; /* Cỡ chữ dễ đọc */
    background: var(--primary-color); /* Màu nền theo biến màu chính */
    color: #fff; /* Chữ trắng nổi bật trên nền màu */
    border: none; /* Bỏ viền mặc định của nút */
    border-radius: var(--radius-sm); /* Bo tròn nhẹ giống input */
    cursor: pointer; /* Đổi con trỏ chuột thành bàn tay khi hover */
}

/* ========== DANH SÁCH BÌNH LUẬN ========== */
.comment-list {
    list-style: none;
    padding: 0;
}
.comment-list li {
    margin-bottom: 15px;
    padding: 10px;
    background: #f1f1f1;
    border-radius: var(--radius-md);
}
.comment-author {
    font-weight: bold;
    color: var(--primary-color);
}
.comment-content {
    margin-top: 5px;
    line-height: 1.6;
}
/* ========== THÔNG BÁO ========== */
.notice {
    padding: 15px;
    border: 1px dashed #ffc107;
    background: #fff8e1;
    color: #856404;
    border-radius: var(--radius-sm);
    margin: 20px 0;
}
.notice.success {
    border-color: #28a745;
    background: #e6ffed;
    color: #155724;
}
.notice.error {
    border-color: #dc3545;
    background: #ffe2e6;
    color: #721c24;
}
/* ========== XEM THÊM (Giao diện cũ giữ nguyên) ========== */
.xem-them-wrapper {
    text-align: center;
    margin: 10px 0;
}
.xem-them-wrapper a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
}
/* ========== ACCESSIBILITY (Trợ năng) ========== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* ========== FOOTER ========== */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #FFFFFF;
  padding: 20px 0;
}
/* ========== xem thêm ========== */
.more-link {
  text-align: center;
  margin: 15px 0 30px;
}
.more-link .button {
  background-color: #28a745; /* Xanh lá cây */
  color: #fff;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.15);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.more-link .button:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(40, 167, 69, 0.25);
}
.related-posts h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #222;
}
.related-posts ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.related-posts li {
  margin-bottom: 10px;
}
/* ==========Bài viết liên quan========== */
.related-posts a {
  color: #28a745; /* Xanh lá cây */
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}
.related-posts a:hover {
  color: #1e7e34; /* Màu xanh đậm hơn khi hover */
  text-decoration: underline;
}

.related-posts {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-left: 4px solid #0073aa; /* thanh màu bên trái */
    padding: 5px 10px;
    margin: 10px 0;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.related-posts h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 10px;
    color: #0073aa;
    font-weight: 600;
}

.related-posts ul {
    list-style: disc inside;
    margin: 0;
    padding: 0;
}

.related-posts li {
    margin-bottom: 8px;
}

.related-posts a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-posts a:hover {
    color: #0073aa;
    text-decoration: underline;
}
/* Định dạng menu phụ (thanh chứa menu ngang) */
.menu-phu {
    display: flex;                        /* Hiển thị dạng flexbox */
    justify-content: center;             /* Căn giữa nội dung menu */
    padding: 2px;                         /* Padding tổng thể */
    width: 100%;                          /* Chiếm toàn bộ chiều ngang */
    background: #FFFFFF;                  /* Nền trắng */
    border: 2px solid #6bc135;            /* Viền màu xanh lá */
    border-radius: 5px;                   /* Bo góc */
    margin: 0 auto;                       /* Căn giữa */
    overflow-x: auto;                     /* Cho phép cuộn ngang khi tràn */
    overflow-y: hidden;                   /* Ẩn cuộn dọc */
    white-space: nowrap;                 /* Không cho các mục xuống dòng */
    -ms-overflow-style: none;             /* Ẩn scrollbar trên IE/Edge */
    scrollbar-width: none;                /* Ẩn scrollbar trên Firefox */
}
.menu-phu::-webkit-scrollbar {
    display: none;                        /* Ẩn scrollbar trên Chrome/Safari */
}

/* Danh sách menu (ul) */
.menu-list-phu {
    list-style: none;
    margin: 0;
    padding: 0 8px;                       /* Tăng padding ngang một chút */
    display: flex;
    justify-content: flex-start;
    gap: 8px;                             /* Tăng khoảng cách mặc định */
    flex-wrap: nowrap;
}

.menu-list-phu li {
    display: inline-block;
    white-space: nowrap;
}

.menu-list-phu a {
    display: inline-flex;
    align-items: center;
    padding: 6px clamp(8px, 1.8vw, 14px); /* Tăng padding khi rộng */
    background-color: #f0f0f5;
    color: #0077cc;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    font-size: clamp(11px, 1vw, 14px);    /* Tăng nhẹ font */
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    cursor: pointer;
    max-width: 100%;
}

.menu-list-phu img {
    margin-right: 6px;
    max-height: 18px;
    border-radius: 2px;
}

.menu-list-phu a:hover {
    background-color: #e6e6f0;
    color: #005fa3;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.menu-list-phu a:active {
    background-color: #d9d9e6;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(0);
}

/* Khi giao diện rộng hơn 1024px, tăng khoảng cách và kích cỡ nút */
@media (min-width: 1024px) {
    .menu-list-phu {
        gap: 12px;
        padding: 0 16px;
    }

    .menu-list-phu a {
        padding: 8px 18px;
        font-size: 14px;
    }

    .menu-list-phu img {
        max-height: 20px;
    }
}
/*Thẻ H1 */
.custom-h1-title {
    font-size: 12px;
    font-weight: bold;
    color: #222;
    text-align: center;
    margin: 2px 0;
    padding: 2px 0;
    width: 100%;
}
	/*Tác Giả*/
.author-box-advanced {
    display: flex;
    gap: 5px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 5px;
    margin-top: 5px;
    border-radius: 8px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.author-details {
    flex: 1;
    margin-left: 10px;
}

.author-name {
    margin: 2px;
    font-size: 15px;
    color: #222;
}

.author-bio {
    margin: 2px 0;
    color: #555;
	 font-size: 10px;
}

.author-link {
    text-decoration: none;
    color: #0073aa;
    font-weight: 500;
}

.author-link:hover {
    text-decoration: underline;
}

.bmenu3 {
     background-color: #3caa3e;
     /* xanh lá cây */
     padding: 10px 15px;
     border-radius: 6px 6px 0 0;
     color: #fff;
     font-weight: bold;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
     user-select: none;
 }

 .bmenu3 h3 {
     margin: 0;
     font-size: 16px;
 }

 .list1 {
     background-color: #f9fefa;
     border: 1px solid #c2e0c6;
     padding: 8px 15px;
     margin: 0;
     border-top: none;
     display: flex;
     align-items: center;
     font-size: 14px;
     transition: background-color 0.3s ease;
     cursor: pointer;
 }

 .list1+.list1 {
     border-top: none;
 }

 .list1 img {
     width: 20px;
     vertical-align: middle;
     margin-right: 8px;
 }

 .list1 a {
     color: #FF3333;
     text-decoration: none;
     font-weight: 500;
     flex-grow: 1;
 }

 .list1:hover {
     background-color: #d9f0d8;
 }

 .list1:hover a {
     text-decoration: underline;
 }
.new-badge {
    background-color: #ff0000;
    color: #fff;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 10px;
    margin-left: 3px;
    display: inline-block;
    white-space: nowrap;
    animation: blink 1s infinite;
}

/* Hiệu ứng nhấp nháy */
@keyframes blink {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0; 
    }
}

