/* ============================================================
   Kidscorp — Case Study article styles only
   Base, navbar, footer and form come from _shared/
   ============================================================ */

/* ============================================================
   ARTICLE HERO
   ============================================================ */
.cs-hero {
  padding: 140px 0 56px;
  background: linear-gradient(180deg, rgba(148,20,250,0.12) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cs-hero__inner {
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav { z-index: 1000 !important; }

.cs-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cs-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.cs-date {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}

.cs-hero__title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

/* ============================================================
   ARTICLE LAYOUT
   ============================================================ */
.cs-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}

.cs-figure {
  margin: 0 0 48px;
  border-radius: 16px;
  overflow: hidden;
}

.cs-figure--hero {
  margin-top: 0;
  margin-bottom: 32px;
}

.cs-figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.cs-byline {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin: 0 0 32px;
}

.cs-body {
  margin-bottom: 56px;
}

.cs-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  margin: 0 0 20px;
  font-weight: 400;
}

.cs-body p:last-child { margin-bottom: 0; }

/* ============================================================
   CTA BUTTON
   ============================================================ */
.cs-cta {
  margin: 8px 0 8px;
}

.cs-cta__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9414FA, #DB1EFA);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cs-cta__btn:hover {
  opacity: 0.85;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.cs-section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 48px 0 20px;
  letter-spacing: -0.01em;
  padding-left: 16px;
  border-left: 3px solid #9414FA;
}

.cs-section-title:first-child { margin-top: 0; }

/* ============================================================
   SHARE
   ============================================================ */
.cs-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.cs-share__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.cs-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  cursor: pointer;
}

.cs-share__btn:hover {
  color: #fff;
}

/* ============================================================
   PREV / NEXT PAGINATION
   ============================================================ */
.cs-pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cs-pagination__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  flex: 1;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
}

.cs-pagination__item:hover:not(.cs-pagination__item--disabled) {
  background: rgba(148,20,250,0.12);
  border-color: rgba(148,20,250,0.4);
}

.cs-pagination__item--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.cs-pagination__item--next {
  justify-content: flex-end;
  text-align: right;
}

.cs-pagination__item svg {
  flex-shrink: 0;
  color: rgba(255,255,255,0.5);
}

.cs-pagination__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-pagination__dir {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.cs-pagination__name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .cs-hero { padding: 110px 0 40px; }
  .cs-hero__title { font-size: 1.8rem; }
  .cs-pagination { flex-direction: column; }
  .cs-pagination__item--next { justify-content: flex-start; text-align: left; }
}

@media (max-width: 480px) {
  .cs-article { padding: 40px 16px 60px; }
  .cs-hero__inner { padding: 0 20px; }
}

/* ============================================================
   TWO-COLUMN LAYOUT (article + sidebar)
   ============================================================ */
.cs-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.cs-article {
  min-width: 0;
  padding: 64px 0 80px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.cs-sidebar {
  padding-top: 64px;
  position: sticky;
  top: 88px;
}

.cs-more-posts__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9414FA;
  margin: 0 0 20px;
}

.cs-more-posts__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-more-posts__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-more-posts__tag {
  font-size: 11px;
  font-weight: 600;
  color: #9414FA;
}

.cs-more-posts__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.cs-more-posts__name:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .cs-layout { grid-template-columns: 1fr; }
  .cs-sidebar { position: static; padding-top: 0; }
}

@media (max-width: 768px) {
  .cs-article { padding: 40px 0 60px; }
}
