/* --- CÀI ĐẶT CHUNG & BIẾN MÀU SẮC --- */
:root {
    --primary-red: #ff0000;      /* Đỏ nhận diện SCO */
    --primary-blue: #00a0fd;     /* Xanh nhận diện VIỆT NAM */
    --dark-color: #212121;
    --light-color: #f4f4f4;
    --white-color: #ffffff;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--dark-color);
}

.container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
}

h1, h2 {
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    background: #e6f6ff;
    color: var(--white-color);
    padding: 0; /* Xóa padding mặc định */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-height: 0;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px; /* Logo cao 48px + 10px trên + 10px dưới */
    padding: 10px 0;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
    margin: 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav a {
    color: var(--white-color);
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.main-nav a:hover {
    background-color: var(--primary-red);
}

.main-nav a.active {
    background-color: var(--primary-blue);
    font-weight: bold;
}

/* --- MAIN CONTENT --- */
.main-content {
    padding: 2rem 0;
}

.page-title {
    color: var(--primary-red);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.content-section {
    background: var(--white-color);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content-section h2 {
    color: var(--primary-blue);
}

/* --- TRANG CHỦ: HERO SECTION & CARDS --- */
.hero {
    background-color: var(--primary-blue);
    color: var(--white-color);
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    text-transform: uppercase;
    color: #00a0fd;
    font-size: 2em;
    margin-bottom: 12px;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
}

.info-cards {
    display: flex;
    gap: 24px;
    margin: 32px 0;
    flex-wrap: wrap;
    align-items: stretch; /* Đảm bảo các card cùng chiều cao */
}

.card {
    flex: 1 1 0;
    min-width: 260px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    text-align: center;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
    /* height: 100%;  Không cần thiết nếu dùng align-items: stretch ở cha */
}

.card h3 {
    color: var(--primary-blue, #00a0fd);
    margin-bottom: 10px;
}

.card p {
    color: #333;
    margin-bottom: 16px;
    flex: 1 1 auto; /* Để phần mô tả co giãn lấp đầy */
}

.card .btn {
    margin-top: auto; /* Đẩy nút xuống đáy card */
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white-color);
}

.btn:hover {
    opacity: 0.9;
}

/* --- FOOTER --- */
.main-footer {
    background: #e6f6ff;
    padding: 0;
    border-top: 1px solid #d0e7f7;
    margin-top: 32px;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signature-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333333;
}

.logo-column {
    padding: 10px;
    text-align: center;
}

.logo-column img {
    display: block;
    border: 0;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.signature-title {
    color: #5a82a9;
    font-size: 16px;
}

.signature-content b {
    white-space: nowrap;
}

.signature-content a {
    color: #ff0000;
    text-decoration: none;
}

.signature-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .signature-content {
        font-size: 12px;
    }

    .main-footer img {
        margin-bottom: 10px;
    }
}

/* CSS cho switch_language_container */
.switch_language_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ff0000;
  padding: 10px;
  gap: 8px;
  overflow: hidden;
  flex-wrap: nowrap;
}
#languageSelect {
  flex: auto;
  max-width: 100%;
  height: 40px;
  padding: 0 10px;
  font-size: 13px;
  border: none;
  border-radius: 6px;
  background-color: white;
  white-space: nowrap;
}
.custom-button {
  flex: 0 0 auto;
  height: 40px;
  white-space: nowrap;
  padding: 0 12px;
  background-color: #ff0000;
  color: white;
  border: 1.5px solid white;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 480px) {
  .switch_language_container {
    gap: 6px;
    padding: 8px;
  }
  #languageSelect,
  .custom-button {
    font-size: 12px;
    padding: 0 6px;
  }
}
/* CSS cho body không cho copy */
body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}
/* CSS cho #zalo-button */
#zalo-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
}
/* ...Các đoạn CSS layout, thông báo, container, ... */
.container {
  width: 100%;
  margin: 0 auto;
}
.container_row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.column50 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}
@media (max-width: 768px) {
  .column50 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
/* ...Các đoạn CSS khác bạn muốn giữ lại... */
/* Footer custom styles */
.main-footer img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 16px auto;
}
.footer_dieukhoansudung {
    text-align: center;
    margin: 12px 0;
    font-size: 15px;
    line-height: 1.6;
}
.footer_dieukhoansudung a {
    color: #0056b3;
    text-decoration: none;
    margin: 0 4px;
}
.footer_dieukhoansudung a:hover {
    text-decoration: underline;
}
.thongbao_footer, .canhbao {
    text-align: center;
    margin: 8px 0;
    font-size: 15px;
}
.canhbao {
    color: #c0392b;
    font-weight: 600;
}
.container_row {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.6;
}
.container_row a {
    color: #007bff;
    text-decoration: none;
    margin: 0 2px;
}
.container_row a:hover {
    text-decoration: underline;
}
.thongtinthem_OTAVN {
    margin: 18px 0 8px 0;
    font-size: 15px;
    line-height: 1.7;
}
.thongtinthem_OTAVN h2, .thongtinthem_OTAVN h3, .thongtinthem_OTAVN h4 {
    margin: 8px 0 4px 0;
    font-weight: bold;
}
.thongtinthem_OTAVN a {
    color: #0056b3;
    text-decoration: none;
}
.thongtinthem_OTAVN a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .container_row, .footer_dieukhoansudung, .thongbao_footer, .canhbao, .thongtinthem_OTAVN {
        font-size: 14px;
    }
    .main-footer img {
        margin-bottom: 10px;
    }
}
.brand-red {
    color: var(--primary-red) !important;
}
.brand-blue {
    color: var(--primary-blue) !important;
}
.core-values {
    font-weight: bold;
    color: #ff0000;
    font-size: 1.1em;
    margin-top: 8px;
    text-align: right;
    white-space: nowrap; /* Thêm dòng này để không xuống dòng */
}

