/* ==========================================================================
   CIRCULARTRACE EDITORIAL & NEWSPAPER DESIGN SYSTEM
   Modern Online Newspaper / News Portal Styling for Activities & Stories
   ========================================================================== */

:root {
  --ct-primary: #133023;       /* Deep Forest Green */
  --ct-primary-hover: #0c2017;
  --ct-primary-light: #1f4a37;
  --ct-coffee: #7a4b27;        /* Warm Coffee Brown */
  --ct-coffee-hover: #5d371b;
  --ct-coffee-subtle: #f8f3ed;
  --ct-gold: #cfa139;         /* Editorial Accent Ochre */
  --ct-gold-subtle: #fcf6e8;
  --ct-ink: #1a1d1b;          /* Charcoal Black */
  --ct-ink-muted: #5a645d;    /* Editorial Muted Grey */
  --ct-paper: #fbf9f5;        /* Warm Ivory Newsprint */
  --ct-paper-pure: #ffffff;
  --ct-border: #e6e1d6;       /* Crisp Editorial Hairline */
  --ct-border-subtle: #f0ebe2;
  --ct-shadow-sm: 0 2px 8px rgba(19, 48, 35, 0.05);
  --ct-shadow-md: 0 8px 24px rgba(19, 48, 35, 0.08);
  --ct-shadow-lg: 0 16px 36px rgba(19, 48, 35, 0.12);
  --ct-font-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;
  --ct-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Editorial Typography */
.font-serif-editorial {
  font-family: var(--ct-font-serif);
  letter-spacing: -0.02em;
}

.font-sans-ui {
  font-family: var(--ct-font-sans);
}

/* Newspaper Section Masthead */
.editorial-masthead {
  border-bottom: 2px solid var(--ct-ink);
  padding-bottom: 1.25rem;
  margin-bottom: 2.25rem;
  position: relative;
}

.editorial-masthead::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--ct-ink);
  margin-top: 4px;
}

.editorial-category-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ct-coffee);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.editorial-badge {
  background-color: var(--ct-coffee-subtle);
  color: var(--ct-coffee);
  border: 1px solid rgba(122, 75, 39, 0.2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  display: inline-block;
}

.editorial-badge.badge-green {
  background-color: rgba(19, 48, 35, 0.08);
  color: var(--ct-primary);
  border-color: rgba(19, 48, 35, 0.18);
}

/* Hairline Dividers */
.hairline-divider {
  border: none;
  height: 1px;
  background-color: var(--ct-border);
  margin: 1.5rem 0;
}

.hairline-divider-thick {
  border: none;
  height: 2px;
  background-color: var(--ct-border);
  margin: 2rem 0;
}

/* Lead Headline Card (Berita Utama) */
.lead-story-card {
  background: var(--ct-paper-pure);
  border: 1px solid var(--ct-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(19, 48, 35, 0.04);
}

.lead-story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(19, 48, 35, 0.1);
  border-color: rgba(207, 161, 57, 0.45);
}

.lead-story-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #222;
}

.lead-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lead-story-card:hover .lead-story-media img {
  transform: scale(1.03);
}

.lead-story-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.lead-headline {
  font-family: var(--ct-font-serif);
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ct-ink);
  margin-top: 0.75rem;
  margin-bottom: 0.85rem;
  transition: color 0.2s ease;
}

.lead-story-card:hover .lead-headline {
  color: var(--ct-coffee);
}

