/* ============================================================
   BLOG DETAILS — "Storybook Opening" Design
   BooksByAma Children's Reading Platform
   Design: Warm, magical, storytelling-focused
============================================================ */

/* ─── ROOT & UTILITIES ──────────────────────────────────── */
:root {
  --story-purple: #635DA9;
  --story-purple-light: #7B75C2;
  --story-purple-soft: #F8F7FC;
  --story-gold: #FFC93B;
  --story-gold-soft: #FFF8E1;
  --story-green: #51BB79;
  --story-blue: #65A1D7;
  --story-text: #4A4458;
  --story-text-light: #6B6880;
  --story-text-lighter: #9B98A8;
  --story-white: #FFFFFF;
  --story-border: #E8E7F4;
}

.container-story {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── 1. BREADCRUMB ─────────────────────────────────────── */
.story-breadcrumb {
  background: var(--story-white);
  padding: 16px 0;
  border-bottom: 1px solid var(--story-border);
}

.story-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--story-text-light);
}

.story-breadcrumb__link {
  color: var(--story-text-lighter);
  text-decoration: none;
  transition: color 0.2s ease;
}

.story-breadcrumb__link:hover {
  color: var(--story-purple);
}

.story-breadcrumb__sep {
  color: var(--story-border);
  margin: 0 4px;
}

.story-breadcrumb__current {
  color: var(--story-text);
  font-weight: 500;
}

/* ─── 2. HERO — "Opening a Storybook" ──────────────────── */
.story-hero {
  background: var(--story-white);
  padding: 80px 0 64px;
  text-align: center;
}

/* Simple category badge */
.story-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--story-purple-soft);
  color: var(--story-purple);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(99, 93, 169, 0.08);
}

.story-category__icon {
  font-size: 1rem;
}

/* Large friendly title */
.story-title {
  font-family: var(--font-head, 'Poppins', sans-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--story-text);
  line-height: 1.2;
  margin: 0 auto 24px;
  max-width: 680px;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 16px;
}

.story-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--story-gold), var(--story-purple));
  border-radius: 2px;
}

/* Warm subtitle */
.story-subtitle {
  font-size: 1.125rem;
  color: var(--story-text-light);
  line-height: 1.7;
  margin: 0 auto 40px;
  max-width: 600px;
}

/* Simple meta row */
.story-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9375rem;
  color: var(--story-text-light);
  margin-bottom: 56px;
}

