/* ============ Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #0f1f1c;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .2s ease; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

:root {
  --primary: #0d7866;
  --primary-dark: #095c4d;
  --primary-light: #e6f3f0;
  --accent: #e8a23d;
  --accent-dark: #c8841c;
  --bg: #ffffff;
  --bg-alt: #f6faf8;
  --text: #0f1f1c;
  --text-muted: #5a6b67;
  --border: #e3ebe8;
  --shadow-sm: 0 1px 3px rgba(15,31,28,.06), 0 1px 2px rgba(15,31,28,.04);
  --shadow-md: 0 4px 12px rgba(15,31,28,.08), 0 2px 4px rgba(15,31,28,.05);
  --shadow-lg: 0 12px 28px rgba(15,31,28,.12), 0 4px 8px rgba(15,31,28,.06);
  --radius: 14px;
  --radius-sm: 8px;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ============ Top Bar ============ */
.topbar {
  background: var(--text);
  color: #c8d4d1;
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-links a { color: #c8d4d1; }
.topbar-links a:hover { color: #fff; }
.topbar-social { font-size: 14px; }

/* ============ Header ============ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
}
.logo-mark { font-size: 26px; }
.logo-text { line-height: 1; }
.logo-text span { color: var(--primary); margin-right: 4px; }

.main-nav {
  display: flex;
  gap: 6px;
  margin-right: auto;
}
.main-nav a {
  font-weight: 700;
  font-size: 16px;
  padding: 10px 18px;
  border-radius: 8px;
  color: var(--text);
  transition: all .2s ease;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--primary); }
.main-nav a.active { background: var(--primary-light); color: var(--primary); }

.search-btn, .menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
  background: var(--bg-alt);
  color: var(--text);
  transition: all .2s ease;
}
.search-btn:hover { background: var(--primary); color: #fff; }
.menu-toggle { display: none; }

/* ============ Hero ============ */
.hero { padding: 28px 0; }
.hero-card {
  display: block;
  height: 480px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  transition: transform .4s ease;
}
.hero-card:hover { transform: translateY(-4px); }
.hero-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 40px 48px;
  color: #fff;
}
.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-excerpt {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 700px;
  opacity: .95;
}
.hero-meta {
  display: flex;
  gap: 22px;
  font-size: 14px;
  opacity: .9;
}

/* ============ Section ============ */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.section-head::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 60px;
  height: 2px;
  background: var(--primary);
}
.section-head h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
}
.section-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}
.section-link:hover { color: var(--primary-dark); }

/* ============ Emirates Grid ============ */
.emirates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.emirates-grid .emirate-card:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 380px;
}
.emirates-grid .emirate-card:nth-child(2),
.emirates-grid .emirate-card:nth-child(3) { min-height: 180px; }
.emirate-card {
  display: block;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
  min-height: 180px;
  box-shadow: var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease;
}
.emirate-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.emirate-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 22px;
  color: #fff;
}
.emirate-content h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.emirate-content p {
  font-size: 14px;
  opacity: .95;
  margin-bottom: 8px;
}
.emirate-count {
  display: inline-block;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.emirates-grid .emirate-card:nth-child(1) .emirate-content h3 { font-size: 36px; }
.emirates-grid .emirate-card:nth-child(1) .emirate-content p { font-size: 16px; }

/* ============ Articles Grid ============ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-img {
  display: block;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
}
.article-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-cat {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.article-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}
.article-title a { color: var(--text); }
.article-title a:hover { color: var(--primary); }
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.read-more { color: var(--primary); font-weight: 700; }
.read-more:hover { color: var(--accent-dark); }

/* ============ Activities ============ */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}
.activity-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all .25s ease;
}
.activity-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-3px);
}
.activity-icon { font-size: 36px; }
.activity-name { font-weight: 700; font-size: 15px; color: var(--text); }
.activity-count { font-size: 12px; color: var(--text-muted); }

/* ============ Popular ============ */
.popular-list { display: flex; flex-direction: column; gap: 16px; max-width: 900px; margin: 0 auto; }
.popular-item {
  display: grid;
  grid-template-columns: 40px 110px 1fr;
  gap: 18px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.popular-item:hover { transform: translateX(-4px); }
.popular-rank {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  text-align: center;
  line-height: 1;
}
.popular-img {
  display: block;
  width: 110px;
  height: 80px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
}
.popular-cat {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 4px;
}
.popular-body h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
}
.popular-body h4 a { color: var(--text); }
.popular-body h4 a:hover { color: var(--primary); }
.popular-views { font-size: 12px; color: var(--text-muted); }

