.view-toggle {
  margin: 32px 0 16px;
  padding: 20px 26px;
  border-radius: 36px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: #e2e8f0;
}

.view-toggle__btn {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5f5;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.view-toggle__btn.active {
  background: linear-gradient(120deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  box-shadow: 0 18px 35px rgba(14, 165, 233, 0.4);
  transform: translateY(-2px);
}

.view-toggle__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
  align-items: center;
}

.view-toggle__filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.view-toggle__filters input[type=\"range\"] {
  accent-color: #38bdf8;
}

.view-toggle__filters select {
  background: transparent;
  border: none;
  color: white;
  font-weight: 600;
  padding: 0;
}

.toggle-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}

.toggle-chip input[type=\"checkbox\"] {
  width: 18px;
  height: 18px;
  accent-color: #38bdf8;
}


@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes pulseSkeleton {
  0% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
  100% {
    opacity: 0.45;
  }
}

@keyframes favoritePop {
  0% {
    transform: scale(0.9);
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* --- Search Section: The Ink Pool --- */
.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  z-index: 20;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-grid.skeleton-loading {
  pointer-events: none;
  opacity: 0.8;
}

.card-skeleton {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
  animation: pulseSkeleton 1.8s ease-in-out infinite;
}

.card-skeleton-thumb {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  position: relative;
  overflow: hidden;
}

.card-skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-skeleton-line {
  height: 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  animation: pulseSkeleton 1.8s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.card-skeleton-line.short {
  width: 60%;
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.25) 45%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

.page-header {
  max-width: 1600px;
  margin: 0 auto;
  padding: 90px 20px 10px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 16px;
  direction: rtl;
}

@media (max-width: 768px) {
  .page-header {
    padding-top: 60px;
    gap: 8px;
  }
}

.page-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
}

.page-header p {
  margin: 6px 0 0;
  opacity: 0.85;
}

.section-title {
  margin: 0 0 18px;
  color: white;
  font-size: 2rem;
  font-weight: 800;
}

/* CTA System */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 22px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-btn svg {
  width: 20px;
  height: 20px;
}

.cta-btn.primary {
  background: linear-gradient(135deg, var(--deep-blue), #1f5fbf);
  color: white;
  box-shadow: 0 8px 20px rgba(31, 95, 191, 0.25);
}

.cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 95, 191, 0.35);
}

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.ink-search-bar {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  /* Glass effect */
  -webkit-backdrop-filter: blur(8px);
  padding: 15px 25px;
  box-sizing: border-box;
  /* Amorphous shape - like a river stone */
  border-radius: 50px 30px 50px 40px / 50px 40px 60px 30px;
  box-shadow:
    0 10px 25px rgba(44, 62, 80, 0.1),
    /* Soft shadow */
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  /* Subtle inner outline */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Jelly animation */
}

.ink-search-bar:hover,
.ink-search-bar:focus-within {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(44, 62, 80, 0.15);
  border-radius: 40px 50px 30px 50px;
  /* Shape changes slightly - jelly effect */
}

.search-input {
  border: none;
  background: transparent;
  flex-grow: 1;
  font-size: 1.1rem;
  color: var(--ink-black);
  outline: none;
  padding-right: 15px;
  font-family: inherit;
}

.search-input::placeholder {
  color: #64748b;
}

.search-icon {
  width: 24px;
  height: 24px;
  color: var(--deep-blue);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ink-search-bar:hover .search-icon {
  transform: rotate(-15deg) scale(1.2);
  /* Icon jumps cutely */
}

/* Filter Bubbles */
.filter-bubbles {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  padding: 0 10px;
}

.filter-bubble {
  font-size: 0.9rem;
  padding: 8px 22px;
  background: white;
  border: 1px solid #e1e8ed;
  border-radius: 28px;
  cursor: pointer;
  color: var(--deep-blue);
  transition: 0.3s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.filter-bubble:hover {
  background: var(--water-blue);
  color: white;
  border-color: var(--water-blue);
  transform: translateY(-2px);
}

.filter-bubble svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.filter-bubble.active {
  background: var(--deep-blue);
  color: white;
  border-color: var(--deep-blue);
}

.filter-bubbles::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 30px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.filter-bubbles.scrollable::after {
  opacity: 1;
}

/* --- Stories Stream "Color Drops" --- */
.stories-stream {
  width: 100%;
  max-width: 100vw;
  overflow-x: auto;
  /* Horizontal scroll */
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 20px 30px;
  margin-bottom: 24px;
  min-height: 150px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: relative;
}

.stories-stream::-webkit-scrollbar {
  display: none;
}

.stories-bar {
  margin: 24px auto 12px;
  padding: 28px 32px 18px;
  border-radius: 36px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
}

.stories-bar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.stories-bar__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin: 0;
}

.stories-bar__header h2 {
  margin: 6px 0 0;
  font-size: 2.1rem;
  color: #f8fafc;
}

.stories-bar__header small {
  color: rgba(248, 250, 252, 0.7);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stories-bar__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 12px;
}

.stories-bar__tabs::-webkit-scrollbar {
  display: none;
}

.story-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.55);
  color: rgba(248, 250, 252, 0.8);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.story-tab__icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.08);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

