/* ============================================================
   EE88 – STYLE UTAMA
   Digunakan oleh semua halaman (index, dang-ky, dang-nhap,
   nap-tien, rut-tien, tai-app, gioi-thieu, giay-phep-hoat-dong,
   choi-co-trach-nhiem, dieu-khoan-va-dieu-kien, chinh-sach-bao-mat,
   quyen-rieng-tu, lien-he)
   ============================================================ */

/* ===== RESET & CƠ BẢN ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary: #05207a;
    --secondary: #1823f3;
    --success: #db0404;
    --alert: #0918a3;
    --link: #1823f3;
    --link-hover: #3d3d3d;
    --text: #000000;
    --heading: #0e1ab7;
    --container: 1050px;
    --radius-btn: 99px;
    --radius-box: 16px;
    --header-height: 96px;
    --logo-height: 90px;
    --article-max-height: 420px;
    --guide-bg: #f4f6fd;
    --guide-card: #ffffff;
    --guide-border: #e0e5f5;
}

html {
    scroll-behavior: smooth;
    background: #000;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 105%;
    font-weight: 400;
    line-height: 1.6;
    background: #fff;
    padding-top: var(--header-height);
}

@media (max-width: 549px) {
    body {
        font-size: 100%;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading);
    font-family: Oswald, Arial, sans-serif;
    font-weight: 700;
    margin: 0 0 .6em;
    line-height: 1.2;
}

h1 {
    font-size: 1.8rem;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #ddd;
    color: #444;
    padding: 10px 15px;
    z-index: 100000;
}

.skip-link:focus {
    left: 5px;
}

/* ===== NÚT ===== */
.button {
    display: inline-block;
    background: var(--primary);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-family: Oswald, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.button.box-shadow-1 {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.button.box-shadow-2 {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

/* ===== HEADER CỐ ĐỊNH ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 15px;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    max-height: var(--logo-height);
    width: auto;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

@media (max-width: 768px) {
    :root {
        --header-height: 84px;
        --logo-height: 65px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions .button {
        padding: 10px 16px;
        font-size: .78rem;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 72px;
        --logo-height: 50px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .button {
        padding: 9px 12px;
        font-size: .7rem;
    }
}

/* ===== HERO (TRANG CHỦ) ===== */
.section-hero {
    padding: 30px 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    align-items: stretch;
}

.col-7 {
    flex: 0 0 58%;
    max-width: 58%;
}

.col-5 {
    flex: 0 0 38%;
    max-width: 38%;
    display: flex;
}

@media (max-width: 768px) {

    .col-7,
    .col-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    font-size: 1.9rem;
}

.article-scroll {
    max-height: var(--article-max-height);
    overflow-y: auto;
    padding-right: 12px;
    text-align: justify;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #e6e9f5;
}

.article-scroll p {
    text-align: justify;
}

.article-scroll::-webkit-scrollbar {
    width: 8px;
}

.article-scroll::-webkit-scrollbar-track {
    background: #e6e9f5;
    border-radius: 8px;
}

.article-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 8px;
}

.article-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.brand {
    color: var(--secondary);
    font-weight: 700;
}

.hero-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
}

/* ===== PHẦN HƯỚNG DẪN (TRANG CON) ===== */
.section-guide {
    background: var(--guide-bg);
    padding: 50px 0;
    margin-top: 20px;
}

.guide-head {
    max-width: 820px;
    margin: 0 auto 35px;
    text-align: center;
}

.guide-head h1,
.guide-head h2 {
    font-size: 1.7rem;
    margin-bottom: 12px;
}

.guide-head p {
    text-align: justify;
    color: #333;
    margin: 0;
}

.guide-block {
    margin-bottom: 40px;
}

.guide-block:last-child {
    margin-bottom: 0;
}

.guide-block>h3 {
    font-size: 1.25rem;
    margin: 0 0 18px;
    padding-left: 14px;
    border-left: 5px solid var(--secondary);
    line-height: 1.3;
}

/* Thẻ xếp dọc */
.guide-grid,
.guide-steps,
.guide-important {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guide-card,
.guide-step {
    background: var(--guide-card);
    border: 1px solid var(--guide-border);
    border-radius: var(--radius-box);
    padding: 20px 22px;
    box-shadow: 0 4px 14px rgba(5, 32, 122, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.guide-card:hover,
.guide-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(5, 32, 122, .14);
}

.guide-card h4,
.guide-step h4 {
    font-size: 1.05rem;
    margin: 0 0 8px;
    color: var(--primary);
}

.guide-card p,
.guide-step p,
.guide-step li {
    font-size: .93rem;
    color: #333;
    text-align: justify;
    margin: 0 0 8px;
}

.guide-step ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.guide-step ul li {
    margin-bottom: 6px;
}

.guide-important {
    list-style: none;
    margin: 0;
    padding: 0;
}

.guide-important li {
    background: var(--guide-card);
    border: 1px solid var(--guide-border);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .93rem;
    text-align: justify;
    color: #333;
}

.guide-important li strong {
    color: var(--primary);
}

.guide-closing {
    max-width: 900px;
    margin: 30px auto 0;
    text-align: center;
    font-size: 1rem;
    color: #333;
}

/* ===== BẢNG HƯỚNG DẪN (GIỚI THIỆU) ===== */
.guide-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--guide-border);
    border-radius: var(--radius-box);
    background: var(--guide-card);
    box-shadow: 0 4px 14px rgba(5, 32, 122, .06);
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .93rem;
}

.guide-table th,
.guide-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--guide-border);
    color: #333;
}

.guide-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.guide-table tr:last-child td {
    border-bottom: none;
}

.guide-table tr:nth-child(even) {
    background: #f9faff;
}

/* ===== FOOTER ===== */
.footer {
    background: #fff;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-col {
    flex: 1 1 22%;
    min-width: 200px;
}

.footer-logo {
    max-width: 260px;
    margin: 0 auto 15px;
}

.footer-logo img {
    max-height: var(--logo-height);
    width: auto;
    margin: 0 auto;
}

.footer-desc {
    font-size: .9rem;
    text-align: justify;
    margin: 0;
}

.footer-title {
    font-size: 1rem;
    text-align: center;
    margin: 0 0 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    border-bottom: 1px solid #eee;
}

.footer-menu a {
    display: block;
    padding: 8px 0;
    color: #333;
    font-size: .95rem;
}

.footer-menu a::before {
    content: "› ";
    color: var(--primary);
    font-weight: 700;
}

.footer-menu a:hover {
    color: var(--primary);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .95rem;
}

.footer-contact li {
    margin-bottom: 6px;
}

.footer-bottom {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: .85rem;
    margin-top: 30px;
}

/* ===== NÚT LÊN ĐẦU TRANG ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.back-to-top.show {
    display: flex;
}