/* ===========================
   JCI BUSINESS INDIA - MAIN CSS
   =========================== */

:root {
  --primary: #003A8C;
  --secondary: #0056D6;
  --accent: #F4B400;
  --white: #FFFFFF;
  --light-gray: #F8FAFC;
  --dark-text: #0F172A;
  --mid-text: #475569;
  --border: #E2E8F0;
  --success: #16A34A;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden; /* safety net — no single element (nav, wide table, etc.) should ever be able to widen the whole page and create a site-wide horizontal scrollbar */
  max-width: 100vw;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

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

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--mid-text);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--secondary); transform: translateY(-1px); }

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: var(--white); }

.btn-accent {
  background: var(--accent);
  color: var(--dark-text);
}
.btn-accent:hover { background: #e6a800; transform: translateY(-1px); }

.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }

/* ===== TOP HEADER BAR ===== */
.top-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.top-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-area img {
  height: 52px;
  width: auto;
}

.logo-text h1 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.logo-text span {
  font-size: 0.7rem;
  color: var(--mid-text);
  display: block;
  font-weight: 500;
}

.header-tagline {
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  white-space: nowrap;        /* never wrap onto new line */
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-tagline span { color: var(--accent); }

.header-signature {
  text-align: center;
  font-size: 0.5rem;
  color: var(--mid-text);
  line-height: 1.4;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 18px;
}

.header-signature strong {
  display: block;
  color: var(--primary);
  font-size: 0.88rem;
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

/* ===== NAVIGATION ===== */
.main-nav {
  background: var(--primary);
  position: sticky;
  top: 73px;
  z-index: 999;
}

.nav-inner {
  display: flex;
  align-items: center;
  /* overflow-x: auto; */
  scrollbar-width: none; /* Firefox — keep this an internal scroll, not a visible bar */
}
.nav-inner::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.nav-inner a, .nav-inner .nav-parent {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

.nav-inner a:first-child, .nav-inner a.active, .nav-inner a:hover,
.nav-inner .nav-parent:hover {
  background: var(--secondary);
}

.nav-inner a.home-link { background: var(--secondary); }

.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  z-index: 100;
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  color: var(--dark-text);
  padding: 10px 16px;
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.dropdown-menu a:hover { background: var(--light-gray); color: var(--primary); }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 10px;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 420px;
  background: #001a4d;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.slide.active { display: flex; }

.slide-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #001a4d 0%, #003A8C 50%, #0056D6 100%);
}

.slide-person {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 35%;
  object-fit: cover;
  object-position: top center;
}

.india-map-overlay {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  opacity: 0.15;
}

.slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 40px;
  gap: 30px;
}

.slide-text {
  margin-left: 34%;
  flex: 1;
  color: var(--white);
}

.slide-text h2 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.slide-text h2 span { color: var(--accent); }

.slide-features {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.slide-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  opacity: 0.9;
}

.slide-feature svg { color: var(--accent); }

.slide-text p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 20px;
}

.slide-signature {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  backdrop-filter: blur(4px);
}

.slide-signature strong {
  display: block;
  font-size: 0.9rem;
}

.slide-steps {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.slide-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  opacity: 0.85;
}

.slide-cta {
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--white);
  text-align: center;
  min-width: 200px;
  backdrop-filter: blur(8px);
}

.slide-cta h4 { font-size: 0.75rem; letter-spacing: 1px; opacity: 0.7; margin-bottom: 6px; }
.slide-cta h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.slide-cta p { font-size: 0.75rem; opacity: 0.75; margin-bottom: 14px; }
.slide-cta .btn { width: 100%; justify-content: center; font-size: 0.82rem; }

.slider-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.slider-dot.active { background: var(--accent); width: 22px; border-radius: 4px; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
  font-size: 1rem;
}

.slider-arrow:hover { background: rgba(255,255,255,0.3); }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }

/* ===== SEARCH SECTION ===== */
.search-section {
  background: var(--white);
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--border);
}