@media (max-width: 600px) {
    .core-values {
        text-align: left;
        font-size: 1em;
        margin-top: 4px;
        white-space: nowrap; /* Đảm bảo trên mobile cũng không xuống dòng */
    }
}

/* Header responsive */
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.logo img {
    max-width: 150px;
    height: auto;
    display: block;
}
@media (max-width: 600px) {
    .header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .core-values {
        text-align: left;
        font-size: 1em;
        margin-top: 4px;
        white-space: nowrap; /* Đảm bảo trên mobile cũng không xuống dòng */
    }
    .logo img {
        max-width: 120px;
    }
}

/* Hero section */
.hero {
    padding: 40px 0 24px 0;
    background: #f8fbfd;
    text-align: center;
}
.hero h1 {
    text-transform: uppercase;
    color: #00a0fd;
    font-size: 2em;
    margin-bottom: 12px;
    font-weight: bold;
}
.hero p {
    font-size: 1.1em;
    color: #444;
}
@media (max-width: 600px) {
    .hero {
        padding: 24px 0 12px 0;
    }
    .hero h1 {
        font-size: 1.2em;
    }
}

/* Info cards responsive */
.info-cards {
    display: flex;
    gap: 24px;
    margin: 32px 0;
    flex-wrap: wrap;
    align-items: stretch; /* Đảm bảo các card cùng chiều cao */
}
.card {
    flex: 1 1 0;
    min-width: 260px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    text-align: center;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
    /* height: 100%;  Không cần thiết nếu dùng align-items: stretch ở cha */
}
.card h3 {
    color: var(--primary-blue, #00a0fd);
    margin-bottom: 10px;
}
.card p {
    color: #333;
    margin-bottom: 16px;
    flex: 1 1 auto; /* Để phần mô tả co giãn lấp đầy */
}
.card .btn {
    margin-top: auto; /* Đẩy nút xuống đáy card */
}
@media (max-width: 900px) {
    .info-cards {
        flex-direction: column;
        gap: 16px;
    }
    .card {
        min-width: 0;
    }
}

/* Footer responsive */
.main-footer {
    background: #e6f6ff;
    padding: 0;
    border-top: 1px solid #d0e7f7;
    margin-top: 32px;
}
.signature-content {
    width: 100%;
}
@media (max-width: 700px) {
    .signature-content tr {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .signature-content td {
        width: 100% !important;
        display: block;
        text-align: left !important;
        padding: 10px 0 !important;
    }
    .signature-content .logo-column {
        text-align: center !important;
        padding-bottom: 0 !important;
    }
}

/* Brand colors */
.brand-red {
    color: #ff0000 !important;
}
.brand-blue {
    color: #00a0fd !important;
}

/* Button */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 5px;
    background: #00a0fd;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.btn-primary {
    background: #ff0000;
}
.btn:hover {
    background: #005fa3;
    color: #fff;
}

/* About block styles */
.about-block {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 32px 24px;
    margin: 32px auto;
}
.about-block h2 {
    color: #00a0fd;
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.6em;
    text-transform: uppercase;
}
.about-block h3 {
    color: #ff0000;
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 1.2em;
}
.about-block p {
    margin-bottom: 12px;
    color: #222;
    line-height: 1.7;
}
.about-block ul.timeline {
    list-style: none;
    padding: 0;
    margin: 32px 0 0 0;
    border-left: 3px solid #00a0fd;
    position: relative;
    max-width: 100%; /* Đảm bảo không vượt quá container */
}
.about-block ul.timeline li {
    position: relative;
    margin-bottom: 28px;
    padding-left: 50px; /* Tăng padding để đủ chỗ cho ngày tháng */
}
.about-block .timeline-date {
    position: static;        /* Không dùng absolute nữa */
    display: block;
    width: 120px;            /* Hoặc auto nếu muốn co giãn */
    color: #00a0fd;
    font-weight: bold;
    font-size: 1em;
    text-align: left;        /* Căn chữ sang trái */
    margin-bottom: 4px;
    padding: 0;
    background: none;
    left: 0;
    top: 0;
    white-space: nowrap;
}
.about-block .timeline-content {
    background: #f4faff;
    border-radius: 6px;
    padding: 12px 18px;
    box-shadow: 0 1px 4px rgba(0,160,253,0.04);
    color: #222;
}
.about-block .timeline-separator {
    text-align: center;
    margin: 32px 0 0 0;
}
.about-block .timeline-separator span {
    display: inline-block;
    background: #00a0fd;
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1em;
    letter-spacing: 1px;
}
@media (max-width: 700px) {
    .about-block {
        padding: 18px 6px;
    }
    .about-block ul.timeline {
        border-left: 2px solid #00a0fd;
    }
    .about-block .timeline-date {
        width: 100%;
        white-space: normal;
    }
}

/* --- SITE FOOTER (KHỐI THỐNG NHẤT) --- */
.site-footer {
    background-color: #e6f6ff;
    padding: 40px 0 20px 0;
    color: #333;
    margin-top: 40px;
}

.footer-section {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #d0e8f8;
}
.site-footer .container > div:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.signature-table {
    width: 100%;
    font-size: 14px;
    color: #333333;
    border-spacing: 0;
}
.signature-table td {
    vertical-align: top;
    padding: 10px;
    line-height: 1.6;
}
.signature-table a {
    text-decoration: none;
}
.signature-table .signature-title {
    color: #5a82a9;
    font-size: 16px;
}
.signature-table img {
    max-width: 100px;
    height: auto;
    display: block;
    border: 0;
    border-radius: 50%;
}
.logo-column {
    text-align: center;
    padding: 10px;
}
@media screen and (max-width: 768px) {
    .signature-column,
    .logo-column {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        padding: 15px 0 !important;
    }
    .logo-column {
        text-align: center !important;
    }
    .logo-column img {
        margin: 0 auto;
    }
    .signature-table tr {
        display: block;
        width: 100%;
    }
    .signature-table td {
        display: block;
        width: 100% !important;
    }
}