body { background: var(--white); }

/* ── Hero ── */
.hero { background: url('/images/hero-bg.jpg') center center / cover no-repeat; padding: 7rem 1.5rem 5rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(1,48,71,0.40) 0%, rgba(1,48,71,0.62) 100%); pointer-events: none; }
.hero-glow { position: absolute; top: -10%; inset-inline-end: 8%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(77,200,232,0.1) 0%, transparent 68%); pointer-events: none; }
.hero-inner { max-width: 780px; margin: 0 auto; position: relative; }
.hero-label { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(77,200,232,0.1); color: var(--accent); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 50px; margin-bottom: 1.75rem; border: 1px solid rgba(77,200,232,0.22); }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5.5vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.1rem; letter-spacing: -0.025em; }
.hero h1 span { color: var(--accent); }
.hero-sub { color: rgba(255,255,255,0.58); font-size: 1rem; margin: 0 auto 2.25rem; max-width: 480px; line-height: 1.7; }
.hero-search-wrap { max-width: 580px; margin: 0 auto; }
.hero-search { display: flex; align-items: center; background: var(--white); border-radius: 14px; padding: 6px 6px 6px 1.25rem; box-shadow: 0 16px 56px rgba(0,0,0,0.4); gap: 0.75rem; }
.hero-search-icon { color: var(--gray-400); display: flex; align-items: center; flex-shrink: 0; }
.hero-search input { flex: 1; border: none; outline: none; font-size: 0.95rem; font-family: inherit; color: var(--gray-900); background: transparent; padding: 0.55rem 0; min-width: 0; }
.hero-search input::placeholder { color: var(--gray-400); }
.hero-search-btn { background: var(--primary); color: var(--white); border: none; padding: 0.65rem 1.5rem; border-radius: 10px; font-size: 0.875rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: background 0.2s; white-space: nowrap; letter-spacing: 0.01em; flex-shrink: 0; }
.hero-search-btn:hover { background: var(--primary-light); }
.hero-chips { margin-top: 1.25rem; }
.hero-chips-label { display: block; color: rgba(255,255,255,0.32); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.65rem; }
.hero-chips-row { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px; justify-content: center; flex-wrap: wrap; }
.hero-chips-row::-webkit-scrollbar { display: none; }
.hero-chip { display: inline-flex; align-items: center; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.72); font-size: 0.78rem; font-weight: 500; padding: 0.32rem 0.9rem; border-radius: 50px; text-decoration: none; transition: all 0.18s; white-space: nowrap; }
.hero-chip:hover { background: rgba(255,255,255,0.18); color: var(--white); border-color: rgba(255,255,255,0.32); transform: translateY(-1px); }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; color: var(--white); font-size: 1.5rem; font-weight: 800; line-height: 1; margin-bottom: 0.3rem; }
.hero-stat span { color: rgba(255,255,255,0.38); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; }
.hero-stat-sep { width: 1px; height: 2.5rem; background: rgba(255,255,255,0.12); flex-shrink: 0; }

/* ── Sections ── */
section { padding: 4rem 1.5rem; }
section.gray { background: var(--gray-50); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); margin-bottom: 0.4rem; }
.section-head p { color: var(--gray-600); font-size: 1rem; }

/* ── Categories ── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.category-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 18px; padding: 2rem 1.5rem; text-align: center; cursor: pointer; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; transition: all 0.25s; }
.category-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(77,200,232,0.18); transform: translateY(-4px); }
.cat-icon-wrap { width: 68px; height: 68px; border-radius: 18px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.cat-name { font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.cat-arrow { color: var(--gray-400); font-size: 0.85rem; margin-top: auto; }

/* ── Quick Actions ── */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.quick-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 16px; padding: 1.5rem 1rem; text-align: center; cursor: pointer; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; transition: all 0.2s; }
.quick-card:hover { border-color: var(--primary); box-shadow: 0 4px 20px rgba(1,48,71,0.1); transform: translateY(-2px); }
.quick-icon { font-size: 1.75rem; }
.quick-label { font-size: 0.82rem; font-weight: 600; color: var(--gray-600); }
.quick-card.highlight { background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-color: transparent; }
.quick-card.highlight .quick-label { color: var(--white); }

/* ── Featured Listings ── */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.listing-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 16px; overflow: hidden; text-decoration: none; transition: all 0.25s; display: flex; flex-direction: column; }
.listing-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); transform: translateY(-4px); border-color: transparent; }
.listing-img { width: 100%; height: 160px; object-fit: cover; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--gray-400); overflow: hidden; }
.listing-img img { width: 100%; height: 160px; object-fit: cover; }
.listing-body { padding: 1rem; flex: 1; }
.listing-name { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.25rem; }
.listing-meta { font-size: 0.78rem; color: var(--gray-400); display: flex; align-items: center; gap: 0.4rem; }
.listing-badge { display: inline-block; background: rgba(77,200,232,0.12); color: var(--primary); font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 50px; margin-bottom: 0.4rem; }

