@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --brand-primary: #1E3A8A;
  --brand-action: #2563EB;
  --brand-accent: #D97706;
  --border-light: #E2E8F0;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Base Overrides */
body.hai-public {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body.hai-public h1, 
body.hai-public h2, 
body.hai-public h3, 
body.hai-public h4, 
body.hai-public h5, 
body.hai-public h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  margin-top: 0;
}

/* Layout Utilities */
.container-v5 {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Header & Nav */
.header-main-v5 {
  position: sticky;
  top: 0;
  z-index: 1050;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.nav-container-v5 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.logo-v5 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-v5 span {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-action) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links-v5 {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links-v5 a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links-v5 a:hover,
.nav-links-v5 a.active {
  color: var(--brand-action);
}

.nav-actions-v5 {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-ghost-v5 {
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-ghost-v5:hover {
  color: var(--brand-action);
}

.btn-solid-v5 {
  background-color: var(--brand-action);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
}

.btn-solid-v5:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

/* Hamburger mobile button */
.menu-toggle-v5 {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.menu-toggle-v5 span {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-primary);
  border-radius: 99px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Nav Overlay Drawer */
.mobile-nav-v5 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-surface);
  z-index: 1045;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 100px 32px 32px;
  box-sizing: border-box;
}

.mobile-nav-v5.active {
  transform: translateX(0);
  box-shadow: var(--shadow-lg);
}

.mobile-links-v5 {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-links-v5 a {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.mobile-links-v5 a:hover,
.mobile-links-v5 a.active {
  color: var(--brand-action);
}

.mobile-actions-v5 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-actions-v5 .btn-solid-v5 {
  justify-content: center;
  padding: 14px 0;
}

.mobile-actions-v5 .btn-ghost-v5 {
  text-align: center;
  padding: 12px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero-v5 {
  background-color: var(--bg-page);
  padding: 120px 24px 96px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.hero-v5::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-title-v5 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle-v5 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-search-wrapper-v5 {
  max-width: 680px;
  margin: 0 auto 28px;
  position: relative;
}

.hero-search-input-v5 {
  width: 100%;
  padding: 20px 160px 20px 28px;
  font-family: var(--font-body);
  font-size: 17px;
  border: 1px solid var(--border-light);
  border-radius: 99px;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-md);
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-primary);
  box-sizing: border-box;
}

.hero-search-input-v5:focus {
  border-color: var(--brand-action);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12), var(--shadow-lg);
}

.hero-search-btn-v5 {
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: 8px;
  padding: 0 28px;
  background-color: var(--brand-action);
  color: #ffffff;
  border: none;
  border-radius: 99px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.hero-search-btn-v5:hover {
  background-color: #1d4ed8;
}

.hero-search-btn-v5:active {
  transform: scale(0.98);
}

.hero-trust-v5 {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 12px;
}

/* Stats Section */
.stats-v5 {
  padding: 72px 24px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.stats-grid-v5 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item-v5 {
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
}

.stat-item-v5.reveal-v5 {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-num-v5 {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.stat-label-v5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* How It Works Section */
.how-it-works-v5 {
  padding: 112px 24px;
  background-color: var(--bg-page);
}

.section-head-v5 {
  text-align: center;
  margin-bottom: 72px;
}

.section-tag-v5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-action);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-title-v5 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--text-primary);
  font-weight: 800;
  margin: 0;
}

.steps-grid-v5 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.step-card-v5 {
  text-align: center;
  position: relative;
}

.step-badge-v5 {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--brand-action);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  font-family: var(--font-heading);
}

.step-icon-v5 {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--brand-action);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon-v5 svg {
  width: 100%;
  height: 100%;
}

.step-card-v5 h3 {
  font-size: 19px;
  margin-bottom: 12px;
  font-weight: 700;
}

.step-card-v5 p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Powerful Features (Bento Grid) */
.features-v5 {
  padding: 112px 24px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.bento-grid-v5 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-card-v5 {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.bento-card-v5:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bento-card-v5.large-v5 {
  grid-column: span 2;
}

.feature-badge-v5 {
  display: inline-flex;
  padding: 6px 12px;
  background-color: #eff6ff;
  color: var(--brand-action);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 24px;
  width: fit-content;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bento-card-v5 h3 {
  font-size: 21px;
  margin-bottom: 12px;
  font-weight: 700;
}

.bento-card-v5 p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Use Cases Section */
.usecases-v5 {
  padding: 112px 24px;
  background-color: var(--bg-page);
}

.usecases-list-v5 {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.usecase-card-v5 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  gap: 40px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.usecase-card-v5:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.usecase-card-v5.bg-blue-v5 {
  background-color: #F0F6FE;
  border-color: #DDE8F9;
}

.usecase-card-v5.bg-amber-v5 {
  background-color: #FFFDF5;
  border-color: #FEF3D6;
}

.usecase-card-v5.bg-emerald-v5 {
  background-color: #F4FDF9;
  border-color: #D1F7E7;
}

.usecase-icon-wrap-v5 {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.usecase-icon-wrap-v5 svg {
  width: 32px;
  height: 32px;
  color: var(--text-primary);
}

.usecase-content-v5 {
  flex-grow: 1;
}

.usecase-content-v5 h3 {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 700;
}

.usecase-content-v5 p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.usecase-link-v5 {
  color: var(--brand-action);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.usecase-link-v5:hover {
  color: #1d4ed8;
  gap: 10px;
}

/* Testimonials Section */
.testimonials-v5 {
  padding: 112px 24px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.testimonials-grid-v5 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card-v5 {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.testimonial-quote-bg {
  position: absolute;
  right: 28px;
  top: 12px;
  font-size: 110px;
  font-family: var(--font-heading);
  color: var(--brand-action);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
  font-weight: 800;
}

.testimonial-stars-v5 {
  color: #F59E0B;
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.testimonial-text-v5 {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  flex-grow: 1;
}

.testimonial-author-v5 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar-v5 {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-heading);
}

.testimonial-name-v5 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.testimonial-role-v5 {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Final CTA */
.cta-sec-v5 {
  padding: 104px 24px;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  color: var(--text-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.cta-sec-v5::before {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.cta-title-v5 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 0 16px 0;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.cta-subtitle-v5 {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cta-actions-v5 {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-cta-primary-v5 {
  background-color: var(--brand-action);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
}

.btn-cta-primary-v5:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-cta-secondary-v5 {
  background: var(--bg-surface);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 13px 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.btn-cta-secondary-v5:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

/* Shared Inner Page Hero Styling */
.inner-hero-v5 {
  background-color: var(--bg-page);
  padding: 64px 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.inner-hero-v5::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.inner-hero-v5 h1, .inner-hero-v5 h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.inner-hero-v5 p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0;
  line-height: 1.6;
}


/* Footer Section */
.footer-sec-v5 {
  background-color: var(--text-primary);
  color: #94a3b8;
  padding: 88px 24px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid-v5 {
  display: grid;
  grid-template-columns: 2.2fr repeat(4, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 64px;
}

.footer-brand-v5 h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 16px 0;
  font-family: var(--font-heading);
}

.footer-brand-v5 p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.footer-col-v5 h4 {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 24px 0;
  font-family: var(--font-heading);
}

.footer-links-v5 {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links-v5 a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links-v5 a:hover {
  color: #ffffff;
}

.footer-bottom-v5 {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.uae-badge-v5 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 99px;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .footer-grid-v5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 991px) {
  .nav-links-v5, 
  .nav-actions-v5 {
    display: none;
  }
  
  .menu-toggle-v5 {
    display: flex;
  }
  
  .stats-grid-v5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .steps-grid-v5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  .testimonials-grid-v5 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .bento-grid-v5 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .bento-card-v5.large-v5 {
    grid-column: span 1;
  }
  
  .usecase-card-v5 {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
  }
  
  .cta-actions-v5 {
    flex-direction: column;
    gap: 14px;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .btn-cta-primary-v5, 
  .btn-cta-secondary-v5 {
    width: 100%;
    justify-content: center;
  }
  
  .footer-bottom-v5 {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-grid-v5 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .steps-grid-v5 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Premium Directory Page styling */
.premium-search-card-v5 {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.premium-search-card-v5 .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  padding: 12px 16px;
  font-size: 15px;
  transition: all 0.25s ease;
}

.premium-search-card-v5 .form-control:focus {
  border-color: var(--brand-action);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  outline: none;
}

.premium-sidebar-widget-v5 {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.premium-sidebar-widget-v5 h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.premium-table-container-v5 {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.premium-table-v5 {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.premium-table-v5 th {
  background-color: #f8fafc;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
}

.premium-table-v5 td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 15px;
  vertical-align: middle;
}

.premium-table-v5 tbody tr {
  transition: background-color 0.2s ease;
}

.premium-table-v5 tbody tr:hover {
  background-color: #f8fafc;
}

.premium-table-v5 tr:last-child td {
  border-bottom: none;
}

.premium-table-v5 a {
  font-weight: 600;
  color: var(--brand-action);
  text-decoration: none;
  transition: color 0.2s ease;
}

.premium-table-v5 a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ==========================================================================
   MOBILE & RESPONSIVE UX OPTIMIZATIONS
   ========================================================================== */

/* 1. Homepage Hero Search & Top Spacing Fixes */
@media (max-width: 576px) {
  .hero-v5 {
    padding: 60px 16px 48px !important;
  }
  
  .hero-title-v5 {
    margin-bottom: 16px !important;
  }
  
  .hero-subtitle-v5 {
    margin-bottom: 24px !important;
  }

  .hero-search-wrapper-v5 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }

  .hero-search-input-v5 {
    padding: 16px 20px !important;
    border-radius: 12px !important;
    text-align: center;
    box-shadow: var(--shadow-sm) !important;
  }

  .hero-search-btn-v5 {
    position: static !important;
    width: 100% !important;
    justify-content: center;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    height: auto !important;
  }
}

/* 2. Inner Page Hero Spacing Fix */
@media (max-width: 768px) {
  .inner-hero-v5 {
    padding: 36px 16px !important;
  }
}

/* 3. Table to Card responsive transformations for HS Codes, Ports, and Carriers */
@media (max-width: 768px) {
  .premium-table-container-v5 {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .premium-table-v5, 
  .table-responsive table {
    display: block !important;
    width: 100% !important;
    border: none !important;
  }

  .premium-table-v5 thead, 
  .table-responsive table thead {
    display: none !important;
  }

  .premium-table-v5 tbody, 
  .table-responsive table tbody {
    display: block !important;
    width: 100% !important;
  }

  .premium-table-v5 tr, 
  .table-responsive table tr {
    display: block !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 14px !important;
    margin-bottom: 20px !important;
    padding: 20px !important;
    box-shadow: var(--shadow-sm) !important;
  }

  .premium-table-v5 td, 
  .table-responsive table td {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    font-size: 14px !important;
    text-align: right !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .premium-table-v5 td:last-child, 
  .table-responsive table td:last-child {
    border-bottom: none !important;
  }

  .premium-table-v5 td > *, 
  .table-responsive table td > * {
    max-width: 60% !important;
    text-align: right !important;
    margin: 0 !important;
  }

  /* Override for Description & Details cells in mobile tables to prevent squishing */
  .premium-table-v5 td[data-label="Description"], 
  .table-responsive table td[data-label="Description"],
  .premium-table-v5 td[data-label="الوصف"], 
  .table-responsive table td[data-label="الوصف"],
  .premium-table-v5 td[data-label="Details"], 
  .table-responsive table td[data-label="Details"],
  .premium-table-v5 td[data-label="التفاصيل"], 
  .table-responsive table td[data-label="التفاصيل"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .premium-table-v5 td[data-label="Description"]::before, 
  .table-responsive table td[data-label="Description"]::before,
  .premium-table-v5 td[data-label="الوصف"]::before, 
  .table-responsive table td[data-label="الوصف"]::before,
  .premium-table-v5 td[data-label="Details"]::before, 
  .table-responsive table td[data-label="Details"]::before,
  .premium-table-v5 td[data-label="التفاصيل"]::before, 
  .table-responsive table td[data-label="التفاصيل"]::before {
    margin-bottom: 8px !important;
    text-align: left !important;
    margin-right: auto !important;
  }

  .premium-table-v5 td[data-label="Description"] > *, 
  .table-responsive table td[data-label="Description"] > *,
  .premium-table-v5 td[data-label="الوصف"] > *, 
  .table-responsive table td[data-label="الوصف"] > *,
  .premium-table-v5 td[data-label="Details"] > *, 
  .table-responsive table td[data-label="Details"] > *,
  .premium-table-v5 td[data-label="التفاصيل"] > *, 
  .table-responsive table td[data-label="التفاصيل"] > * {
    max-width: 100% !important;
    text-align: left !important;
    width: 100% !important;
  }

  /* Force search input helper text on mobile */
  form small.text-muted {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 8px !important;
  }

  .premium-table-v5 td div, 
  .table-responsive table td div {
    text-align: right !important;
  }

  .premium-table-v5 td::before, 
  .table-responsive table td::before {
    content: attr(data-label) !important;
    font-weight: 700 !important;
    color: var(--text-secondary) !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 0.05em !important;
    text-align: left !important;
    margin-right: auto !important;
    flex-shrink: 0 !important;
  }
}

/* 4. Blog Details Mobile Optimization */
@media (max-width: 768px) {
  .article-content {
    font-size: 0.98rem !important;
    line-height: 1.7 !important;
  }
  
  .article-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin: 12px 0 !important;
  }

  .article-content pre, 
  .article-content code {
    word-break: break-all !important;
    white-space: pre-wrap !important;
    font-size: 0.88rem !important;
  }

  .sptb {
    padding: 30px 0 !important;
  }
}

/* 5. Custom Premium Tab Styles for Detail Pages */
.nav-pills {
  background-color: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
}

.nav-pills .nav-link {
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  font-family: var(--font-heading);
}

.nav-pills .nav-link.active {
  background-color: var(--brand-action) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.nav-pills .nav-link:not(.active):hover {
  color: var(--brand-action);
  background-color: rgba(37, 99, 235, 0.05);
}

/* 6. Suggested HS Code Chips in Hero Section */
.hero-suggestions-v5 {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-suggestions-v5 .suggestion-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-right: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-suggestions-v5 .suggestion-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 99px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.hero-suggestions-v5 .suggestion-badge .suggestion-code {
  color: var(--brand-action);
  font-weight: 700;
  margin-right: 4px;
}

.hero-suggestions-v5 .suggestion-badge:hover {
  background-color: var(--brand-action);
  color: #ffffff;
  border-color: var(--brand-action);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}

.hero-suggestions-v5 .suggestion-badge:hover .suggestion-code {
  color: #ffffff;
}

