/* Thế Giới Côn Trùng (thegioicontrung.info). Same palette as thegioicontrung.com: forest green, honey, cream, gold. */
:root {
  --g900: #0a251b; --g800: #0e3526; --g700: #134732; --g600: #185a3e; --g500: #1f6b4a; --g400: #4f9a72; --g100: #dcede1; --g50: #f0f7f2;
  --honey: #c47610; --honey-d: #a25f0b; --honey-l: #fdf5e7;
  --cream: #fdfaf2; --cream2: #f8f0dc; --gold: #b08a3e; --gold-l: #e8d3a6;
  --ink: #0d1718; --ink7: #25302f; --ink4: #5b6b6c; --ink2: #cbd3d3; --ink1: #e4e9e9;
  --r: 18px; --r-lg: 26px;
  --shadow: 0 1px 2px rgba(13, 23, 24, .05), 0 8px 24px -12px rgba(13, 23, 24, .18);
  --shadow-lg: 0 18px 40px -18px rgba(10, 37, 27, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; }
a { color: var(--g600); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
.eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.eyebrow-light { color: var(--gold-l); }
.muted { color: var(--ink4); font-size: 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(90deg, #d98a24, var(--honey)); color: #fff; box-shadow: 0 10px 26px -10px rgba(196, 118, 16, .8); }
.btn-green { background: var(--g500); color: #fff; }
.btn-green:hover { background: var(--g600); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.btn-line { background: #fff; color: var(--g600); box-shadow: inset 0 0 0 1px var(--g100); }

/* top bar + header */
.topbar { background: var(--g900); color: var(--cream2); font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--gold-l); }
.topbar-cta { font-weight: 700; text-decoration: none; white-space: nowrap; }
.header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--ink1); }
.header-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-text { display: flex; flex-wrap: wrap; column-gap: 6px; font-size: 18px; line-height: 1.05; }
.brand-text b { font-weight: 800; letter-spacing: -.02em; }
.brand-text .g { color: var(--g500); }
.brand-text small { flex-basis: 100%; font-size: 11px; font-weight: 600; color: var(--ink4); margin-top: 3px; letter-spacing: .02em; }
.brand-dark { color: #fff; }
.brand-dark .g { color: var(--gold-l); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 11px; border-radius: 10px; text-decoration: none; color: var(--ink7); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.nav a:hover { background: var(--g50); color: var(--g600); }
.hsearch { display: flex; align-items: center; background: var(--g50); border-radius: 999px; padding: 3px 4px 3px 14px; width: 220px; }
.hsearch input { border: 0; background: transparent; font: inherit; font-size: 14px; outline: 0; min-width: 0; flex: 1; }
.hsearch button { border: 0; background: var(--g500); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: var(--g50); border-radius: 12px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn span { width: 20px; height: 2px; background: var(--g700); border-radius: 2px; }
.mnav { display: grid; padding: 8px 16px 16px; border-top: 1px solid var(--ink1); background: #fff; }
.mnav[hidden] { display: none; }
.mnav a { padding: 12px 4px; border-bottom: 1px solid var(--ink1); text-decoration: none; color: var(--ink); font-weight: 600; }
.mnav-cta { color: var(--honey-d) !important; border-bottom: 0 !important; }
.preview-flag { background: var(--honey); color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: 6px; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(196, 118, 16, .28), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(79, 154, 114, .35), transparent 60%), var(--g800); color: #fff; }
.hero-in { padding-top: 64px; padding-bottom: 60px; }
.hero h1 { margin: 0; font-size: clamp(32px, 6vw, 56px); font-weight: 800; max-width: 760px; }
.hero h1 span { color: #f0c46a; }
.hero .lead { max-width: 640px; color: var(--g100); font-size: 17px; margin: 16px 0 0; }
.big-search { display: flex; gap: 6px; max-width: 620px; margin-top: 26px; background: #fff; border-radius: 18px; padding: 6px; box-shadow: var(--shadow-lg); border: 1px solid var(--gold-l); }
.big-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; padding: 0 12px; color: var(--ink); }
.big-search .btn { border-radius: 13px; }
.big-search-light { box-shadow: var(--shadow); border-color: var(--ink1); margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a { padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--cream2); background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(232, 211, 166, .3); }
.chips a:hover { background: rgba(255, 255, 255, .18); }
.chips-dark { margin: 0 0 22px; }
.chips-dark a { color: var(--ink7); background: var(--g50); box-shadow: none; }
.chips-dark a[aria-current] { background: var(--g500); color: #fff; }

/* blocks + cards */
.block { padding-top: 56px; padding-bottom: 8px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.block-head h2 { margin: 0; font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; }
.more { font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-feat { grid-template-columns: repeat(3, 1fr); }
.grid-feat .card-big { grid-column: span 2; grid-row: span 2; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--ink1); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-pic { position: relative; display: block; aspect-ratio: 16/10; background: var(--g50); overflow: hidden; }
.card-pic > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-pic > img { transform: scale(1.04); }
.card-big .card-pic { aspect-ratio: 16/9; flex: 1; }
.noimg { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, var(--g50), var(--cream2)); }
.noimg img { width: 56px; opacity: .55; }
.badge { position: absolute; left: 12px; top: 12px; background: var(--g500); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 8px; letter-spacing: .02em; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.card-topic { font-size: 12px; font-weight: 700; color: #8a6a2a; }
.card-title { font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-big .card-title { font-size: clamp(20px, 2.4vw, 26px); }
.card:hover .card-title { color: var(--g600); }
.card-ex { font-size: 14px; color: var(--ink4); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--ink4); }

/* animals */
.animals-band { background: var(--cream); margin-top: 56px; padding-bottom: 56px; }
.animal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.animal { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s; }
.animal:hover { transform: translateY(-2px); }
.animal-pic { aspect-ratio: 4/3; background: var(--g50); overflow: hidden; }
.animal-pic img { width: 100%; height: 100%; object-fit: cover; }
.animal-name { font-weight: 800; font-size: 15px; padding: 10px 12px 0; }
.animal-count { font-size: 12.5px; color: var(--ink4); padding: 0 12px 12px; }

/* thegioicontrung.com band */
.com-band { margin: 64px auto 0; max-width: 1180px; padding: 0 16px; }
.com-band-in { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(26px, 5vw, 48px); color: #fff; background: radial-gradient(500px 300px at 100% 0, rgba(196, 118, 16, .35), transparent 70%), radial-gradient(500px 300px at 0 100%, rgba(79, 154, 114, .4), transparent 70%), #0e2319; }
.com-band .eyebrow { color: var(--gold-l); }
.com-band h2 { margin: 0; font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; max-width: 720px; }
.com-band p { color: rgba(255, 255, 255, .78); max-width: 640px; }
.com-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* products */
.products-band { background: var(--g50); margin-top: 56px; padding-bottom: 56px; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pgrid-page { margin-bottom: 20px; }
.pcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--ink1); }
.pcard-pic { aspect-ratio: 1; background: var(--cream); overflow: hidden; }
.pcard-pic img { width: 100%; height: 100%; object-fit: cover; }
.pcard-name { font-weight: 700; font-size: 15px; padding: 12px 14px 2px; line-height: 1.3; }
.pcard-price { font-weight: 800; color: var(--honey-d); padding: 0 14px 14px; }
.topics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding-bottom: 8px; }
.topic { display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: var(--r); border: 1px solid var(--ink1); text-decoration: none; color: var(--ink); background: linear-gradient(180deg, #fff, var(--cream)); }
.topic span { font-size: 13px; color: var(--ink4); }

/* article */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink4); padding-top: 22px; }
.crumbs a { color: var(--ink4); text-decoration: none; }
.crumbs a:hover { color: var(--g600); }
.article-head { max-width: 860px; }
.article-head .eyebrow { margin-top: 22px; }
.article-head h1 { margin: 0; font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; }
.lead-dark { font-size: 18px; color: var(--ink7); margin: 14px 0 0; }
.meta { font-size: 14px; color: var(--ink4); margin: 14px 0 0; }
.meta a { color: var(--g600); text-decoration: none; font-weight: 600; }
.article-hero { margin-top: 26px; margin-bottom: 0; }
.article-hero img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 34px; }
.prose { font-size: 17.5px; line-height: 1.75; color: #1c2626; min-width: 0; overflow-wrap: anywhere; }
.prose h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin: 1.8em 0 .5em; color: var(--ink); }
.prose h3 { font-size: 20px; font-weight: 800; margin: 1.5em 0 .4em; }
.prose h4 { font-size: 17.5px; font-weight: 800; margin: 1.3em 0 .3em; }
.prose p { margin: 0 0 1.05em; }
.prose img { display: block; margin: 1.4em auto; border-radius: 16px; max-height: 620px; width: auto; }
.prose figure { margin: 1.6em 0; }
.prose figure img { width: 100%; margin: 0; }
.prose figcaption { font-size: 14px; color: var(--ink4); text-align: center; margin-top: 8px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15.5px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--ink1); padding: 9px 12px; text-align: left; vertical-align: top; overflow-wrap: normal; word-break: normal; }
.prose td:first-child, .prose th:first-child { white-space: nowrap; font-weight: 600; }
.prose th { background: var(--g50); }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 4px solid var(--gold); background: var(--cream); border-radius: 0 14px 14px 0; }
.note { border-radius: 16px; padding: 14px 18px; margin: 0 0 1.4em; font-size: 15.5px; line-height: 1.6; }
.note-warn { background: var(--honey-l); border: 1px solid #f0deb0; }
.note-tip { background: var(--g50); border: 1px solid var(--g100); }
.note-info { background: #f4f6f6; border: 1px solid var(--ink1); }
.takeaways { background: linear-gradient(180deg, var(--g50), #fff); border: 1px solid var(--g100); border-radius: 22px; padding: 18px 22px; margin-bottom: 1.6em; }
.takeaways h2 { margin: 0 0 6px !important; font-size: 18px !important; }
.takeaways ul { margin: 0; }
.faq details { border: 1px solid var(--ink1); border-radius: 14px; padding: 12px 16px; margin: 10px 0; background: #fff; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details div { margin-top: 8px; font-size: 16px; }
.side { position: relative; }
.side-box { position: sticky; top: 92px; background: #0e2319; color: #fff; border-radius: 24px; padding: 22px; margin-bottom: 16px; }
.side-box .eyebrow { color: var(--gold-l); }
.side-box h3 { margin: 0 0 6px; font-size: 20px; }
.side-box p { font-size: 14.5px; color: rgba(255, 255, 255, .75); margin: 0 0 14px; }
.side-box .btn { width: 100%; }
.side-link { display: block; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--gold-l); text-decoration: none; }
.side-plain { position: static; background: var(--cream); color: var(--ink); }
.side-plain .side-link { color: var(--g600); }
.yt { position: relative; aspect-ratio: 16/9; margin: 1.4em 0; border-radius: 18px; overflow: hidden; background: #000; }
.yt button { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; }
.yt img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; border-radius: 0 !important; max-height: none !important; opacity: .9; }
.yt .play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; transform: translate(-50%, -50%); background: #e62117; border-radius: 14px; }
.yt .play::after { content: ""; position: absolute; left: 29px; top: 15px; border: 10px solid transparent; border-left: 16px solid #fff; }
.yt iframe { width: 100%; height: 100%; border: 0; }

/* product */
.product { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; margin-top: 22px; }
.product-pic img { width: 100%; border-radius: 26px; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.product-info h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.price { font-size: 28px; font-weight: 800; color: var(--honey-d); margin: 14px 0 4px; }
.price span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.product-body { margin-top: 24px; font-size: 16.5px; }

/* lists */
.list-head { padding: 10px 0 26px; max-width: 760px; }
.list-head .eyebrow { margin-top: 18px; }
.list-head h1, .page-title { margin: 0; font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; }
.page-title { margin: 26px 0 18px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 34px 0 0; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--ink1); text-decoration: none; font-weight: 700; color: var(--ink7); }
.pager span[aria-current] { background: var(--g500); color: #fff; border-color: var(--g500); }
.empty { padding: 30px; text-align: center; background: var(--cream); border-radius: 20px; }

/* footer */
.footer { margin-top: 72px; background: var(--g900); color: rgba(255, 255, 255, .72); font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-top: 52px; padding-bottom: 36px; }
.footer h3 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 12px; }
.footer a { display: block; color: rgba(255, 255, 255, .78); text-decoration: none; padding: 4px 0; }
.footer a:hover { color: var(--gold-l); }
.footer .brand { display: flex; padding: 0; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 26px; font-size: 13px; }
.foot-bottom a { display: inline; }

@media (max-width: 1100px) {
  .nav a { padding: 8px 8px; font-size: 14px; }
  .hsearch { display: none; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 980px) {
  .grid-3, .grid-4, .grid-feat, .pgrid { grid-template-columns: repeat(2, 1fr); }
  .animal-grid { grid-template-columns: repeat(4, 1fr); }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; gap: 10px; }
  .side-box { position: static; }
  .product { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .topbar span { display: none; }
  .topbar .wrap { justify-content: center; }
  .header-in { height: 60px; }
  .brand-text { font-size: 16px; }
  .brand-text small { display: none; }
  .hero-in { padding-top: 40px; padding-bottom: 40px; }
  .grid-3, .grid-4, .grid-feat { grid-template-columns: 1fr; }
  .grid-feat .card-big { grid-column: auto; grid-row: auto; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .animal-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .animal-name { font-size: 13.5px; padding: 8px 10px 0; }
  .animal-count { padding: 0 10px 10px; }
  .block { padding-top: 40px; }
  .block-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .prose { font-size: 17px; }
  .prose table { font-size: 14.5px; }
  .prose td, .prose th { padding: 8px 9px; }
  .foot-grid { grid-template-columns: 1fr; }
  .com-actions .btn { width: 100%; }
  .big-search .btn { padding: 12px 16px; }
}