.story-meta__author,
.story-meta__date,
.story-meta__reading {
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-meta__icon {
  font-size: 1rem;
}

.story-meta__sep {
  color: var(--story-border);
  font-weight: 300;
}

/* Featured image */
.story-featured {
  margin-top: 56px;
}

.story-featured__frame {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(74, 68, 88, 0.12);
  background: var(--story-purple-soft);
  max-width: 100%;
  aspect-ratio: 16 / 9;
}

.story-featured__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Decorative illustration fallback */
.story-illustration {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 300px;
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-illustration__blob {
  position: absolute;
  inset: 20px;
  background: linear-gradient(135deg, var(--story-purple-soft), #EAE9F6);
  border-radius: 50% 40% 60% 50%;
  animation: blobFloat 8s ease-in-out infinite;
}

.story-illustration__books {
  position: relative;
  z-index: 2;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-book {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.story-book--1 {
  width: 60px;
  height: 90px;
  background: linear-gradient(160deg, var(--story-purple), var(--story-purple-light));
  left: 20px;
  top: 50px;
  transform: rotate(-12deg);
  animation: bookFloat1 4s ease-in-out infinite;
}

.story-book--2 {
  width: 70px;
  height: 100px;
  background: linear-gradient(160deg, var(--story-gold), #E5B02F);
  left: 50%;
  transform: translateX(-50%);
  top: 30px;
  z-index: 2;
  animation: bookFloat2 4.5s ease-in-out infinite;
}

.story-book--3 {
  width: 60px;
  height: 90px;
  background: linear-gradient(160deg, var(--story-green), #3FA768);
  right: 20px;
  top: 50px;
  transform: rotate(12deg);
  animation: bookFloat3 4.2s ease-in-out infinite;
}

.story-float {
  position: absolute;
  font-size: 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  animation: floatGentle 3s ease-in-out infinite;
}

.story-float--1 {
  top: 20px;
  right: 30px;
  animation-delay: 0s;
}

.story-float--2 {
  bottom: 30px;
  left: 20px;
  animation-delay: 1s;
}

.story-float--3 {
  top: 40px;
  left: 30px;
  animation-delay: 0.5s;
}

/* ─── 3. VIDEO SECTION — "Story Preview Window" ─────────── */
.story-video {
  background: var(--story-purple-soft);
  padding: 80px 0;
}

.story-video__title {
  font-family: var(--font-head, 'Poppins', sans-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--story-text);
  text-align: center;
  margin: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.story-video__wave {
  color: var(--story-purple);
  font-size: 0.875rem;
  opacity: 0.5;
}

.story-video__wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.story-video__bg {
  position: absolute;
  inset: -40px;
  background: linear-gradient(135deg, rgba(99, 93, 169, 0.08), rgba(255, 201, 59, 0.06));
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
}

.story-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(255, 201, 59, 0.2),
              0 20px 60px rgba(74, 68, 88, 0.15);
  z-index: 1;
  background: #0d0d14;
}

.story-video__frame iframe,
.story-video__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

/* Decorative elements */
.story-video__deco {
  position: absolute;
  font-size: 1.5rem;
  z-index: 2;
  animation: floatGentle 3s ease-in-out infinite;
}

.story-video__deco--1 {
  top: -20px;
  left: 10%;
  animation-delay: 0s;
}

.story-video__deco--2 {
  top: -10px;
  right: 15%;
  animation-delay: 0.5s;
}

.story-video__deco--3 {
  bottom: -20px;
  left: 20%;
  animation-delay: 1s;
}

.story-video__deco--4 {
  bottom: -10px;
  right: 10%;
  animation-delay: 0.7s;
}

.story-video__deco--5 {
  top: 50%;
  right: -30px;
  animation-delay: 0.3s;
}

/* ─── 4. MAIN CONTENT — Comfortable Reading ────────────── */
.story-content {
  background: var(--story-white);
  padding: 80px 0;
}

.story-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

/* ── ARTICLE ────────────────────────────────────────────── */
.story-article {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--story-text);
  max-width: 100%;
}

.story-article p {
  margin: 0 0 24px;
}

.story-article h2 {
  font-family: var(--font-head, 'Poppins', sans-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--story-text);
  margin: 56px 0 20px;
  line-height: 1.3;
  position: relative;
  padding-bottom: 12px;
}

.story-article h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--story-gold), var(--story-purple));
  border-radius: 2px;
}

.story-article h3 {
  font-family: var(--font-head, 'Poppins', sans-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--story-text);
  margin: 40px 0 16px;
  line-height: 1.4;
}

.story-article ul,
.story-article ol {
  margin: 0 0 24px;
  padding-left: 28px;
}

.story-article li {
  margin-bottom: 12px;
}

.story-article blockquote {
  margin: 40px 0;
  padding: 24px 32px;
  background: var(--story-gold-soft);
  border-left: 4px solid var(--story-gold);
  border-radius: 0 16px 16px 0;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--story-text);
  box-shadow: 0 4px 16px rgba(255, 201, 59, 0.1);
}

.story-article a {
  color: var(--story-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.story-article a:hover {
  color: var(--story-purple-light);
}

.story-article img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  margin: 40px 0;
  box-shadow: 0 12px 40px rgba(74, 68, 88, 0.12);
}

/* Tags */
.story-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 2px solid var(--story-border);
}

.story-tags__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--story-text-light);
}

.story-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--story-text-light);
  background: var(--story-purple-soft);
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.story-tag:hover {
  background: var(--story-purple);
  color: var(--story-white);
  transform: translateY(-2px);
}

