/* Cong thong tin Tap chi Rung va Moi truong - mau theo mang sec (xanh rung, do, vang) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@600;700&family=Be+Vietnam+Pro:wght@400;500;600&display=swap');
:root {
    --xanh: #0B6B3A; --xanh-dam: #074A28; --xanh-nhat: #EAF4EE; --do: #C8102E; --vang: #F2B705;
    --chu: #1E2A23; --mo: #5D6B62; --vien: #DCE6DF; --nen: #F6F8F5;
}
body.cong { font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; color: var(--chu); background: var(--nen); font-size: 15.5px; }
.cong h1, .cong h2, .cong h3, .cong .cg-serif { font-family: 'Noto Serif', Georgia, serif; }
.cong a { color: var(--xanh); }
.cong a:hover { color: var(--do); }

.cg-topbar { background: var(--xanh-dam); color: #D7E9DD; font-size: 13px; padding: 5px 0; }
.cg-topbar a { color: #fff; text-decoration: none; }
.cg-topbar span, .cg-topbar a { white-space: nowrap; }

.cg-head { background: linear-gradient(90deg, #0B6B3A 0%, #0E7A43 55%, #0B6B3A 100%); border-bottom: 4px solid var(--vang); }
.cg-head-in { display: flex; align-items: center; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.cg-mast img { height: 118px; width: auto; display: block; border-radius: 4px; }
.cg-head-r { margin-left: auto; text-align: right; color: #fff; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cg-quote { font-family: 'Noto Serif', Georgia, serif; font-style: italic; color: #FFF6C9; font-size: 16px; }
@media (min-width: 992px) { .cg-quote { white-space: nowrap; } }
@media (min-width: 992px) and (max-width: 1199px) { .cg-quote { font-size: 14px; } }
.cg-quote span { display: block; font-size: 12px; font-style: normal; color: #CFE8D8; }
.cg-head-meta { font-size: 13px; color: #E1F0E6; display: flex; gap: 14px; }
.cg-btn-gui { background: var(--do); color: #fff !important; font-weight: 600; border-radius: 22px; padding: 7px 18px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.cg-btn-gui:hover { background: #A50D25; }
@media (max-width: 991px) {
    .cg-mast img { height: 84px; }
    .cg-quote { display: none; }
}
@media (max-width: 575px) {
    .cg-head-in { flex-wrap: wrap; justify-content: center; }
    .cg-head-r { margin: 0; align-items: center; text-align: center; }
    .cg-mast img { height: 96px; }
}

.cg-nav { background: #fff; border-bottom: 1px solid var(--vien); padding: 0; position: sticky; top: 0; z-index: 1020; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.cg-nav .nav-link { color: var(--chu); font-weight: 500; padding: 13px 14px !important; border-bottom: 3px solid transparent; }
.cg-nav .nav-link:hover, .cg-nav .nav-link.active { color: var(--xanh); border-bottom-color: var(--xanh); }
.cg-nav .navbar-toggler { border: 0; color: var(--xanh); font-weight: 600; padding: 10px 0; }
.cg-nav .dropdown-menu { border-radius: 0 0 8px 8px; border-color: var(--vien); }
.cg-search { display: flex; gap: 4px; padding: 8px 0; }
.cg-search input { min-width: 230px; border-radius: 18px; }
.cg-search button { color: var(--xanh); }

.cg-main { padding: 26px 0 40px; min-height: 55vh; }
.cg-card { background: #fff; border: 1px solid var(--vien); border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; }
.cg-h { font-family: 'Noto Serif', Georgia, serif; font-size: 20px; color: var(--xanh-dam); border-left: 4px solid var(--do); padding-left: 10px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.cg-h a.small { margin-left: auto; font-family: 'Be Vietnam Pro', sans-serif; font-size: 13px; }
.cg-crumb { font-size: 13px; color: var(--mo); margin-bottom: 12px; }
.cg-crumb a { color: var(--mo); }
.cg-title { font-size: 28px; color: var(--xanh-dam); margin-bottom: 6px; line-height: 1.3; }
.cg-subtitle { color: var(--mo); font-size: 17px; font-style: italic; margin-bottom: 14px; }

/* so moi nhat */
.cg-hero { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.cg-hero img { width: 100%; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.cg-hero .nhan { display: inline-block; background: var(--do); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; margin-bottom: 8px; }
@media (max-width: 767px) { .cg-hero { grid-template-columns: 1fr; } .cg-hero img { max-width: 240px; } }

.cg-bai { padding: 12px 0; border-bottom: 1px dashed var(--vien); }
.cg-bai:last-child { border-bottom: 0; }
.cg-bai-t { font-weight: 600; font-size: 16px; line-height: 1.4; }
.cg-bai-t a { color: var(--chu); text-decoration: none; }
.cg-bai-t a:hover { color: var(--xanh); }
.cg-bai-ta { font-style: italic; color: var(--mo); font-size: 14px; }
.cg-bai-tg { color: var(--xanh-dam); font-size: 14px; margin-top: 2px; }
.cg-bai-m { font-size: 13px; color: var(--mo); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.cg-cm { font-size: 13px; font-weight: 600; color: var(--do); text-transform: uppercase; letter-spacing: .4px; margin: 16px 0 4px; }

.cg-so-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.cg-so { text-align: center; text-decoration: none; color: var(--chu); }
.cg-so img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 4px; box-shadow: 0 3px 10px rgba(0,0,0,.15); transition: transform .15s; background: var(--xanh-nhat); }
.cg-so:hover img { transform: translateY(-3px); }
.cg-so b { display: block; margin-top: 8px; font-size: 14px; }
.cg-so span { font-size: 12px; color: var(--mo); }
.cg-so .khong-anh { width: 100%; aspect-ratio: 210/297; display: flex; align-items: center; justify-content: center; background: var(--xanh-nhat); border-radius: 4px; color: var(--xanh); font-family: 'Noto Serif', serif; font-size: 20px; }

.cg-tin { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--vien); }
.cg-tin:last-child { border-bottom: 0; }
.cg-tin img, .cg-tin .ph { width: 160px; height: 104px; object-fit: cover; border-radius: 6px; background: var(--xanh-nhat); display: flex; align-items: center; justify-content: center; color: var(--xanh); font-size: 30px; }
.cg-tin-t { font-weight: 600; line-height: 1.4; }
.cg-tin-t a { color: var(--chu); text-decoration: none; }
.cg-tin-t a:hover { color: var(--xanh); }
.cg-tin-m { font-size: 12.5px; color: var(--mo); margin: 3px 0; }
.cg-tin-s { font-size: 14px; color: #3E4C44; }
@media (max-width: 575px) { .cg-tin { grid-template-columns: 110px 1fr; } .cg-tin img, .cg-tin .ph { width: 110px; height: 76px; } }

.cg-side .cg-card { padding: 16px; }
.cg-side-gui { background: linear-gradient(135deg, var(--xanh) 0%, #128A4C 100%); color: #fff; border: 0; }
.cg-side-gui h3 { font-size: 18px; color: #fff; }
.cg-side-gui p { font-size: 14px; color: #E3F2E8; }
.cg-side-gui .btn { background: #fff; color: var(--xanh); font-weight: 600; }
.cg-info dt { font-size: 12px; color: var(--mo); font-weight: 500; text-transform: uppercase; letter-spacing: .3px; }
.cg-info dd { margin-bottom: 8px; font-size: 14px; }
.cg-links a { display: block; padding: 6px 0; border-bottom: 1px solid var(--vien); text-decoration: none; font-size: 14px; }
.cg-links a:last-child { border-bottom: 0; }
.cg-links a i { color: var(--do); margin-right: 6px; }

.cg-noidung { line-height: 1.75; font-size: 16px; }
.cg-noidung img { max-width: 100%; height: auto; border-radius: 4px; }
.cg-noidung h3 { font-size: 19px; color: var(--xanh-dam); margin-top: 22px; }
.cg-noidung table { margin: 12px 0; }
.cg-noidung blockquote { border-left: 4px solid var(--vang); padding: 6px 14px; background: #FFFBEA; }
.cg-noidung .qt-buoc li { margin-bottom: 8px; }

.cg-abs { background: var(--xanh-nhat); border-radius: 8px; padding: 14px 18px; margin: 14px 0; }
.cg-abs h3 { font-size: 15px; font-family: 'Be Vietnam Pro', sans-serif; text-transform: uppercase; letter-spacing: .4px; color: var(--xanh-dam); margin-bottom: 6px; }
.cg-abs p { margin-bottom: 0; text-align: justify; }
a.tk { display: inline-block; background: #fff; border: 1px solid var(--vien); border-radius: 14px; padding: 1px 10px; font-size: 13px; text-decoration: none; margin: 2px 2px 2px 0; color: var(--xanh-dam); }
.cg-ngay { font-size: 13px; color: var(--mo); display: flex; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--vien); padding-top: 10px; margin-top: 12px; }
.cg-trichdan { font-size: 13.5px; background: #FAFAF7; border: 1px dashed var(--vien); border-radius: 6px; padding: 10px 12px; }

.cg-hd table td, .cg-hd table th { vertical-align: middle; }
.cg-loc { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cg-loc .btn { border-radius: 18px; }
.cg-loc .btn.on { background: var(--xanh); color: #fff; }
.cg-page { display: flex; gap: 4px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.cg-page a, .cg-page span { padding: 5px 11px; border: 1px solid var(--vien); border-radius: 6px; background: #fff; text-decoration: none; font-size: 14px; }
.cg-page span.on { background: var(--xanh); color: #fff; border-color: var(--xanh); }

.cg-foot { background: #0A3D24; color: #C9DCCF; font-size: 14px; padding: 34px 0 16px; border-top: 4px solid var(--vang); }
.cg-foot a { color: #fff; }
.cg-foot-ten { font-family: 'Noto Serif', Georgia, serif; font-size: 20px; color: #fff; font-weight: 700; }
.cg-foot-sub { color: #9FC3AC; margin-bottom: 10px; font-size: 13px; }
.cg-foot-h { color: #fff; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; font-size: 13px; letter-spacing: .5px; }
.cg-foot li { margin-bottom: 4px; }
.cg-foot-bot { border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding-top: 12px; font-size: 12.5px; color: #8FB39C; }

.cg-auth { max-width: 520px; margin: 0 auto; }
.cg-auth.rong { max-width: 860px; }
.cg-auth .cg-card { padding: 26px; }
.form-label.req::after, label.req::after { content: ' *'; color: var(--do); }
.cg-buoc { counter-reset: b; list-style: none; padding: 0; }
.cg-buoc li { counter-increment: b; position: relative; padding: 0 0 14px 44px; }
.cg-buoc li::before { content: counter(b); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--xanh); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cg-check li { margin-bottom: 6px; }
mark { background: #FFF3B0; padding: 0 2px; }
.cong a.btn { text-decoration: none; }
.cong a.btn-success, .cong a.btn-success:hover, .cong a.btn-outline-success:hover { color: #fff; }
.cong a.btn-outline-success { color: var(--xanh); }
.cong a.btn-outline-secondary { color: #3E4C44; }
.cong a.btn-outline-secondary:hover { color: #fff; }
.cg-nav .nav-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199px) {
    .cg-nav .nav-link { padding: 13px 9px !important; font-size: 14.5px; }
    .cg-search input { min-width: 170px; }
}

/* ---- Thanh dieu huong duoi day (kieu ung dung di dong) ---- */
.cg-tab, .cg-sheet { display: none; }
@media (max-width: 991px) {
    body.cong { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .cg-nav { display: none; }
    .cg-tab { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
        border-top: 1px solid var(--vien); box-shadow: 0 -2px 12px rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom); z-index: 1060; }
    .cg-tab a, .cg-tab button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px;
        color: var(--mo); text-decoration: none; font-size: 11.5px; font-weight: 500; background: none; border: 0; position: relative; -webkit-tap-highlight-color: transparent; }
    .cg-tab i { font-size: 21px; line-height: 1; }
    .cg-tab a.active { color: var(--xanh); }
    .cg-tab a.active::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--xanh); }
    .cg-tab a.cg-tab-gui i { width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--do); color: #fff; display: flex; align-items: center; justify-content: center;
        box-shadow: 0 4px 10px rgba(200,16,46,.35); border: 3px solid #fff; font-size: 19px; }
    .cg-tab a.cg-tab-gui { color: var(--do); }
    .cg-tab a:active i, .cg-tab button:active i { transform: scale(.9); }
    .cg-sheet:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1050; }
    .cg-sheet-bd { position: absolute; inset: 0; background: rgba(0,0,0,.35); animation: cgMo .2s; }
    .cg-sheet-p { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 18px 18px 0 0; padding: 8px 16px calc(78px + env(safe-area-inset-bottom));
        max-height: 80vh; overflow-y: auto; animation: cgLen .22s ease-out; }
    .cg-sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: #D5DDD7; margin: 2px auto 12px; }
    .cg-sheet-tim { display: flex; gap: 6px; margin-bottom: 14px; }
    .cg-sheet-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .cg-sheet-g a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px 4px; border-radius: 12px; background: var(--nen);
        color: var(--chu); text-decoration: none; font-size: 12.5px; line-height: 1.25; }
    .cg-sheet-g a i { font-size: 22px; color: var(--xanh); }
    body.sheet-mo { overflow: hidden; }
}
@keyframes cgLen { from { transform: translateY(100%); } to { transform: none; } }
@keyframes cgMo { from { opacity: 0; } to { opacity: 1; } }

/* ---- Nut Ngon ngu (Google dich tu dong, js/vs-lang-translate.js) ---- */
.cg-topbar .container { flex-wrap: nowrap; }
.vs-lang-switcher { position: relative; z-index: 1100; user-select: none; }
.vs-lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
    background: rgba(255,255,255,.08); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; line-height: 1.6; }
.vs-lang-btn:hover, .vs-lang-switcher.active .vs-lang-btn { background: rgba(255,255,255,.2); }
.vs-lang-btn .selected__lang { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-lang-switcher .translate__lang { position: absolute; top: calc(100% + 6px); right: 0; min-width: 170px; max-height: min(70vh, 420px); overflow-y: auto;
    background: #fff; border: 1px solid var(--vien); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
.vs-lang-switcher.active .translate__lang { opacity: 1; visibility: visible; transform: none; }
.vs-lang-switcher .translate__lang ul { list-style: none; margin: 0; padding: 6px 0; }
.vs-lang-switcher .translate__lang a { display: block; padding: 8px 16px; color: var(--chu) !important; text-decoration: none; font-size: 14px; }
.vs-lang-switcher .translate__lang a:hover { background: var(--xanh-nhat); }
.vs-lang-switcher .translate__lang a.active { background: var(--xanh); color: #fff !important; }
@media (max-width: 575px) { .vs-lang-btn .selected__lang { display: none; } .vs-lang-btn { padding: 2px 8px; } }
/* An thanh / khung cua Google Translate */
#google_translate_element2, .goog-te-banner-frame, iframe.skiptranslate, .goog-te-balloon-frame, #goog-gt-tt, .goog-tooltip, .goog-te-spinner-pos { display: none !important; }
body.cong { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* Sach lat trang trong tin bai / trang noi dung */
.cg-noidung .flip-nhung { margin: 16px 0; }
.cg-noidung iframe.flip-khung { width: 100%; border: 0; border-radius: 8px; background: #2B2F2C; box-shadow: 0 4px 16px rgba(0,0,0,.15); display: block; }
.cg-noidung a.flip-mo { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; text-decoration: none; }
@media (max-width: 575px) { .cg-noidung iframe.flip-khung { height: 420px; } }
