*{
margin: 0;
padding: 0;
box-sizing: border-box;
}



body {
font-family: 'Segoe UI', Arial, sans-serif; 
line-height: 1.6;
color: #333;
background-color: #f0f2f5;}



.wrapper {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px; 
}

a {
text-decoration: none;
color: inherit; 
}

ul {
list-style: none;
}
.main-header {
background-color: #fff;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-top {
background-color:#003366; 
color: #fff;
padding: 8px 0;
font-size: 0.85em;
border-bottom: 1px solid #003a72;
}

.header-top .wrapper {
display: flex;
justify-content: space-between;
align-items: center;
}

.member-of a {
color: #fff;
font-weight: bold;
display: inline-flex;
align-items: center;
font-family:Arial, Helvetica, sans-serif;
font-size: 10px;
gap: 5px;
}

.member-of img {
height: 50px;
width: 75px;
vertical-align: middle;
border-radius: 50%; }
.social-icons a {
color: #fff;
margin-left: 13px;
font-size: 1.1em;
transition: color 0.3s ease;
}

.social-icons a:hover {
color: #e0e0e0;
}

.header-bottom {
padding: 15px 0;
background-color: #fff;
}
.main-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f7f6;
}

a {
    text-decoration: none;
    color: inherit;
}

.section {
    padding: 60px 5%;
    text-align: center;
}

h1, h2 {
    color: #007
}
:root {
    --primary-blue: #007bff; /* Màu chủ đạo: Xanh */
    --secondary-orange: #ff9900; /* Màu nhấn: Cam */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s;
}

/* HEADER */
.header {
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-blue);
}

.logo img {
    height: 30px; /* Điều chỉnh kích thước logo */
    margin-right: 10px;
}

.top-nav a {
    color: #6c757d;
    margin-left: 20px;
    padding: 5px 0;
    font-size: 0.9em;
}

.top-nav a.active, .top-nav a:hover {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
}

:root {
    --primary-blue: #007bff; /* Xanh Chủ Đạo */
    --secondary-orange: #ff9900; /* Màu nhấn Cam */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s;
}

/* ==================================== */
/* HEADER CỐ ĐỊNH                      */
/* ==================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.3em;
    font-weight: 800;
     color:#003366 ;
    font-family: 'Times New Roman', Times, serif;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary-orange);
}

.top-nav a {
    color: #6c757d;
    margin-left: 25px;
    padding: 5px 0;
    font-weight: 500;
}

.top-nav a.active, .top-nav a:hover {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
}

   
:root {
    --sonadezi-primary: #004a80; /* Xanh Navy đậm, rất sang trọng */
    --sonadezi-accent: #00b34d; /* Xanh lá cây tươi, độc đáo */
    --text-dark: #333333;
    --bg-main: #fcfcfc; /* Nền trắng sáng */
    --bg-sidebar: #f5f7fa; /* Nền xám nhạt nhẹ nhàng */
    --border-color: #e0e0e0;
    --warning-color: #d9534f; /* Đỏ đô cho cảnh báo */
    --important-color: #f0ad4e; /* Vàng hổ phách cho quan trọng */
    --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f0f3f7; /* Nền tổng thể mát mẻ */
    margin: 0;
    padding: 0;
}

/* --- 2. LAYOUT CHÍNH (HEADER & CONTAINER) --- */

.section-rules {
    max-width: 1300px;
    margin: 40px auto;
    background: var(--bg-main);
    border-radius: 16px; /* Bo góc lớn hơn, hiện đại hơn */
    box-shadow: var(--shadow-main); 
    overflow: hidden;
}

/* Header dùng màu Navy sang trọng */
.rules-header {
   
    color: white;
    padding: 30px 40px;
    text-align: center;
    /* Dải màu nhẹ nhàng phía dưới */
    
}

.rules-header h1 {
    margin: 0;
    font-size: 3.8e m;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    color:#960707;
    font-family:Georgia, 'Times New Roman', Times, serif;
}

/* Container chia cột */
.rules-container {
    display: flex;
    min-height: 90vh; /* Tăng chiều cao tối thiểu */
}

/* --- 3. SIDEBAR (Mục Lục) - Tinh tế --- */

.rules-sidebar {
    width: 320px;
    flex-shrink: 0; 
    padding: 40px 25px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
}