/* ── SIDEBAR — Simplified ────────────────────────────────── */
.story-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-card {
  background: var(--story-white);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(74, 68, 88, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-card__icon {
  font-size: 2rem;
  line-height: 1;
}

.story-card__title {
  font-family: var(--font-head, 'Poppins', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--story-text);
  margin: 0;
}

.story-card__desc {
  font-size: 0.875rem;
  color: var(--story-text-light);
  line-height: 1.6;
  margin: 0;
}

/* Progress bar */
.story-progress {
  height: 8px;
  background: var(--story-border);
  border-radius: 100px;
  overflow: hidden;
}

.story-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--story-purple), var(--story-gold));
  border-radius: 100px;
  transition: width 0.3s ease;
}

.story-progress__label {
  font-size: 0.8125rem;
  color: var(--story-text-light);
  margin: 0;
  font-weight: 500;
}

/* Table of contents */
.story-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-toc__link {
  display: block;
  font-size: 0.875rem;
  color: var(--story-text-light);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  line-height: 1.5;
  transition: all 0.2s ease;
  position: relative;
  padding-left: 28px;
}

.story-toc__link::before {
  content: '•';
  position: absolute;
  left: 12px;
  color: var(--story-purple);
  font-weight: 700;
}

.story-toc__link:hover {
  background: var(--story-purple-soft);
  color: var(--story-purple);
  padding-left: 32px;
}

/* App card */
.story-card--app {
  background: linear-gradient(135deg, var(--story-purple-soft), #EAE9F6);
  border: 2px solid var(--story-border);
}

.story-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--story-green);
  color: var(--story-white);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(81, 187, 121, 0.25);
}

.story-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(81, 187, 121, 0.35);
}

/* ─── 5. AUTHOR CARD — Simplified ──────────────────────── */
.story-author {
  background: var(--story-purple-soft);
  padding: 64px 0;
}

.story-author__card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--story-white);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(74, 68, 88, 0.1);
}

.story-author__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--story-white);
}

.story-author__avatar--purple {
  background: var(--story-purple);
}

.story-author__avatar--green {
  background: var(--story-green);
}

.story-author__avatar--blue {
  background: var(--story-blue);
}

.story-author__avatar--gold {
  background: var(--story-gold);
  color: var(--story-text);
}

.story-author__content {
  flex: 1;
}

.story-author__label {
  font-size: 0.8125rem;
  color: var(--story-text-lighter);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.story-author__name {
  font-family: var(--font-head, 'Poppins', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--story-text);
  margin: 0 0 12px;
}

.story-author__bio {
  font-size: 0.9375rem;
  color: var(--story-text-light);
  line-height: 1.7;
  margin: 0 0 16px;
}

.story-author__link {
  font-size: 0.9375rem;
  color: var(--story-purple);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.story-author__link:hover {
  color: var(--story-purple-light);
}

/* ─── 6. RELATED STORIES — Book Cards ──────────────────── */
.story-related {
  background: var(--story-white);
  padding: 80px 0;
}

.story-related__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.story-related__title {
  font-family: var(--font-head, 'Poppins', sans-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--story-text);
  margin: 0;
}

.story-related__all {
  font-size: 0.9375rem;
  color: var(--story-purple);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.story-related__all:hover {
  color: var(--story-purple-light);
}

/* Book cards grid */
.story-books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
}

.story-book-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.story-book-card:hover {
  transform: translateY(-8px);
}

.story-book-card__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(74, 68, 88, 0.12);
  transition: box-shadow 0.25s ease;
}

.story-book-card:hover .story-book-card__cover {
  box-shadow: 0 12px 40px rgba(74, 68, 88, 0.18);
}

.story-book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-book-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--story-purple-soft), #EAE9F6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-book-card__emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.story-book-card__video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(99, 93, 169, 0.95);
  color: var(--story-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  backdrop-filter: blur(4px);
}

.story-book-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-book-card__category {
  font-size: 0.75rem;
  color: var(--story-purple);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.story-book-card__title {
  margin: 0;
}

.story-book-card__title a {
  font-family: var(--font-head, 'Poppins', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--story-text);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.story-book-card__title a:hover {
  color: var(--story-purple);
}

.story-book-card__meta {
  font-size: 0.8125rem;
  color: var(--story-text-lighter);
}

/* ─── 7. NEWSLETTER — Reading Family ───────────────────── */
.story-newsletter {
  background: var(--story-white);
  padding: 80px 0;
}

.story-newsletter__card {
  background: linear-gradient(135deg, var(--story-purple) 0%, var(--story-purple-light) 100%);
  border-radius: 32px;
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 48px;
}

.story-newsletter__card::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 201, 59, 0.1);
  top: -150px;
  right: -100px;
  pointer-events: none;
}

