/* ===========================
   FORTY BLOG / NEWS PAGE
============================ */

/* ---------- Banner variant ---------- */
.forty-banner-blog::after {
  background: linear-gradient(
    135deg,
    rgba(43, 45, 51, 0.85) 0%,
    rgba(107, 175, 196, 0.35) 50%,
    rgba(212, 137, 155, 0.30) 100%
  ) !important;
}

/* ---------- Content wrapper ---------- */
.blog-wrap {
  background: #2b2d33;
  padding: 60px 50px 80px;
}
@media (max-width: 768px) {
  .blog-wrap { padding: 40px 20px 60px; }
}

/* ---------- Two-column layout ---------- */
.blog-columns {
  display: flex;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-main {
  flex: 1;
  min-width: 0;
}
.blog-sidebar {
  width: 320px;
  flex-shrink: 0;
}
@media (max-width: 991px) {
  .blog-columns { flex-direction: column; gap: 40px; }
  .blog-sidebar { width: 100%; }
}

/* ===========================
   FEATURED BLOG POST
============================ */
.blog-post {
  margin-bottom: 50px;
}

/* Meta line */
.post-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 20px;
}
.post-date {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}
.post-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #d4899b;
  background: rgba(212,137,155,0.1);
  padding: 3px 10px;
  border-radius: 3px;
}

/* Title */
.post-title {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.5px;
}
.post-rule {
  width: 100%;
  max-width: 500px;
  height: 2px;
  background: rgba(255,255,255,0.2);
  border: none;
  margin: 20px 0 30px;
}

/* Hero image */
.post-hero {
  margin: 0 0 30px;
  border-radius: 6px;
  overflow: hidden;
}
.post-hero img {
  width: 100%;
  display: block;
  filter: brightness(0.95);
}

/* Body content */
.post-body p {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.85;
  margin: 0 0 22px;
}
.post-body p:last-child {
  margin-bottom: 0;
}
.post-body a {
  color: #6bafc4;
  font-weight: 400;
  border-bottom: 1px dotted rgba(107,175,196,0.4);
  transition: color 0.25s, border-color 0.25s;
}
.post-body a:hover {
  color: #d4899b;
  border-bottom-color: transparent;
}
.post-body code {
  font-size: 14px;
  background: rgba(255,255,255,0.06);
  padding: 2px 7px;
  border-radius: 3px;
  color: rgba(255,255,255,0.6);
}

/* Subheadings */
.post-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: 36px 0 16px;
  padding: 0;
  border: none;
}

/* Figures */
.post-figure {
  margin: 30px 0;
  border-radius: 6px;
  overflow: hidden;
}
.post-figure img {
  width: 100%;
  display: block;
}
.post-figure figcaption {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  padding: 10px 0 0;
  line-height: 1.5;
}

/* Blockquotes */
.post-body blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid #6bafc4;
  background: rgba(255,255,255,0.02);
  border-radius: 0 4px 4px 0;
}
.post-body blockquote p {
  font-size: 16px;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* Lists */
.post-body ul, .post-body ol {
  padding-left: 24px;
  margin: 0 0 22px;
}
.post-body li {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .post-title { font-size: 28px; }
  .post-body p { font-size: 15px; }
}

/* ===========================
   PREVIOUS POSTS
============================ */
.prev-posts {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 30px;
}
.prev-posts-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 16px;
}
.prev-post-link {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  border-top: none;
  text-decoration: none;
  transition: all 0.2s ease;
}
.prev-post-link:hover {
  padding-left: 8px;
}
.prev-date {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  flex-shrink: 0;
  width: 80px;
}
.prev-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.prev-post-link:hover .prev-title {
  color: #6bafc4;
}

/* ===========================
   SIDEBAR
============================ */
.sidebar-block {
  margin-bottom: 36px;
}
.sidebar-block-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-block-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin: 0 0 18px;
}

/* Subscribe button */
.substack-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.25);
  border-bottom: 2px solid rgba(255,255,255,0.25);
  border-radius: 0;
  transition: all 0.3s ease;
  text-decoration: none;
}
.substack-subscribe-btn:hover {
  background: #d4899b;
  border-color: #d4899b;
  border-bottom-color: #d4899b;
  color: #fff;
}

/* ===========================
   RSS FEED ITEMS
============================ */
.substack-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.feed-loading {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  padding: 20px 0;
}
.feed-loading i {
  margin-right: 6px;
}
.feed-empty {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin: 0;
}

.feed-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  border-top: none;
  transition: all 0.2s ease;
  align-items: flex-start;
}
.feed-item:first-child {
  padding-top: 0;
}
.feed-item:hover {
  padding-left: 6px;
}

.feed-thumb {
  width: 60px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1e2024;
}
.feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) brightness(0.85);
  opacity: 0.8;
  transition: filter 0.3s, opacity 0.3s;
}
.feed-item:hover .feed-thumb img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

.feed-text {
  flex: 1;
  min-width: 0;
}
.feed-date {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.25);
  margin: 0 0 3px;
  text-transform: uppercase;
}
.feed-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  line-height: 1.35;
  margin: 0 0 4px;
  transition: color 0.2s;
}
.feed-item:hover .feed-title {
  color: #6bafc4;
}
.feed-excerpt {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  margin: 0;
}

/* ===========================
   FEATURED NEWS GRID
============================ */
.featured-news {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 40px;
  margin-top: 10px;
}
.featured-news-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.featured-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 768px) {
  .featured-news-grid { grid-template-columns: 1fr; }
}

.fn-card {
  padding: 22px 24px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid rgba(255,255,255,0.08);
  border-radius: 0 4px 4px 0;
  transition: all 0.3s ease;
}
.fn-card:hover {
  background: rgba(255,255,255,0.06);
  border-left-color: #d4899b;
}
.fn-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 8px;
  display: block;
}
.fn-text {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0 0 10px;
}
.fn-text em {
  color: rgba(255,255,255,0.9);
  font-style: italic;
}
.fn-link {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #6bafc4;
  border-bottom: 1px dotted rgba(107,175,196,0.3);
  transition: color 0.25s, border-color 0.25s;
}
.fn-link:hover {
  color: #d4899b;
  border-bottom-color: transparent;
}

/* ===========================
   COMMENTARY SIDEBAR ITEMS
============================ */
.commentary-item {
  margin-bottom: 14px;
}
.commentary-item .commentary-source {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.22);
  margin: 0;
}
.commentary-item a {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  line-height: 1.45;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.commentary-item a:hover {
  color: #6bafc4;
  border-bottom-color: rgba(107, 175, 196, 0.3);
}
.commentary-item a em {
  color: rgba(255,255,255,0.65);
}