.rules-sidebar h3 {
    color: var(--sonadezi-primary);
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}
/* Đường kẻ sang trọng */
.rules-sidebar h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color:  #004a80;
    margin-top: 5px;
}

.rules-sidebar ul {
    list-style: none;
    padding: 0;
}

.rules-sidebar a {
    display: block;
    padding: 15px 15px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

/* Hiệu ứng tương tác sidebar */
.rules-sidebar a:hover {
    background-color: var(--bg-main);
    color: var(--sonadezi-primary);
    border-left-color: var(--sonadezi-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- 4. CONTENT (Nội dung) --- */

.rules-content {
    flex-grow: 1; 
    padding: 40px 60px;
}

.rule-section {
    margin-bottom: 50px;
}

.rule-section h2 {
    font-size: 2.5em;
    color:#003366;
    margin-top: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color); /* Viền ngang dưới tiêu đề */
    padding-bottom: 10px;
    font-weight: 700;
}

/* Quy tắc con dùng Box-Shadow và Border Radius */
.rule-item {
    background: var(--bg-main);
    padding: 22px 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
    border: 1px solid var(--border-color); /* Viền mỏng */
    border-left: 6px solid var(--sonadezi-primary); 
    transition: all 0.3s;
}

.rule-item:hover {
    /* Hiệu ứng nhấc nhẹ và đổi màu viền */
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left-color: var(--sonadezi-accent);
}

.rule-item h4 {
    margin-top: 0;
    color: var(--sonadezi-primary);
    font-size: 1.4em;
    font-weight: 600;
    display: flex;
    align-items: center;
}
/* Icon trước tiêu đề con (sử dụng Font Awesome) */
.rule-item h4::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f058"; /* Biểu tượng Check-circle */
    margin-right: 12px;
    color: var(--sonadezi-accent);
    font-size: 0.9em;
}

.rule-item p, .rule-item ul {
    margin: 10px 0 0 37px; /* Căn chỉnh nội dung */
}

/* Highlight */
.highlight {
    font-weight: 600;
    color: var(--sonadezi-primary);
    padding: 2px 6px;
    border-radius: 4px;
}

/* --- 5. ĐIỂM NHẤN CẢNH BÁO (Icons và Màu sắc nổi bật) --- */

.rule-item.important {
    border-left-color: var(--important-color); 
    background-color: #fff9e6; 
}
.rule-item.important h4 {
    color: var(--important-color);
}
.rule-item.important h4::before {
    content: "\f06a"; /* Biểu tượng Information */
    color: var(--important-color);
}


.rule-item.warning {
    border-left-color: var(--warning-color); 
    background-color: #fde8e8; 
}
.rule-item.warning h4 {
    color: var(--warning-color);
}
.rule-item.warning h4::before {
    content: "\f05e"; /* Biểu tượng Bị cấm */
    color: var(--warning-color);
}
.rule-item.warning ul li {
    color: var(--text-dark); 
}


/* --- 6. ĐỊNH DẠNG THIẾT BỊ (RESPONSIVE) --- */

/* Màn hình Tablet và Mobile (dưới 1024px) */
@media (max-width: 1024px) {
    .section-rules {
        margin: 0; /* Xóa margin để full width */
        border-radius: 0;
        box-shadow: none;
    }
    .rules-container {
        flex-direction: column; 
        min-height: auto;
    }
    .rules-header {
        padding: 40px 20px;
    }
    .rules-header h1 {
        font-size: 2.5em;
    }
    .rules-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
    }
    .rules-sidebar ul {
        /* Chuyển Mục Lục thành thanh cuộn ngang */
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto; 
        justify-content: flex-start;
        padding-bottom: 10px;
        /* Ẩn thanh cuộn ngang (chỉ áp dụng trên Webkit browsers) */
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    .rules-sidebar ul::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    .rules-sidebar a {
        padding: 10px 15px;
        font-size: 0.9em;
        flex-shrink: 0;
        margin-right: 5px;
    }
    
    .rules-content {
        padding: 30px 20px;
    }
    .rule-section h2 {
        font-size: 2em;
        padding-bottom: 5px;
    }
}

/* Màn hình Mobile (dưới 600px) */
@media (max-width: 600px) {
    .rules-header h1 {
        font-size: 1.8em;
        letter-spacing: 1px;
    }
    .rule-item {
        padding: 15px;
    }
    .rule-item h4 {
        font-size: 1.1em;
    }
    /* Giảm khoảng cách căn lề cho nội dung */
    .rule-item p, .rule-item ul {
        margin-left: 30px; 
    }
}
.simple-footer {
background-color: #003366; 
color: #fff; 
padding: 30px 0; 
margin-top: 40px; 
font-size: 0.9em; 
}

.footer-content-simple {
display: flex;
align-items: center; 
gap: 30px; 
flex-wrap: wrap; }

.footer-logo-simple img {
height: 100px; 
width: auto; 
object-fit: contain;
}

.footer-info-simple {
flex: 1; 
line-height: 1.8; 
text-align: left;
        color:#ffffff;
}

.footer-info-simple p {
margin-bottom: 5px; }

.footer-info-simple p:last-child {
margin-bottom: 0;
}

.footer-info-simple a {
color: #fff; 
text-decoration: underline; 
}

.footer-info-simple a:hover {
color: #cccccc; }

.footer-org-name {
font-weight: bold;
font-size: 1.1em;
margin-bottom: 10px; 
}

@media (max-width: 768px) {
.footer-content-simple {
    flex-direction: column; 
    text-align: center; 
    align-items: center; 
}
.footer-logo-simple {
    margin-bottom: 20px; 
}
.footer-info-simple p {
    margin-bottom: 8px; 
}
}

@media (max-width: 480px) {
.simple-footer {
    padding: 20px 0;
}
.footer-logo-simple img {
    height: 80px; 
}
.footer-info-simple {
    font-size: 0.85em;
}
.footer-org-name {
    font-size: 1em;
}
}


@media (max-width: 992px) {
.footer-content {
    flex-direction: column; 
    align-items: flex-start; 
}
.footer-column {
    min-width: unset; 
    width: 100%; 
    max-width: 100%; 
    margin-bottom: 20px;
}
.footer-column:last-child {
    margin-bottom: 0;
}
}

@media (max-width: 576px) {
.main-footer {
    padding-top: 20px;
}
.footer-column h3 {
    font-size: 1.1em;
    text-align: center; 
}
.footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
}
.footer-column p, .footer-contact ul li {
    text-align: center; 
    justify-content: center; 
}
.footer-contact ul li i {
    margin-right: 0; 
}
}
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

/* ==================================== */
/* MEDIA QUERIES (RESPONSIVE)           */
/* ==================================== */
@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column;
        justify-content: space-around;
        padding: 50px 5%;
    }
    .hero-text {
        max-width: 100%;
        text-align: center;
        padding-left: 0;
        margin-bottom: 30px;
    }
    .hero-text h1 {
        font-size: 2.5em;
    }
    .login-box {
        max-width: 350px;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
    }
    .about-image {
        flex: 0 0 auto; 
        max-width: 100%;
        margin-bottom: 30px;
    }
    .section-heading-left {
        text-align: center;
        display: block;
    }
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        font-size: 2em;
    }
    .top-nav {
        display: none; /* Ẩn menu nav trên mobile */
    }
}

