/* Blog / Stories page */
.patagonia-stories-page {
  padding: 60px 0 100px;
  background: #fff;
  min-height: 100vh;
}

.stories-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.stories-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.stories-main-title {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111827;
  margin: 0;
  font-family: var(--default-font, "Poppins", sans-serif);
  position: relative;
  padding-bottom: 8px;
}

.stories-main-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: #2563eb;
  border-radius: 2px;
}

.stories-filters {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-dropdown {
  background: #fff;
  border: 1px solid #d1d5db;
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b7280' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  font-family: inherit;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-dropdown:hover {
  border-color: #9ca3af;
}

.filter-dropdown:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  grid-auto-rows: auto;
}

.story-item {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.story-item:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: #d1d5db;
}

.story-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.story-featured {
  grid-row: span 2;
}

.story-featured .story-image-wrapper {
  height: 100%;
  min-height: 560px;
}

.story-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.story-item:hover .story-image {
  transform: scale(1.04);
}

.story-content {
  padding: 22px 24px 24px;
  background: #fff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.story-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
  margin: 0 0 10px 0;
  font-family: inherit;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.story-item:hover .story-title {
  color: #2563eb;
}

.story-author {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 14px;
  font-family: inherit;
}

.story-action {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

/* Unified pill style for Read time and Watch button */
.read-time,
.watch-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.read-time {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.watch-btn {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
  cursor: pointer;
  pointer-events: none; /* link is on parent <a> */
}

.story-item:hover .read-time,
.story-item:hover .watch-btn {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.video-duration {
  font-size: 12px;
  color: #6b7280;
  font-family: inherit;
}

@media (max-width: 1200px) {
  .stories-container {
    padding: 0 20px;
  }

  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .story-featured .story-image-wrapper {
    min-height: 480px;
  }
}

@media (max-width: 768px) {
  .patagonia-stories-page {
    padding: 40px 0 64px;
  }

  .stories-container {
    padding: 0 16px;
  }

  .stories-header-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
  }

  .stories-main-title {
    font-size: 32px;
  }

  .stories-filters {
    width: 100%;
  }

  .filter-dropdown {
    flex: 1;
    min-width: 0;
  }

  .stories-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .story-featured {
    grid-row: span 1;
  }

  .story-featured .story-image-wrapper {
    height: 220px;
    min-height: 220px;
  }

  .story-image-wrapper {
    height: 200px;
  }

  .story-content {
    padding: 18px 20px 20px;
  }

  .story-title {
    font-size: 18px;
  }
}