/* ── News ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.news-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 16px; overflow: hidden; text-decoration: none; transition: all 0.25s; }
.news-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-3px); border-color: transparent; }
.news-img { width: 100%; height: 180px; object-fit: cover; background: var(--gray-100); display: block; }
.news-img-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.news-body { padding: 1.25rem; }
.news-date { font-size: 0.75rem; color: var(--gray-400); margin-bottom: 0.5rem; }
.news-title { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); line-height: 1.4; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .listings-grid   { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .news-grid       { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
    section { padding: 2.75rem 1rem; }
    .section-head { margin-bottom: 1.75rem; }
    .section-head h2 { font-size: 1.5rem; }
    .section-head p  { font-size: 0.9rem; }

    /* Hero */
    .hero { padding: 4.5rem 1rem 3.5rem; }
    .hero-label { font-size: 0.68rem; margin-bottom: 1.25rem; }
    .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); margin-bottom: 0.85rem; }
    .hero-sub { font-size: 0.9rem; margin-bottom: 2rem; }
    .hero-search { padding: 5px 5px 5px 1rem; gap: 0.5rem; }
    .hero-search-btn { padding: 0.6rem 1.1rem; font-size: 0.82rem; }
    .hero-chips-row { justify-content: flex-start; flex-wrap: nowrap; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat strong { font-size: 1.25rem; }

    /* Categories */
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
    .category-card { padding: 1.5rem 1rem; border-radius: 14px; gap: 0.75rem; }
    .cat-icon-wrap { width: 56px; height: 56px; border-radius: 14px; font-size: 1.65rem; }
    .cat-name { font-size: 0.9rem; }

    /* Quick Actions */
    .quick-grid { gap: 0.75rem; }
    .quick-card { padding: 1.2rem 0.75rem; border-radius: 12px; gap: 0.5rem; }
    .quick-icon { font-size: 1.5rem; }
    .quick-label { font-size: 0.78rem; }

    /* Listings */
    .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
    .listing-img { height: 130px; }
    .listing-img img { height: 130px; }
    .listing-body { padding: 0.85rem; }
    .listing-name { font-size: 0.88rem; }

    /* News */
    .news-grid { grid-template-columns: 1fr; }
    .news-img  { height: 200px; }
}

/* Small mobile ≤ 480px */
@media (max-width: 480px) {
    section { padding: 2.25rem 0.875rem; }

    /* Hero — stack search vertically on very small screens */
    .hero { padding: 4rem 0.875rem 3rem; }
    .hero h1 { font-size: 1.85rem; }
    .hero-sub { font-size: 0.85rem; margin-bottom: 1.75rem; }
    .hero-search { flex-wrap: wrap; padding: 0.6rem; border-radius: 12px; gap: 0.5rem; }
    .hero-search-icon { display: none; }
    .hero-search input { flex: 1 1 100%; padding: 0.4rem 0.25rem; font-size: 0.9rem; }
    .hero-search-btn { flex: 1; border-radius: 8px; padding: 0.65rem; font-size: 0.85rem; }
    .hero-chips { margin-top: 0.85rem; }
    .hero-chips-label { display: none; }
    .hero-chip { font-size: 0.7rem; padding: 0.22rem 0.65rem; }
    .hero-stats { gap: 1.1rem; margin-top: 1.75rem; padding-top: 1.5rem; }
    .hero-stat strong { font-size: 1.15rem; }
    .hero-stat span { font-size: 0.65rem; }

    /* Categories */
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .category-card { padding: 1.1rem 0.75rem; border-radius: 12px; gap: 0.6rem; }
    .cat-icon-wrap { width: 48px; height: 48px; border-radius: 12px; font-size: 1.4rem; }
    .cat-name { font-size: 0.82rem; }
    .cat-arrow { display: none; }

    /* Quick Actions */
    .quick-card { padding: 1rem 0.6rem; }
    .quick-icon { font-size: 1.35rem; }
    .quick-label { font-size: 0.72rem; }

    /* Listings */
    .listings-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .listing-img { height: 110px; }
    .listing-img img { height: 110px; }
    .listing-body { padding: 0.65rem; }
    .listing-name { font-size: 0.82rem; }
    .listing-meta { font-size: 0.72rem; }

    /* News */
    .news-body { padding: 1rem; }
    .news-title { font-size: 0.9rem; }
}