.story-tab.active {
  background: linear-gradient(120deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.35);
}

.story-tab.active .story-tab__icon {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.story-tab__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.story-tab__label {
  font-weight: 700;
  font-size: 0.95rem;
}

.story-tab__desc {
  font-size: 0.8rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .stories-bar {
    padding: 20px;
  }

  .stories-bar__tabs {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }

  .story-tab {
    min-width: 220px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.35);
    scroll-snap-align: start;
  }

  .story-tab__icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    font-size: 1.1rem;
  }

  .story-tab__meta {
    width: 100%;
  }

  .story-tab__label {
    font-size: 1rem;
    letter-spacing: 0.02em;
  }

  .story-tab__desc {
    font-size: 0.78rem;
  }

  .stories-bar__header h2 {
    font-size: 1.6rem;
  }
}

.stories-stream.empty {
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 28px;
  padding: 30px;
}

.stories-placeholder {
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.story-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 12px;
  cursor: pointer;
  vertical-align: top;
  opacity: 0;
  animation: popIn 0.6s cubic-bezier(0.2, 1.2, 0.2, 1) forwards;
}

.story-item:nth-child(1) {
  animation-delay: 2.3s;
}

.story-item:nth-child(2) {
  animation-delay: 2.4s;
}

.story-item:nth-child(3) {
  animation-delay: 2.5s;
}

.story-item:nth-child(4) {
  animation-delay: 2.6s;
}

.story-item:nth-child(5) {
  animation-delay: 2.7s;
}

.story-blob {
  width: 70px;
  height: 70px;
  padding: 3px;
  /* Frame spacing */
  /* Gradient frame matching images */
  background: linear-gradient(135deg, var(--deep-blue), var(--water-blue));

  /* Amorphous drop shape */
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;

  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.story-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: white;
  /* Inherit shape for internal image */
  border-radius: inherit;
  border: 2px solid white;
  /* White spacing */
  box-sizing: border-box;
}

.story-item:hover .story-blob {
  transform: scale(1.1) rotate(5deg);
  /* Grow and rotate slightly */
  border-radius: 50%;
  /* Becomes more circular on hover */
}

.story-name {
  margin-top: 8px;
  font-size: 0.8rem;
  color: white;
  /* Changed to white for visibility on dark overlay */
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* --- News Stream Sidebar --- */
.news-stream {
  position: relative;
  width: 360px;
  padding: 32px;
  padding-right: 40px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-header {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  margin-bottom: 20px;
  align-self: flex-start;
}

.news-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  opacity: 0.9;
  z-index: -1;
  /* Use one of the existing blobs or gradients */
  background: radial-gradient(circle at center, #2563eb 0%, #1e40af 100%);
  filter: blur(8px);
  transform: scale(1.1);
}

.news-title {
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin: 0;
}

/* The Wavy Spine Line */
.news-timeline {
  position: absolute;
  top: 80px;
  right: -10px;
  /* Align to the right side of the item list */
  bottom: 0;
  width: 2px;
  background: transparent;
  pointer-events: none;
}

.news-timeline-svg {
  position: absolute;
  top: 0;
  right: -15px;
  /* Adjust to center wave on the visual axis */
  width: 40px;
  height: 100%;
  overflow: visible;
}

.news-timeline-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 2;
  stroke-dasharray: 8 8;
}

/* News Droplets */
.news-item {
  position: relative;
  margin-right: 20px;
  margin-bottom: 18px;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background 0.3s ease;
  cursor: default;
  opacity: 0;
  animation: fadeNews 0.8s ease forwards;
}

/* Stagger news items */
.news-item:nth-child(1) {
  animation-delay: 2.4s;
}

.news-item:nth-child(2) {
  animation-delay: 2.6s;
}

.news-item:nth-child(3) {
  animation-delay: 2.8s;
}

.news-item:nth-child(4) {
  animation-delay: 3.0s;
}

.news-item:hover {
  transform: translateX(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.85);
}

/* The Dot on the Line */
.news-dot {
  position: absolute;
  top: 24px;
  right: -26px;
  /* Align with the timeline svg */
  width: 10px;
  height: 10px;
  background: #1e40af;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
}

.news-item:hover .news-dot {
  background: #3b82f6;
  transform: scale(1.4);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2);
}

