/* =================================================================
   ARQUITET IA — BLOG DESIGN SYSTEM (LIGHT EDITORIAL & EMERALD GREEN)
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary:    #ffffff;
  --bg-secondary:  #f8fafc;
  --bg-tertiary:   #f1f5f9;
  
  --border-color:  #e2e8f0;
  --border-hover:  #cbd5e1;
  
  --text-primary:   #0f172a;
  --text-secondary: #334155;
  --text-muted:     #64748b;
  --text-on-accent: #ffffff;
  
  --green:         #059669;
  --green-light:   #10b981;
  --green-dim:     rgba(16, 185, 129, 0.05);
  --green-glow:    rgba(16, 185, 129, 0.15);
  --green-line:    rgba(16, 185, 129, 0.3);

  --serif: 'Lora', 'Georgia', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Reset Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg-primary);
  color: var(--text-secondary);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* Reading Progress Bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,0.05);
  z-index: 1000;
}
.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
  transition: width 0.1s ease-out;
  box-shadow: 0 0 8px var(--green-glow);
}

/* NAVBAR */
.blog-nav {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 64px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
}
.nav__logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
}
.nav__logo span { color: var(--green); }
.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav__links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav__links a:hover, .nav__links a.active { color: var(--green); }
.nav__cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green-line);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.3s ease;
}
.nav__cta:hover { background: var(--green); color: var(--text-on-accent); border-color: var(--green); }

/* Language Switcher */
.nav__lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-tertiary);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-left: 12px;
}
.lang-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: 3px 7px;
  border-radius: 3px;
  transition: all 0.2s ease;
  text-transform: uppercase;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--green);
  color: #ffffff;
}

/* HERO SECTION - BLOG PORTAL */
.blog-hero {
  position: relative;
  padding: 72px 0 48px;
  text-align: center;
  background: radial-gradient(circle at top, var(--green-dim) 0%, transparent 65%);
}
.blog-hero__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green-line);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  background: var(--green-dim);
}
.blog-hero__title {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.blog-hero__title span {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}
.blog-hero__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
  font-weight: 400;
}

/* SEARCH & CATEGORIES BAR */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.blog-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.category-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.category-btn:hover, .category-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--text-on-accent);
}
.blog-search-box {
  position: relative;
  min-width: 260px;
}
.blog-search-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 16px 10px 40px;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}
.blog-search-input:focus {
  border-color: var(--green);
  background: var(--bg-primary);
}
.blog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
}

/* FEATURED POST HERO CARD */
.featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.featured-post:hover {
  transform: translateY(-2px);
  border-color: var(--green-light);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}
.featured-post__image {
  position: relative;
  width: 100%;
  min-height: 340px;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.featured-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-expo);
}
.featured-post:hover .featured-post__image img {
  transform: scale(1.03);
}
.featured-post__content {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.post-badge {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green-line);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.featured-post__title {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
  transition: color 0.2s ease;
}
.featured-post:hover .featured-post__title {
  color: var(--green);
}
.featured-post__excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}
.read-more-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* POSTS GRID WITH SIDEBAR */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  margin-bottom: 64px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* ARTICLE CARD */
.article-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--green-light);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}
.article-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-card__image img {
  transform: scale(1.04);
}
.article-card__body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.article-card__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text-primary);
  transition: color 0.2s ease;
}
.article-card:hover .article-card__title {
  color: var(--green);
}
.article-card__excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* SIDEBAR WIDGETS */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.sidebar-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
}
.widget-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--green);
  border-radius: 2px;
}

/* SIDEBAR RECENT POSTS LIST */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.recent-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}
.recent-post-item:hover { opacity: 0.8; }
.recent-post-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}
.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recent-post-info h4 {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.recent-post-info span {
  font-size: 11px;
  color: var(--text-muted);
}

/* SINGLE ARTICLE POST LAYOUT */
.post-header {
  padding: 56px 0 32px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.post-header__title {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.post-author-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 6px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 40px;
}
.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid var(--green-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--green);
  font-size: 13px;
}
.author-info {
  text-align: left;
  font-size: 11.5px;
}
.author-name {
  font-weight: 700;
  color: var(--text-primary);
}
.author-role {
  color: var(--text-muted);
}

.post-featured-hero {
  width: 100%;
  max-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
}
.post-featured-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SINGLE ARTICLE CONTENT WRAPPER */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: 1140px;
  margin: 0 auto 64px;
}
.article-content {
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.article-content p {
  margin-bottom: 24px;
}
.article-content h2 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: 90px;
}
.article-content h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  margin: 28px 0 12px;
  scroll-margin-top: 90px;
}
.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
}
.article-content li {
  margin-bottom: 8px;
}
.article-content blockquote {
  border-left: 4px solid var(--green);
  padding: 16px 20px;
  margin: 32px 0;
  background: var(--green-dim);
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--text-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* TABLE OF CONTENTS */
.toc-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 32px;
}
.toc-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.toc-list {
  list-style: none;
  padding-left: 0;
}
.toc-list li {
  margin-bottom: 6px;
}
.toc-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease;
}
.toc-list a:hover { color: var(--green); }