/* ============ Footer ============ */
.site-footer {
  background: var(--text);
  color: #c8d4d1;
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 20px 32px;
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo-text span { color: var(--accent); }
.footer-brand p { font-size: 14px; line-height: 1.8; opacity: .8; }
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; opacity: .8; }
.footer-col ul a:hover { opacity: 1; color: var(--accent); }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all .2s ease;
}
.social-row a:hover { background: var(--primary); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  font-size: 13px;
  text-align: center;
  opacity: .7;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .emirates-grid { grid-template-columns: repeat(3, 1fr); }
  .emirates-grid .emirate-card:nth-child(1) { grid-column: span 3; grid-row: span 1; min-height: 280px; }
  .activities-grid { grid-template-columns: repeat(4, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .topbar-links { gap: 12px; }
  .topbar-date { display: none; }
  .header-inner { gap: 12px; padding: 14px 16px; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .hero-card { height: 380px; }
  .hero-content { padding: 24px; }
  .hero-title { font-size: 22px; }
  .hero-excerpt { font-size: 14px; }
  .emirates-grid { grid-template-columns: 1fr 1fr; }
  .emirates-grid .emirate-card:nth-child(1) { grid-column: span 2; }
  .articles-grid { grid-template-columns: 1fr; }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-item { grid-template-columns: 30px 80px 1fr; gap: 12px; padding: 10px; }
  .popular-img { width: 80px; height: 60px; }
  .popular-rank { font-size: 24px; }
  .footer-inner { grid-template-columns: 1fr; padding: 40px 20px 24px; }
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 22px; }
}

/* ============ Single Article Page ============ */
.single-article { padding: 32px 0 40px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs .current { color: var(--text-muted); }
.breadcrumbs span { opacity: .5; }
.breadcrumbs-light { color: rgba(255,255,255,.85); }
.breadcrumbs-light a { color: rgba(255,255,255,.95); }
.breadcrumbs-light .current { color: rgba(255,255,255,.7); }

.article-header { max-width: 880px; margin: 0 auto 32px; }
.article-header .badge { display: inline-block; background: var(--primary); color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 16px; text-decoration: none; }
.article-header h1 { font-size: clamp(22px, 3vw, 36px); line-height: 1.4; font-weight: 900; margin-bottom: 16px; }
.article-excerpt-lead { font-size: 17px; line-height: 1.8; color: var(--text-muted); margin-bottom: 18px; }
.article-meta-row { display: flex; gap: 22px; font-size: 14px; color: var(--text-muted); padding-bottom: 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }

.article-hero-img { max-width: 1100px; margin: 0 auto 32px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.article-hero-img img { width: 100%; height: auto; display: block; }

.article-content { max-width: 800px; margin: 0 auto; font-size: 17px; line-height: 1.95; }
.article-content p { margin-bottom: 18px; }
.article-content h2 { font-size: 26px; font-weight: 900; margin: 36px 0 16px; padding-right: 14px; border-right: 4px solid var(--primary); line-height: 1.4; }
.article-content h3 { font-size: 21px; font-weight: 700; margin: 28px 0 12px; color: var(--primary-dark); }
.article-content h4 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; }
.article-content ul, .article-content ol { padding-right: 24px; margin-bottom: 18px; }
.article-content li { margin-bottom: 8px; list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content blockquote { border-right: 4px solid var(--accent); background: var(--bg-alt); padding: 18px 22px; margin: 24px 0; border-radius: var(--radius-sm); font-style: italic; color: var(--text-muted); }
.article-content figure { margin: 24px auto; text-align: center; }
.article-content figure img { max-width: 100%; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin: 0 auto; }
.article-content figcaption { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article-content a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(13,120,102,.3); text-underline-offset: 3px; }
.article-content a:hover { text-decoration-color: var(--primary); }
.article-content table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.article-content table th, .article-content table td { padding: 10px 14px; border: 1px solid var(--border); text-align: right; }
.article-content table thead th { background: var(--primary-light); font-weight: 700; color: var(--primary-dark); }
.article-content table tbody tr:nth-child(even) { background: var(--bg-alt); }
.article-content strong, .article-content b { color: var(--text); font-weight: 700; }

.article-share { max-width: 800px; margin: 32px auto; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: center; font-size: 14px; }
.article-share span { color: var(--text-muted); margin-left: auto; }
.article-share a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-alt); color: var(--text); font-size: 16px; font-weight: 700; transition: all .2s ease; }
.article-share a:hover { background: var(--primary); color: #fff; }

.related-articles { max-width: 1240px; margin: 48px auto 0; }

/* ============ Category Hero ============ */
.category-hero { padding: 60px 0; color: #fff; background-size: cover; background-position: center; margin-bottom: 0; }
.category-hero h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 900; margin: 12px 0 8px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.category-tagline { font-size: 17px; opacity: .95; margin-bottom: 14px; }
.category-count { display: inline-block; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 6px 14px; border-radius: 16px; font-size: 13px; font-weight: 700; }

/* ============ Pagination ============ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination .pg-current, .pagination .pg-ellipsis {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14px;
  background: #fff; border: 1px solid var(--border); color: var(--text);
  transition: all .2s ease;
}
.pagination a:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.pagination .pg-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .pg-ellipsis { background: transparent; border: none; color: var(--text-muted); }
.pagination .pg-prev, .pagination .pg-next { padding: 0 16px; }

/* ============ Uniform emirates grid (categories listing) ============ */
.emirates-grid-uniform { grid-template-columns: repeat(4, 1fr); }
.emirates-grid-uniform .emirate-card { grid-column: auto; grid-row: auto; min-height: 180px; }

@media (max-width: 1024px) {
  .emirates-grid-uniform { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .emirates-grid-uniform { grid-template-columns: 1fr 1fr; }
  .article-content { font-size: 16px; }
  .article-content h2 { font-size: 22px; }
  .article-content h3 { font-size: 18px; }
}

/* ============ Category Hierarchy ============ */
.cat-parent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.cat-parent-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: all .25s ease;
}
.cat-parent-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cat-parent-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cat-icon-box {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
}
.cat-parent-card:hover .cat-icon-box {
  background: var(--primary);
  color: #fff;
}
.cat-parent-info { display: flex; flex-direction: column; gap: 2px; }
.cat-parent-name {
  font-size: 19px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.3;
}
.cat-parent-count {
  font-size: 13px;
  color: var(--text-muted);
}
.cat-children {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all .2s ease;
}
.cat-chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cat-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 0 6px;
  height: 18px;
  background: rgba(13,120,102,.12);
  color: var(--primary);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  transition: all .2s ease;
}
.cat-chip:hover .cat-chip-count {
  background: rgba(255,255,255,.25);
  color: #fff;
}

.cat-standalone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat-standalone-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all .25s ease;
}
.cat-standalone-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}
.cat-standalone-card .cat-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}
.cat-standalone-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-standalone-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-standalone-count {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .cat-parent-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-standalone-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .cat-parent-grid { grid-template-columns: 1fr; }
  .cat-standalone-grid { grid-template-columns: 1fr 1fr; }
  .cat-icon-box { width: 44px; height: 44px; }
  .cat-parent-name { font-size: 17px; }
}
.section-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 32px 0 16px;
  padding-right: 12px;
  border-right: 3px solid var(--primary);
}