.news-date {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 500;
}

.news-content {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.5;
  font-weight: 400;
  white-space: pre-line;
}

/* --- Card Styling --- */
.card {
  position: relative;
  background: #0f172a;
  border-radius: 20px;
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.15);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  cursor: pointer;
  opacity: 0;
  animation: popIn 0.8s cubic-bezier(0.2, 1.2, 0.2, 1) forwards;
  width: 100%;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 18px -6px rgba(15, 23, 42, 0.25);
  z-index: 2;
}

.favorite-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(248, 250, 252, 0.2);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 250, 252, 0.7);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  z-index: 8;
}

.favorite-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: transparent;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.favorite-toggle:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(248, 250, 252, 0.5);
  color: #fda4af;
}

.favorite-toggle.active {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.6);
  background: rgba(244, 63, 94, 0.15);
}

.favorite-toggle.active svg {
  fill: currentColor;
}

/* Stagger delays for 12 cards */
.card:nth-child(1) {
  animation-delay: 2.2s;
}

.card:nth-child(2) {
  animation-delay: 2.3s;
}

.card:nth-child(3) {
  animation-delay: 2.4s;
}

.card:nth-child(4) {
  animation-delay: 2.5s;
}

.card:nth-child(5) {
  animation-delay: 2.6s;
}

.card:nth-child(6) {
  animation-delay: 2.7s;
}

.card:nth-child(7) {
  animation-delay: 2.8s;
}

.card:nth-child(8) {
  animation-delay: 2.9s;
}

.card:nth-child(9) {
  animation-delay: 3.0s;
}

.card:nth-child(10) {
  animation-delay: 3.1s;
}

.card:nth-child(11) {
  animation-delay: 3.2s;
}

.card:nth-child(12) {
  animation-delay: 3.3s;
}

/* Card Header */
.card-header {
  position: relative;
  height: 150px;
  background-color: #e0f2fe;
  overflow: hidden;
}

.header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  mix-blend-mode: normal;
  opacity: 0.95;
}

.card:hover .header-bg {
  transform: scale(1.15) rotate(2deg);
}

/* Decorative wavy lines in header */
.header-lines-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover .header-lines-overlay {
  opacity: 0.7;
}

.header-lines-overlay path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 2;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  transition: stroke-dashoffset 0.8s ease;
}

.card:hover .header-lines-overlay path {
  stroke-dashoffset: 0;
}

/* The liquid wave separator at bottom of header */
.header-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: auto;
  fill: #ffffff;
  display: block;
  z-index: 5;
}

/* Floating Logo */
.card-logo {
  position: absolute;
  top: 118px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #1f5fbf;
  border: 2px solid #f8fafc;
}

/* Card Body */
.card-body {
  padding: 32px 20px 24px;
  text-align: center;
  color: #f8fafc;
}

.card-title {
  font-size: 1.4rem;
  margin: 0;
  color: #f8fafc;
  font-weight: 800;
}

