/* ==========================================================================
   Expasia - Modern Asian Expat & Business Platform Design System
   Pure CSS3, Responsive, Clean Glassmorphism & Full RTL (Arabic) Support
   ========================================================================== */

:root {
  --font-primary: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Cairo', 'Noto Sans Arabic', 'Tajawal', sans-serif;
  --font-cjk: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  
  /* Color Palette - Midnight Slate & Neon Accents */
  --bg-primary: #080d1a;
  --bg-secondary: #0f172a;
  --bg-card: rgba(19, 30, 58, 0.75);
  --bg-card-hover: rgba(28, 43, 80, 0.95);
  --bg-input: #131d36;
  --bg-glass: rgba(11, 18, 38, 0.88);
  
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(56, 189, 248, 0.35);
  --border-focus: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  --brand-gradient: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #6366f1 100%);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 35px rgba(14, 165, 233, 0.2);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RTL (Arabic) mode */
[dir="rtl"] {
  font-family: var(--font-arabic), var(--font-primary);
  text-align: right;
}

[lang="zh"] {
  font-family: var(--font-cjk), var(--font-primary);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Ambient glow */
.ambient-glow {
  position: fixed;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, rgba(99, 102, 241, 0.1) 45%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--brand-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.brand-text {
  background: linear-gradient(135deg, #ffffff 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.3rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Language Selector Dropdown */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.lang-trigger-btn:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 175px;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 1010;
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

.lang-menu.show {
  display: flex;
  animation: fadeInDown 0.18s ease-out;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.88rem;
  text-align: left;
  transition: var(--transition);
  width: 100%;
}

[dir="rtl"] .lang-option {
  text-align: right;
}

.lang-option:hover, .lang-option.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.lang-option.active {
  font-weight: 700;
  color: var(--text-accent);
}

.btn-post-ad {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-post-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.55);
}

/* ==========================================================================
   Hero Section & Search Autocomplete
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 3rem;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: var(--text-accent);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 920px;
  margin: 0 auto 1.25rem;
}

.hero-title span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.hero-search-container {
  max-width: 980px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  backdrop-filter: blur(20px);
}

.hero-search-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr auto;
  gap: 1rem;
  align-items: center;
}

.search-field-group {
  position: relative;
  text-align: left;
}

[dir="rtl"] .search-field-group {
  text-align: right;
}

.search-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1.1rem;
}

[dir="rtl"] .search-input-icon {
  left: auto;
  right: 0.9rem;
}

.hero-search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  font-size: 0.95rem;
  transition: var(--transition);
}

[dir="rtl"] .hero-search-input {
  padding: 0.85rem 2.6rem 0.85rem 1rem;
}

.hero-search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.hero-search-btn {
  height: 100%;
  min-height: 52px;
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 1.8rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4);
  transition: var(--transition);
  white-space: nowrap;
}

.hero-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.55);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 280px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  z-index: 1020;
  padding: 0.4rem;
}

.autocomplete-dropdown.active {
  display: flex;
  animation: fadeInDown 0.15s ease-out;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.92rem;
  transition: var(--transition);
}

.autocomplete-item:hover, .autocomplete-item.selected {
  background: var(--bg-card-hover);
  color: var(--text-accent);
}

.autocomplete-item .item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.quick-hubs {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.quick-hub-tag {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.quick-hub-tag:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: var(--border-accent);
}

/* ==========================================================================
   Live Weather Widget
   ========================================================================== */
.weather-hub-card {
  margin-top: 1.5rem;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  animation: fadeInDown 0.25s ease-out;
  flex-wrap: wrap;
  justify-content: center;
}

.weather-city-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.weather-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.weather-temp-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.weather-icon {
  font-size: 1.4rem;
}

.weather-temp {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-accent);
}

.weather-details {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-left: 1px solid var(--border-subtle);
  padding-left: 0.85rem;
}

[dir="rtl"] .weather-details {
  border-left: none;
  border-right: 1px solid var(--border-subtle);
  padding-left: 0;
  padding-right: 0.85rem;
}

.weather-uv-pill {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-card h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-accent);
  margin-bottom: 0.2rem;
}

.stat-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   Sections & Common Cards
   ========================================================================== */
.section-wrapper {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-header-left {
  max-width: 680px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* Daily News Wire Grid */
.news-wire-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.news-wire-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.news-wire-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.news-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
}

.news-category-badge {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.news-source-meta {
  color: var(--text-muted);
}

.news-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.news-snippet {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

.news-link {
  color: var(--text-accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.news-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Filter Bar & Professional Directory
   ========================================================================== */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.filter-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  cursor: pointer;
  outline: none;
  min-width: 140px;
}

.filter-select:focus {
  border-color: var(--border-focus);
}

.filter-search-input {
  flex: 1;
  min-width: 220px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.pros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.pro-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pro-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}

.pro-card-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pro-avatar {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--border-accent);
  flex-shrink: 0;
}

.pro-info {
  flex: 1;
}

.pro-name {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.badge-verified {
  color: var(--accent-cyan);
  font-size: 0.95rem;
}

.pro-role {
  color: var(--text-accent);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pro-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pro-languages {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.lang-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.pro-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.pro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.pro-tag {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.pro-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.pro-rate {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-emerald);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background: #1eb954;
  transform: translateY(-1px);
}

/* ==========================================================================
   Community Feed & Marketplace
   ========================================================================== */
.feed-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.feed-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.create-post-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.create-post-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  resize: none;
  min-height: 70px;
}

.create-post-input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.feed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.feed-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feed-author-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.feed-author-name {
  font-weight: 700;
  font-size: 0.98rem;
}

.feed-author-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.feed-badge {
  background: rgba(14, 165, 233, 0.15);
  color: var(--text-accent);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.feed-content {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feed-image {
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  max-height: 380px;
  width: 100%;
  object-fit: cover;
}

.feed-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.feed-action-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.feed-action-btn:hover {
  color: var(--text-accent);
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-mini-card {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.event-mini-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.event-date-box {
  background: var(--bg-input);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  text-align: center;
  min-width: 54px;
}

.event-date-box .day {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-accent);
}

.event-date-box .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Marketplace */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.market-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.market-img-wrap {
  position: relative;
  height: 200px;
}

.market-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

[dir="rtl"] .market-tag {
  left: auto;
  right: 1rem;
}

.market-body {
  padding: 1.25rem;
}

.market-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.market-location {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.market-specs {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.market-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.market-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

/* ==========================================================================
   Essential Guides Section
   ========================================================================== */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.guide-icon {
  width: 52px;
  height: 52px;
  background: rgba(14, 165, 233, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-accent);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.guide-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.guide-card:hover .guide-title {
  color: var(--text-accent);
}

.guide-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-accent);
  margin-top: auto;
  transition: var(--transition);
}

.guide-card:hover .btn-read-more {
  transform: translateX(4px);
}

[dir="rtl"] .guide-card:hover .btn-read-more {
  transform: translateX(-4px);
}

/* ==========================================================================
   Interactive Modals & Reader Overlay (Hidden by Default!)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 10, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(14, 165, 233, 0.25);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--accent-rose);
  color: #fff;
  border-color: var(--accent-rose);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  color: var(--text-primary);
  line-height: 1.7;
}

.modal-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-accent);
  margin: 1.5rem 0 0.5rem;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.modal-body ul {
  margin: 0.5rem 0 1.25rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

[dir="rtl"] .modal-body ul {
  margin: 0.5rem 1.5rem 1.25rem 0;
}

.checklist-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.checklist-box h4 {
  font-size: 1rem;
  color: var(--accent-emerald);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.checklist-item:last-child {
  margin-bottom: 0;
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 0.85rem;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-flags {
  display: flex;
  gap: 0.5rem;
}

.footer-flag-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.75;
  transition: var(--transition);
}

.footer-flag-btn:hover, .footer-flag-btn.active {
  opacity: 1;
  transform: scale(1.15);
}

/* ==========================================================================
   Animations & Responsive Breakpoints
   ========================================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero-search-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-search-btn {
    grid-column: span 2;
  }
  .feed-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-search-grid {
    grid-template-columns: 1fr;
  }
  .hero-search-btn {
    grid-column: span 1;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .weather-hub-card {
    flex-direction: column;
    gap: 0.75rem;
  }
  .weather-details {
    border-left: none;
    padding-left: 0;
  }
}