.lead-story-excerpt {
  color: var(--ct-ink-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Companion Editorial Stories (2-4 Berita Pendamping) */
.companion-card {
  background: var(--ct-paper-pure);
  border: 1px solid var(--ct-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  box-shadow: 0 3px 14px rgba(19, 48, 35, 0.03);
}

.companion-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(19, 48, 35, 0.08);
  border-color: rgba(207, 161, 57, 0.4);
}

.companion-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #eee;
}

.companion-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.companion-card:hover .companion-media img {
  transform: scale(1.04);
}

.companion-body {
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.companion-headline {
  font-family: var(--ct-font-serif);
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ct-ink);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.companion-card:hover .companion-headline {
  color: var(--ct-coffee);
}

.companion-excerpt {
  font-size: 0.86rem;
  color: var(--ct-ink-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Latest Feed Sidebar (Daftar Berita Terbaru) */
.feed-sidebar-card {
  background: #fdfcf9;
  border: 1px solid var(--ct-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 3px 14px rgba(19, 48, 35, 0.03);
}

.feed-item {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--ct-border);
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.feed-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feed-item:hover {
  color: inherit;
}

.feed-thumb {
  width: 78px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ddd;
}

.feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feed-item:hover .feed-thumb img {
  transform: scale(1.08);
}

.feed-title {
  font-family: var(--ct-font-serif);
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ct-ink);
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-item:hover .feed-title {
  color: var(--ct-coffee);
}

.feed-meta {
  font-size: 0.75rem;
  color: var(--ct-ink-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Category & Year Filter Tabs (Online News Rubric) */
.newspaper-nav-tabs {
  border-bottom: 1px solid var(--ct-border);
  gap: 0.5rem;
}

.newspaper-nav-tabs .nav-link {
  font-family: var(--ct-font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ct-ink-muted);
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  padding: 0.65rem 1.25rem;
  background: transparent;
  border-radius: 30px;
  transition: all 0.2s ease;
}

.newspaper-nav-tabs .nav-link:hover {
  color: var(--ct-ink);
  background-color: rgba(19, 48, 35, 0.05);
}

.newspaper-nav-tabs .nav-link.active {
  color: #ffffff;
  font-weight: 700;
  background-color: var(--ct-primary);
  border-color: var(--ct-primary);
}

/* Filter Pill Tags */
.filter-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1.15rem;
  border-radius: 30px;
  background: var(--ct-paper-pure);
  border: 1px solid var(--ct-border);
  color: var(--ct-ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--ct-primary);
  color: #fff;
  border-color: var(--ct-primary);
  box-shadow: 0 4px 12px rgba(19, 48, 35, 0.15);
}

.filter-pill .count {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
}

.filter-pill.active .count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Buttons */
.btn-editorial-primary {
  background-color: var(--ct-primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.75rem;
  border-radius: 30px;
  border: 1px solid var(--ct-primary);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-editorial-primary:hover {
  background-color: var(--ct-primary-hover);
  box-shadow: 0 6px 16px rgba(19, 48, 35, 0.25);
  transform: translateY(-2px);
}

.btn-editorial-outline {
  background-color: transparent;
  color: var(--ct-primary) !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.75rem;
  border-radius: 30px;
  border: 1px solid var(--ct-primary);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-editorial-outline:hover {
  background-color: var(--ct-primary);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(19, 48, 35, 0.15);
}

.btn-editorial-coffee {
  background-color: var(--ct-coffee);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.75rem;
  border-radius: 30px;
  border: 1px solid var(--ct-coffee);
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-editorial-coffee:hover {
  background-color: var(--ct-coffee-hover);
  box-shadow: 0 6px 16px rgba(122, 75, 39, 0.25);
  transform: translateY(-2px);
}

/* Article Detail Typography */
.article-detail-header {
  border-bottom: 1px solid var(--ct-border);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.article-hero-title {
  font-family: var(--ct-font-serif);
  font-size: 2.65rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ct-ink);
  letter-spacing: -0.025em;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .article-hero-title {
    font-size: 1.95rem;
  }
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--ct-ink-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.article-body-prose {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #2b302c;
}

.article-body-prose p {
  margin-bottom: 1.6rem;
}

.article-body-prose h2 {
  font-family: var(--ct-font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ct-primary);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--ct-border-subtle);
  padding-bottom: 0.5rem;
}

.article-body-prose h3 {
  font-family: var(--ct-font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ct-ink);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body-prose ul,
.article-body-prose ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.article-body-prose li {
  margin-bottom: 0.6rem;
}

.article-body-prose blockquote {
  border-left: 3px solid var(--ct-coffee);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--ct-ink);
  background-color: var(--ct-coffee-subtle);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin: 2rem 0;
}

.article-caption {
  font-size: 0.84rem;
  color: var(--ct-ink-muted);
  font-style: italic;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid var(--ct-border);
}

/* Share Bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 0;
  border-top: 1px solid var(--ct-border);
  border-bottom: 1px solid var(--ct-border);
  margin: 2.5rem 0;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--ct-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ct-ink);
  background: var(--ct-paper-pure);
  transition: all 0.2s ease;
  text-decoration: none;
}

.share-btn:hover {
  background: var(--ct-primary);
  color: #fff;
  border-color: var(--ct-primary);
  transform: translateY(-2px);
}

/* Toast Notification */
.ct-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ct-primary);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  box-shadow: var(--ct-shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.3s ease;
}

.ct-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Fix Tab Activities Bullet Points */
.newspaper-nav-tabs { display: flex !important; flex-wrap: wrap !important; list-style: none !important; padding-left: 0 !important; margin-bottom: 0 !important; border-bottom: 1px solid var(--ct-border); gap: 0.5rem; }
.newspaper-nav-tabs .nav-item { list-style: none !important; margin: 0; padding: 0; }

/* Fix Tab Activities Bullet Points */
.newspaper-nav-tabs { display: flex !important; flex-wrap: wrap !important; list-style: none !important; padding-left: 0 !important; margin-bottom: 0 !important; border-bottom: 1px solid var(--ct-border); gap: 0.5rem; }
.newspaper-nav-tabs .nav-item { list-style: none !important; margin: 0; padding: 0; }