.card-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(248, 250, 252, 0.3);
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-info {
  font-size: 0.92rem;
  color: rgba(248, 250, 252, 0.9);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .card-header {
    height: 95px;
  }

  .card-logo {
    width: 56px;
    height: 56px;
    top: 85px;
  }

  .card-body {
    padding: 26px 16px 20px;
  }

  .card-title {
    font-size: 1.05rem;
  }

  .card-info {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .stories-stream {
    gap: 12px;
    padding: 16px 14px 20px;
    scroll-snap-type: x mandatory;
  }

  .story-item {
    margin: 0 6px;
    animation: none;
    opacity: 1;
    scroll-snap-align: center;
  }

  .story-blob {
    width: 72px;
    height: 72px;
  }

  .story-name {
    font-size: 0.75rem;
  }
}

/* --- Business Page Overlay --- */
.business-page {
  position: fixed;
  inset: 0;
  background: #f8fafc;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.business-page.active {
  transform: translateY(0);
}

/* Close/Back Button */
.close-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 210;
  background: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #1e293b;
}

.close-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Business Page Content */
.bp-header {
  height: 55vh;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: flex-end;
  padding-bottom: 40px;
}

.bp-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 10s ease;
}

.business-page.active .bp-bg {
  transform: scale(1.05);
}

.bp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.1) 100%);
  z-index: 1;
}

.bp-header-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  color: white;
}

.bp-category {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(30, 58, 138, 0.5);
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

.bp-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bp-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 40px 24px 120px; /* Extra bottom padding for mobile fab */
}

/* Grid Layout */
.bp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

/* Main Column */
.bp-main-col {
  min-width: 0;
}

.bp-desc {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 40px;
  font-weight: 400;
}

/* Menu Section Styled as Card */
.bp-menu-section {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
}

.bp-menu-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #0f172a;
}

.bp-menu-section pre {
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #475569;
  white-space: pre-wrap;
  margin: 0;
  background: #f8fafc;
  padding: 24px;
  border-radius: 12px;
}

/* Sidebar Column */
.bp-sidebar-col {
  position: sticky;
  top: 40px;
}

.bp-card-info {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bp-actions {
  display: flex;
  flex-direction: column;
}

.bp-whatsapp-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1.1rem;
}

.bp-hours-section h3,
.bp-map-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 12px;
}

.bp-hours-section h3 svg,
.bp-map-section h3 svg {
  color: #3b82f6;
}

.bp-hours-section p {
  background: #f1f5f9;
  padding: 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

.bp-map-container {
  border-radius: 16px;
  overflow: hidden;
  height: 200px;
  background: #e2e8f0;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .bp-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bp-sidebar-col {
    position: static;
    order: -1; /* Show critical info first on mobile? Optional */
  }
  
  /* Or keep sidebar below main content on mobile */
  .bp-sidebar-col {
    order: 0; 
  }

  .bp-header {
    height: 45vh;
    min-height: 300px;
  }
  
  .bp-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .bp-header {
    height: 40vh;
  }
  
  .bp-title {
    font-size: 2rem;
  }
  
  .bp-content {
    padding: 24px 20px 100px;
  }
  
  .bp-menu-section {
    padding: 20px;
  }
}

/* Hide original styles that are replaced */
.bp-card, .bp-header::after {
  display: contents; /* Effectively removes the wrapper visual but keeps content */
}


.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  padding: 8px 16px;
  border-radius: 8px;
}

/* --- Nav Dock --- */

/* --- Job Cards Design --- */
.jobs-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.job-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.15);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: #f8fafc;
}

.job-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.45);
}

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

.job-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.job-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.job-body {
  margin-bottom: 15px;
}

.job-desc {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

.job-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.job-meta span {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
}

.job-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 15px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.job-contact-btn {
  background: linear-gradient(120deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

.no-jobs {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

/* --- The Liquid Trigger Button --- */
.ink-trigger-btn {
  position: relative;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--deep-blue), #4a69bd);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morph 8s ease-in-out infinite;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 20px rgba(44, 62, 80, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.2);
}

/* CTA variant (for text links/buttons like "לכל העסקים בקרית שמונה") */
.ink-trigger-btn.ink-cta {
  width: auto;
  height: auto;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  animation: none;
}

.ink-trigger-btn.ink-cta::after {
  border-radius: 999px;
}

.ink-trigger-btn svg {
  width: 28px;
  height: 28px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.ink-trigger-btn:hover {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #34495e, #2980b9);
  box-shadow: 0 15px 30px rgba(44, 62, 80, 0.4);
}

.ink-trigger-btn.open {
  background: var(--ink-black);
  animation: none;
  border-radius: 50%;
}

.ink-trigger-btn.open svg {
  transform: rotate(135deg);
}

.ink-trigger-btn::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: inherit;
  border: 1px solid var(--water-blue);
  opacity: 0;
  z-index: -1;
  animation: ripple 2s infinite;
}

@keyframes morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }

  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}


/* --- Form & Inputs Design --- */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 120px;
}