.simple-footer {
background-color: #003366; 
color: #fff; 
padding: 30px 0; 
margin-top: 40px; 
font-size: 0.9em; 
}

.footer-content-simple {
display: flex;
align-items: center; 
gap: 30px; 
flex-wrap: wrap; }

.footer-logo-simple img {
height: 100px; 
width: auto; 
object-fit: contain;
}

.footer-info-simple {
flex: 1; 
line-height: 1.8; 
text-align: left;
        color:#ffffff;
}

.footer-info-simple p {
margin-bottom: 5px; }

.footer-info-simple p:last-child {
margin-bottom: 0;
}

.footer-info-simple a {
color: #fff; 
text-decoration: underline; 
}

.footer-info-simple a:hover {
color: #cccccc; }

.footer-org-name {
font-weight: bold;
font-size: 1.1em;
margin-bottom: 10px; 
}

@media (max-width: 768px) {
.footer-content-simple {
    flex-direction: column; 
    text-align: center; 
    align-items: center; 
}
.footer-logo-simple {
    margin-bottom: 20px; 
}
.footer-info-simple p {
    margin-bottom: 8px; 
}
}

@media (max-width: 480px) {
.simple-footer {
    padding: 20px 0;
}
.footer-logo-simple img {
    height: 80px; 
}
.footer-info-simple {
    font-size: 0.85em;
}
.footer-org-name {
    font-size: 1em;
}
}


@media (max-width: 992px) {
.footer-content {
    flex-direction: column; 
    align-items: flex-start; 
}
.footer-column {
    min-width: unset; 
    width: 100%; 
    max-width: 100%; 
    margin-bottom: 20px;
}
.footer-column:last-child {
    margin-bottom: 0;
}
}

@media (max-width: 576px) {
.main-footer {
    padding-top: 20px;
}
.footer-column h3 {
    font-size: 1.1em;
    text-align: center; 
}
.footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
}
.footer-column p, .footer-contact ul li {
    text-align: center; 
    justify-content: center; 
}
.footer-contact ul li i {
    margin-right: 0; 
}
}
.simple-footer {
    background-color: #0f4077;
    color: var(--white);
    padding: 15px 20px;
    font-size: 0.9em;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-social a {
    color: var(--white);
    margin-left: 15px;
}
.main-content-area {
    position: relative;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.9); /* Lớp phủ đen */
    min-height: 100vh;
}