/* ============ Search Hero (Homepage) ============ */
.hero-search {
  position: relative;
  overflow: hidden;
  padding: 90px 20px 80px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(232,162,61,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(255,255,255,.08) 0%, transparent 50%),
    linear-gradient(135deg, #0d7866 0%, #0a6557 35%, #064d3f 100%);
}
.hero-search::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><path d='M30 0l30 30-30 30L0 30z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/></svg>");
  opacity: .8;
  pointer-events: none;
}
.hero-search-inner { position: relative; max-width: 800px; margin: 0 auto; }
.hero-search-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
  line-height: 1.3;
}
.hero-search-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  opacity: .95;
  margin-bottom: 32px;
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
}
.hero-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 7px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.1);
  max-width: 700px;
  margin: 0 auto 24px;
}
.hero-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px 0 8px;
  color: var(--text-muted);
}
.hero-search-form input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 4px;
  font-family: inherit;
  font-size: 16px;
  background: transparent;
  color: var(--text);
  text-align: right;
  min-width: 0;
}
.hero-search-form input[type="text"]::placeholder { color: var(--text-muted); }
.hero-search-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
  flex-shrink: 0;
}
.hero-search-form button:hover { background: var(--primary-dark); }
.hero-search-form button:active { transform: scale(0.98); }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.hero-search-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  opacity: .95;
}
.hero-search-tags > span { margin-left: 6px; opacity: .85; }
.hero-search-tags a {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-search-tags a:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.4);
  transform: translateY(-1px);
}

/* ============ Search Results Page ============ */
.search-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 40px 0 36px;
}
.search-hero-title {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
}
.search-q { color: var(--accent); }
.search-bar-form {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 5px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.search-bar-form .hero-search-icon { padding: 0 14px 0 6px; color: var(--text-muted); }
.search-bar-form input[type="text"] {
  flex: 1; border: none; outline: none;
  padding: 12px 4px; font-family: inherit; font-size: 15px;
  background: transparent; color: var(--text); text-align: right;
}
.search-bar-form button {
  background: var(--primary); color: #fff; border: none;
  padding: 11px 22px; border-radius: 9px;
  font-family: inherit; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: background .2s ease;
}
.search-bar-form button:hover { background: var(--primary-dark); }
.search-msg {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.search-msg h3 { font-size: 22px; color: var(--text); margin-bottom: 10px; }
.search-msg p { font-size: 16px; }
.search-msg a { color: var(--primary); font-weight: 700; text-decoration: underline; }

@media (max-width: 640px) {
  .hero-search { padding: 50px 16px 44px; }
  .hero-search-form { padding: 6px; }
  .hero-search-form input[type="text"] { padding: 12px 4px; font-size: 15px; }
  .hero-search-form button { padding: 11px 18px; font-size: 14px; }
  .hero-search-icon { padding: 0 10px 0 6px; }
}