.story-newsletter__illustration {
  flex-shrink: 0;
  width: 200px;
  position: relative;
  z-index: 1;
}

.story-newsletter__illustration svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
}

.story-newsletter__content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.story-newsletter__title {
  font-family: var(--font-head, 'Poppins', sans-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--story-white);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-newsletter__emoji {
  font-size: 1.75rem;
}

.story-newsletter__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin: 0 0 28px;
}

.story-newsletter__form {
  margin-bottom: 16px;
}

.story-newsletter__input-group {
  display: flex;
  gap: 12px;
  max-width: 500px;
}

.story-newsletter__input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  background: var(--story-white);
  color: var(--story-text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.story-newsletter__input::placeholder {
  color: var(--story-text-lighter);
}

.story-newsletter__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  background: var(--story-gold);
  color: var(--story-text);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(255, 201, 59, 0.3);
}

.story-newsletter__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 201, 59, 0.4);
}

.story-newsletter__note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.6;
}

/* ─── 8. ANIMATIONS ─────────────────────────────────────── */
@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes blobFloat {
  0%, 100% {
    border-radius: 50% 40% 60% 50%;
    transform: rotate(0deg);
  }
  33% {
    border-radius: 60% 50% 40% 60%;
    transform: rotate(5deg);
  }
  66% {
    border-radius: 40% 60% 50% 40%;
    transform: rotate(-5deg);
  }
}

@keyframes bookFloat1 {
  0%, 100% {
    transform: rotate(-12deg) translateY(0);
  }
  50% {
    transform: rotate(-12deg) translateY(-6px);
  }
}

@keyframes bookFloat2 {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes bookFloat3 {
  0%, 100% {
    transform: rotate(12deg) translateY(0);
  }
  50% {
    transform: rotate(12deg) translateY(-6px);
  }
}

/* ─── 9. RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .story-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .story-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .story-books {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

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

  .story-hero {
    padding: 60px 0 48px;
  }

  .story-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .story-subtitle {
    font-size: 1rem;
  }

  .story-meta {
    font-size: 0.875rem;
    gap: 12px;
  }

  .story-video {
    padding: 60px 0;
  }

  .story-video__title {
    font-size: 1.25rem;
    margin-bottom: 32px;
  }

  .story-video__frame {
    border-radius: 24px;
  }

  .story-content {
    padding: 60px 0;
  }

  .story-article {
    font-size: 1.0625rem;
    line-height: 1.85;
  }

  .story-article h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
  }

  .story-article h3 {
    font-size: 1.25rem;
  }

  .story-sidebar {
    grid-template-columns: 1fr;
  }

  .story-author {
    padding: 48px 0;
  }

  .story-author__card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .story-related {
    padding: 60px 0;
  }

  .story-related__title {
    font-size: 1.5rem;
  }

  .story-books {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 24px;
  }

  .story-newsletter {
    padding: 60px 0;
  }

  .story-newsletter__card {
    flex-direction: column;
    padding: 48px 28px;
    text-align: center;
  }

  .story-newsletter__illustration {
    width: 160px;
  }

  .story-newsletter__title {
    font-size: 1.5rem;
    justify-content: center;
  }

  .story-newsletter__input-group {
    flex-direction: column;
    max-width: 100%;
  }

  .story-newsletter__btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .story-category {
    font-size: 0.8125rem;
    padding: 6px 16px;
  }

  .story-title {
    margin-bottom: 20px;
  }

  .story-meta {
    flex-direction: column;
    gap: 8px;
  }

  .story-meta__sep {
    display: none;
  }

  .story-illustration {
    height: 240px;
  }

  .story-video__deco {
    font-size: 1.25rem;
  }

  .story-books {
    grid-template-columns: 1fr;
  }
}