.search-bar {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.search-input {
  flex: 2;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.search-input input {
  border: none;
  outline: none;
  font-size: 0.9rem;
  width: 100%;
  padding: 14px 0;
  color: var(--dark-text);
}

.search-input svg { color: var(--mid-text); flex-shrink: 0; }

.search-select {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.search-select svg { color: var(--mid-text); flex-shrink: 0; font-size: 0.85rem; }

.search-select select {
  border: none;
  outline: none;
  font-size: 0.82rem;
  color: var(--dark-text);
  background: transparent;
  width: 100%;
  padding: 14px 0;
  cursor: pointer;
}

.search-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0 28px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-btn:hover { background: var(--secondary); }

.popular-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.popular-tags span {
  font-size: 0.8rem;
  color: var(--mid-text);
  font-weight: 600;
}

.tag-pill {
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.78rem;
  color: var(--dark-text);
  cursor: pointer;
  transition: all 0.2s;
}

.tag-pill:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== CATEGORIES STRIP ===== */
.categories-strip {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.categories-row {
  display: flex;
  gap: 4px;
  align-items: stretch;
  overflow-x: auto;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 88px;
  text-align: center;
  text-decoration: none;
  color: var(--dark-text);
}

.category-item:hover { background: var(--light-gray); color: var(--primary); }

.category-icon {
  width: 44px;
  height: 44px;
  background: #EFF6FF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.2s;
}

.category-item:hover .category-icon { background: var(--primary); color: var(--white); }

.category-item span {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.view-all-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 70px;
  text-decoration: none;
}

/* ===== FEATURED BUSINESSES ===== */
.featured-section {
  padding: 32px 0;
  background: var(--white);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-header a {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.featured-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 20px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.business-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  background: var(--white);
  cursor: pointer;
}

.business-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.business-card-img {
  position: relative;
  height: 110px;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

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

.featured-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.verified-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--success);
  color: var(--white);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}

.business-card-body {
  padding: 10px;
}

.business-card-body h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 3px;
  line-height: 1.2;
}

.business-meta {
  font-size: 0.7rem;
  color: var(--mid-text);
  margin-bottom: 4px;
}

.stars {
  color: var(--accent);
  font-size: 0.65rem;
  letter-spacing: 1px;
}

/* Sponsorship sidebar */
.premium-sidebar {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.premium-sidebar h4 {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  opacity: 0.7;
  text-transform: uppercase;
}

.premium-sidebar h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.premium-sidebar p { font-size: 0.8rem; opacity: 0.8; line-height: 1.5; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--primary);
  padding: 22px 0;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.stat-item {
  text-align: center;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  font-size: 1.8rem;
  opacity: 0.7;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  opacity: 0.85;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* ===== BOTTOM GRID ===== */
.bottom-grid {
  padding: 32px 0;
  background: var(--white);
}

.bottom-grid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 200px;
  gap: 24px;
}

/* Browse by city */
.city-section h3, .recent-section h3, .events-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--dark-text);
}

.section-link {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
}

.city-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.city-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  height: 80px;
  background: linear-gradient(135deg, #334155, #0F172A);
}

.city-card:hover { transform: scale(1.03); }

.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.city-name {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Recent businesses */
.recent-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.recent-item:last-child { border-bottom: none; }

.recent-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--light-gray);
  flex-shrink: 0;
}

.recent-info h5 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.recent-info p { font-size: 0.72rem; color: var(--mid-text); }

.new-badge {
  background: #EFF6FF;
  color: var(--secondary);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid #BFDBFE;
}

/* Events */
.event-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.event-item:last-child { border-bottom: none; }

.event-date {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  padding: 8px 10px;
  min-width: 44px;
  flex-shrink: 0;
}

.event-date .day { font-size: 1.1rem; font-weight: 800; line-height: 1; }
.event-date .month { font-size: 0.6rem; text-transform: uppercase; }

.event-info h5 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 2px;
  line-height: 1.3;
}

