/* =====================================================
   STORIES / ARTICLES PAGE
===================================================== */

.story-container {
  margin: 60px 0 80px;
}


/* TITLE */
.story-title {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--text-main);
}

/* HERO IMAGE */
.story-page > img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  margin: 20px 0 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* META */
.story-meta {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 40px;
}

/* LAYOUT */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
}

/* MAIN ARTICLE */
.story-main {
  max-width: 720px;
}

/* CONTENT */
.story-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.story-content p {
  margin-bottom: 1.4em;
}

.story-content h2,
.story-content h3 {
  margin: 40px 0 14px;
  font-weight: 600;
}

.story-content a {
  color: var(--signature-color);
  text-decoration: none;
}

.story-content a:hover {
  text-decoration: underline;
}

/* AUTHOR BOX */
.author-box {
  margin-top: 60px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.author-box h3 {
  margin-bottom: 14px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
}

.author-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
}

.author-profile img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.author-profile span {
  font-weight: 500;
}

/* SIDEBAR */
.other-stories {
  position: sticky;
  top: 100px;
  align-self: start;
}

.other-stories h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.other-stories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.other-stories li {
  margin-bottom: 12px;
}

.other-stories a {
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-main);
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.other-stories a:hover {
  opacity: 1;
  color: var(--signature-color);
}

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

  .other-stories {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  .story-title {
    font-size: 1.6rem;
  }

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

/* =====================================================
   STORIES LISTING PAGE
===================================================== */

.stories-container {
  max-width: var(--page-width, 1200px);
  margin: 60px auto 80px;
  padding: 0 20px;
}

.stories-header {
  margin-bottom: 50px;
}

.stories-header p {
  color: var(--text-soft);
  max-width: 640px;
  line-height: 1.6;
}

/* GRID */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

/* CARD */
.story-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

/* IMAGE */
.story-card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.story-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.story-card:hover .story-card-thumb img {
  transform: scale(1.05);
}

/* BODY */
.story-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* TITLE */
.story-card h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0;
}

.story-card h2 a {
  text-decoration: none;
  color: var(--text-main);
}

.story-card h2 a:hover {
  color: var(--signature-color);
}

/* META */
.story-card-meta {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* EXCERPT */
.story-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  opacity: 0.85;
}

/* READ MORE */
.story-readmore {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--signature-color);
  letter-spacing: 0.5px;
}

.story-readmore:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .stories-header h1 {
    font-size: 1.6rem;
  }
}