.glass-form {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 40px 20px 40px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.9rem;
}

.ink-input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(148, 163, 184, 0.2);
  font-family: inherit;
  font-size: 1rem;
  color: #f8fafc;
  transition: all 0.3s ease;
  border-radius: 0;
}

.ink-input:focus {
  outline: none;
  border-bottom-color: #3b82f6;
  background: linear-gradient(to bottom, transparent 95%, rgba(59, 130, 246, 0.1) 100%);
}

.ink-input::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

select.ink-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232c3e50%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: left 0 center;
  background-size: 12px;
}

.btn-primary {
  width: 100%;
  padding: 15px;
  background: var(--deep-blue);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 20px rgba(44, 62, 80, 0.2);
  margin-top: 10px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(44, 62, 80, 0.3);
  background: linear-gradient(135deg, var(--deep-blue), #34495e);
}

/* --- Stories Demo Enhancements --- */
.story-item {
  position: relative;
}

.story-progress {
  width: 70px;
  height: 4px;
  border-radius: 999px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  position: relative;
}

.story-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.0), rgba(59, 130, 246, 1));
}

@keyframes storyProgress {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

.story-demo-active .story-progress::after {
  animation: storyProgress 4500ms linear forwards;
}

.story-demo-active .story-blob {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.35), 0 10px 20px rgba(0, 0, 0, 0.15);
  transform: scale(1.08);
}

@keyframes storyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.35);
  }

  100% {
    box-shadow: 0 0 0 14px rgba(59, 130, 246, 0);
  }
}

.story-demo-active .story-blob::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  animation: storyPulse 1.2s ease-out infinite;
}

/* --- Story Demo Overlay (5s) --- */
.story-demo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  direction: rtl;
}

.story-demo-overlay.active {
  display: flex;
}

.story-demo-card {
  width: min(420px, 90vw);
  aspect-ratio: 9/16;
  background: #020617;
  border-radius: 36px;
  box-shadow: 0 35px 80px rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  direction: rtl;
  position: relative;
  overflow: hidden;
  color: #f8fafc;
}

.story-demo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top, rgba(248, 250, 252, 0.08), transparent 55%);
}

.story-demo-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.95));
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
  will-change: transform;
}

.story-demo-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15) 10%, rgba(2, 6, 23, 0.5) 45%, rgba(2, 6, 23, 0.95) 100%);
}

.story-demo-card:hover .story-demo-media {
  transform: scale(1.02);
}

.story-demo-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 42px 38px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

@keyframes storyDemoIn {
  to {
    transform: translateY(0) scale(1);
  }
}

.story-demo-title {
  font-weight: 800;
  font-size: 1.35rem;
  color: #f1f5f9;
  text-align: center;
  margin-top: 6px;
}

.story-demo-sub {
  text-align: center;
  color: rgba(226, 232, 240, 0.75);
  margin-top: -4px;
  font-size: 0.95rem;
}

.story-demo-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 12px;
  position: relative;
}

.story-demo-bar {
  position: relative;
  flex: 1;
  height: 4px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(248, 250, 252, 0.18);
}

.story-demo-bar::after {
  content: '';
  position: absolute;
  inset: 0;
}

.story-demo-close {
  margin-inline-start: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(248, 250, 252, 0.4);
  background: rgba(15, 23, 42, 0.85);
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 12px 25px rgba(2, 6, 23, 0.45);
}

.story-demo-close:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px) scale(1.02);
}

.story-demo-bar {
  position: relative;
  flex: 1;
  height: 4px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(248, 250, 252, 0.18);
}

.story-demo-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #facc15, #f97316);
  transform: translateX(100%);
}

@keyframes storyDemoBar {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.story-demo-overlay.active .story-demo-bar::after {
  animation: storyDemoBar 5s linear forwards;
}