.event-info p { font-size: 0.7rem; color: var(--mid-text); margin-bottom: 6px; }

/* JCI Member CTA */
.member-cta-box {
  background: linear-gradient(160deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  padding: 20px;
  color: var(--white);
  text-align: center;
}

.member-cta-box h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.member-cta-box p { font-size: 0.78rem; opacity: 0.85; margin-bottom: 14px; line-height: 1.5; }
.member-cta-box .btn { width: 100%; justify-content: center; background: var(--accent); color: var(--dark-text); margin-bottom: 8px; }
.member-cta-box small { font-size: 0.68rem; opacity: 0.65; }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 40px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand img { height: 72px; margin-bottom: 12px;
  /* filter: brightness(0) invert(1);  */
}

.footer-brand p {
  font-size: 0.78rem;
  opacity: 0.75;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.8rem;
  opacity: 0.8;
  transition: opacity 0.2s;
  color: var(--white);
}
.footer-links a:hover { opacity: 1; text-decoration: underline; }

.footer-contact li {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  opacity: 0.8;
  align-items: flex-start;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.social-link {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s;
  cursor: pointer;
  color: var(--white);
  text-decoration: none;
}

.social-link:hover { background: var(--accent); color: var(--dark-text); }

.footer-bottom {
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.7;
}

.footer-disclaimer {
  background: rgba(255,255,255,0.07);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.72rem;
  opacity: 0.75;
  line-height: 1.5;
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.page-hero p { opacity: 0.85; font-size: 1rem; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.82rem;
  opacity: 0.75;
}
.breadcrumb a { color: var(--white); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== ABOUT PAGE ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 60px 0; }
.about-img-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-wrap img { width: 100%; }
.about-content h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; color: var(--primary); }
.about-content p { margin-bottom: 14px; color: var(--mid-text); line-height: 1.7; }

.vision-mission { background: var(--light-gray); padding: 60px 0; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.vm-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; border-left: 4px solid var(--primary); box-shadow: var(--shadow-sm); }
.vm-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.vm-card p { color: var(--mid-text); line-height: 1.7; }

.team-section { padding: 60px 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.team-card { text-align: center; }
.team-photo { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden; border: 3px solid var(--primary); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-weight: 700; color: var(--dark-text); }
.team-role { font-size: 0.82rem; color: var(--mid-text); }

/* ===== DIRECTORY PAGE ===== */
.directory-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 32px 0; min-width: 0; }
.directory-layout > * { min-width: 0; }
.filter-sidebar { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; height: fit-content; min-width: 0; overflow: hidden; }
.filter-group { margin-bottom: 20px; }
.filter-group h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; color: var(--dark-text); }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--mid-text); margin-bottom: 7px; cursor: pointer; }
.filter-group input[type=checkbox] { accent-color: var(--primary); flex-shrink: 0; }
.filter-group select { width: 100%; max-width: 100%; box-sizing: border-box; }

.directory-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.view-toggle { display: flex; gap: 4px; }
.view-btn { background: var(--light-gray); border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 12px; cursor: pointer; transition: all 0.2s; }
.view-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.biz-card-full {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  background: var(--white);
}