/* LEAD CTA BOX INSIDE ARTICLES */
.article-lead-cta {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--green-dim) 100%);
  border: 1px solid var(--green-line);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}
.article-lead-cta h3 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.article-lead-cta p {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 20px;
}
.article-lead-cta .cta-btn {
  display: inline-block;
  background: var(--green);
  color: var(--text-on-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}
.article-lead-cta .cta-btn:hover {
  background: var(--green-light);
  box-shadow: 0 4px 12px var(--green-glow);
  transform: translateY(-1px);
}

/* FOOTER */
.blog-footer {
  border-top: 1px solid var(--border-color);
  padding: 48px 0 28px;
  background: var(--bg-secondary);
  margin-top: 64px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--green); }

/* =================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST REFINEMENTS)
   ================================================================= */

@media (max-width: 1024px) {
  .blog-container {
    padding: 0 24px;
  }
  .blog-nav {
    padding: 20px 32px;
  }
  .blog-layout, .article-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .featured-post {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .featured-post__image {
    min-height: 260px;
  }
  .featured-post__content {
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  .blog-container {
    padding: 0 16px;
  }
  .blog-nav {
    padding: 16px 16px;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
  }
  .nav__links {
    gap: 16px;
    width: 100%;
    order: 3;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
  }
  .nav__links a {
    font-size: 11px;
    padding: 8px 4px;
    display: inline-block;
  }
  .nav__cta {
    padding: 8px 16px;
    font-size: 11px;
  }

  .blog-hero {
    padding: 40px 0 28px;
  }
  .blog-hero__tag {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 12px;
  }
  .blog-hero__title {
    font-size: clamp(26px, 6.5vw, 36px);
    margin-bottom: 12px;
  }
  .blog-hero__subtitle {
    font-size: 14.5px;
    margin-bottom: 24px;
  }

  .blog-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 28px;
  }
  .blog-categories {
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .blog-categories::-webkit-scrollbar {
    display: none;
  }
  .category-btn {
    padding: 6px 14px;
    font-size: 11.5px;
  }
  .blog-search-box {
    width: 100%;
  }

  .featured-post__image {
    min-height: 200px;
  }
  .featured-post__content {
    padding: 20px 16px;
  }
  .featured-post__title {
    font-size: clamp(20px, 5vw, 24px);
    margin-bottom: 10px;
  }
  .featured-post__excerpt {
    font-size: 13.5px;
    margin-bottom: 16px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .article-card__body {
    padding: 16px 14px;
  }
  .article-card__title {
    font-size: 18px;
  }
  .article-card__excerpt {
    font-size: 13px;
  }

  .post-header {
    padding: 28px 0 20px;
  }
  .post-header__title {
    font-size: clamp(22px, 6vw, 30px);
    margin-bottom: 12px;
  }
  .post-author-box {
    padding: 5px 12px;
  }
  .post-featured-hero {
    max-height: 280px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
  }

  .article-content {
    font-size: 15.5px;
    line-height: 1.7;
  }
  .article-content h2 {
    font-size: clamp(20px, 4.5vw, 24px);
    margin: 28px 0 14px;
  }
  .article-content h3 {
    font-size: 17px;
    margin: 22px 0 10px;
  }
  .article-content blockquote {
    font-size: 16px;
    padding: 12px 16px;
    margin: 20px 0;
  }

  .toc-box {
    padding: 16px;
    margin-bottom: 24px;
  }

  .article-lead-cta {
    padding: 24px 16px;
    margin: 32px 0;
    border-radius: var(--radius-md);
  }
  .article-lead-cta h3 {
    font-size: 20px;
  }
  .article-lead-cta p {
    font-size: 13.5px;
    margin-bottom: 16px;
  }
  .article-lead-cta .cta-btn {
    width: 100%;
    padding: 12px 16px;
  }

  .blog-footer {
    padding: 32px 0 20px;
    margin-top: 40px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .blog-nav {
    padding: 12px 12px;
  }
  .nav__logo {
    font-size: 16px;
  }
  .nav__cta {
    font-size: 10px;
    padding: 6px 10px;
  }
  .blog-hero__title {
    font-size: 24px;
  }
  .featured-post__content {
    padding: 16px 12px;
  }
  .article-card__body {
    padding: 16px 12px;
  }
  .sidebar-widget {
    padding: 16px 12px;
  }
}

/* =================================================================
   EDITORIAL NEWSROOM & MAGAZINE EXTENSIONS (NEW STYLES)
   ================================================================= */

/* 1. Breaking News Ticker Bar */
.news-ticker-bar {
  background: var(--text-primary);
  color: #ffffff;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
.news-ticker-inner {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}
.ticker-badge {
  background: #ef4444;
  color: #ffffff;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-right: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  box-shadow: 4px 0 12px var(--text-primary);
}
.ticker-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}
.ticker-scroll-wrapper {
  overflow: hidden;
  flex-grow: 1;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 15px, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15px, black 95%, transparent 100%);
}
.ticker-content {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
}
.ticker-item {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.ticker-item:hover { color: var(--green-light); }
.ticker-item strong { color: #ffffff; margin-right: 6px; }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* =================================================================
   FLOATING SOCIAL SHARE BAR & TOAST NOTIFICATIONS
   ================================================================= */

.social-share-container {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
  align-self: start;
}
.article-layout-with-share {
  display: grid;
  grid-template-columns: 50px 1fr 300px;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto 64px;
}

.share-bar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.share-btn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.share-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.2s ease;
}
.share-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}
.share-btn--whatsapp:hover { background: #25D366; color: #ffffff; border-color: #25D366; }
.share-btn--linkedin:hover { background: #0A66C2; color: #ffffff; border-color: #0A66C2; }
.share-btn--twitter:hover { background: #000000; color: #ffffff; border-color: #000000; }
.share-btn--pinterest:hover { background: #E60023; color: #ffffff; border-color: #E60023; }
.share-btn--copy:hover { background: var(--green); color: #ffffff; border-color: var(--green); }

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--text-primary);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .article-layout-with-share {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .social-share-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    top: auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 10px 16px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    z-index: 1000;
  }
  .share-bar-title { display: none; }
  .share-btn-list { flex-direction: row; gap: 10px; }
  .share-btn { width: 38px; height: 38px; }
}

/* 2. Newspaper Masthead Header */
.news-masthead {
  padding: 24px 0 16px;
  border-bottom: 2px solid var(--text-primary);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.masthead-info {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.masthead-edition {
  color: var(--green);
  font-weight: 700;
}

/* 3. Hero Editorial Grid (1 Large + 2 Side Stacked) */
.editorial-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  margin-bottom: 48px;
  align-items: stretch;
}
.editorial-hero-grid .featured-post {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
}
.editorial-hero-grid .featured-post__image {
  height: 280px;
  min-height: 280px;
  width: 100%;
}
.editorial-hero-grid .featured-post__content {
  padding: 24px 24px 28px;
  flex-grow: 1;
}
.editorial-hero-grid .featured-post__title {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.side-features-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.side-feature-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.side-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--green);
}
.side-feature-thumb {
  width: 120px;
  height: 100%;
  min-height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-tertiary);
}
.side-feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.side-feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.side-feature-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* 4. Section Divider Banners ("Cadernos do Jornal") */
.section-header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 48px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text-primary);
}
.section-header-banner h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-header-banner h2::before {
  content: '';
  width: 6px;
  height: 22px;
  background: var(--green);
  border-radius: 3px;
}

/* 5. Rank Numbers for Most Read Sidebar Widget */
.ranked-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ranked-post-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.ranked-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.rank-number {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  width: 28px;
  flex-shrink: 0;
}
.ranked-post-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color 0.2s ease;
}
.ranked-post-item:hover .ranked-post-info h4 {
  color: var(--green);
}

/* 6. Interactive Tab Content Switching */
.tab-content-panel {
  display: none;
}
.tab-content-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .editorial-hero-grid {
    grid-template-columns: 1fr;
  }
}