.left-content-mock {
    position: absolute;
    top: 50px; /* Điều chỉnh vị trí tương đối */
    left: 5%;
    color: #d1d1d1;
    font-size: 1.2em;
    font-weight: 300;
}

/* CONTAINER CHÍNH CỦA CÁC NÚT - Cố định vị trí */
.action-buttons-container {
    position: fixed; /* Rất quan trọng: Giữ cố định khi cuộn */
    bottom: 30px; 
    right: 30px; 
    display: flex;
    flex-direction: column-reverse; /* Đảo ngược để nút đóng nằm dưới */
    align-items: flex-end; 
    gap: 15px; /* Khoảng cách giữa các mục */
    z-index: 1000; 
}

/* Định kiểu cho mỗi mục nút và nhãn */
.action-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    /* Loại bỏ khoảng cách margin-bottom nếu sử dụng gap trên container */
}

/* Nhãn văn bản */
.text-label {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    margin-right: 15px;
    font-size: 1em;
    font-weight: 500;
    white-space: nowrap; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Định kiểu chung cho các biểu tượng nút tròn */
.icon-button {
    width: 60px; /* Kích thước lớn hơn để khớp với hình ảnh */
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.6em; 
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
}

.icon-button:hover {
    transform: scale(1.05);
}

/* Màu sắc và biểu tượng cụ thể */
.location-item .red-light {
    background-color: #e54c4c; /* Đỏ/Đỏ nhạt */
}

.call-item .yellow-call {
    background-color: #ffc107; /* Vàng */
    color: #333; /* Chữ màu tối hơn trên nền vàng */
    font-size: 2em;
}

.facebook-item .green-fb {
    background-color: #18b33b; /* Xanh lá Facebook (tương tự hình ảnh) */
    font-size: 2.5em;
    line-height: 0.8;
}

.zalo-item .blue-zalo {
    background-color: #0088ff; /* Xanh Zalo */
    font-size: 1em;
    padding-top: 5px;
}

/* Nút Đóng/Hủy (Luôn nằm dưới cùng) */
.action-close-button {
    /* Đặt riêng để nó nằm phía dưới các nút hành động (nhờ flex-direction: column-reverse) */
    align-self: flex-end; 
    margin-top: 5px; /* Thêm chút khoảng cách với nút Zalo */
}

.action-close-button .red-close {
    background-color: #e53935; /* Màu đỏ đậm */
    font-size: 3em;
    line-height: 0.8;
    width: 65px; 
    height: 65px;
}


/* --- MEDIA QUERY CHO ĐỊNH DẠNG ĐÁP ỨNG (Mobile) --- */
@media (max-width: 600px) {
    
    /* Điều chỉnh vị trí container trên điện thoại */
    .action-buttons-container {
        bottom: 15px; 
        right: 15px; 
        gap: 10px;
    }

    /* Giảm kích thước nút */
    .icon-button {
        width: 50px;
        height: 50px;
        font-size: 1.4em;
    }

    .call-item .yellow-call {
        font-size: 1.8em;
    }
    
    .facebook-item .green-fb {
        font-size: 2.2em;
    }
    
    .action-close-button .red-close {
        width: 55px; 
        height: 55px;
        font-size: 2.5em;
    }
    
    /* Giảm kích thước nhãn */
    .text-label {
        padding: 6px 10px;
        font-size: 0.9em;
        margin-right: 10px;
    }
}