.biz-card-full:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.biz-card-img { height: 150px; overflow: hidden; background: var(--light-gray); position: relative; }
.biz-card-img img { width: 100%; height: 100%; object-fit: cover; }
.biz-card-body { padding: 14px; }
.biz-card-body h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.biz-category { display: inline-block; background: #EFF6FF; color: var(--primary); font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; margin-bottom: 6px; }
.biz-location { font-size: 0.75rem; color: var(--mid-text); display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.biz-card-footer { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--border); }

/* ===== CATEGORIES PAGE ===== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 0; }
.cat-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; cursor: pointer; transition: all 0.25s; }
.cat-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-3px); }
.cat-icon-big { font-size: 2.5rem; margin-bottom: 12px; }
.cat-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.cat-count { font-size: 0.8rem; color: var(--mid-text); }

/* ===== EVENTS PAGE ===== */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 0; }
.event-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.25s; }
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.event-card-img { height: 160px; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; color: white; font-size: 3rem; }
.event-card-body { padding: 16px; }
.event-tag { display: inline-block; background: #EFF6FF; color: var(--primary); font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; margin-bottom: 8px; }
.event-card-body h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.event-card-body p { font-size: 0.8rem; color: var(--mid-text); margin-bottom: 12px; }
.event-meta { display: flex; gap: 14px; font-size: 0.75rem; color: var(--mid-text); }

/* ===== NEWS PAGE ===== */
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; padding: 40px 0; }
.news-main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.25s; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card-img { height: 160px; background: var(--light-gray); overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 14px; }
.news-tag { display: inline-block; background: var(--accent); color: var(--dark-text); font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; margin-bottom: 8px; }
.news-card-body h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.news-meta { font-size: 0.72rem; color: var(--mid-text); }

.news-sidebar h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.news-sidebar-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.news-sidebar-item:last-child { border-bottom: none; }
.news-sidebar-img { width: 60px; height: 60px; background: var(--light-gray); border-radius: var(--radius); flex-shrink: 0; overflow: hidden; }
.news-sidebar-img img { width: 100%; height: 100%; object-fit: cover; }
.news-sidebar-info h5 { font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.news-sidebar-info span { font-size: 0.72rem; color: var(--mid-text); }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; padding: 60px 0; }
.contact-info h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; color: var(--primary); }
.contact-info p { color: var(--mid-text); margin-bottom: 24px; }
.contact-detail { display: flex; gap: 12px; margin-bottom: 16px; }
.contact-detail-icon { width: 40px; height: 40px; background: #EFF6FF; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.contact-detail-text h5 { font-weight: 600; margin-bottom: 2px; }
.contact-detail-text p { font-size: 0.85rem; color: var(--mid-text); }

.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== LOGIN / REGISTER ===== */
.auth-page { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; background: var(--light-gray); padding: 40px 20px; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 40px; width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo img { height: 80px; }

/* Used on <select> elements inside dark/colored cards (e.g. event registration sidebar).
   The closed dropdown can be styled white to match the dark background, but the native
   OS option list always renders on a light background — so options need dark text or
   they become invisible (white-on-white) when the dropdown is opened. */
.dark-select { color: white; }
.dark-select option { color: #1a1a1a; background: #ffffff; }
.auth-card h2 { text-align: center; font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.auth-card p { text-align: center; font-size: 0.85rem; color: var(--mid-text); margin-bottom: 24px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--mid-text); font-size: 0.82rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 18px; font-size: 0.85rem; color: var(--mid-text); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ===== DASHBOARD ===== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: calc(100vh - 130px);
  position: relative;
}
.dash-sidebar {
  background: var(--primary);
  padding: 24px 0;
  min-height: 100%;
}
.dash-profile { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.15); margin-bottom: 16px; text-align: center; }
.dash-profile img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); object-fit: cover; margin-bottom: 8px; }
.dash-profile h4 { color: white; font-size: 0.9rem; font-weight: 700; }
.dash-profile span { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: rgba(255,255,255,0.8); font-size: 0.85rem; transition: all 0.2s; text-decoration: none; }
.dash-nav a:hover, .dash-nav a.active { background: rgba(255,255,255,0.15); color: white; border-left: 3px solid var(--accent); }
.dash-content { padding: 28px; background: var(--light-gray); min-height: 100%; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.dash-stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 20px; border-left: 4px solid var(--primary); box-shadow: var(--shadow-sm); }
.dash-stat-card h3 { font-size: 1.8rem; font-weight: 800; color: var(--primary); margin: 0 0 4px; }
.dash-stat-card p { font-size: 0.82rem; color: var(--mid-text); margin: 0; }
.dash-panel { display: block; }

