/* ==========================================================================
   ScrapBD — uListing-style theme layer (loaded after site.css)
   Structure follows a classic directory/listing layout: top bar, solid
   sticky header, hero search, category tiles, listing cards, steps,
   counters, testimonials, blog, CTA strip and a 5-column footer.
   Brand colors are unchanged: Navy #102d42 · Green #188447 · Orange #ff9b37
   ========================================================================== */

:root {
    --header-h: 78px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 10px rgba(16, 45, 66, .06);
    --shadow: 0 10px 30px rgba(16, 45, 66, .08);
    --shadow-lg: 0 20px 45px rgba(16, 45, 66, .14);
}

html { scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: hidden; }
body { overflow-x: hidden; background: #fff; }
.container { width: min(1240px, 100% - 32px); }

/* ---------- Buttons (slightly rounder, uListing feel) ---------- */
.btn { border-radius: 8px; }
.btn-lg { padding: 14px 26px; }
.btn-accent { color: var(--navy); }
.btn-accent:hover { background: var(--orange-2); color: #fff; }
.btn-light { border: 1px solid rgba(255, 255, 255, .6); }

/* ==========================================================================
   Top bar & announcement
   ========================================================================== */
.topbar { background: var(--navy-3); color: #b9cbd6; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-contact, .topbar-social { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 20px; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar-contact a:hover { color: #fff; }
.topbar-contact .icon { color: var(--orange); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-social { gap: 4px; }
.topbar-social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; transition: background .2s, color .2s; }
.topbar-social a:hover { background: var(--green); color: #fff; }
.topbar-lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; overflow: hidden; }
.topbar-lang a { padding: 3px 10px; font-weight: 700; font-size: 12px; transition: background .2s, color .2s; }
.topbar-lang a.active { background: var(--green); color: #fff; }
.topbar-lang a:not(.active):hover { color: #fff; }

.announce-bar { background: linear-gradient(90deg, var(--green-2), var(--green)); color: #fff; font-size: 13.5px; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 8px 0; text-align: center; }
.announce-text { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.announce-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: #ffe1bf; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Header — solid & sticky (replaces the old transparent overlay header)
   ========================================================================== */
.site-header,
.site-header.is-scrolled {
    position: sticky; inset: auto; top: 0; z-index: 50;
    height: var(--header-h); background: #fff; color: var(--ink);
    border-bottom: 1px solid var(--line); animation: none;
    transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 45, 66, .09); border-bottom-color: transparent; }
.site-header .brand, .site-header.is-scrolled .brand { color: var(--navy); }
.site-header .brand-text small, .site-header.is-scrolled .brand-text small { color: var(--muted); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { flex-shrink: 0; }
.brand-text > span { color: var(--green); }
.brand-custom-logo { max-height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-drawer-head { display: none; }
.main-nav .nav-link { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 10px 13px; font-weight: 600; font-size: 15px; color: var(--ink); border-radius: 8px; opacity: 1; transition: color .2s, background .2s; white-space: nowrap; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--green); }
.main-nav .nav-link.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--green); }
.main-nav > a.active::after { background: var(--green); }
.nav-live { color: #b42318 !important; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #dc2626; animation: pulse 1.5s infinite; }

/* Tender dropdown */
.nav-dd { position: relative; }
.nav-caret { transition: transform .2s; }
.nav-dd-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 8px; background: #fff; border-radius: 12px; border-top: 3px solid var(--green); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 5; }
.nav-dd::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav-dd-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); transition: background .15s, color .15s, padding .15s; }
.nav-dd-menu a .icon { color: var(--green); }
.nav-dd-menu a:hover, .nav-dd-menu a.active { background: var(--green-soft); color: var(--green-2); padding-left: 16px; }
@media (min-width: 1101px) {
    .nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: none; }
    .nav-dd:hover .nav-caret { transform: rotate(180deg); }
}

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-signin { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; color: var(--ink); transition: color .2s; white-space: nowrap; }
.header-signin .icon { display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--soft); color: var(--green); }
.header-signin:hover { color: var(--green); }
.header-cta { padding: 11px 18px; font-size: 14px; }
.header-link { color: var(--ink); }
.header-link:hover { color: var(--green); }
.avatar-sm { background: var(--green); }
.user-name { font-weight: 600; }

/* User dropdown */
.user-menu .dropdown { min-width: 240px; padding: 8px; border-radius: 12px; border-top: 3px solid var(--green); z-index: 10; }
.dropdown-head { padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.dropdown-head strong { color: var(--ink); font-size: 14.5px; }
.dropdown-head small { color: var(--muted); font-size: 12.5px; word-break: break-all; }
.dropdown-head .pill { justify-self: start; margin-top: 6px; }
.dropdown a:hover, .dropdown button:hover { color: var(--green-2); }
.dropdown .dropdown-danger { color: var(--red); }
.dropdown .dropdown-danger:hover { background: var(--red-soft); color: var(--red); }

.nav-toggle { display: none; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.nav-backdrop { display: none; }

/* ==========================================================================
   Page banner (inner pages) — centered uListing breadcrumb banner
   ========================================================================== */
.page-banner { padding: 64px 0 60px; text-align: center; background: radial-gradient(circle at 85% 0%, rgba(24, 132, 71, .35), transparent 45%), radial-gradient(circle at 10% 100%, rgba(255, 155, 55, .18), transparent 40%), linear-gradient(120deg, var(--navy-3), var(--navy) 55%, var(--navy-2)); }
.page-banner h1 { font-size: clamp(26px, 3.6vw, 40px); margin: 0 0 8px; }
.page-banner p { margin: 0 auto; }
.page-banner .breadcrumb { justify-content: center; order: 2; margin-top: 14px; }
.page-banner .container { display: flex; flex-direction: column; align-items: center; }
.page-banner .breadcrumb { display: inline-flex; padding: 7px 16px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.page-banner h1 { order: 0; }
.page-banner p { order: 1; }
.page-banner .banner-search, .page-banner .banner-meta { order: 3; }
.breadcrumb a:hover { color: var(--orange); }
.banner-search { margin: 22px auto 0; width: min(520px, 100%); }
.banner-meta { justify-content: center; }

/* ==========================================================================
   Home — hero + search
   ========================================================================== */
.ul-hero { position: relative; isolation: isolate; overflow: hidden; padding: 110px 0 120px; text-align: center; color: #fff; background: var(--navy) var(--hero-image, none) center / cover no-repeat; }
.ul-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 80% 15%, rgba(24, 132, 71, .45), transparent 40%), radial-gradient(circle at 15% 90%, rgba(255, 155, 55, .16), transparent 35%), linear-gradient(180deg, rgba(12, 34, 51, .86), rgba(16, 45, 66, .78) 55%, rgba(12, 34, 51, .94)); }
.ul-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.ul-hero-inner { max-width: 1040px; }
.ul-hero .hero-pill { color: #ffd3a4; }
.ul-hero .hero-pill .icon { color: var(--orange); }
.ul-hero h1 { color: #fff; font-size: clamp(28px, 4.6vw, 52px); line-height: 1.28; letter-spacing: -.5px; margin: 20px auto 14px; max-width: 900px; }
.ul-hero-sub { color: #d3e2dc; font-size: clamp(15px, 1.6vw, 18px); max-width: 720px; margin: 0 auto 36px; }

.ul-search { display: flex; align-items: stretch; gap: 0; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 25px 60px rgba(0, 0, 0, .28); text-align: left; max-width: 980px; margin: 0 auto; }
.ul-search-field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 16px; min-width: 0; color: var(--green); border-right: 1px solid var(--line); }
.ul-search-keyword { flex: 1.6; }
.ul-search-field:nth-last-child(2) { border-right: 0; }
.ul-search input, .ul-search select { width: 100%; min-width: 0; border: 0 !important; outline: 0; background: transparent; padding: 14px 0 !important; color: var(--ink); font-size: 14.5px; box-shadow: none !important; }
.ul-search select { cursor: pointer; appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236d7b85' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center no-repeat; padding-right: 18px !important; }
.ul-search-btn { padding: 0 30px; border-radius: 10px; font-size: 15px; flex-shrink: 0; }

.ul-hero-cats { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 30px; }
.ul-hero-cats-label { color: #b7cbc4; font-size: 14px; font-weight: 600; }
.ul-hero-cats a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 13.5px; font-weight: 600; transition: background .2s, border-color .2s, transform .2s; }
.ul-hero-cats a .icon { color: #8fe0ae; transition: color .2s; }
.ul-hero-cats a:hover { background: var(--green); border-color: var(--green); transform: translateY(-2px); }
.ul-hero-cats a:hover .icon { color: #fff; }

/* ---------- Section heading (uListing: eyebrow + title + subtitle) ---------- */
.ul-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 30px; flex-wrap: wrap; margin-bottom: 36px; }
.ul-head > div:first-child { max-width: 680px; }
.ul-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; color: var(--navy); }
.ul-head p { margin: 0; color: var(--muted); }
.ul-head-center { justify-content: center; text-align: center; }
.ul-head-center > div:first-child { margin-inline: auto; }
.ul-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 800; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 8px; }
.ul-eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--orange); }
.ul-head-center .ul-eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--orange); }
.ul-eyebrow-live { color: #b42318; }
.ul-eyebrow-live::before { display: none; }

.ul-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ul-tabs a { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 700; color: var(--navy); transition: .2s; }
.ul-tabs a:hover { border-color: var(--green); color: var(--green); }
.ul-tabs a.active { background: var(--green); border-color: var(--green); color: #fff; }

.section { padding: 84px 0; }
.section-action { margin-top: 44px; }

/* ---------- Category tiles (uListing location tiles) ---------- */
.ul-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 22px; }
.ul-cat { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; padding: 22px; border-radius: 14px; overflow: hidden; color: #fff; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.ul-cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 18px 18px; }
.ul-cat::after { content: ""; position: absolute; right: -40px; bottom: -40px; z-index: -1; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: transform .4s; }
.ul-cat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ul-cat:hover::after { transform: scale(1.5); }
.ul-cat.is-wide { grid-column: span 2; }
.ul-cat-count { position: absolute; top: 18px; right: 18px; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .95); color: var(--navy); font-size: 12px; font-weight: 800; }
.ul-cat-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.ul-cat-icon img { width: 36px; height: 36px; object-fit: contain; }
.ul-cat-body { display: grid; gap: 4px; margin-top: 26px; }
.ul-cat-body strong { font-size: 19px; line-height: 1.35; color: #fff; }
.ul-cat-browse { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); transition: gap .2s; }
.ul-cat:hover .ul-cat-browse { gap: 10px; color: #fff; }

/* ---------- Listing cards (tender cards) ---------- */
.tender-grid { gap: 26px; }
.tender-grid-home { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tender-card { border-radius: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); min-width: 0; }
.tender-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tender-media { height: 180px; }
.tender-media-icon { right: 20px; bottom: auto; top: 50px; z-index: 1; }
.deadline small { white-space: nowrap; }
.tender-foot .btn { flex-shrink: 0; }
.tender-media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tender-card:hover .tender-media-img { transform: scale(1.07); }
.tender-media:has(.tender-media-img)::after { background: linear-gradient(180deg, rgba(12, 34, 51, .35), transparent 40%, rgba(12, 34, 51, .55)); }
.tender-media::after { z-index: 0; pointer-events: none; }
.badge-row { z-index: 2; }
.badge { border-radius: 6px; }
.badge-featured { background: var(--orange); color: var(--navy); }
.badge-dark { background: var(--navy); color: #fff; }
.media-flag { position: absolute; z-index: 2; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 6px; background: rgba(12, 34, 51, .78); color: #fff; font-size: 12px; font-weight: 700; }
.media-flag.badge-live { background: #b42318; }
.media-tag { z-index: 2; background: var(--green); color: #fff; max-width: calc(100% - 120px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tender-body { padding: 18px 20px 4px; }
.tender-type { color: var(--green); gap: 6px; }
.tender-body h3 { font-size: 16.5px; }
.tender-body h3 a:hover { color: var(--green); }
.tender-meta li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.tender-meta .icon { color: var(--green); }
.tender-foot { background: #fafcfb; border-top: 1px solid var(--line); padding: 14px 20px; }
.deadline small { display: inline-flex; align-items: center; gap: 4px; }
.deadline em { color: var(--orange-2); }
.btn-locked { background: var(--navy); }
.btn-locked:hover { background: var(--green); color: #fff; }

/* ---------- Live playlist cards (only rendered when enabled) ---------- */
.live-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.live-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.live-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.live-card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); }
.live-card-media img { width: 100%; height: 100%; object-fit: cover; }
.live-card-play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #b42318; }
.live-card-media .badge { position: absolute; top: 12px; left: 12px; }
.live-card-body { padding: 16px 18px 18px; }
.live-card-body h3 { font-size: 15.5px; margin-bottom: 10px; }
.live-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }

/* ---------- How it works ---------- */
.ul-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; position: relative; }
.ul-steps::before { content: ""; position: absolute; top: 46px; left: 16.66%; right: 16.66%; border-top: 2px dashed #cfe3d6; z-index: 0; }
.ul-step { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.ul-step-icon { position: relative; display: inline-grid; place-items: center; width: 94px; height: 94px; margin-bottom: 22px; border-radius: 50%; background: #fff; color: var(--green); border: 2px solid var(--green-soft); box-shadow: 0 0 0 8px #fff, var(--shadow); transition: background .25s, color .25s; }
.ul-step-icon b { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--navy); font-size: 14px; font-weight: 800; border: 3px solid #fff; }
.ul-step:hover .ul-step-icon { background: var(--green); color: #fff; }
.ul-step h3 { font-size: 19px; margin-bottom: 8px; }
.ul-step p { color: var(--muted); font-size: 14.5px; margin: 0 auto; max-width: 320px; }

/* ---------- Counters ---------- */
.ul-counters { position: relative; padding: 64px 0; background: linear-gradient(120deg, var(--navy-3), var(--navy) 50%, var(--navy-2)); color: #fff; overflow: hidden; }
.ul-counters::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; }
.ul-counter-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ul-counter { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.ul-counter-icon { display: grid; place-items: center; width: 58px; height: 58px; flex-shrink: 0; border-radius: 14px; background: var(--green); color: #fff; }
.ul-counter:nth-child(even) .ul-counter-icon { background: var(--orange); color: var(--navy); }
.ul-counter strong { display: block; font-size: 30px; line-height: 1.1; color: #fff; }
.ul-counter span { font-size: 13.5px; color: #c4d5ce; }

/* ---------- Features ---------- */
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card { text-align: left; padding: 30px 28px; background: #fff; border-radius: 14px; }
.feature-card:hover { border-color: transparent; }
.feature-icon { width: 62px; height: 62px; border-radius: 16px; background: var(--green-soft); color: var(--green); transform: none; }
.feature-card:hover .feature-icon { background: var(--green); color: #fff; }
.feature-card p { color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonial-card { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quote-mark .icon { fill: var(--green-soft); stroke: var(--green); }
.avatar-initial { background: linear-gradient(135deg, var(--green), var(--navy)); }

/* ---------- Blog ---------- */
.blog-card { border-radius: 14px; box-shadow: var(--shadow-sm); }
.date-chip b { color: var(--green); }
.blog-body h3 a:hover, .read-more { color: var(--green); }
.read-more:hover { color: var(--green-2); }

/* ---------- Generic accents switched to brand green ---------- */
.section-divider { background: linear-gradient(90deg, var(--green) 0 60%, var(--orange) 60% 100%); }
.eyebrow { color: var(--green); }
.category-tile:hover .category-icon { background: var(--green); }
.category-icon { background: var(--green-soft); color: var(--green); }
.category-tile { border-radius: 14px; }
.page-link.active { background: var(--green); border-color: var(--green); }
a.page-link:hover { border-color: var(--green); color: var(--green); }
.listing-toolbar strong { color: var(--green); }
.chip-option input:checked + span { background: var(--green); border-color: var(--green); }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(24, 132, 71, .15); }
.filter-panel { border-radius: 14px; box-shadow: var(--shadow-sm); top: calc(var(--header-h) + 20px); }
.detail-card, .side-card, .panel, .form-card { border-radius: 14px; }
.detail-icon { color: var(--green); }
.detail-side, .article-side, .order-summary, .account-side { top: calc(var(--header-h) + 20px); }

/* ==========================================================================
   Pre-footer CTA & footer
   ========================================================================== */
.prefooter { position: relative; padding: 64px 0 0; background: var(--navy-3); }
.prefooter-inner { position: relative; display: flex; align-items: center; gap: 26px; padding: 38px 44px; border-radius: 18px; overflow: hidden; background: linear-gradient(110deg, var(--green-2), var(--green) 55%, #23a35b); box-shadow: 0 20px 45px rgba(24, 132, 71, .3); color: #fff; }
.prefooter-inner::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.prefooter-icon { display: grid; place-items: center; width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3); }
.prefooter-text { flex: 1; min-width: 0; }
.prefooter-text h2 { color: #fff; font-size: clamp(20px, 2.4vw, 28px); margin: 0 0 6px; }
.prefooter-text p { margin: 0; color: #e0f5e8; }
.prefooter-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
.prefooter .btn-light { background: transparent; color: #fff; }
.prefooter .btn-light:hover { background: #fff; color: var(--green-2); }

.site-footer { background: var(--navy-3); color: #a9bfb9; padding-top: 70px; border-top: 0; }
.prefooter + .site-footer { padding-top: 64px; }
.footer-about > .brand { display: inline-flex; padding: 0; }
.footer-about > .brand:hover { padding-left: 0; color: #fff; }
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.25fr; gap: 36px; margin-bottom: 0; }
.footer-about p { margin: 18px 0 20px; line-height: 1.85; font-size: 14px; }
.footer-about .brand { color: #fff; }
.footer-about .brand-text > span { color: #75d69a; }
.footer-about .brand-text small { color: #8ea9a2; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 20px; padding-bottom: 12px; border: 0; display: block; }
.site-footer h4::after { background: var(--green); width: 36px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.footer-links a { position: relative; display: inline-block; padding: 4px 0 4px 16px; color: #bcd0ca; transition: color .2s, padding .2s; }
.footer-links a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; border: 1.5px solid var(--green); transition: background .2s; }
.footer-links a:hover { color: #fff; padding-left: 20px; }
.footer-links a:hover::before { background: var(--green); }
.footer-contact { gap: 12px; font-size: 14px; }
.footer-contact li { align-items: flex-start; gap: 10px; }
.footer-contact .icon { color: #75d69a; margin-top: 4px; }
.footer-contact a { color: #bcd0ca; word-break: break-word; }
.footer-contact a:hover { color: #fff; }
.footer-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #dce8e5; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--green); color: #fff; transform: translateY(-3px); }
.footer-disclaimer { margin-top: 44px; }
.footer-disclaimer .icon { color: var(--orange); }
.footer-bottom { margin-top: 40px; padding: 0; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .15); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; padding: 20px 0; font-size: 13px; color: #8ea9a2; }
.footer-pages { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-pages a:hover { color: #fff; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(24, 132, 71, .4); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); }

/* ---------- Auth accents ---------- */
.auth-tabs a.active { color: var(--green); border-color: var(--green); }
.form-row-between a, .auth-switch a { color: var(--green); }
.check input { accent-color: var(--green); }

/* ---------- Pages that used to sit under the overlay header ---------- */
.auth-section { padding: 70px 0 90px; min-height: auto; }
.error-page { padding: 90px 0 110px; min-height: 60vh; }
.flash-wrap { padding-top: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
    .nav-link-wide { display: none !important; }
    .main-nav .nav-link { padding: 10px 11px; }
}

@media (max-width: 1199px) {
    .tender-grid-home, .live-grid { grid-template-columns: repeat(3, 1fr); }
    .tender-grid-home > :nth-child(n+7) { display: none; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .footer-grid > :last-child { grid-column: 1 / -1; }
    .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Off-canvas navigation drawer */
@media (max-width: 1100px) {
    .nav-toggle { display: inline-grid; }
    .user-name { display: none; }
    .main-nav { position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(340px, 86vw); margin: 0; padding: 0 0 24px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; color: var(--ink); box-shadow: -10px 0 40px rgba(0, 0, 0, .2); transform: translateX(105%); transition: transform .3s ease; overflow-y: auto; overscroll-behavior: contain; }
    .main-nav.open { transform: none; }
    .nav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; height: var(--header-h); border-bottom: 1px solid var(--line); flex-shrink: 0; }
    .nav-drawer-head .brand-text { color: var(--navy); }
    .main-nav .nav-link { display: flex; padding: 14px 20px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
    .main-nav .nav-link.active { background: var(--green-soft); }
    .main-nav .nav-link.active::after { display: none; }
    .nav-link-wide { display: none !important; }
    .nav-dd { position: static; }
    .nav-dd > .nav-link .nav-caret { margin-left: auto; transform: rotate(180deg); }
    .nav-dd-menu { position: static; min-width: 0; padding: 6px 12px 10px 20px; border: 0; border-radius: 0; box-shadow: none; background: #f7faf8; opacity: 1; visibility: visible; transform: none; border-bottom: 1px solid var(--line); }
    .nav-dd::before { display: none; }
    .nav-dd-menu a { padding: 9px 10px; font-size: 14px; }
    .nav-mobile-actions { display: grid; gap: 10px; margin: 20px 18px 0; }
    .nav-mobile-actions a, .nav-mobile-actions .btn { background: none; padding: 12px 16px; }
    .nav-mobile-actions .btn-primary { background: var(--green); color: #fff; }
    .nav-mobile-actions .btn-dark { background: var(--navy); color: #fff; }
    .nav-mobile-actions .btn-outline { background: #fff; }
    .nav-mobile-actions .btn-logout { color: var(--red); }
    .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(12, 34, 51, .55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
    body.nav-open { overflow: hidden; }
    body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
    body.nav-open .site-header { color: var(--ink); }
    .header-actions { margin-left: auto; gap: 10px; }
}

@media (max-width: 991px) {
    .section { padding: 64px 0; }
    .ul-hero { padding: 80px 0 90px; }
    .ul-search { flex-wrap: wrap; padding: 10px; }
    .ul-search-field { flex: 1 1 50%; border-right: 0; border-bottom: 1px solid var(--line); }
    .ul-search-keyword { flex-basis: 100%; }
    .ul-search-field:nth-child(2) { border-right: 1px solid var(--line); }
    .ul-search-btn { flex: 1 1 100%; margin-top: 10px; padding: 14px; }
    .ul-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .ul-cat.is-wide { grid-column: span 1; }
    .tender-grid-home, .live-grid, .tender-grid { grid-template-columns: repeat(2, 1fr); }
    .tender-grid-home > :nth-child(n+7) { display: flex; }
    .ul-steps { grid-template-columns: 1fr; gap: 30px; max-width: 480px; margin-inline: auto; }
    .ul-steps::before { top: 40px; bottom: 40px; left: 50%; right: auto; border-top: 0; border-left: 2px dashed #cfe3d6; }
    .ul-step { background: #fff; padding: 8px 12px; }
    .ul-counter-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid, .testimonial-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .prefooter-inner { flex-wrap: wrap; padding: 30px; }
    .prefooter-text { flex-basis: calc(100% - 100px); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-about { grid-column: 1 / -1; }
    .ul-head { align-items: flex-start; }
}

@media (max-width: 767px) {
    :root { --header-h: 66px; }
    .hide-sm { display: none; }
    .topbar-social { display: none; }
    .header-cta span { display: none; }
    .header-cta { display: inline-flex; padding: 10px; width: 42px; height: 42px; }
    .header-signin span { display: none; }
    .brand-mark { width: 38px; height: 38px; font-size: 20px; }
    .brand-text { font-size: 18px; }
    .page-banner { padding: 46px 0 44px; }
    .ul-hero { padding: 60px 0 70px; }
    .ul-hero h1 { margin-top: 16px; }
    .ul-hero-sub { margin-bottom: 26px; }
    .ul-search-field, .ul-search-field:nth-child(2) { flex-basis: 100%; border-right: 0; }
    .ul-hero-cats { gap: 8px; margin-top: 22px; }
    .ul-hero-cats-label { flex-basis: 100%; }
    .ul-hero-cats a { padding: 6px 12px; font-size: 13px; }
    .ul-head { margin-bottom: 26px; }
    .ul-tabs { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
    .ul-tabs::-webkit-scrollbar { display: none; }
    .ul-tabs a { white-space: nowrap; }
    .ul-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .ul-cat { min-height: 170px; padding: 18px; }
    .ul-cat-body strong { font-size: 16px; }
    .ul-cat-icon { width: 54px; height: 54px; }
    .feature-grid, .testimonial-grid, .blog-grid { grid-template-columns: 1fr; }
    .testimonial-grid > :last-child:nth-child(odd), .blog-grid > :last-child:nth-child(odd) { grid-column: auto; }
    .prefooter { padding-top: 48px; }
    .prefooter-inner { padding: 26px 22px; text-align: center; justify-content: center; }
    .prefooter-icon { margin: 0 auto; }
    .prefooter-text { flex-basis: 100%; }
    .prefooter-actions { justify-content: center; width: 100%; }
    .footer-contact { grid-template-columns: 1fr; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
    .footer-pages { justify-content: center; }
    .page-content-card { padding: 24px 20px; }
}

@media (max-width: 575px) {
    .section { padding: 52px 0; }
    .topbar-inner { min-height: 36px; }
    .tender-grid-home, .live-grid, .tender-grid, .tender-grid-2 { grid-template-columns: 1fr; }
    .ul-counter-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .ul-counter { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
    .ul-counter strong { font-size: 24px; }
    .ul-cat { min-height: 150px; padding: 16px; }
    .ul-cat-count { top: 12px; right: 12px; font-size: 11px; padding: 3px 9px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .prefooter-actions .btn { flex: 1 1 100%; }
    .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

@media (max-width: 380px) {
    .ul-cat-grid { grid-template-columns: 1fr; }
    .header-actions { gap: 6px; }
    .brand-text small { display: none; }
}
