/* ===== daylaixe.xyz – giao diện chính =====
   Màu lấy từ logo: xanh dương #004494, xanh ngọc #009AAD; điểm nhấn cam cho nút hành động. */

@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url(../fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url(../fonts/be-vietnam-pro-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url(../fonts/be-vietnam-pro-vietnamese-500-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url(../fonts/be-vietnam-pro-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url(../fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-display: swap; src: url(../fonts/be-vietnam-pro-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url(../fonts/be-vietnam-pro-vietnamese-700-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-display: swap; src: url(../fonts/be-vietnam-pro-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 800; font-display: swap; src: url(../fonts/be-vietnam-pro-vietnamese-800-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 800; font-display: swap; src: url(../fonts/be-vietnam-pro-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --brand: #004494;
    --brand-dark: #00306b;
    --brand-deep: #0b1f44;
    --teal: #009aad;
    --accent: #ff7a00;
    --accent-dark: #e86a00;
    --soft: #f2f6fb;
    --ink: #172033;
    --muted: #5b6577;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0, 48, 107, .10);
    --shadow-lg: 0 20px 50px rgba(0, 48, 107, .18);
    --zalo: #0068ff;
    --bs-primary: #004494;
    --bs-primary-rgb: 0, 68, 148;
    --bs-link-color: #004494;
    --bs-link-color-rgb: 0, 68, 148;
    --bs-link-hover-color: #00306b;
    --bs-link-hover-color-rgb: 0, 48, 107;
    --bs-body-font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-body-color: #172033;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { overflow-x: clip; }
body { font-family: var(--bs-body-font-family); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: var(--brand-deep); }
a { text-decoration: none; }
img { max-width: 100%; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
.text-white-75 { color: rgba(255, 255, 255, .82); }

/* ===== Nút ===== */
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.35rem; }
.btn-lg { padding: .85rem 1.8rem; font-size: 1.02rem; }
.btn-sm { padding: .4rem .95rem; }
.btn-accent { background: linear-gradient(135deg, #ff8f1f, var(--accent)); border: 0; color: #fff; box-shadow: 0 8px 20px rgba(255, 122, 0, .32); }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-zalo { background: var(--zalo); color: #fff; }
.btn-zalo:hover { background: #0052cc; color: #fff; }
.btn-call { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; }
.zalo-text { font-weight: 800; font-size: .78rem; letter-spacing: -.2px; }

/* ===== Header ===== */
.top-notice { background: var(--accent); color: #fff; text-align: center; font-weight: 600; font-size: .92rem; padding: .45rem 1rem; }
.topbar { background: var(--brand-deep); color: rgba(255, 255, 255, .85); font-size: .84rem; padding: .45rem 0; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: #fff; }
.topbar i { color: #5fd4e2; margin-right: .3rem; }
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); box-shadow: 0 2px 18px rgba(0, 0, 0, .06); transition: box-shadow .2s; }
.site-header .navbar { padding: .55rem 0; }
.navbar-brand img { height: 52px; width: auto; transition: height .2s; }
.site-header.scrolled .navbar-brand img { height: 44px; }
.nav-link { font-weight: 600; color: var(--brand-deep); padding: .5rem .85rem !important; border-radius: 999px; }
.nav-link:hover, .nav-link.active { color: var(--brand); background: var(--soft); }
.navbar-toggler { border: 0; font-size: 1.8rem; color: var(--brand); padding: 0 .25rem; }
.navbar-toggler:focus { box-shadow: none; }
.dropdown-menu { border: 0; border-radius: 14px; box-shadow: var(--shadow-lg); padding: .5rem; }
.dropdown-item { border-radius: 10px; padding: .55rem .8rem; font-weight: 500; }
.badge-code { display: inline-block; min-width: 2.6rem; text-align: center; font-size: .72rem; font-weight: 800; background: var(--brand); color: #fff; border-radius: 6px; padding: .12rem .35rem; margin-right: .35rem; }
@media (min-width: 1200px) { .navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; } }

/* ===== Hero ===== */
.hero { position: relative; background: var(--brand-deep); }
.hero .carousel-item { height: min(78vh, 720px); min-height: 520px; position: relative; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 31, 74, .92) 0%, rgba(0, 48, 107, .75) 42%, rgba(0, 68, 148, .15) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; padding-bottom: 60px; }
.hero-kicker { align-self: flex-start; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); padding: .4rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; margin-bottom: 1.1rem; }
.hero-title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; max-width: 760px; margin-bottom: 1rem; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 620px; opacity: .92; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero .carousel-indicators { margin-bottom: 4.8rem; }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 5px; border-radius: 4px; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 6%; }

/* ===== Con số ===== */
.stats { position: relative; z-index: 5; margin-top: -58px; }
.stats-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { display: flex; gap: .9rem; align-items: center; padding: 1.4rem 1.5rem; height: 100%; border-right: 1px solid #eef2f7; }
.stat i { font-size: 2rem; color: var(--teal); flex-shrink: 0; }
.stat strong { display: block; font-size: 1.25rem; color: var(--brand); font-weight: 800; }
.stat span { font-size: .88rem; color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 991px) { .stat { border-bottom: 1px solid #eef2f7; padding: 1rem; } .stat i { font-size: 1.6rem; } .stat strong { font-size: 1.05rem; } }

/* ===== Section chung ===== */
.section { padding: 90px 0; }
.section-soft { background: var(--soft); }
.section-brand { background: radial-gradient(1200px 500px at 90% -10%, rgba(0, 154, 173, .35), transparent 60%), linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin-bottom: .6rem; }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 3px; background: currentColor; border-radius: 2px; vertical-align: middle; margin-right: .55rem; }
.eyebrow-light { color: #7fe3ef; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 1rem; text-align: center; }
.section-lead { color: var(--muted); max-width: 680px; margin: 0 auto; }
@media (max-width: 767px) { .section { padding: 64px 0; } }

/* ===== Giới thiệu ===== */
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: 24px; box-shadow: var(--shadow-lg); }
.about-badge { position: absolute; right: -14px; bottom: 28px; background: #fff; border-radius: 16px; padding: .9rem 1.1rem; display: flex; gap: .7rem; align-items: center; box-shadow: var(--shadow-lg); }
.about-badge i { font-size: 2rem; color: var(--accent); }
.about-badge strong { display: block; color: var(--brand); }
.about-badge span { font-size: .85rem; color: var(--muted); }
.about-text p { color: #3a4458; }
.person { display: flex; gap: .9rem; align-items: center; background: #fff; border: 1px solid #e6ecf4; border-radius: 16px; padding: .85rem; height: 100%; transition: box-shadow .2s, transform .2s; }
.person:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.person-photo { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.person-initial { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--teal)); color: #fff; font-weight: 800; font-size: 1.5rem; }
.person-info strong { display: block; color: var(--brand-deep); }
.person-info > span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.person-actions { display: flex; gap: .4rem; margin-top: .4rem; flex-wrap: wrap; }
.person-actions a { font-size: .8rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; }
.pa-call { background: #fff2e6; color: var(--accent-dark); }
.pa-zalo { background: #e6f0ff; color: var(--zalo); }

/* ===== Cam kết ===== */
.promise { background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem; height: 100%; box-shadow: var(--shadow); border-top: 4px solid var(--teal); transition: transform .2s; }
.promise:hover { transform: translateY(-4px); }
.promise-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--teal)); color: #fff; font-size: 1.5rem; margin-bottom: 1rem; }
.promise h3 { font-size: 1.12rem; }
.promise p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ===== Khóa học ===== */
.course { background: #fff; border-radius: 22px; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e8eef6; transition: transform .25s, box-shadow .25s; }
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-head { position: relative; height: 150px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--teal)); overflow: hidden; }
.course-head.icon-moto { background: linear-gradient(135deg, #00577a, #00a6b8); }
.course-head.icon-truck { background: linear-gradient(135deg, #0b1f44, #2b5aa8); }
.course-head::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.course-svg { width: 120px; height: 80px; color: rgba(255, 255, 255, .95); }
.course-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.course-code { position: absolute; left: 1rem; bottom: .7rem; font-size: 2.1rem; font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); line-height: 1; z-index: 2; }
.course-code small { font-size: .85rem; font-weight: 700; margin-left: .4rem; opacity: .95; }
.course-badge { position: absolute; right: .9rem; top: .9rem; z-index: 2; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; }
.course-body { padding: 1.3rem 1.4rem .6rem; flex: 1; }
.course-body h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.course-body h3 a { color: var(--brand-deep); }
.course-body h3 a:hover { color: var(--brand); }
.course-desc { color: var(--muted); font-size: .94rem; margin-bottom: .7rem; }
.course-meta { list-style: none; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.course-meta li { background: var(--soft); font-size: .8rem; font-weight: 600; color: var(--brand); padding: .25rem .65rem; border-radius: 999px; }
.course-scope { font-size: .86rem; color: #4a5568; margin: 0; }
.course-scope i { color: var(--teal); }
.course-foot { padding: 1rem 1.4rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-top: 1px dashed #e1e8f2; }
.course-fee small { display: block; font-size: .74rem; color: var(--muted); }
.course-fee strong { color: var(--accent-dark); font-size: 1.05rem; }

/* ===== Lịch khai giảng & quy trình ===== */
.schedule-list { display: grid; gap: .9rem; }
.schedule { display: flex; gap: 1rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 1rem; }
.schedule-date { width: 64px; height: 64px; flex-shrink: 0; border-radius: 14px; background: #fff; color: var(--brand); display: grid; place-items: center; text-align: center; line-height: 1.05; }
.schedule-date strong { font-size: 1.5rem; font-weight: 800; display: block; }
.schedule-date span { font-size: .66rem; font-weight: 700; }
.schedule-date i { font-size: 1.6rem; }
.schedule-info h3 { color: #fff; font-size: 1.05rem; margin: 0 0 .2rem; }
.schedule-info p { margin: 0; color: rgba(255, 255, 255, .85); font-size: .92rem; }
.schedule-info small { color: rgba(255, 255, 255, .65); }
.seat { display: inline-block; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .1rem .55rem; margin-left: .3rem; }
.steps { list-style: none; padding: 0; margin: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: rgba(255, 255, 255, .2); }
.step { display: flex; gap: 1.1rem; position: relative; padding-bottom: 1.2rem; }
.step-no { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: #fff; color: var(--brand); font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(255, 255, 255, .12); z-index: 1; }
.step h3 { color: #fff; font-size: 1.08rem; margin: .55rem 0 .25rem; }
.step p { margin: 0; color: rgba(255, 255, 255, .8); font-size: .94rem; }

/* ===== Tại sao chọn ===== */
.why { position: relative; padding: 1.8rem 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid #e8eef6; height: 100%; overflow: hidden; transition: all .25s; }
.why:hover { border-color: transparent; box-shadow: var(--shadow-lg); }
.why-no { position: absolute; right: 1.1rem; top: .5rem; font-size: 3.2rem; font-weight: 800; color: #eef3f9; line-height: 1; }
.why-icon { font-size: 2rem; color: var(--accent); display: block; margin-bottom: .8rem; position: relative; }
.why h3 { font-size: 1.1rem; position: relative; }
.why p { color: var(--muted); margin: 0; font-size: .95rem; position: relative; }

/* ===== Thư viện ảnh ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 12px; }
.gallery-grid .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-full { grid-auto-rows: 220px; }
.gallery-full .gallery-item:nth-child(1) { grid-column: auto; grid-row: auto; }
.gallery-item { position: relative; border-radius: 16px; overflow: hidden; display: block; background: #dde6f0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .7rem; color: #fff; font-size: .85rem; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
@media (max-width: 767px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(5, 12, 28, .92); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 2rem; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; }
.lightbox p { color: #fff; margin-top: 1rem; }
.lightbox button { position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; color: #fff; font-size: 2.2rem; }

/* ===== Cảm nhận ===== */
.testi { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); height: 100%; margin: 0; }
.testi-stars { color: #ffb400; margin-bottom: .6rem; }
.testi blockquote { color: #3a4458; font-style: italic; }
.testi figcaption { display: flex; gap: .7rem; align-items: center; }
.testi figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi figcaption strong { display: block; }
.testi figcaption span { font-size: .84rem; color: var(--muted); }

/* ===== Bài viết ===== */
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; transition: transform .25s; }
.post-card:hover { transform: translateY(-4px); }
.post-thumb { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-cat, .post-cat-inline { background: var(--teal); color: #fff; font-size: .74rem; font-weight: 700; border-radius: 999px; padding: .2rem .7rem; }
.post-cat { position: absolute; left: 1rem; top: 1rem; }
.post-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-body time { font-size: .82rem; color: var(--muted); }
.post-body h3 { font-size: 1.08rem; margin: .4rem 0 .5rem; }
.post-body h3 a { color: var(--brand-deep); }
.post-body h3 a:hover { color: var(--brand); }
.post-body p { color: var(--muted); font-size: .92rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-more { font-weight: 700; font-size: .9rem; }
.post-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; align-items: center; }
.cat-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-filter a { padding: .4rem 1rem; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: .9rem; }
.cat-filter a.active { background: var(--brand); color: #fff; }
.rich-content { font-size: 1.03rem; }
.rich-content h2, .rich-content h3 { margin-top: 1.6rem; font-size: 1.3rem; color: var(--brand); }
.rich-content img { border-radius: 12px; height: auto; }
.rich-content iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; }
.rich-content ul li, .rich-content ol li { margin-bottom: .35rem; }
.share { display: flex; align-items: center; gap: .6rem; }
.share a, .share button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); border: 0; color: var(--brand); }

/* ===== Trang con ===== */
.page-hero { background: radial-gradient(800px 300px at 85% 0%, rgba(0, 154, 173, .4), transparent 60%), linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; padding: 56px 0 50px; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; max-width: 900px; }
.page-hero p { opacity: .85; max-width: 760px; margin: 0; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .6); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .8); font-size: .9rem; }
.page-hero .breadcrumb a { color: #8fe7f1; }
.course-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 2rem; }
.course-facts > div { background: var(--soft); border-radius: 14px; padding: 1rem; }
.course-facts i { color: var(--teal); font-size: 1.4rem; display: block; }
.course-facts small { color: var(--muted); display: block; font-size: .78rem; }
.course-facts strong { color: var(--brand-deep); }
@media (max-width: 767px) { .course-facts { grid-template-columns: repeat(2, 1fr); } }
.cta-box { margin-top: 2.5rem; border-radius: 20px; padding: 1.6rem 1.8rem; background: linear-gradient(135deg, var(--brand), var(--teal)); color: #fff; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.cta-box h3 { color: #fff; margin: 0 0 .2rem; font-size: 1.25rem; }
.cta-box p { margin: 0; opacity: .9; }
.side-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; top: 100px; }
.side-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li a { display: block; padding: .6rem .4rem; border-bottom: 1px solid #eef2f7; font-weight: 600; color: var(--brand-deep); }
.side-post { display: flex; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid #eef2f7; color: var(--brand-deep); }
.side-post img { width: 78px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.side-post strong { font-size: .88rem; display: block; line-height: 1.35; }
.side-post small { color: var(--muted); }

/* ===== Hỏi đáp ===== */
.faq .accordion-item { border: 0; border-radius: 14px !important; margin-bottom: .7rem; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 48, 107, .06); }
.faq .accordion-button { font-weight: 700; color: var(--brand-deep); }
.faq .accordion-button:not(.collapsed) { background: var(--brand); color: #fff; box-shadow: none; }
.faq .accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.faq .accordion-button:focus { box-shadow: none; }

/* ===== Đăng ký & liên hệ ===== */
.register { background: radial-gradient(900px 400px at 0% 100%, rgba(0, 154, 173, .35), transparent 60%), linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%); color: #fff; position: relative; }
.anchor-offset { position: absolute; top: 0; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 1.1rem; color: #7fe3ef; }
.contact-list small { display: block; color: rgba(255, 255, 255, .6); font-size: .78rem; }
.contact-list a { color: #fff; }
.hotlines { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.hotline-chip { display: inline-flex; gap: .4rem; align-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; padding: .45rem .9rem; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.hotline-chip:hover { background: #fff; color: var(--brand); }
.hotline-chip.main { background: var(--zalo); border-color: var(--zalo); }
.map-wrap { border-radius: 16px; overflow: hidden; height: 240px; border: 3px solid rgba(255, 255, 255, .15); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.form-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 2rem; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.form-card h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.form-card .form-control, .form-card .form-select { border-radius: 12px; padding: .7rem .95rem; border-color: #d7e0ec; }
.form-card .form-control:focus, .form-card .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(0, 68, 148, .15); }
.form-label { font-weight: 600; font-size: .92rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Footer ===== */
.site-footer { background: #071631; color: rgba(255, 255, 255, .78); padding: 64px 0 90px; font-size: .94rem; }
.site-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.footer-logo { background: #fff; display: inline-block; border-radius: 14px; padding: .6rem .9rem; margin-bottom: 1rem; }
.footer-logo img { height: 56px; }
.footer-slogan { color: #7fe3ef; font-weight: 700; }
.footer-links li { margin-bottom: .45rem; }
.footer-contact li { margin-bottom: .6rem; display: flex; gap: .6rem; }
.footer-contact i { color: #7fe3ef; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; font-size: 1.05rem; }
.footer-social a:hover { background: var(--teal); }
.site-footer hr { border-color: rgba(255, 255, 255, .12); margin: 2rem 0 1.2rem; }
@media (min-width: 992px) { .site-footer { padding-bottom: 30px; } }

/* ===== Nút liên hệ nhanh (nổi bên phải) ===== */
.quick-contact { position: fixed; right: 16px; bottom: 24px; z-index: 1040; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.qc { display: flex; align-items: center; flex-direction: row-reverse; gap: 0; border: 0; padding: 0; background: none; }
.qc-ico { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.3rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); flex-shrink: 0; }
.qc-label { background: #fff; color: var(--ink); font-weight: 700; font-size: .85rem; padding: .45rem .9rem; border-radius: 999px; margin-right: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); white-space: nowrap; opacity: 0; transform: translateX(10px); pointer-events: none; transition: all .2s; }
.qc:hover .qc-label, .qc:focus-visible .qc-label { opacity: 1; transform: none; }
.qc-zalo .qc-ico { background: var(--zalo); font-size: .82rem; animation: pulse 2s infinite; }
.qc-phone .qc-ico { background: #16a34a; animation: ring 1.6s infinite; }
.qc-messenger .qc-ico { background: linear-gradient(45deg, #0084ff, #a033ff); }
.qc-facebook .qc-ico { background: #1877f2; }
.qc-tiktok .qc-ico { background: #000; }
.qc-youtube .qc-ico { background: #ff0000; }
.qc-top .qc-ico { background: var(--brand); width: 42px; height: 42px; font-size: 1rem; }
.qc-top { opacity: 0; pointer-events: none; transition: opacity .3s; }
.qc-top.show { opacity: 1; pointer-events: auto; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, .55); } 70% { box-shadow: 0 0 0 14px rgba(0, 104, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); } }
@keyframes ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-12deg); } 20%, 40% { transform: rotate(12deg); } 50% { transform: rotate(0); } }
@media (max-width: 991px) {
    .quick-contact { bottom: 84px; right: 10px; gap: 8px; }
    .qc-ico { width: 44px; height: 44px; font-size: 1.1rem; }
    .qc-label { display: none; }
    .qc-facebook, .qc-tiktok, .qc-youtube, .qc-messenger { display: none; }
}
@media (prefers-reduced-motion: reduce) { .qc-zalo .qc-ico, .qc-phone .qc-ico { animation: none; } html { scroll-behavior: auto; } }

/* ===== Thanh dưới trên điện thoại ===== */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1045; display: grid; grid-template-columns: 1fr 1fr 1.2fr; background: #fff; box-shadow: 0 -4px 20px rgba(0, 0, 0, .12); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .5rem 0 .45rem; font-size: .76rem; font-weight: 700; color: var(--brand-deep); gap: 2px; }
.mobile-bar a i, .mobile-bar a .zalo-text { font-size: 1.2rem; line-height: 1.2; }
.mobile-bar a:first-child i { color: #16a34a; }
.mobile-bar a:nth-child(2) .zalo-text { color: var(--zalo); font-size: .95rem; }
.mobile-bar .mb-primary { background: var(--accent); color: #fff; }

/* ===== Điện thoại ===== */
@media (max-width: 991px) {
    .navbar-brand img { height: 42px; }
    .navbar-collapse { padding: .8rem 0 1rem; }
    .hero .carousel-item { height: 74vh; min-height: 480px; }
    .hero-overlay { background: linear-gradient(180deg, rgba(0, 31, 74, .55) 0%, rgba(0, 31, 74, .9) 75%); }
    .hero-content { justify-content: flex-end; padding-bottom: 90px; }
    .about-badge { right: 10px; }
    .form-card { padding: 1.4rem; }
}

.page-link { color: var(--brand); }
.active > .page-link { background: var(--brand); border-color: var(--brand); }

/* =====================================================================
   TIN TỨC / THỰC HÀNH / BÌNH LUẬN / ÔN THI (11/2026)
   ===================================================================== */
@font-face { font-family: "Noto Serif"; font-weight: 700; font-display: swap; src: url(../fonts/noto-serif-vietnamese-700-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Noto Serif"; font-weight: 700; font-display: swap; src: url(../fonts/noto-serif-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --serif: "Noto Serif", Georgia, "Times New Roman", serif; --paper: #fcfaf6; }
.nav-account { font-size: 1.35rem; }
@media (max-width: 1199px) { .nav-account { font-size: 1rem; } .navbar-collapse { padding: .8rem 0 1rem; } }

/* Đầu trang danh sách */
.news-head { background: var(--soft); padding: 26px 0 18px; border-bottom: 1px solid #e3e9f2; }
.news-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .88rem; color: var(--muted); margin-bottom: .4rem; }
.news-crumb a { color: var(--brand); font-weight: 600; }
.news-crumb i { font-size: .7rem; opacity: .6; }
.news-crumb.light, .news-crumb.light a { color: rgba(255,255,255,.85); }
.news-h1 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .4rem; }
.news-desc { color: var(--muted); max-width: 820px; margin-bottom: .8rem; }

/* Bài nổi bật + danh sách dạng hàng */
.post-lead { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.2rem; padding-bottom: 1.4rem; border-bottom: 1px solid #e6ebf2; margin-bottom: .4rem; }
.post-lead-thumb { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; }
.post-lead-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-lead:hover img { transform: scale(1.04); }
.post-lead h2 { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; }
.post-lead h2 a, .post-row h3 a { color: #1b1b1b; }
.post-lead h2 a:hover, .post-row h3 a:hover { color: var(--brand); }
.post-lead p { color: #4c5566; }
.post-row { display: grid; grid-template-columns: 240px 1fr; gap: 1.1rem; padding: 1.1rem 0; border-bottom: 1px solid #e6ebf2; }
.post-row-thumb { display: block; aspect-ratio: 3/2; border-radius: 8px; overflow: hidden; background: #e8eef5; }
.post-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row h3 { font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; margin: 0 0 .35rem; }
.post-row p { color: #555f70; font-size: .93rem; margin-bottom: .35rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-row-meta { display: flex; gap: .8rem; font-size: .8rem; color: #8a93a3; }
.post-row-meta a { color: var(--teal); font-weight: 600; }
@media (max-width: 767px) {
    .post-lead { grid-template-columns: 1fr; }
    .post-row { grid-template-columns: 120px 1fr; gap: .8rem; }
    .post-row h3 { font-size: 1rem; }
    .post-row p { -webkit-line-clamp: 2; font-size: .86rem; }
}

/* Thanh bên phải */
.news-side { position: sticky; top: 90px; display: grid; gap: 1rem; }
.side-box { background: #fff; border: 1px solid #e6ebf2; border-radius: 14px; padding: 1.1rem 1.2rem; }
.side-title { font-size: 1rem; font-weight: 800; color: var(--brand-deep); border-bottom: 2px solid var(--brand); padding-bottom: .5rem; margin-bottom: .8rem; }
.side-title i { color: var(--accent); }
.side-top { list-style: none; padding: 0; margin: 0; counter-reset: x; }
.side-top li { display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px dashed #e6ebf2; }
.side-top li:last-child { border-bottom: 0; }
.side-rank { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--brand); font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.side-top li:nth-child(-n+3) .side-rank { background: var(--accent); color: #fff; }
.side-top a { color: #222; font-weight: 600; font-size: .92rem; line-height: 1.4; }
.side-top a:hover { color: var(--brand); }
.side-links { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.side-links a { display: flex; flex-direction: column; gap: .25rem; padding: .7rem; border-radius: 10px; background: var(--soft); color: var(--brand-deep); font-weight: 600; font-size: .85rem; line-height: 1.3; }
.side-links a i { font-size: 1.3rem; color: var(--teal); }
.side-links a:hover { background: var(--brand); color: #fff; }
.side-links a:hover i { color: #fff; }
.side-courses { list-style: none; padding: 0; margin: 0; }
.side-courses li a { display: block; padding: .45rem 0; color: var(--brand-deep); font-weight: 600; font-size: .9rem; border-bottom: 1px solid #f0f3f8; }
.side-contacts { list-style: none; padding: 0; margin: 0; }
.side-contacts li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid #f0f3f8; }
.side-contacts small { display: block; color: var(--muted); font-size: .78rem; }
.sc-call, .sc-zalo { height: 34px; min-width: 34px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: .75rem; padding: 0 .5rem; }
.sc-call { background: #16a34a; color: #fff; }
.sc-zalo { background: var(--zalo); color: #fff; }
@media (max-width: 991px) { .news-side { position: static; } }

/* Trang Thực hành */
.practice-hero, .theory-hero { background: radial-gradient(900px 400px at 100% 0%, rgba(0,154,173,.35), transparent 60%), linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; padding: 34px 0 40px; }
.practice-hero h1, .theory-hero h1 { color: #fff; font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.practice-hero p, .theory-hero p { color: rgba(255,255,255,.85); max-width: 760px; }
.practice-card { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.2rem; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.practice-card i { font-size: 1.8rem; color: #7fe3ef; }
.practice-card strong { font-size: 1.1rem; }
.practice-card span { font-size: .88rem; opacity: .85; }
.practice-card em { font-style: normal; font-weight: 700; color: #ffd8b0; margin-top: auto; font-size: .85rem; }
.practice-card:hover { background: #fff; color: var(--brand-deep); }
.practice-card:hover span { color: var(--muted); }
.practice-block { margin-bottom: 2.5rem; }
.block-title { font-size: 1.3rem; font-weight: 800; margin: 0; }
.block-title i { color: var(--accent); }

/* Bài viết chi tiết (phong cách báo điện tử) */
.article-wrap { background: var(--paper); padding: 26px 0 70px; }
.article-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.article-top .news-crumb { margin: 0; }
.article-date { color: #757575; font-size: .88rem; }
.article-title { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.35rem); line-height: 1.32; color: #222; margin-bottom: 1rem; }
.article-sapo { font-size: 1.12rem; line-height: 1.65; color: #222; font-weight: 500; }
.article-body { font-size: 1.12rem; line-height: 1.75; color: #222; }
.article-body p { margin-bottom: 1.1rem; }
.article-body h2 { font-family: var(--serif); font-size: 1.35rem; color: #222; margin: 1.6rem 0 .7rem; }
.article-body h3 { font-size: 1.15rem; color: #222; }
.article-body img { display: block; margin: 1.2rem auto .4rem; max-width: 100%; height: auto; border-radius: 4px; }
.article-body img + em, .article-body p > em:only-child { display: block; text-align: center; font-size: .92rem; color: #555; background: #f3f0ea; padding: .5rem .8rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .98rem; }
.article-body th, .article-body td { border: 1px solid #ddd; padding: .5rem .7rem; }
.article-body th { background: var(--soft); }
.article-body blockquote { border-left: 4px solid var(--teal); background: #fff; padding: .8rem 1rem; margin: 1rem 0; }
.rich-content iframe.embed, .rich-content video.embed-video { display: block; width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 6px; background: #000; margin: 1.2rem 0; }
.rich-content iframe.embed-tiktok, .rich-content iframe.embed-youtube-short, .rich-content iframe.embed-facebook-reel { aspect-ratio: 9/16; max-width: 360px; margin-left: auto; margin-right: auto; }
.rich-content iframe.embed-tiktok { aspect-ratio: auto; height: 740px; max-width: 340px; background: #fff; }
.rich-content iframe.embed-x, .rich-content iframe.embed-instagram, .rich-content iframe.embed-facebook-post { aspect-ratio: auto; height: 620px; max-width: 550px; margin-left: auto; margin-right: auto; background: #fff; }
.article-author { text-align: right; font-size: 1.05rem; }
.related-box { border: 1px solid #e3e0da; background: #fff; padding: .4rem 1rem; margin: 1.5rem 0; }
.related-item { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: .9rem 0; color: #222; }
.related-item + .related-item { border-top: 1px solid #ebe7e0; }
.related-item img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.related-item strong { display: block; font-family: var(--serif); font-size: 1.02rem; margin-bottom: .3rem; }
.related-item span { font-size: .88rem; color: #555; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; padding: .9rem 0; border-top: 1px solid #e3e0da; }
.btn-icon { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border: 1px solid #ddd; border-radius: 6px; }
.article-topic { color: #666; }
.article-topic a { font-family: var(--serif); font-weight: 700; color: #9f224e; }
.article-tags { display: flex; flex-wrap: wrap; gap: .4rem .9rem; padding: 1rem 0; border-top: 1px solid #e3e0da; border-bottom: 1px solid #e3e0da; color: #999; margin-top: 1.2rem; }
.article-tags a { color: #333; }
.article-tags a:not(:last-child)::after { content: "/"; margin-left: .9rem; color: #ccc; }
@media (max-width: 767px) { .related-item { grid-template-columns: 110px 1fr; } .article-body { font-size: 1.04rem; } }

/* Thanh chia sẻ */
.share-bar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; position: relative; }
.sh { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #ddd; background: #fff; color: #555; font-size: 1rem; padding: 0; }
.sh:hover { color: #fff; border-color: transparent; }
.sh-fb:hover { background: #1877f2; } .sh-ms:hover { background: #0084ff; } .sh-x:hover { background: #000; } .sh-in:hover { background: #0a66c2; }
.sh-tg:hover { background: #229ed9; } .sh-pin:hover { background: #e60023; } .sh-rd:hover { background: #ff4500; } .sh-mail:hover, .sh-copy:hover, .sh-more:hover { background: var(--brand); }
.sh-zalo { font-weight: 800; font-size: .66rem; color: var(--zalo); }
.sh-zalo:hover { background: var(--zalo); }
.share-toast { position: absolute; right: 0; top: -2.4rem; background: #222; color: #fff; font-size: .8rem; padding: .35rem .7rem; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s; white-space: nowrap; }
.share-toast.show { opacity: 1; }

/* Bình luận */
.comments { margin-top: 1.5rem; }
.cm-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.cm-head h2 { font-family: var(--serif); font-size: 1.4rem; margin: 0; }
.cm-head small { color: #888; }
.cm-head small a { text-decoration: underline; color: #555; }
.cm-rules { background: #fff; border: 1px solid #eee; padding: .7rem 1rem; margin-top: .6rem; font-size: .9rem; }
.cm-form { margin: .8rem 0; background: #f2f2f2; border-left: 3px solid #9f224e; padding: .6rem; }
.cm-form textarea { border: 0; background: transparent; resize: vertical; box-shadow: none !important; }
.cm-form-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.cm-msg { color: #9f224e; }
.cm-tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid #e5e5e5; margin: 1rem 0 .4rem; }
.cm-tabs button { border: 0; background: none; padding: .5rem 0; color: #888; font-weight: 600; border-bottom: 2px solid transparent; }
.cm-tabs button.active { color: #9f224e; border-color: #9f224e; }
.cm-item { display: flex; gap: .75rem; padding: .9rem 0; }
.cm-item + .cm-item { border-top: 1px solid #f0ece6; }
.cm-reply { padding: .6rem 0 0; border: 0 !important; }
.cm-av { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: #dfe3ea; color: #556; font-weight: 800; display: grid; place-items: center; overflow: hidden; }
.cm-av img { width: 100%; height: 100%; object-fit: cover; }
.cm-main { flex: 1; min-width: 0; }
.cm-text { margin: 0 0 .3rem; white-space: pre-wrap; word-wrap: break-word; }
.cm-name { margin-right: .2rem; }
.cm-pending { font-size: .8rem; color: #b26a00; }
.cm-bar { display: flex; align-items: center; gap: 1rem; font-size: .85rem; color: #777; }
.cm-like, .cm-act { border: 0; background: none; color: #666; padding: 0; }
.cm-like.on { color: #9f224e; font-weight: 700; }
.cm-ago { margin-left: auto; color: #999; }
.cm-replies { margin-top: .2rem; }
.cm-reply-form { margin-top: .5rem; display: grid; gap: .4rem; justify-items: end; }
.cm-reply-form textarea { width: 100%; }
.cm-more { width: 100%; border: 0; background: #fbe8ee; color: #9f224e; font-family: var(--serif); font-weight: 700; padding: .8rem; border-radius: 4px; margin-top: .6rem; }
.cm-empty { color: #888; padding: 1rem 0; }

/* Đăng nhập bạn đọc */
.auth-section { background: var(--soft); min-height: 60vh; }
.auth-box { max-width: 460px; margin: 0 auto; background: #fff; border-radius: 18px; padding: 2rem; box-shadow: var(--shadow); }
.auth-box.wide { max-width: none; }
.login-providers { display: grid; gap: .6rem; }
.lp-btn { width: 100%; border: 1px solid #d6dbe3; background: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .7rem; border-radius: 12px; }
.lp-btn i { font-size: 1.15rem; }
.lp-google i { color: #ea4335; } .lp-ms i { color: #00a4ef; } .lp-fb { background: #1877f2; color: #fff; border-color: #1877f2; } .lp-x { background: #000; color: #fff; border-color: #000; }
.lp-btn:hover { filter: brightness(.95); }
.auth-or { text-align: center; position: relative; margin: 1.3rem 0; color: #999; font-size: .85rem; }
.auth-or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #e3e7ee; }
.auth-or span { position: relative; background: #fff; padding: 0 .8rem; }
.profile-av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; }
.kpi-mini { display: block; text-align: center; background: var(--soft); border-radius: 12px; padding: .8rem; color: inherit; }
.kpi-mini strong { display: block; font-size: 1.5rem; color: var(--brand); }
.kpi-mini span { font-size: .8rem; color: var(--muted); }

/* Bảng quy chuẩn đề thi */
.std-regime { display: inline-flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.std-regime button { border: 2px solid #d9e1ec; background: #fff; border-radius: 12px; padding: .55rem 1rem; text-align: left; }
.std-regime button small { display: block; color: var(--muted); font-size: .76rem; }
.std-regime button.active { border-color: var(--brand); background: #eef4fc; }
.std-regime button.active strong { color: var(--brand); }
.std-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.std-filter button { border: 1px solid #dde3ec; background: #fff; border-radius: 10px; padding: .45rem .9rem; font-size: .85rem; font-weight: 600; color: #4a5568; }
.std-filter button.active { background: #e8f1fd; border-color: #b6d0f2; color: var(--brand); }
.std-table-wrap { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.std-table { width: 100%; border-collapse: collapse; }
.std-table thead th { background: #0f1729; color: #fff; font-weight: 700; font-size: .88rem; padding: .9rem 1rem; text-align: left; }
.std-table tbody th, .std-table td { padding: .9rem 1rem; border-top: 1px solid #edf0f5; font-size: .93rem; vertical-align: middle; }
.std-table tbody th { white-space: nowrap; color: var(--brand-deep); }
.std-table tbody tr:nth-child(even) { background: #fafbfd; }
.std-table td.std-pass { color: #15803d; font-weight: 800; white-space: nowrap; }
.std-note { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; background: #f4f7fb; border: 1px solid #e3e9f2; border-radius: 10px; padding: .8rem 1rem; margin-top: 1.4rem; font-size: .88rem; }
.std-note i { color: var(--accent); }
kbd { background: #fff; color: #333; border: 1px solid #cfd6e0; border-radius: 4px; font-size: .78rem; padding: .05rem .35rem; box-shadow: 0 1px 0 #cfd6e0; }
@media (max-width: 767px) {
    .std-table thead { display: none; }
    .std-table, .std-table tbody, .std-table tr, .std-table th, .std-table td { display: block; width: 100%; }
    .std-table tbody tr { padding: .8rem 1rem; border-top: 6px solid var(--soft); }
    .std-table tbody th { border: 0; padding: 0 0 .3rem; font-size: 1.05rem; }
    .std-table td { border: 0; padding: .15rem 0; display: flex; gap: .6rem; }
    .std-table td::before { content: attr(data-label) ":"; flex: 0 0 120px; color: var(--muted); font-weight: 600; }
}

/* Ôn thi lý thuyết */
.class-picker { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.class-picker a { min-width: 52px; text-align: center; padding: .45rem .7rem; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font-weight: 800; border: 1px solid rgba(255,255,255,.25); }
.class-picker a.active, .class-picker a:hover { background: #fff; color: var(--brand); }
.mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.mode-card { display: flex; flex-direction: column; gap: .2rem; padding: 1.2rem; border-radius: 16px; color: #fff; box-shadow: var(--shadow); transition: transform .2s; }
.mode-card:hover { transform: translateY(-3px); color: #fff; }
.mode-card i { font-size: 1.8rem; }
.mode-card strong { font-size: 1.1rem; }
.mode-card span { font-size: .86rem; opacity: .9; }
.mc-exam { background: linear-gradient(135deg, #ff8f1f, #e86a00); }
.mc-crit { background: linear-gradient(135deg, #e11d48, #9f1239); }
.mc-wrong { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.mc-all { background: linear-gradient(135deg, var(--brand), var(--teal)); }
.chapter-list { display: grid; gap: .6rem; margin-top: .8rem; }
.chapter-item { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; background: #fff; border: 1px solid #e6ebf2; border-radius: 14px; color: var(--brand-deep); }
.chapter-item:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.ch-no { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.ch-body { flex: 1; }
.ch-body strong { display: block; font-size: .96rem; }
.ch-body small { color: var(--muted); }
.ch-bar { display: block; height: 6px; background: #eef2f7; border-radius: 3px; margin-top: .35rem; overflow: hidden; }
.ch-bar span { display: block; height: 100%; background: #16a34a; }
.progress-ring-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.progress-ring-row div { background: var(--soft); border-radius: 12px; padding: .7rem; text-align: center; }
.progress-ring-row strong { display: block; font-size: 1.5rem; }
.progress-ring-row span { font-size: .78rem; color: var(--muted); }
.attempt-list { list-style: none; padding: 0; margin: 0 0 .4rem; font-size: .88rem; }
.attempt-list li { padding: .35rem 0; border-bottom: 1px solid #f0f3f8; }
.attempt-list small { color: var(--muted); }
.std-mini { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.std-mini li { background: var(--soft); border-radius: 10px; padding: .5rem .7rem; }
.std-mini span { display: block; font-size: .75rem; color: var(--muted); }
.quiz-page { background: var(--soft); padding: 22px 0 70px; min-height: 70vh; }
.quiz-top { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.quiz-title { font-size: 1.3rem; margin: 0; }
.quiz-title small { color: var(--muted); font-weight: 600; font-size: .9rem; }
.quiz-score, .quiz-timer { margin-left: auto; font-weight: 800; color: var(--brand); background: #fff; border-radius: 999px; padding: .4rem .9rem; box-shadow: var(--shadow); }
.quiz-timer.low { color: #dc2626; animation: pulse 1s infinite; }
.quiz-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.2rem; align-items: start; }
.quiz-card, .exam-start-box, .result-box { background: #fff; border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow); }
.quiz-loading { background: #fff; border-radius: 18px; padding: 2rem; text-align: center; color: var(--muted); }
.q-head { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.q-no { font-weight: 800; color: var(--brand); }
.q-crit { color: #dc2626; font-weight: 700; font-size: .85rem; }
.q-text { font-size: 1.12rem; font-weight: 600; line-height: 1.55; white-space: pre-wrap; }
.q-img { display: block; max-width: 100%; max-height: 360px; margin: .6rem auto 1rem; border-radius: 10px; }
.q-options { display: grid; gap: .55rem; }
.q-opt { display: flex; gap: .8rem; align-items: flex-start; text-align: left; width: 100%; padding: .8rem 1rem; border: 2px solid #e2e8f0; border-radius: 12px; background: #fff; font-size: 1rem; line-height: 1.45; }
.q-opt:hover:not(:disabled) { border-color: var(--brand); background: #f5f9ff; }
.q-opt-no { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; }
.q-opt.picked { border-color: var(--brand); background: #eef4fc; }
.q-opt.correct { border-color: #16a34a; background: #ecfdf3; }
.q-opt.correct .q-opt-no { background: #16a34a; color: #fff; }
.q-opt.wrong { border-color: #dc2626; background: #fef2f2; }
.q-opt.wrong .q-opt-no { background: #dc2626; color: #fff; }
.q-opt:disabled { cursor: default; opacity: 1; color: inherit; }
.q-explain { margin-top: 1rem; background: #f8fafc; border-left: 4px solid var(--teal); padding: .8rem 1rem; border-radius: 8px; }
.q-explain p { margin: 0 0 .35rem; }
.ex-ok { color: #15803d; font-weight: 800; }
.ex-bad { color: #dc2626; font-weight: 800; }
.ex-tip { color: #b45309; }
.q-nav { display: flex; justify-content: space-between; margin-top: 1.2rem; }
.quiz-grid-wrap { background: #fff; border-radius: 18px; padding: 1rem; box-shadow: var(--shadow); position: sticky; top: 90px; }
.quiz-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; max-height: 60vh; overflow-y: auto; }
.g-cell { aspect-ratio: 1; border: 1px solid #dfe5ee; background: #fff; border-radius: 8px; font-size: .8rem; font-weight: 700; color: #475569; padding: 0; }
.g-cell.done { background: #dbeafe; border-color: #93c5fd; color: var(--brand); }
.g-cell.ok { background: #16a34a; border-color: #16a34a; color: #fff; }
.g-cell.bad { background: #dc2626; border-color: #dc2626; color: #fff; }
.g-cell.crit { box-shadow: inset 0 -3px 0 #f59e0b; }
.g-cell.cur { outline: 3px solid var(--accent); outline-offset: 1px; }
.quiz-legend { display: flex; gap: .8rem; font-size: .75rem; margin-top: .7rem; color: var(--muted); }
.quiz-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.lg-ok::before { background: #16a34a; } .lg-bad::before { background: #dc2626; } .lg-cur::before { background: var(--accent); }
.exam-start { max-width: 640px; margin: 0 auto; }
.result-box { max-width: 560px; margin: 0 auto; text-align: center; }
.result-badge { display: inline-block; font-size: 2.2rem; font-weight: 900; padding: .5rem 2.2rem; border-radius: 16px; margin-bottom: .8rem; }
.result-badge.pass { background: #dcfce7; color: #15803d; }
.result-badge.fail { background: #fee2e2; color: #b91c1c; }
.review-item { background: #fff; border-radius: 14px; padding: 1.1rem 1.2rem; margin-bottom: .8rem; border-left: 5px solid #16a34a; box-shadow: var(--shadow); }
.review-item.bad { border-left-color: #dc2626; }
.review-opts { padding-left: 1.4rem; }
.review-opts li.correct { color: #15803d; font-weight: 700; }
.review-opts li.wrong { color: #dc2626; text-decoration: line-through; }
.review-ex { background: #f8fafc; padding: .5rem .7rem; border-radius: 8px; }
@media (max-width: 991px) {
    .quiz-layout { grid-template-columns: 1fr; }
    .quiz-grid-wrap { position: static; order: -1; }
    .quiz-grid { grid-template-columns: repeat(10, 1fr); max-height: 140px; }
    .mode-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) { .mode-grid { grid-template-columns: 1fr; } .quiz-card { padding: 1rem; } .q-text { font-size: 1.02rem; } }
@media (min-width: 1200px) { .navbar .nav-link, .navbar .btn-accent { white-space: nowrap; } .navbar .nav-link { padding-left: .6rem !important; padding-right: .6rem !important; } }
@media (min-width: 768px) { .std-table td:nth-of-type(n+2):nth-of-type(-n+4) { white-space: nowrap; } .std-table td:last-child { min-width: 150px; } }
.article-body table tr:first-child td strong:only-child { display: block; }
.article-body table tbody tr:first-child:has(td > strong:only-child) td { background: var(--soft); }

/* Video trong bài viết */
.article-body figure.vid { margin: 1.3rem 0; }
.vid-box { position: relative; background: #000; }
.vid-box iframe.embed, .vid-box video.embed-video { margin: 0 !important; border-radius: 0 !important; }
.vid-vertical .vid-box { max-width: 360px; margin: 0 auto; background: transparent; }
.vid-vertical .vid-box iframe.embed { max-width: 100%; }
figure.vid figcaption { font-size: .95rem; line-height: 1.5; color: #222; padding: .55rem 0 0; background: none; }
figure.vid figcaption em { font-style: normal; }
.vid-close { display: none; position: absolute; top: -14px; right: -14px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #fff; color: #222; box-shadow: 0 2px 8px rgba(0,0,0,.35); z-index: 2; padding: 0; line-height: 1; }
figure.vid.vid-float .vid-box { position: fixed; left: 16px; bottom: 16px; width: 340px; z-index: 1060; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: vidIn .25s ease; }
figure.vid.vid-vertical.vid-float .vid-box { width: 220px; }
figure.vid.vid-float .vid-box iframe.embed-tiktok { height: 480px; }
figure.vid.vid-float .vid-close { display: grid; place-items: center; }
@keyframes vidIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Hiệu ứng ngày lễ */
.fx-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 1040; }
.fx-off { position: fixed; left: 14px; bottom: 14px; z-index: 1041; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(15,23,41,.55); color: #fff; font-size: .9rem; display: grid; place-items: center; opacity: .55; padding: 0; }
.fx-off:hover { opacity: 1; }
@media (max-width: 991px) { .fx-off { bottom: 84px; } }

/* Chống tràn chữ trên điện thoại (bài viết, khóa học, giới thiệu) */
.rich-content, .about-text, .article-body, .article-sapo, .article-title, .news-h1, .post-row h3, .post-lead h2 { overflow-wrap: break-word; word-wrap: break-word; min-width: 0; }
.rich-content img, .rich-content iframe, .rich-content video, .about-text img { max-width: 100%; height: auto; }
.rich-content table { display: block; max-width: 100%; overflow-x: auto; }
.rich-content pre { white-space: pre-wrap; }