/* ── Mobile top bar (hidden on desktop) ── */
.dash-mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 2px solid var(--primary);
  padding: 0 14px;
  height: 50px;
  position: sticky;
  top: 0;
  z-index: 1100;   /* above header z-index 1000 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.dash-mobile-menu-btn {
  background: none; border: none;
  font-size: 1.4rem; color: var(--primary);
  cursor: pointer; padding: 6px 8px; line-height: 1;
  border-radius: 6px;
}
.dash-mobile-menu-btn:active { background: var(--light-bg); }

/* ── Mobile bottom nav (hidden on desktop) ── */
.dash-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 2px solid var(--border);
  z-index: 1050;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.dash-mob-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; padding: 8px 4px; min-height: 54px;
  color: var(--mid-text); font-size: 1.1rem;
  text-decoration: none; background: none; border: none;
  cursor: pointer; transition: color 0.15s;
}
.dash-mob-btn span { font-size: 0.6rem; font-weight: 600; white-space: nowrap; }
.dash-mob-btn.active { color: var(--primary); }
.dash-mob-btn:active { background: var(--light-bg); }

/* ── Sidebar overlay (mobile) ── */
.dash-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1090;
}

/* ══════════════════════════
   MOBILE  ≤ 768px
══════════════════════════ */
@media (max-width: 768px) {

  /* Hide the main header on dashboard so mobile topbar takes over */
  body[data-page="dashboard"] .top-header { display: none; }
  body[data-page="dashboard"] .main-nav   { display: none; }

  /* Show mobile components */
  .dash-mobile-topbar     { display: flex; }
  .dash-mobile-bottom-nav { display: flex; }

  /* Layout: single column, sidebar hidden off-canvas */
  .dashboard-layout { grid-template-columns: 1fr; }

  /* Sidebar: off-canvas slide-in — z-index MUST be above everything */
  .dash-sidebar {
    position: fixed !important;
    top: 0 !important; left: 0 !important; bottom: 0 !important;
    width: 75vw; max-width: 280px;
    z-index: 1200 !important;  /* above all headers, overlays */
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--primary) !important;
    padding: 0 0 24px !important;
  }
  .dash-sidebar.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 6px 0 40px rgba(0,0,0,0.4) !important;
  }

  /* Content */
  .dash-content { padding: 14px 12px 80px; }

  /* Stats */
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
  .dash-stat-card { padding: 14px 10px; }
  .dash-stat-card h3 { font-size: 1.3rem; }

  /* Panel headings */
  .dash-panel h2 { font-size: 1.05rem; margin-bottom: 14px; }

  /* Collapse all form-rows in dashboard to single column */
  .dash-panel .form-row,
  .dash-panel [style*="grid-template-columns: 1fr 1fr"],
  .dash-panel [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .dash-panel .form-group { margin-bottom: 10px; }

  /* Prevent iOS zoom on inputs */
  .dash-panel input,
  .dash-panel select,
  .dash-panel textarea { font-size: 16px !important; }

  /* Cards */
  .dash-panel .card { padding: 14px; border-radius: 10px; }

  /* Logo/cover upload row */
  .dash-panel [style*="align-items:center"] { flex-wrap: wrap; gap: 8px; }

  /* Services rows */
  #myServicesList > div { flex-wrap: wrap; }

  /* Gallery */
  #myGalleryGrid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important; gap: 6px !important; }

  /* Inquiry table */
  #inquiries .card { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0; }
  #inquiries table { min-width: 520px; }
  #inquiries th, #inquiries td { padding: 9px 10px; font-size: 0.78rem; white-space: nowrap; }

  /* Overview quick actions */
  #overview [style*="gap:10px"],
  #overview [style*="gap: 10px"] { flex-wrap: wrap; gap: 8px !important; }

  /* Settings */
  #settings .card { padding: 14px; }

  /* Buttons inside dashboard */
  .dash-panel .btn { font-size: 0.82rem; }
  .dash-panel [style*="display:flex"][style*="gap"] { flex-wrap: wrap !important; }
}

