/* Formal Serif LMS Design System & Variables */
:root {
  --bg-color: #f5f5f5; /* Dull white background */
  --surface-color: #ffffff; /* Paper white for documents */
  --surface-hover: #fafafa;
  --text-main: #111111; /* Stark contrast charcoal/black */
  --text-muted: #555555; /* Muted metal/grey */
  --primary-color: #000000;
  --accent-color: #222222;
  --border-color: #dcdcdc; /* Thin neat borders */
  --radius-sm: 0px;
  --radius-md: 0px; /* Sharp corners */
  --radius-lg: 0px;
  --font-serif: 'Liberation Serif', 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Liberation Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-color: #f5f5f5;
  --surface-color: #ffffff;
  --surface-hover: #fafafa;
  --text-main: #111111;
  --text-muted: #555555;
  --border-color: #dcdcdc;
}

[data-theme="dark"] {
  --bg-color: #111111; /* Formal inverse black board */
  --surface-color: #1a1a1a;
  --surface-hover: #222222;
  --text-main: #f5f5f5;
  --text-muted: #a0a0a0;
  --border-color: #333333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .brand, .article-title, .document-title, .topic-header, .sidebar-title, .blueprint-title, .seq-title {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.35;
}

/* Header */
header {
  height: 73px;
  padding: 0 5%;
  background: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--text-main);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

nav a:hover {
  color: var(--text-main);
}

/* LMS Sidebar/Main Layout */
.portal-container {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  flex: 1;
  width: 100%;
}

@media (max-width: 900px) {
  .portal-container {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  background: var(--surface-color);
  border-right: 1px solid var(--border-color);
  padding: 2.5rem 1.75rem;
  position: sticky;
  top: 73px;
  height: calc(100vh - 73px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (max-width: 900px) {
  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
  }
}

.main-content {
  padding: 3rem 4rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .main-content {
    padding: 2rem 1.5rem;
  }
}

/* Search Box Component */
.search-wrapper {
  position: relative;
}

.search-box {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-main);
  font-family: inherit;
  transition: var(--transition);
}

.search-box:focus {
  outline: none;
  border-color: var(--text-main);
  background: var(--surface-color);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Navigation Tree inside Sidebar */
.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.nav-tree {
  list-style: none;
}

.nav-item {
  margin-bottom: 0.35rem;
}

.nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  transition: var(--transition);
  border-left: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color, var(--text-main));
  background: var(--surface-hover);
  border-left-color: var(--primary-color, var(--text-main));
}

.nav-count {
  font-size: 0.75rem;
  font-weight: bold;
  background: var(--bg-color);
  padding: 0.1rem 0.4rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* Category Sections & Topic Headers */
.topic-section {
  margin-bottom: 3rem;
}

.topic-header {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1.5px solid var(--text-main);
  padding-bottom: 0.35rem;
  margin-bottom: 1.5rem;
}

/* Document Cards (Succinct LMS content style) */
.document-card {
  position: relative;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: var(--transition);
}

.document-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--card-accent, transparent);
  transition: var(--transition);
}

