/* ==========================================================================
   Our Village Portal — public site styles
   Visual language modelled on the MarketPro storefront theme: blue/orange
   brand pair, navy headings, Quicksand + Inter, 8/16/24px radii, pill buttons.
   ========================================================================== */
:root {
    --main: #1e63d6;
    --main-700: #1a57bd;
    --main-800: #164aa1;
    --main-50: #eaf1fd;
    --main-100: #d4e3fb;
    --green: var(--main);
    --green-light: var(--main-50);
    --navy: var(--heading);
    --main-two: #fa6800;
    --main-two-800: #c75300;
    --main-two-50: #fff0e6;
    --heading: #121535;
    --neutral: #121535;
    --ink: #333333;
    --text: #666666;
    --muted: #808080;
    --gray-400: #999999;
    --line: #e6e6e6;
    --line-2: #cccccc;
    --bg: #ffffff;
    --bg-soft: #f5f6fa;
    --bg-gray: #f3f4f6;
    --card: #ffffff;
    --star: #ff9f29;
    --danger: #dc2626;
    --info: #2563eb;
    --tertiary: #3c23b5;
    --radius-xs: 5px;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 2px 12px rgba(18, 21, 53, .05);
    --shadow-lg: 0 16px 40px rgba(18, 21, 53, .10);
    --container: 1600px;
    --font-body: 'Inter', 'Noto Sans Malayalam', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-heading: 'Quicksand', 'Noto Sans Malayalam', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    display: flex; flex-direction: column; min-height: 100vh;
}
body.lang-ml { --font-body: 'Noto Sans Malayalam', 'Inter', system-ui, sans-serif; --font-heading: 'Noto Sans Malayalam', 'Quicksand', system-ui, sans-serif; }
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s linear, background-color .2s linear, border-color .2s linear; }
a:hover { color: var(--main); }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.2; font-weight: 700; color: var(--heading); font-family: var(--font-heading); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ph, .ph-fill, .ph-bold { line-height: 1; vertical-align: -0.125em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 2.5vw, 40px); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; line-height: 1;
    font-weight: 500; font-size: 15px; cursor: pointer; transition: .2s linear; white-space: nowrap;
}
.btn .ph, .btn .ph-fill, .btn .ph-bold { font-size: 1.15em; }
.btn-primary { background: var(--main); border-color: var(--main); color: #fff; }
.btn-primary:hover { background: var(--main-800); border-color: var(--main-800); color: #fff; }
.btn-secondary { background: var(--main-two); border-color: var(--main-two); color: #fff; }
.btn-secondary:hover { background: var(--main-two-800); border-color: var(--main-two-800); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--heading); }
.btn-outline:hover { border-color: var(--main); color: var(--main); }
.btn-soft { background: var(--main-50); color: var(--main); }
.btn-soft:hover { background: var(--main); color: #fff; }
.btn-white { background: #fff; color: var(--heading); font-weight: 600; }
.btn-white:hover { background: var(--main-two); color: #fff; }
.btn-danger { background: #fff; border-color: #fecaca; color: var(--danger); }
.btn-danger:hover { background: #fef2f2; color: var(--danger); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- Header top (blue strip) ---------- */
.header-top { background: var(--main); color: #fff; font-size: 13px; }
.header-top .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.header-top-links, .header-top-right { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.header-top-links > li, .header-top-right > li { position: relative; }
.header-top-links > li:not(:last-child), .header-top-right > li:not(:last-child) { margin-inline-end: 20px; padding-inline-end: 20px; }
.header-top-links > li:not(:last-child)::before, .header-top-right > li:not(:last-child)::before {
    content: ""; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%);
    width: 1px; height: 15px; background: rgba(255, 255, 255, .3);
}
.header-top a:hover { color: #fff; text-decoration: underline; }
.header-top .weather i { margin-right: 4px; font-size: 15px; }
.lang-switch { position: relative; }
.lang-switch > button { background: none; border: 0; color: inherit; cursor: pointer; padding: 8px 0; display: flex; align-items: center; gap: 6px; }
.socials { display: flex; gap: 8px; }
.socials a {
    width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    font-size: 16px; color: var(--heading); background: var(--bg-gray); transition: .2s linear;
}
.socials a:hover { background: var(--main); color: #fff; }
.header-top .socials a { width: 24px; height: 24px; font-size: 13px; background: rgba(255, 255, 255, .15); color: #fff; }
.header-top .socials a:hover { background: #fff; color: var(--main); text-decoration: none; }

/* Dropdowns */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 4px); min-width: 180px; background: #fff; color: var(--text);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 8px 0; z-index: 60;
    display: none; border: 1px solid var(--line);
}
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 18px; font-size: 14px; color: var(--text); }
.dropdown-menu a:hover, .dropdown-menu a.active { background: var(--main-50); color: var(--main); text-decoration: none; }
.dropdown.open > .dropdown-menu { display: block; }

/* ---------- Header middle (logo · search · actions) ---------- */
.header-middle { background: #fff; }
.header-middle .container { display: flex; align-items: center; gap: 32px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand-name { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--heading); line-height: 1.1; }
.brand-tag { font-size: 12px; color: var(--muted); }
.search-bar { flex: 1; display: flex; height: 50px; max-width: 720px; }
.search-bar select {
    border: 1px solid var(--line-2); border-inline-end: 0; border-radius: 999px 0 0 999px; padding: 0 16px 0 20px;
    background: var(--bg-gray); color: var(--heading); font-size: 13.5px; font-weight: 500; outline: none; max-width: 190px; cursor: pointer;
}
.search-bar .search-input { position: relative; flex: 1; display: flex; }
.search-bar input {
    flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 0 999px 999px 0;
    padding: 0 60px 0 18px; outline: none; background: #fff; color: var(--heading);
}
.search-bar input:focus { border-color: var(--main); }
.search-bar button {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: var(--main); color: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center;
}
.search-bar button:hover { background: var(--main-800); }
.header-actions { display: flex; align-items: center; gap: 28px; margin-inline-start: auto; }
.header-action { display: flex; align-items: center; gap: 8px; color: var(--heading); font-size: 14px; font-weight: 500; }
.header-action .icon { position: relative; font-size: 26px; display: flex; color: var(--heading); transition: .2s linear; }
.header-action:hover, .header-action:hover .icon { color: var(--main); }
.header-action .count {
    position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
    background: var(--main-two); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center;
}
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; font-size: 28px; color: var(--heading); padding: 0; }

/* ---------- Header nav bar ---------- */
.header { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header .container { display: flex; align-items: center; gap: 32px; }
.category-dropdown { position: relative; flex-shrink: 0; }
.category-button {
    display: flex; align-items: center; gap: 10px; background: var(--main-two); color: #fff; border: 0; cursor: pointer;
    padding: 16px 22px; font-weight: 600; font-size: 15px; height: 100%;
}
.category-button .ph-dots-nine { font-size: 22px; }
.category-button:hover { background: var(--main-two-800); }
.category-dropdown .dropdown-menu { left: 0; right: auto; top: 100%; min-width: 260px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); max-height: 70vh; overflow-y: auto; }
.category-dropdown .dropdown-menu a { padding: 11px 18px; font-size: 14.5px; }
.category-dropdown .dropdown-menu i { font-size: 18px; width: 20px; text-align: center; }
.category-dropdown .dropdown-menu .count { margin-inline-start: auto; font-size: 12px; color: var(--gray-400); }
.nav { flex: 1; display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-links > li > a, .nav-links > li > button {
    display: flex; align-items: center; gap: 6px; padding: 16px 0; font-weight: 500; font-size: 15px;
    color: var(--heading); background: none; border: 0; cursor: pointer; position: relative;
}
.nav-links > li > a:hover, .nav-links > li > button:hover { color: var(--main); }
.nav-links > li > a.active { color: var(--main); }
.nav-links > li > a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--main); }
.nav-links .dropdown-menu { left: 0; right: auto; top: 100%; min-width: 210px; }
.nav-helpline { display: flex; align-items: center; gap: 10px; color: var(--heading); white-space: nowrap; }
.nav-helpline .icon { width: 40px; height: 40px; border-radius: 50%; background: var(--main-50); color: var(--main); display: grid; place-items: center; font-size: 20px; }
.nav-helpline small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.nav-helpline strong { display: block; font-size: 14.5px; line-height: 1.3; }
.nav-advertise { color: var(--main-two); font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-advertise:hover { color: var(--main-two-800); }

/* ---------- Flash ---------- */
.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin: 16px 0; display: flex; gap: 10px; align-items: center; font-weight: 500; }
.flash i { font-size: 20px; }
.flash-success { background: var(--main-50); color: var(--main-800); border: 1px solid var(--main-100); }
.flash-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- Sections & headings ---------- */
.section { padding-top: 48px; }
.section-lg { padding-top: 80px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(22px, 1.4vw + 12px, 30px); }
.section-heading .eyebrow { display: block; color: var(--main-two); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; font-family: var(--font-body); }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 10px; }
.section-title h2 { font-size: 24px; }
.view-all { font-size: 14px; color: var(--ink); font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.view-all:hover { color: var(--main); text-decoration: underline; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { font-size: 20px; }

/* ---------- Page header / breadcrumb ---------- */
.page-header { background: var(--main-two-50); padding: 28px 0; }
.page-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.page-header-text { flex: 1 1 420px; min-width: 0; }
.page-header h1 { font-size: clamp(22px, 1.2vw + 14px, 30px); }
.page-header p { margin: 6px 0 0; color: var(--text); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); list-style: none; margin: 0; padding: 0; }
.breadcrumb a { color: var(--heading); display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb a:hover { color: var(--main); }
.breadcrumb .sep { font-size: 12px; color: var(--gray-400); }
.page-header-extra { flex-basis: 100%; }

/* ---------- Home banner ---------- */
.banner { padding-top: 24px; }
.banner-inner {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #cfe2f8;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 40px;
    padding: clamp(32px, 5vw, 90px) clamp(20px, 5vw, 96px); isolation: isolate;
}
.banner-inner::before, .banner-inner::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.banner-inner::before { width: 520px; height: 520px; right: -120px; top: -160px; background: rgba(255, 255, 255, .35); }
.banner-inner::after { width: 280px; height: 280px; left: 38%; bottom: -170px; background: rgba(30, 99, 214, .14); }
.banner-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--main); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px; margin-bottom: 20px; }
.banner h1 { font-size: clamp(30px, 3.4vw + 8px, 64px); line-height: 1.12; }
.banner h1 .hl { color: var(--main); }
.banner p { font-size: 17px; color: var(--ink); max-width: 520px; margin: 20px 0 32px; }
.banner-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.banner-thumb { position: relative; }
.banner-thumb img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 40% 40% var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); }
.banner-stat {
    position: absolute; background: #fff; border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text); line-height: 1.3;
}
.banner-stat strong { display: block; font-family: var(--font-heading); color: var(--heading); font-size: 18px; }
.banner-stat .icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #fff; flex-shrink: 0; }
.banner-stat.one { left: -24px; bottom: 28px; }
.banner-stat.two { right: -8px; top: 24px; }

/* Quick links (top-brand style chips) */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.quick-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-weight: 600; color: var(--heading); font-size: 14px; background: #fff; transition: .2s linear;
}
.quick-item:hover { border-color: var(--main); color: var(--main); box-shadow: var(--shadow); }
.quick-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }

/* ---------- Category circles (MarketPro "feature-item") ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 16px; }
.cat-item { text-align: center; display: block; color: var(--heading); }
.cat-thumb {
    aspect-ratio: 1; max-width: 140px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
    font-size: clamp(34px, 2vw + 18px, 50px); background: var(--main-50); transition: .2s linear;
}
.cat-thumb i { transition: transform .2s linear; }
.cat-item:hover .cat-thumb i { transform: scale(1.2); }
.cat-item:hover { color: var(--main); }
.cat-item h3 { font-size: 16.5px; margin: 16px 0 4px; color: inherit; }
.cat-item small { font-size: 13px; color: var(--gray-400); }
.cat-grid > :nth-child(10n+1) .cat-thumb { background: #e8f1fd; }
.cat-grid > :nth-child(10n+2) .cat-thumb { background: #fceded; }
.cat-grid > :nth-child(10n+3) .cat-thumb { background: #f6ebf3; }
.cat-grid > :nth-child(10n+4) .cat-thumb { background: #fcf2e7; }
.cat-grid > :nth-child(10n+5) .cat-thumb { background: #f5fbe3; }
.cat-grid > :nth-child(10n+6) .cat-thumb { background: #e3f4fb; }
.cat-grid > :nth-child(10n+7) .cat-thumb { background: #e9e3fb; }
.cat-grid > :nth-child(10n+8) .cat-thumb { background: #ecf3fb; }
.cat-grid > :nth-child(10n+9) .cat-thumb { background: #f8f5e5; }
.cat-grid > :nth-child(10n+10) .cat-thumb { background: #e9eefc; }

/* ---------- Promotional banners ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.promo-banner {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 48px) 24px;
    min-height: 240px; display: flex; flex-direction: column; justify-content: center; isolation: isolate;
}
.promo-banner h3 { font-size: clamp(22px, 1vw + 14px, 28px); max-width: 210px; }
.promo-banner p { font-size: 14px; color: var(--text); max-width: 200px; margin: 10px 0 0; }
.promo-banner .btn { align-self: flex-start; margin-top: 22px; }
.promo-banner .promo-art { position: absolute; right: -10px; bottom: -18px; font-size: 150px; opacity: .22; z-index: -1; transform: rotate(-10deg); }
.promo-banner:hover .promo-art { transform: rotate(0) scale(1.05); transition: transform .3s ease; }

/* ---------- Event countdown cards (MarketPro "flash sales") ---------- */
.flash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.flash-card {
    position: relative; overflow: hidden; border-radius: var(--radius); padding: 32px; display: flex; gap: 24px;
    align-items: center; isolation: isolate; min-height: 250px;
}
.flash-card:nth-child(3n+1) { background: linear-gradient(120deg, #fff4e9, #fde3cd); }
.flash-card:nth-child(3n+2) { background: linear-gradient(120deg, #eaf1fd, #cfe0fa); }
.flash-card:nth-child(3n+3) { background: linear-gradient(120deg, #eef0ff, #dcdff9); }
.flash-thumb { width: 150px; height: 150px; flex-shrink: 0; border-radius: 50%; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.flash-thumb img, .flash-thumb .thumb-fallback { width: 100%; height: 100%; object-fit: cover; font-size: 52px; }
.flash-body { min-width: 0; flex: 1; }
.flash-body h3 { font-size: 22px; margin: 8px 0 6px; }
.flash-body .meta { font-size: 13.5px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.countdown { display: flex; flex-wrap: nowrap; gap: 14px; margin: 16px 0 20px; list-style: none; padding: 0; }
.countdown li {
    background: #fff; border-radius: var(--radius-sm); padding: 7px 6px; min-width: 50px; text-align: center; position: relative;
    font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 500;
}
.countdown li strong { display: block; font-family: var(--font-heading); font-size: 20px; color: var(--heading); line-height: 1.1; }
.countdown li:not(:last-child)::after { content: ":"; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--heading); font-size: 16px; }

/* ---------- Product-style cards (listings) ---------- */
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.listing-card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px;
    display: flex; flex-direction: column; transition: border-color .2s linear, box-shadow .2s linear; color: inherit;
}
.listing-card:hover { border-color: var(--main); color: inherit; }
.listing-card .card-thumb { position: relative; height: 200px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); display: grid; place-items: center; }
.listing-card .cover, .listing-card .card-thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.listing-card:hover .cover, .listing-card:hover .card-thumb > img { transform: scale(1.08); }
.listing-card .cover-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-size: 56px; color: #fff; transition: transform .3s ease; }
.listing-card:hover .cover-fallback i { transform: scale(1.15); }
.listing-card .cover-fallback i { transition: transform .3s ease; }
.card-badge { position: absolute; top: 0; left: 0; z-index: 2; padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: #fff; border-radius: var(--radius) 0 var(--radius) 0; background: var(--main); }
.card-badge.orange { background: var(--main-two); }
.card-badge.red { background: var(--danger); }
.card-badge.blue { background: var(--info); }
.listing-card .body { padding: 14px 8px 8px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.listing-card h3 { font-size: 17px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-card .meta { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.listing-card .meta i { color: var(--main); font-size: 15px; }
.listing-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.listing-card .card-cta {
    margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 999px;
    background: var(--main-50); color: var(--main); font-weight: 600; font-size: 14px; transition: .2s linear;
}
.listing-card:hover .card-cta { background: var(--main); color: #fff; }
.card-by { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.card-by i { color: var(--main); font-size: 15px; }

/* Worker card: avatar centred in the thumb */
.listing-card .card-thumb.is-person { background: linear-gradient(160deg, var(--main-50), #fff4e9); }
.listing-card .card-thumb .avatar-xl { width: 116px; height: 116px; font-size: 36px; border: 4px solid #fff; box-shadow: var(--shadow-lg); }

/* Lists inside cards */
.list-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-row .info { flex: 1; min-width: 0; }
.list-row strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row small { color: var(--muted); font-size: 12.5px; display: block; }
.list-row:hover strong { color: var(--main); }
.thumb { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.thumb-fallback { display: grid; place-items: center; color: #fff; font-size: 24px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 15px; }
.avatar-lg { width: 88px; height: 88px; font-size: 26px; border: 4px solid #fff; box-shadow: 0 6px 16px rgba(18, 21, 53, .12); }
.rating { color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.rating i { color: var(--star); font-size: 15px; }
.rating small { color: var(--muted); font-weight: 500; }
.news-icon { width: 56px; height: 56px; border-radius: var(--radius-sm); display: grid; place-items: center; font-size: 26px; flex-shrink: 0; background: var(--bg-soft); }
.tag { display: inline-flex; align-items: center; font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; align-self: flex-start; background: color-mix(in srgb, currentColor 12%, #fff); }

/* Hot-deals style promo panel (home, beside businesses) */
.deals-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.hot-deals {
    position: relative; overflow: hidden; border-radius: var(--radius); background: var(--main); color: #fff; padding: 32px 24px;
    text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; isolation: isolate;
}
.hot-deals::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .08); top: -120px; right: -140px; z-index: -1; }
.hot-deals::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); bottom: -90px; left: -80px; z-index: -1; }
.hot-deals h3 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.hot-deals p { color: rgba(255, 255, 255, .85); font-size: 14px; }
.hot-deals .deal-icon { font-size: 72px; margin: 6px 0 14px; color: #fff; }
.hot-deals .ad-size { font-size: 12px; color: rgba(255, 255, 255, .7); margin-top: 14px; }

/* ---------- Ads ---------- */
.ad-leaderboard {
    position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1.4fr) auto auto;
    align-items: center; gap: 24px; background: var(--main); color: #fff; border-radius: var(--radius); padding: 22px 32px; min-height: 110px;
}
.ad-leaderboard::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .08); right: 10%; top: -220px; z-index: -1; }
.ad-leaderboard .ad-icon { width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--main); display: grid; place-items: center; font-size: 36px; }
.ad-leaderboard .ad-title { font-family: var(--font-heading); font-size: 24px; font-weight: 700; line-height: 1.2; color: #fff; }
.ad-leaderboard .ad-text { font-size: 14px; opacity: .9; margin: 0; }
.ad-leaderboard .ad-size { text-align: center; font-size: 12.5px; opacity: .8; }
.ad-leaderboard .btn { background: var(--main-two); border-color: var(--main-two); color: #fff; }
.ad-leaderboard .btn:hover { background: #fff; color: var(--main-two); }
.ad-image { display: block; border-radius: var(--radius); overflow: hidden; }
.ad-image img { width: 100%; height: auto; }
.ad-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.promo-card {
    background: var(--main); color: #fff; border-radius: var(--radius); padding: 28px 24px; position: relative; overflow: hidden;
    display: flex; flex-direction: column; isolation: isolate; min-height: 100%;
}
.promo-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); top: -100px; right: -120px; z-index: -1; }
.promo-card h3 { font-size: 24px; color: #fff; }
.promo-card p { color: rgba(255, 255, 255, .85); font-size: 14px; margin: 12px 0 20px; max-width: 200px; }
.promo-card .promo-icon { position: absolute; right: 16px; bottom: 44px; font-size: 90px; color: rgba(255, 255, 255, .22); transform: rotate(-12deg); z-index: -1; }
.promo-card .btn-primary { background: var(--main-two); border-color: var(--main-two); }
.promo-card .btn-primary:hover { background: #fff; color: var(--main-two); border-color: #fff; }
.promo-card .ad-size { margin-top: auto; padding-top: 16px; text-align: right; font-size: 12px; color: rgba(255, 255, 255, .7); }

/* ---------- News cards (blog style) ---------- */
.news-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; background: #fff; color: inherit; transition: .2s linear; }
.news-card:hover { border-color: var(--main); color: inherit; }
.news-card .news-thumb { height: 200px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); display: grid; place-items: center; font-size: 64px; }
.news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-card .body { padding: 16px 12px 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card h3 { font-size: 18px; line-height: 1.35; }
.news-card:hover h3 { color: var(--main); }
.news-card p { font-size: 14px; margin: 0; }
.news-card .meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.news-card .meta i { color: var(--main); }

/* ---------- People (vendor-card style) ---------- */
.people-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.abroad-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.person { text-align: center; padding: 18px 8px 16px; border-radius: var(--radius); background: #f4f6e6; }
.people-row > :nth-child(6n+2) { background: #e6f6f6; }
.people-row > :nth-child(6n+3) { background: #f6e6f6; }
.people-row > :nth-child(6n+4) { background: #f8eae4; }
.people-row > :nth-child(6n+5) { background: #dee6f3; }
.people-row > :nth-child(6n+6) { background: #dbe8f7; }
.person .avatar-lg { margin: 0 auto 10px; }
.person strong { display: block; font-size: 14px; font-weight: 700; color: var(--heading); font-family: var(--font-heading); }
.person small { display: block; color: var(--text); font-size: 12px; min-height: 18px; }
.person .flag { margin: 8px auto 0; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.person-socials { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.person-socials a { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--heading); background: #fff; font-size: 14px; }
.person-socials a:hover { background: var(--main); color: #fff; }

/* ---------- Community banner + emergency ---------- */
.community-banner {
    border-radius: var(--radius-lg); color: #fff; padding: 40px; min-height: 260px; position: relative; overflow: hidden;
    background: var(--neutral) center/cover no-repeat; display: flex; flex-direction: column; justify-content: center; isolation: isolate;
}
.community-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 21, 53, .88), rgba(18, 21, 53, .25)); z-index: -1; }
.community-banner h3 { font-size: clamp(24px, 1vw + 16px, 32px); color: #fff; }
.community-banner p { max-width: 360px; margin: 12px 0 24px; color: rgba(255, 255, 255, .85); }
.emergency-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; text-align: center; }
.emergency-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: var(--radius); border: 1px solid var(--line); transition: .2s linear; }
.emergency-item:hover { border-color: var(--main); color: inherit; }
.emergency-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; }
.emergency-item span { font-size: 13px; color: var(--text); }
.emergency-item strong { font-size: 17px; color: var(--heading); font-family: var(--font-heading); }

/* ---------- Service strip (MarketPro "shipping") ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature { display: flex; gap: 16px; align-items: center; padding: 28px clamp(20px, 2vw, 36px); border-radius: var(--radius); background: var(--main-50); transition: .2s linear; }
.feature:nth-child(even) { background: var(--main-two-50); }
.feature:hover { background: var(--main-100); }
.feature .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--main); color: #fff; display: grid; place-items: center; font-size: 28px; flex-shrink: 0; }
.feature:nth-child(even) .icon { background: var(--main-two); }
.feature strong { display: block; font-size: 17px; font-weight: 700; color: var(--heading); font-family: var(--font-heading); }
.feature small { color: var(--ink); font-size: 13.5px; }

/* Sponsors (top-brand style) */
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.sponsors > a, .sponsors > span { height: 96px; border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; padding: 12px; transition: .2s linear; }
.sponsors > a:hover { border-color: var(--main); }
.sponsors img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .75; transition: .2s; }
.sponsors a:hover img { filter: none; opacity: 1; }
.sponsor-name { font-weight: 700; color: var(--heading); font-family: var(--font-heading); text-align: center; }

/* ---------- Newsletter box ---------- */
.newsletter-section { padding-top: 80px; }
.newsletter-box {
    position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius); background: var(--neutral);
    padding: 44px clamp(24px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center;
}
.newsletter-box::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); right: -120px; top: -200px; z-index: -1; }
.newsletter-box::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(30, 99, 214, .18); left: 40%; bottom: -160px; z-index: -1; }
.newsletter-box h2 { color: #fff; font-size: clamp(24px, 1.4vw + 14px, 36px); margin-bottom: 8px; }
.newsletter-box p { color: rgba(255, 255, 255, .7); margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.newsletter { position: relative; display: flex; }
.newsletter input {
    flex: 1; min-width: 0; border: 1px solid rgba(255, 255, 255, .25); background: transparent; border-radius: 999px;
    padding: 20px 160px 20px 24px; color: #fff; outline: none;
}
.newsletter input::placeholder { color: rgba(255, 255, 255, .6); }
.newsletter input:focus { border-color: var(--main-two); }
.newsletter button {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--main-two); color: #fff;
    padding: 13px 26px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: .2s linear;
}
.newsletter button:hover { background: var(--main-two-800); }

/* ---------- Footer ---------- */
.footer { background: #fff; color: var(--text); font-size: 14.5px; padding-top: 80px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: clamp(24px, 3vw, 48px); padding-bottom: 60px; }
.footer h4 { color: var(--heading); font-size: 19px; margin-bottom: 24px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 14px; }
.footer a:hover { color: var(--main); }
.footer .brand { margin-bottom: 20px; }
.footer-about { margin-bottom: 24px; }
.footer-contact li { display: flex; align-items: center; gap: 14px; color: var(--heading); }
.footer-contact .icon { width: 34px; height: 34px; border-radius: 50%; background: var(--main); color: #fff; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.footer-app p { margin-bottom: 16px; }
.footer-bottom { background: var(--bg-gray); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; padding-bottom: 18px; font-size: 14px; flex-wrap: wrap; color: var(--ink); }
.footer-bottom nav { display: flex; gap: 20px; }
.back-to-top {
    position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--main);
    color: #fff; border: 0; cursor: pointer; box-shadow: var(--shadow-lg); display: none; font-size: 20px; z-index: 50; transition: .2s linear;
}
.back-to-top:hover { background: var(--main-two); }
.back-to-top.show { display: grid; place-items: center; }

/* ---------- Directory & detail pages ---------- */
.layout-sidebar { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.layout-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14.5px; color: var(--ink); }
.filter-list a:hover, .filter-list a.active { background: var(--main-50); color: var(--main); }
.filter-list i { width: 20px; text-align: center; font-size: 18px; }
.filter-list .count { margin-inline-start: auto; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bg-gray); color: var(--text); font-size: 12px; display: grid; place-items: center; }
.filter-list a.active .count { background: var(--main); color: #fff; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-tabs a { padding: 9px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--heading); }
.pill-tabs a:hover { border-color: var(--main); color: var(--main); }
.pill-tabs a.active { background: var(--main); border-color: var(--main); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg-gray); color: var(--text); font-weight: 600; }
.badge-green { background: var(--main-50); color: var(--main); }
.badge-orange { background: var(--main-two-50); color: var(--main-two-800); }
.badge-red { background: #fef2f2; color: var(--danger); }
.badge-blue { background: #eff6ff; color: #1d4ed8; }
.detail-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.detail-hero img, .detail-hero .cover-fallback { width: 100%; height: 380px; object-fit: cover; }
.detail-hero .cover-fallback { font-size: 90px; }
.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.detail-list li:last-child { border-bottom: 0; }
.detail-list i { width: 32px; height: 32px; border-radius: 50%; background: var(--main-50); color: var(--main); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; margin-top: -4px; }
.stars { color: var(--star); }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 26px; color: #d6dbe0; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.prose { font-size: 15.5px; line-height: 1.8; color: var(--ink); }
.prose p { margin-bottom: 1.1em; }
.prose h2, .prose h3 { margin: 1.4em 0 .6em; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.empty i { font-size: 48px; color: var(--line-2); display: block; margin: 0 auto 12px; }

/* Event / news / job cards */
.date-box { width: 62px; flex-shrink: 0; text-align: center; border-radius: var(--radius-sm); background: var(--main); color: #fff; padding: 8px 0; align-self: flex-start; }
.date-box strong { display: block; font-size: 24px; line-height: 1; font-family: var(--font-heading); }
.date-box span { font-size: 11px; text-transform: uppercase; font-weight: 600; }
.job-card { display: flex; gap: 18px; align-items: flex-start; transition: border-color .2s linear; }
.job-card:hover { border-color: var(--main); }
.job-card .job-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--main-50); color: var(--main); display: grid; place-items: center; font-size: 26px; flex-shrink: 0; }
.stack > * + * { margin-top: 16px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery-grid a { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; display: block; background: var(--bg-soft); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px; color: #fff; font-size: 13.5px; font-weight: 500; background: linear-gradient(transparent, rgba(18, 21, 53, .75)); }
.lightbox { position: fixed; inset: 0; background: rgba(18, 21, 53, .92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; border-radius: var(--radius-sm); }
.lightbox button { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 32px; cursor: pointer; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--heading); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field input[type=url], .field input[type=date], .field input[type=datetime-local], .field input[type=number], .field input[type=search], .field select, .field textarea {
    width: 100%; padding: 13px 18px; border: 1px solid var(--line); border-radius: var(--radius-xs); background: #fff; outline: none; transition: border .2s linear; color: var(--heading);
}
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--gray-400); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--main); }
.field .error { color: var(--danger); font-size: 12.5px; margin-top: 6px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkbox input { accent-color: var(--main); width: 16px; height: 16px; }
.auth-wrap { max-width: 480px; margin: 48px auto; }
.hp-field { position: absolute; left: -9999px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; list-style: none; padding: 0; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--heading); }
.pagination a:hover { border-color: var(--main); color: var(--main); }
.pagination .active span { background: var(--main); border-color: var(--main); color: #fff; }
.pagination .disabled span { color: var(--line-2); }

/* Account tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-weight: 600; color: var(--heading); font-size: 13px; background: var(--bg-soft); }
.table-wrap { overflow-x: auto; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Legacy hero event list (used on inner pages) */
.event-item { display: flex; gap: 12px; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); margin-bottom: 10px; }
.event-item:last-child { margin-bottom: 0; }
.event-item:hover { border-color: var(--main); color: inherit; }
.event-thumb { width: 72px; height: 56px; border-radius: var(--radius-sm); flex-shrink: 0; object-fit: cover; }
.event-info { flex: 1; min-width: 0; }
.event-info strong { display: block; font-size: 14px; font-weight: 600; color: var(--heading); }
.event-info small { display: block; color: var(--muted); font-size: 12.5px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1599px) {
    .nav-helpline { display: none; }
    .flash-card { padding: 28px 24px; gap: 20px; }
    .flash-thumb { width: 110px; height: 110px; border-width: 5px; }
    .flash-thumb .thumb-fallback { font-size: 40px; }
}

@media (max-width: 1399px) {
    .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid-5 > :nth-child(5) { display: none; }
    .header-actions { gap: 20px; }
    .nav-links { gap: 22px; }
}

@media (max-width: 1199px) {
    .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 > .listing-card:nth-child(4) { display: none; }
    .deals-row { grid-template-columns: 260px minmax(0, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid > :first-child { grid-column: 1 / -1; }
    .ad-leaderboard { grid-template-columns: auto minmax(0, 1fr) auto; }
    .ad-leaderboard .ad-text, .ad-leaderboard .ad-size { display: none; }
    .header-action .label { display: none; }
    .nav-links > li > a, .nav-links > li > button { font-size: 14px; }
    .nav-links { gap: 18px; }
    .people-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .people-row > :nth-child(n+4) { display: none; }
    .abroad-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .abroad-row > :nth-child(n+3) { display: none; }
    .emergency-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .emergency-grid > :nth-child(n+4) { display: none; }
}

@media (max-width: 991px) {
    .header-top-links { display: none; }
    .header-top .container { justify-content: flex-end; }
    .header-middle .container { flex-wrap: wrap; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
    .search-bar { order: 3; flex-basis: 100%; max-width: none; height: 46px; }
    .menu-toggle { display: grid; place-items: center; }
    .header { position: static; }
    .header .container { padding: 0; }
    .category-dropdown { display: none; }
    .nav { display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
    .header.open .nav { display: flex; }
    .header { border-top: 0; }
    .header:not(.open) { border-bottom: 0; }
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-links > li > a, .nav-links > li > button { padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; }
    .nav-links > li > a.active::after { display: none; }
    .nav-links .dropdown-menu { position: static; box-shadow: none; border: 0; padding-left: 12px; }
    .nav-advertise { padding: 14px 0 0; }
    .banner-inner { grid-template-columns: minmax(0, 1fr); }
    .banner-thumb { max-width: 520px; }
    .banner-stat.one { left: 8px; }
    .grid-3, .grid-2, .deals-row { grid-template-columns: minmax(0, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 > .listing-card:nth-child(4) { display: flex; }
    .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-5 > :nth-child(5) { display: flex; }
    .layout-sidebar, .layout-detail { grid-template-columns: minmax(0, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .newsletter-box { grid-template-columns: minmax(0, 1fr); }
    .people-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .people-row > :nth-child(n+4) { display: block; }
    .abroad-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .abroad-row > :nth-child(n+3) { display: block; }
    .emergency-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .emergency-grid > :nth-child(n+4) { display: flex; }
}

@media (max-width: 767px) {
    .people-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .people-row > :nth-child(n+4) { display: none; }
    .abroad-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .abroad-row > :nth-child(n+3) { display: none; }
    .emergency-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .emergency-grid > :nth-child(n+4) { display: none; }
    .flash-card { flex-direction: column; align-items: flex-start; padding: 24px; }
    .flash-thumb { width: 110px; height: 110px; }
    .ad-leaderboard { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; padding: 24px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
    body { font-size: 14.5px; }
    .header-top .date { display: none; }
    .brand img { width: 44px; height: 44px; }
    .brand-name { font-size: 18px; }
    .brand-tag { display: none; }
    .header-actions { gap: 16px; }
    .search-bar select { display: none; }
    .search-bar input { border-radius: 999px; }
    .banner-inner { padding: 28px 20px; border-radius: var(--radius); }
    .banner-stat { display: none; }
    .promo-grid { grid-template-columns: minmax(0, 1fr); }
    .promo-banner { min-height: 200px; }
    .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .cat-item h3 { font-size: 14px; margin-top: 10px; }
    .cat-item small { font-size: 11.5px; }
    .grid-4, .grid-5 { grid-template-columns: minmax(0, 1fr); }
    .flash-grid { grid-template-columns: minmax(0, 1fr); }
    .countdown { gap: 12px; }
    .countdown li { min-width: 48px; padding: 6px 8px; }
    .people-row, .abroad-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .people-row > :nth-child(n+3), .abroad-row > :nth-child(n+3) { display: none; }
    .community-banner { padding: 28px 22px; }
    .footer { padding-top: 56px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-hero img, .detail-hero .cover-fallback { height: 220px; }
    .newsletter input { padding-right: 24px; }
    .newsletter { flex-direction: column; gap: 10px; }
    .newsletter button { position: static; transform: none; }
    .card { padding: 18px; }
    .section-lg { padding-top: 56px; }
    .toolbar form { width: 100%; }
    .toolbar form .input[type=search] { flex: 1; width: auto !important; min-width: 0; }
    .toolbar form select.input { flex-shrink: 0; padding-right: 10px; }
}