@media (max-width: 480px) {
  .dash-content { padding: 10px 10px 80px; }
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 6px; }
  .dash-stat-card h3 { font-size: 1.1rem; }
  .dash-stat-card { padding: 10px; }
  .dash-panel h2 { font-size: 0.95rem; }
  .dash-panel .card { padding: 10px; }
  #inquiries table { min-width: 440px; }
  .dash-sidebar { width: 82vw; }
}


/* ===== PRICING TABLE ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 0; }
.pricing-card { border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: center; transition: all 0.25s; }
.pricing-card.featured { border-color: var(--primary); background: var(--primary); color: white; transform: scale(1.03); }
.pricing-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin: 16px 0; }
.pricing-card.featured .pricing-price { color: var(--accent); }
.pricing-card ul { text-align: left; margin-bottom: 24px; }
.pricing-card li { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.pricing-card.featured li { border-color: rgba(255,255,255,0.15); }

/* ===== BUSINESS PROFILE ===== */
.profile-cover { height: 220px; background: linear-gradient(135deg, var(--primary), var(--secondary)); position: relative; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 20px 0; }
.profile-header-inner { display: flex; align-items: flex-end; gap: 20px; }
.profile-logo { width: 90px; height: 90px; border-radius: var(--radius-lg); border: 3px solid white; background: white; box-shadow: var(--shadow-md); overflow: hidden; margin-top: -45px; flex-shrink: 0; }
.profile-logo img { width: 100%; height: 100%; object-fit: cover; }
.profile-info h1 { font-size: 1.4rem; font-weight: 800; }
.profile-info .cats { display: flex; gap: 8px; margin-top: 4px; }
.profile-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding: 28px 0; }

/* ===== 404 PAGE ===== */
.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-size: 8rem; font-weight: 900; color: var(--primary); opacity: 0.15; line-height: 1; }
.error-page h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; margin-top: -30px; }
.error-page p { color: var(--mid-text); margin-bottom: 28px; }