.document-card:hover {
  border-color: var(--card-accent, var(--text-main));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.document-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.document-meta span.tag {
  font-weight: bold;
  border: 1px solid var(--border-color);
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
}

.document-title {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.document-excerpt {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.document-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.document-readmore {
  font-weight: bold;
  text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.breadcrumbs span.separator {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Article Styling (Single View) */
.post-hero {
  position: relative;
  margin-bottom: 2.5rem;
  width: 100%;
}

.post-hero.has-image {
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 3rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: #000;
}

.post-hero .hero-image-wrapper {
  display: none;
}

.post-hero.has-image .hero-image-wrapper {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.post-hero.has-image .hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.8;
  filter: brightness(0.85);
  margin: 0;
  border: none;
  display: block;
}

.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.post-hero.has-image .article-header {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 650px;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .post-hero.has-image .article-header {
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .post-hero.has-image {
    min-height: 300px;
    padding: 1.5rem;
  }
  .post-hero.has-image .article-header {
    padding: 1.5rem;
  }
}

.article-title {
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  word-break: break-word;
  overflow-wrap: break-word;
}

.post-content p {
  margin-bottom: 1.5rem;
}

/* Constrain all media inside post content from escaping */
.post-content img,
.post-content video,
.post-content iframe,
.post-content table,
.post-content pre,
.post-content svg,
.post-content embed,
.post-content object {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

.post-content img {
  border: 1px solid var(--border-color);
  margin: 2rem 0;
  display: block;
}

.post-content h2, .post-content h3 {
  margin: 2.5rem 0 1rem 0;
  line-height: 1.25;
}

.post-content blockquote {
  border-left: 3px solid var(--text-main);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.post-content ul, .post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

/* Sequence Navigation Buttons */
.sequence-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  gap: 1.5rem;
}

.seq-btn {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex: 1;
  max-width: 48%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  transition: var(--transition);
}

.seq-btn:hover {
  border-color: var(--text-main);
  background: var(--surface-hover);
}

.seq-btn.prev {
  align-items: flex-start;
}

.seq-btn.next {
  align-items: flex-end;
  text-align: right;
}

.seq-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.seq-title {
  font-weight: bold;
  font-size: 0.95rem;
}

/* Blank Frame and Status Messages */
.blank-frame {
  border: 1.5px dashed var(--border-color);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
}

/* Form inputs & Buttons */
input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--text-main);
}

button {
  background: var(--text-main);
  color: var(--surface-color);
  border: 1px solid var(--text-main);
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

button:hover {
  background: var(--bg-color);
  color: var(--text-main);
}

/* Footer styling */
footer {
  padding: 2.5rem 5%;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: var(--surface-color);
  width: 100%;
}

/* Collapsible Tree Layout Styles */
.year-group {
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
}

.year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
  cursor: pointer;
  font-weight: bold;
  border-left: 2px solid transparent;
  transition: var(--transition);
  user-select: none;
}

.year-header:hover {
  background: var(--surface-hover);
}

.year-header.active {
  border-left-color: var(--text-main);
  background: var(--surface-hover);
}

.year-header-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.year-toggle-icon {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
  display: inline-block;
  color: var(--text-muted);
}

.year-group.expanded .year-toggle-icon {
  transform: rotate(90deg);
}

.sub-nav-tree {
  list-style: none;
  padding-left: 1.25rem;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  display: none; /* Controlled by Year Group expansion */
}

.year-group.expanded .sub-nav-tree {
  display: block;
}

.sub-nav-item {
  margin-bottom: 0.1rem;
}

.sub-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  font-size: 0.95rem;
  transition: var(--transition);
  border-left: 1px solid var(--border-color);
}

.sub-nav-link:hover, .sub-nav-link.active {
  color: var(--primary-color, var(--text-main));
  background: var(--surface-hover);
  border-left-color: var(--primary-color, var(--text-main));
}

/* Academic Lesson Blueprint Box */
.blueprint-box {
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.blueprint-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: bold;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.blueprint-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .blueprint-grid {
    grid-template-columns: 1fr 1fr;
  }
  .blueprint-item.wide {
    grid-column: span 2;
  }
}

.blueprint-item {
  display: flex;
  flex-direction: column;
}

.blueprint-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.blueprint-value {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* ATL Badges */
.atl-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.atl-badge {
  font-size: 0.75rem;
  font-weight: bold;
  border: 1px solid var(--primary-color, var(--text-main));
  padding: 0.2rem 0.6rem;
  text-transform: uppercase;
  background: var(--bg-color);
  color: var(--primary-color, var(--text-main));
}

/* Multi-level Curriculum Nested Tree Styles */
.nested-tree {
  list-style: none;
  padding-left: 0.75rem;
  margin-top: 0.15rem;
  margin-bottom: 0.15rem;
  display: none; /* Collapsed by default, expanded when parent has .expanded */
}

.nested-node.expanded > .nested-tree {
  display: block;
}

.nested-tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.nested-tree-header:hover {
  color: var(--text-main);
  background: var(--surface-hover);
}

.nested-tree-header.active {
  color: var(--text-main);
  font-weight: bold;
}

.nested-tree-header-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nested-toggle-icon {
  font-size: 0.55rem;
  transition: transform 0.2s ease;
  display: inline-block;
  color: var(--text-muted);
}

.nested-node.expanded > .nested-tree-header .nested-toggle-icon {
  transform: rotate(90deg);
}

.tree-post-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem 0.35rem 0.75rem;
  font-size: 0.95rem;
  transition: var(--transition);
  border-left: 1px solid var(--border-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-post-link:hover, .tree-post-link.active {
  color: var(--primary-color, var(--text-main));
  background: var(--surface-hover);
  border-left-color: var(--primary-color, var(--text-main));
}

/* Dynamic Accent styles for Hero and Headers */
.post-hero.has-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent-gradient, var(--primary-color, var(--text-main)));
  z-index: 10;
}

.post-hero:not(.has-image) .article-header {
  border-top: 5px solid var(--primary-color, var(--text-main));
  padding-top: 2rem;
}

/* Featured Hero Card */
.featured-hero-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  margin-bottom: 3rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

@media (min-width: 768px) {
  .featured-hero-card {
    grid-template-columns: 1.2fr 1fr;
  }
}

.featured-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent-gradient, var(--primary-color, var(--text-main)));
  z-index: 5;
}

.featured-hero-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color, var(--text-main));
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.featured-image-wrapper {
  position: relative;
  min-height: 250px;
  background: #000;
}

.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-content-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  font-size: 0.75rem;
  font-weight: bold;
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.featured-subtitle {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.featured-excerpt {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Homepage Dashboard Sections */
.home-dashboard-section {
  width: 100%;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.section-subtitle {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Curriculum Portals Grid */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.portal-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.portal-card:hover {
  border-color: var(--primary-color, var(--text-main));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.portal-card-icon {
  color: var(--primary-color, var(--text-main));
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.1);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.portal-card-info h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--text-main);
}

.portal-card-info span {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Topics Grid */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.topic-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color, var(--text-main));
  opacity: 0.7;
}

.topic-card:hover {
  border-color: var(--primary-color, var(--text-main));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.topic-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.topic-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.topic-meta-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  text-transform: uppercase;
  border-radius: 4px;
}

/* News Sub-grid */
.news-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.news-sub-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-sub-card:hover {
  border-color: var(--primary-color, var(--text-main));
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.news-sub-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.news-sub-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.news-sub-card-excerpt {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}