/* ===== NEWSLETTER ===== */
.newsletter-section { background: var(--accent); padding: 40px 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.newsletter-text h3 { font-size: 1.3rem; font-weight: 700; color: var(--dark-text); }
.newsletter-text p { color: rgba(15,23,42,0.7); font-size: 0.88rem; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { padding: 12px 16px; border-radius: var(--radius); border: none; font-size: 0.9rem; width: 280px; outline: none; }
.newsletter-form button { background: var(--primary); color: white; border: none; padding: 12px 24px; border-radius: var(--radius); font-weight: 700; cursor: pointer; }

/* ===== MAP PLACEHOLDER ===== */
.map-placeholder { height: 300px; background: linear-gradient(135deg, #e2e8f0, #cbd5e1); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--mid-text); font-size: 1rem; }
.map-placeholder svg { font-size: 3rem; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.gallery-item { height: 120px; border-radius: var(--radius); overflow: hidden; background: var(--light-gray); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.08); }

/* ===== UTILITIES ===== */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.font-bold { font-weight: 700; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Pagination */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 32px; }
.page-btn { width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.85rem; transition: all 0.2s; }
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.badge-primary { background: #EFF6FF; color: var(--primary); }
.badge-success { background: #F0FDF4; color: var(--success); }
.badge-accent { background: #FFFBEB; color: #92400E; }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab { padding: 10px 20px; font-size: 0.88rem; font-weight: 600; cursor: pointer; color: var(--mid-text); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Card */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }

/* Alert */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.88rem; }
.alert-info { background: #EFF6FF; color: var(--primary); border: 1px solid #BFDBFE; }
.alert-success { background: #F0FDF4; color: var(--success); border: 1px solid #BBF7D0; }

/* Input group */
.input-group { position: relative; }
.input-group input { padding-left: 38px; }
.input-group .input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--mid-text); font-size: 0.9rem; }

/* Section divider */
.section-line { height: 3px; width: 48px; background: var(--accent); margin-bottom: 16px; border-radius: 2px; }

/* Rating */
.rating-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.82rem; }
.rating-fill { height: 8px; background: var(--accent); border-radius: 4px; }
.rating-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }

/* Review card */
.review-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.reviewer { display: flex; align-items: center; gap: 10px; }
.reviewer-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.88rem; }
.reviewer-name { font-weight: 600; font-size: 0.88rem; }
.reviewer-date { font-size: 0.75rem; color: var(--mid-text); }
.review-text { font-size: 0.85rem; color: var(--mid-text); line-height: 1.6; }


/* ══════════════════════════════════════════════════════════════
   MEMBER DASHBOARD — FULL RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* Mobile sidebar slide-in */
@media (max-width: 768px) {
  .dash-sidebar {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    width: 260px; z-index: 500;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .dash-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.28);
  }

  /* Content area */
  .dash-content { padding: 12px; padding-bottom: 80px; }

  /* Stats row */
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
  .dash-stat-card { padding: 14px 12px; }
  .dash-stat-card h3 { font-size: 1.3rem; }

  /* Panel headings */
  .dash-panel h2 { font-size: 1.1rem; margin-bottom: 14px; }
  .dash-panel h3 { font-size: 0.95rem; }
  .dash-panel h4 { font-size: 0.88rem; }

  /* All form-rows collapse inside dashboard */
  .dash-panel .form-row { grid-template-columns: 1fr !important; gap: 10px; }
  .dash-panel .form-group { margin-bottom: 10px; }
  .dash-panel label { font-size: 0.82rem; }
  .dash-panel .form-control,
  .dash-panel input[type="text"],
  .dash-panel input[type="tel"],
  .dash-panel input[type="url"],
  .dash-panel input[type="email"],
  .dash-panel select,
  .dash-panel textarea {
    font-size: 16px !important; /* prevent iOS zoom */
    padding: 9px 12px;
  }

  /* Business form logo/cover upload row */
  .dash-panel [style*="display:flex"][style*="52px"],
  .dash-panel [style*="display:flex"][style*="80px"] { flex-wrap: wrap; gap: 8px; }

  /* Cards inside panels */
  .dash-panel .card { padding: 14px; border-radius: 10px; }
  .dash-panel .card + .card { margin-top: 12px; }

  /* Buttons */
  .dash-panel .btn { font-size: 0.8rem; }
  .dash-panel [style*="display:flex"][style*="gap:10px"] { flex-wrap: wrap; gap: 8px !important; }

  /* Services list - wrap on small screens */
  #myServicesList > div { flex-wrap: wrap; }
  #myServicesList .svc-name { min-width: 120px; }

  /* Gallery grid */
  #myGalleryGrid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important; }

  /* Inquiry table — horizontal scroll */
  #inquiries .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #inquiries table { min-width: 500px; }
  #inquiries th, #inquiries td { padding: 8px 10px; font-size: 0.78rem; white-space: nowrap; }

  /* Overview quick action buttons */
  #overview [style*="display:flex"][style*="gap"] { flex-wrap: wrap; gap: 8px !important; }

  /* Settings panel */
  #settings .card { padding: 14px; }

  /* Analytics */
  #analytics .card { padding: 14px; }
  #analyticsBody [style*="grid"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .dash-content { padding: 10px; padding-bottom: 80px; }
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 6px; }
  .dash-stat-card h3 { font-size: 1.1rem; }
  .dash-stat-card { padding: 12px 10px; }
  .dash-panel h2 { font-size: 1rem; }
  .dash-panel .card { padding: 12px; }
  #myGalleryGrid { grid-template-columns: repeat(3, 1fr) !important; }
  #inquiries table { min-width: 420px; }
}
