/*
Theme Name:   Raw Science Child
Theme URI:    https://raw-science.org
Description:  Child theme for Raw Science - data-driven climate and energy analysis
Author:       Dr. Giada Caniglia
Author URI:   https://raw-science.org
Template:     blocksy
Version:      1.7.0.
Text Domain:  raw-science-child
*/

/* ============================================
   HIDE BLOCKSY DEFAULT HEADER
   ============================================ */

[data-header],
#header,
.ct-header {
    display: none !important;
}

.site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ============================================
   RAW SCIENCE - DESIGN SYSTEM
   ============================================ */

:root {
  /* Colors */
  --rs-white: #FFFFFF;
  --rs-body-bg: #F8F8F8;
  --rs-line: #E6E8EA;
  --rs-black: #000000;
  --rs-charcoal: #2B2B2B;
  --rs-teal: #4FA3A5;
  
  /* Typography */
  --font-masthead: 'Roboto Mono', monospace;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 72px;
  
  /* Header dimensions */
  --header-topbar-height: 40px;
  --header-masthead-padding: 60px;
  --header-nav-height: 50px;
  --header-logo-size: 140px;
  }

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
  box-sizing: border-box;
}

body {
  background-color: var(--rs-body-bg);
  color: var(--rs-charcoal);
  font-family: var(--font-body);
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--rs-black);
  font-weight: 500;
  line-height: 1.3;
}

a {
  color: var(--rs-teal);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* ============================================
   HEADER - 3 LAYER STRUCTURE
   ============================================ */

.rs-header {
  background: var(--rs-white);
  position: relative;
  z-index: 1000;
  width: 100%;
}

/* TOP BAR - Layer 1 */
.rs-top-bar {
  height: var(--header-topbar-height);
  background: var(--rs-white);
  border-bottom: 1px solid var(--rs-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.rs-top-bar-left,
.rs-top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rs-menu-toggle,
.rs-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  color: var(--rs-black);
}

.rs-menu-toggle:hover,
.rs-search-toggle:hover {
  opacity: 0.6;
}

.rs-menu-toggle svg,
.rs-search-toggle svg {
  width: 20px;
  height: 20px;
}

/* MASTHEAD - Layer 2 - CENTERED VERTICAL */
.rs-masthead {
  background: var(--rs-white);
  text-align: center;
  padding: 40px 40px 40px 40px;
}

.rs-logo-container {
  margin-bottom: -35px; /* ← NEGATIVE margin pulls title UP into logo */
}

.rs-logo-container a {
  display: inline-block;
}

.rs-logo-image {
  height: 300px; /* Big logo */
  width: auto;
  transform: rotate(12deg);
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

.rs-logo-container a:hover .rs-logo-image {
  transform: rotate(8deg) scale(1.05);
  opacity: 1;
}

/* Text wrapper */
.rs-masthead-text {
  display: block;
  text-align: center;
  position: relative; /* Allow overlap */
  z-index: 10; /* Text above logo if needed */
}

.rs-site-title {
  font-family: var(--font-masthead);
  font-size: 4.0rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--rs-black);
  margin: 0 0 2px 0;
  line-height: 1.1;
}

.rs-site-title a {
  color: var(--rs-black);
}

.rs-site-title a:hover {
  opacity: 0.8;
}

.rs-site-tagline {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  color: var(--rs-charcoal);
  margin: 0;
  letter-spacing: 0.5px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .rs-masthead {
    padding: 40px 20px 30px 20px;
  }
  
  .rs-logo-container {
    margin-bottom: -20px; /* Less overlap on mobile */
  }
  
  .rs-logo-image {
    height: 120px;
  }
  
  .rs-site-title {
    font-size: 38px;
    letter-spacing: 2px;
    margin: 0 0 6px 0;
  }
  
  .rs-site-tagline {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .rs-logo-container {
    margin-bottom: -15px;
  }
  
  .rs-logo-image {
    height: 90px;
  }
  
  .rs-site-title {
    font-size: 32px;
    letter-spacing: 1px;
  }
  
  .rs-site-tagline {
    font-size: 14px;
  }
}

/* NAVIGATION - Layer 3 (Bottom bar - Main_Menu_ES) */
.rs-navigation {
  background: var(--rs-white);
  border-top: 1px solid var(--rs-line);
  min-height: var(--header-nav-height);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
}

.rs-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.rs-nav-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rs-nav-menu a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rs-black);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  display: inline-block;
}

.rs-nav-menu a:hover,
.rs-nav-menu .current-menu-item a,
.rs-nav-menu .current_page_item a {
  color: var(--rs-teal);
  border-bottom-color: var(--rs-teal);
  opacity: 1;
}

/* ============================================
   HAMBURGER SLIDE-OUT MENU
   (Works on BOTH desktop and mobile)
   ============================================ */

/* The slide-out panel container */
.rs-mobile-menu {
  position: fixed;
  top: var(--header-topbar-height);
  left: -450px; /* Hidden off-screen to the left */
  width: 400px;
  height: calc(100vh - var(--header-topbar-height));
  background: var(--rs-white);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  z-index: 99999;
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
  border-right: 2px solid var(--rs-line);
}

/* When open - slide into view */
.rs-mobile-menu.is-open {
  left: 0;
}

/* Inner padding */
.rs-mobile-menu-inner {
  padding: 40px 30px;
}

/* Menu items in slide-out */
.rs-mobile-menu .rs-nav-menu {
  flex-direction: column;
  gap: 0;
}

.rs-mobile-menu .rs-nav-menu li {
  border-bottom: 1px solid var(--rs-line);
  width: 100%;
}

.rs-mobile-menu .rs-nav-menu li:last-child {
  border-bottom: none;
}

.rs-mobile-menu .rs-nav-menu a {
  display: block;
  font-size: 16px;
  padding: 16px 0;
  border-bottom: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.rs-mobile-menu .rs-nav-menu a:hover,
.rs-mobile-menu .rs-nav-menu .current-menu-item a {
  color: var(--rs-teal);
  padding-left: 12px;
}

/* ============================================
   MENU CONTENT SWITCHING
   Desktop: Show Top_Menu_ES
   Mobile: Show Top_Menu_Mobile_ES
   ============================================ */

/* Desktop: Show desktop menu */
.rs-menu-desktop-version {
  display: block;
}

.rs-menu-mobile-version {
  display: none;
}

/* Mobile: Show mobile menu */
@media (max-width: 768px) {
  .rs-menu-desktop-version {
    display: none;
  }
  
  .rs-menu-mobile-version {
    display: block;
  }
  
  /* Wider slide-out on mobile */
  .rs-mobile-menu {
    width: 85%;
    max-width: 400px;
    left: -100%; /* Adjust for percentage width */
  }
  
  .rs-mobile-menu.is-open {
    left: 0;
  }
  
  /* Hide bottom navigation on mobile */
  .rs-navigation {
    display: none;
  }
}

/* ============================================
   MENU OPEN STATE
   ============================================ */

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* ============================================
   BLOCKSY STICKY CUSTOMIZATION
   ============================================ */

/* Hide masthead (logo/title) when sticky */
[data-sticky*="yes"] .rs-masthead {
  display: none !important;
}

/* Ensure top bar and nav stay visible when sticky */
[data-sticky*="yes"] .rs-top-bar,
[data-sticky*="yes"] .rs-navigation {
  display: flex !important;
}

/* Smooth shadow when sticky */
[data-sticky*="yes"] .rs-header {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .rs-top-bar {
    padding: 0 20px;
  }
  
  .rs-masthead {
    padding: 40px 20px 30px 20px;
  }
  
  .rs-logo-image {
    height: 70px;
  }
  
  .rs-site-title {
    font-size: 36px;
    letter-spacing: 1px;
  }
  
  .rs-site-tagline {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .rs-navigation .rs-nav-menu {
    gap: 20px;
  }
  
  .rs-navigation .rs-nav-menu a {
    font-size: 12px;
  }
}

/* ============================================
   CONTENT AREA
   ============================================ */
/*
.site-main {
  flex: 1;
}

.entry-content {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-teal {
  color: var(--rs-teal);
}

.text-center {
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */

.rs-footer {
  background: #ECEFF1; /* Light gray background */
  color: var(--rs-charcoal);
  margin-top: auto; /* Push to bottom */
}

/* Wide container for support & copyright bars */
.rs-footer-container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* FOOTER TOP - Columns */
.rs-footer-top {
  border-top: 1px solid #D1D5DB;
  padding: 60px 0 40px 0;
}

.rs-footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr; /* Brand column wider */
  gap: 60px;
}

/* Column 1: Brand (title + socials) */
.rs-footer-brand {
  /* Takes more space */
}

.rs-footer-title {
  font-family: var(--font-masthead);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--rs-black);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.rs-footer-tagline {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--rs-charcoal);
  margin: 0 0 24px 0;
  letter-spacing: 0.3px;
}

/* Social Icons */
.rs-footer-socials {
  display: flex;
  gap: 16px;
}

.rs-footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--rs-white);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.rs-footer-socials svg {
  width: 19px;
  height: 19px;
  fill: var(--rs-charcoal);
  transition: fill 0.2s ease;
}

.rs-footer-socials a:hover {
  background: var(--rs-teal);
  transform: translateY(-2px);
  opacity: 1;
}

.rs-footer-socials a:hover svg {
  fill: var(--rs-white);
}

/* Menu Columns */
.rs-footer-heading {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rs-black);
  margin: 0 0 20px 0;
}

.rs-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rs-footer-menu li {
  margin-bottom: 12px;
}

.rs-footer-menu a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--rs-charcoal);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.rs-footer-menu a:hover {
  color: var(--rs-teal);
  padding-left: 4px;
  opacity: 1;
}

/* ============================================
   FOOTER MIDDLE - Support CTA Bar
   ============================================ */

.rs-footer-support-bar {
  background: #ECEFF1; /* Same as footer background */
  border-top: 1px solid #D1D5DB; /* Subtle separator */
  border-bottom: 1px solid #D1D5DB;
  padding: 28px 0;
}

.rs-footer-support-bar .rs-footer-container-wide {
  display: flex;
  justify-content: center; /* Center instead of space-between */
  align-items: center;
  gap: 32px; /* Space between text and button */
  flex-wrap: wrap;
}

.rs-footer-support-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--rs-charcoal);
  margin: 0;
  text-align: center; /* Center text */
}

.rs-footer-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rs-teal);
  color: var(--rs-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid var(--rs-teal);
  white-space: nowrap;
}

.rs-footer-support-btn:hover {
  background: var(--rs-white);
  color: var(--rs-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 163, 165, 0.2);
  opacity: 1;
}

/* ============================================
   FOOTER BOTTOM - Copyright & Legal
   ============================================ */

.rs-footer-bottom {
  background: #D1D5DB;
  padding: 24px 0;
}

.rs-footer-bottom .rs-footer-container-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.rs-footer-copyright {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--rs-charcoal);
  margin: 0;
}

/* Legal menu */
.rs-footer-legal {
  display: flex;
}

.rs-footer-legal-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rs-footer-legal-menu li {
  display: flex;
  align-items: center;
}

.rs-footer-legal-menu li:not(:last-child)::after {
  content: '·';
  margin-left: 8px;
  color: var(--rs-charcoal);
}

.rs-footer-legal-menu a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--rs-charcoal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rs-footer-legal-menu a:hover {
  color: var(--rs-teal);
  opacity: 1;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
  .rs-footer-container {
    grid-template-columns: 1fr 1fr; /* 2 columns */
    gap: 40px;
  }
  
  .rs-footer-brand {
    grid-column: 1 / -1; /* Full width */
  }
}

@media (max-width: 640px) {
  .rs-footer-top {
    padding: 40px 0 30px 0;
  }
  
  .rs-footer-container,
  .rs-footer-container-wide {
    grid-template-columns: 1fr; /* Stack all */
    gap: 32px;
    padding: 0 20px;
  }
  
  .rs-footer-title {
    font-size: 28px;
    letter-spacing: 2px;
  }
  
  .rs-footer-tagline {
    font-size: 14px;
  }
  
  /* Support bar stacks on mobile */
  .rs-footer-support-bar .rs-footer-container-wide {
    flex-direction: column;
    text-align: center;
  }
  
  .rs-footer-support-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Bottom bar */
  .rs-footer-bottom .rs-footer-container-wide {
    flex-direction: column;
    text-align: center;
  }
  
  .rs-footer-legal-menu {
    justify-content: center;
  }
}

/* ============================================
   HOMEPAGE STYLES
   ============================================ */

.rs-homepage {
  background: var(--rs-body-bg);
}

/* ============================================
   HERO SECTION - Split Layout
   ============================================ */

.rs-hero {
  background: var(--rs-white);
  padding: 0;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.rs-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px; /* Ensure it doesn't touch the screen edges */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* Space between image and text */
    align-items: center; /* This fixes the vertical alignment */
}

.rs-hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px; /* This adds the rounded corners to the container */
    line-height: 0; /* Prevents tiny bottom gaps */
}

.rs-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px; /* Ensures the image itself is rounded */
    transition: transform 0.6s ease;
}

.rs-hero-image:hover img {
  transform: scale(1.05);
}

.rs-hero-content {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rs-hero-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.rs-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 4px;
  color: var(--rs-white);
}

.rs-badge-clima-y-energia {
  background: var(--rs-teal);
}

.rs-badge-modelos-narrativa {
  background: #2C5F7C;
}

.rs-badge-impactos-adaptacion {
  background: #D97642;
}

.rs-badge-series {
  background: var(--rs-charcoal);
  border: 1px solid var(--rs-line);
  color: var(--rs-charcoal);
  background: transparent;
}

.rs-hero-title {
  font-family: var(--font-masthead);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rs-black);
  margin: 0 0 20px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rs-hero-title a {
  color: var(--rs-black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rs-hero-title a:hover {
  color: var(--rs-teal);
  opacity: 1;
}

.rs-hero-hook {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--rs-charcoal);
  margin: 0 0 30px 0;
}

.rs-hero-cta {
  display: inline-flex;
  align-items: center;
  background: var(--rs-teal);
  color: var(--rs-white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.rs-hero-cta:hover {
  background: var(--rs-white);
  color:var(--rs-teal)
  border: 1px solid var(--rs-teal);
  transform: translateX(4px);
  opacity: 1;
}

/* ============================================
   DESTACADO LABEL
   ============================================ */

.rs-featured-label {
  background: var(--rs-white);
  padding: 24px 0 12px 0;
  text-align: center;
  border-top: 1px solid var(--rs-line);
}

.rs-featured-label span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--rs-teal);
  padding: 8px 24px;
  border: 1px solid var(--rs-teal);
  border-radius: 4px;
  display: inline-block;
}


.rs-featured-label span {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 600;
  color: var(--rs-black);
  margin: 0 0 40px 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   MISSION STATEMENT - Left-Aligned Editorial
   ============================================ */

.rs-mission {
  background: var(--rs-white);
  border-top: 1px solid var(--rs-line);
  border-bottom: 1px solid var(--rs-line);
  padding: 40px 0;
  animation: fadeIn 1.2s ease-out 0.4s both;
}

.rs-mission-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: left; /* Left-aligned */
  display: flex;
  flex-direction: column;
  gap: 8px; /* Tight spacing - intentional */
}

/* Line 1: Subtle philosophical frame */
.rs-mission-tagline {
  font-family: var(--font-body);
  font-size: 14px; /* Smaller */
  font-weight: 300; /* Light */
  color: #666; /* Muted gray */
  letter-spacing: 0.5px;
  text-transform: none;
}

/* Line 2: Dominant intellectual engine */
.rs-mission-pairs {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Left-aligned */
}

.rs-mission-pair {
  font-family: var(--font-heading);
  font-size: 28px; /* Much bigger */
  font-weight: 700; /* Bold */
  color: #3A7F81; /* Darker muted teal - not a link */
  letter-spacing: 0.5px;
  position: absolute;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rs-mission-container {
  border-left: 3px solid var(--rs-teal);
  padding-left: 24px;
}

.rs-mission-pair.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .rs-mission {
    padding: 32px 0;
  }
  
  .rs-mission-container {
    padding: 0 20px;
  }
  
  .rs-mission-tagline {
    font-size: 13px;
  }
  
  .rs-mission-pair {
    font-size: 20px;
  }
}

/* ============================================
   LATEST ANALYSIS GRID
   ============================================ */

.rs-latest {
  padding: 80px 0;
}

.rs-latest-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.rs-section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  color: var(--rs-black);
  margin: 0 0 40px 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rs-latest-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}

.rs-card {
  background: var(--rs-white);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--rs-line);
}

.rs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.rs-card-medium {
  grid-row: span 2;
}

.rs-card-image {
  position: relative;
  overflow: hidden;
  background: var(--rs-line);
}

.rs-card-medium .rs-card-image {
  height: 400px;
}

.rs-card-small .rs-card-image {
  height: 180px;
}

.rs-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rs-card:hover .rs-card-image img {
  transform: scale(1.08);
}

.rs-card-content {
  padding: 24px;
}

.rs-card-small .rs-card-content {
  padding: 20px;
}

.rs-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rs-black);
  margin: 12px 0;
}

.rs-card-small .rs-card-title {
  font-size: 18px;
}

.rs-card-title a {
  color: var(--rs-black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rs-card-title a:hover {
  color: var(--rs-teal);
  opacity: 1;
}

.rs-card-excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--rs-charcoal);
  margin: 12px 0;
}

.rs-card-small .rs-card-excerpt {
  display: none;
}

.rs-card-date {
  font-family: var(--font-body);
  font-size: 13px;
  color: #999;
  display: block;
  margin-top: 12px;
}

/* ============================================
   COLECCIONES
   ============================================ */

.rs-collections {
  background: var(--rs-white);
  padding: 80px 0;
  border-top: 1px solid var(--rs-line);
}

.rs-collections-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.rs-collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.rs-collection-card {
  background: var(--rs-body-bg);
  border: 1px solid var(--rs-line);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.rs-collection-card:hover {
  background: var(--rs-white);
  border-color: var(--rs-teal);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(79, 163, 165, 0.15);
}

/* Collection with hero image */
.rs-collection-card.has-image {
  background: var(--rs-white);
}

.rs-collection-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--rs-line);
}

.rs-collection-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rs-collection-card:hover .rs-collection-image img {
  transform: scale(1.08);
}

/* Collection without image (fallback icon) */
.rs-collection-icon {
  width: 64px;
  height: 64px;
  margin: 32px auto 0;
  flex-shrink: 0;
}

.rs-collection-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--rs-teal);
  opacity: 0.6;
}

.rs-collection-card:hover .rs-collection-icon svg {
  opacity: 1;
}

.rs-collection-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rs-collection-card.has-image .rs-collection-content {
  padding: 28px;
}

.rs-collection-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--rs-black);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.rs-collection-description {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--rs-charcoal);
  margin: 0 0 16px 0;
  flex: 1;
}

.rs-collection-count {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--rs-teal);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .rs-collections-grid {
    grid-template-columns: 1fr;
  }
  
  .rs-collection-image {
    height: 180px;
  }
}

/* ============================================
   POR TEMAS - Tabs
   ============================================ */

.rs-topics {
  padding: 80px 0;
}

.rs-topics-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.rs-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--rs-line);
  margin-bottom: 40px;
}

.rs-tab-btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 32px;
  background: none;
  border: none;
  color: var(--rs-charcoal);
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.rs-tab-btn:hover {
  color: var(--rs-teal);
}

.rs-tab-btn.active {
  color: var(--rs-teal);
  border-bottom-color: var(--rs-teal);
}

.rs-tabs-content {
  position: relative;
  min-height: 400px;
}

.rs-tab-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.rs-tab-panel.active {
  display: block;
}

.rs-topic-post {
  padding: 24px 0;
  border-bottom: 1px solid var(--rs-line);
}

.rs-topic-post:last-of-type {
  border-bottom: none;
}

.rs-topic-post-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rs-black);
  margin: 0 0 12px 0;
}

.rs-topic-post-title a {
  color: var(--rs-black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rs-topic-post-title a:hover {
  color: var(--rs-teal);
  opacity: 1;
}

.rs-topic-post-excerpt {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--rs-charcoal);
  margin: 0 0 12px 0;
}

.rs-topic-post-date {
  font-family: var(--font-body);
  font-size: 13px;
  color: #999;
}

.rs-topic-view-all {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--rs-teal);
  text-decoration: none;
  margin-top: 24px;
  transition: transform 0.2s ease;
}

.rs-topic-view-all:hover {
  color:#3A7F81;
  font-weight: 700;
  transform: translateX(4px);
  opacity: 1;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
  .rs-hero-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .rs-hero-image {
    height: 350px;
  }
  
  .rs-hero-content {
    padding: 40px 30px;
  }
  
  .rs-hero-title {
    font-size: 36px;
  }
  
  .rs-latest-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  
  .rs-card-medium {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  
  .rs-tabs-nav {
    flex-direction: column;
    border-bottom: none;
  }
  
  .rs-tab-btn {
    text-align: left;
    border-bottom: 1px solid var(--rs-line);
    margin: 0;
  }
  
  .rs-tab-btn.active {
    background: var(--rs-body-bg);
  }
}

@media (max-width: 640px) {
  .rs-latest-container,
  .rs-collections-container,
  .rs-topics-container {
    padding: 0 20px;
  }
  
  .rs-latest-grid {
    grid-template-columns: 1fr;
  }
  
  .rs-section-title {
    font-size: 24px;
  }
  
  .rs-hero-title {
    font-size: 28px;
  }
  
  .rs-hero-hook {
    font-size: 16px;
  }
}

/* ============================================
   CATEGORY ARCHIVE PAGE
   ============================================ */

.rs-category-archive {
  background: var(--rs-body-bg);
  border-top: 1px solid var(--rs-line);
}

/* ============================================
   CATEGORY HEADER
   ============================================ */

.rs-category-header {
  background: var(--rs-white);
  border-bottom: 1px solid var(--rs-line);
  padding: 60px 0 40px 0;
}

.rs-category-header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.rs-category-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 4px;
  color: var(--rs-white);
  margin-bottom: 16px;
}

.rs-category-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--rs-black);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.rs-category-description {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--rs-charcoal);
  max-width: 800px;
}

.rs-category-description p {
  margin: 0;
}

/* ============================================
   FEATURED POST (First/Latest)
   ============================================ */

.rs-category-content {
  padding: 60px 0;
}

.rs-category-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.rs-featured-post {
  background: var(--rs-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rs-line);
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 400px;
}

.rs-featured-post-image {
  position: relative;
  overflow: hidden;
  background: var(--rs-line);
}

.rs-featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.rs-featured-post:hover .rs-featured-post-image img {
  transform: scale(1.05);
}

.rs-featured-post-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rs-coleccion-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  border: 1px solid var(--rs-line);
  border-radius: 3px;
  color: var(--rs-charcoal);
  text-decoration: none;
  margin-bottom: 16px;
  align-self: flex-start;
  transition: all 0.2s ease;
}

.rs-coleccion-badge:hover {
  background: var(--rs-teal);
  color: var(--rs-white);
  border-color: var(--rs-teal);
  opacity: 1;
}

.rs-featured-post-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rs-black);
  margin: 0 0 20px 0;
}

.rs-featured-post-title a {
  color: var(--rs-black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rs-featured-post-title a:hover {
  color: var(--rs-teal);
  opacity: 1;
}

.rs-featured-post-excerpt {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--rs-charcoal);
  margin: 0 0 24px 0;
}

.rs-featured-post-meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: #999;
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rs-meta-separator {
  color: #ddd;
}

.rs-featured-post-cta {
  display: inline-flex;
  align-items: center;
  background: var(--rs-teal);
  color: var(--rs-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.rs-featured-post-cta:hover {
  color:var(--rs-teal);
  background: var(--rs-white);
  border: 1px solid var(--rs-teal);
  transform: translateX(4px);
  opacity: 1;
}

/* ============================================
   POSTS LIST (Rest of posts)
   ============================================ */

.rs-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rs-list-post {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rs-line);
  transition: padding-left 0.2s ease;
}

.rs-list-post:hover {
  padding-left: 8px;
}

.rs-list-post-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--rs-line);
  height: 140px;
}

.rs-list-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rs-list-post:hover .rs-list-post-thumbnail img {
  transform: scale(1.08);
}

.rs-list-post-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rs-list-post-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rs-black);
  margin: 0 0 12px 0;
}

.rs-list-post-title a {
  color: var(--rs-black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rs-list-post-title a:hover {
  color: var(--rs-teal);
  opacity: 1;
}

.rs-list-post-excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--rs-charcoal);
  margin: 0 0 12px 0;
}

.rs-list-post-meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rs-meta-coleccion {
  color: var(--rs-teal);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.rs-meta-coleccion:hover {
  opacity: 0.7;
}

/* ============================================
   PAGINATION
   ============================================ */

.rs-pagination {
  margin-top: 60px;
  text-align: center;
}

.navigation.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.page-numbers {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--rs-charcoal);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid var(--rs-line);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--rs-teal);
  color: var(--rs-white);
  border-color: var(--rs-teal);
  opacity: 1;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
  .rs-category-header {
    padding: 40px 0 30px 0;
  }
  
  .rs-category-header-container,
  .rs-category-container {
    padding: 0 20px;
  }
  
  .rs-category-title {
    font-size: 36px;
  }
  
  .rs-featured-post {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .rs-featured-post-image {
    height: 300px;
  }
  
  .rs-featured-post-content {
    padding: 32px 24px;
  }
  
  .rs-featured-post-title {
    font-size: 28px;
  }
  
  .rs-list-post {
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 24px 0;
  }
  
  .rs-list-post-thumbnail {
    height: 100px;
  }
  
  .rs-list-post-title {
    font-size: 20px;
  }
  
  .rs-list-post-excerpt {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .rs-category-title {
    font-size: 28px;
  }
  
  .rs-category-description {
    font-size: 16px;
  }
  
  .rs-list-post {
    grid-template-columns: 1fr;
  }
  
  .rs-list-post-thumbnail {
    height: 180px;
  }
}

/* ============================================
   NO POSTS MESSAGE
   ============================================ */

.rs-no-posts {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--rs-charcoal);
  text-align: center;
  padding: 60px 20px;
}

/* ============================================
   ARCHIVE PAGE - Scientific Journal Style
   ============================================ */

.rs-archive-page {
  background: var(--rs-white);
  border-top: 1px solid var(--rs-line);
}

/* ============================================
   ARCHIVE HEADER
   ============================================ */

.rs-archive-header {
  background: var(--rs-white);
  border-bottom: 1px solid var(--rs-line);
  padding: 60px 0 40px 0;
}

.rs-archive-header-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.rs-archive-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--rs-black);
  margin: 0 0 16px 0;
}

.rs-archive-description {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--rs-charcoal);
  margin: 0 0 32px 0;
}

/* Search Bar */
.rs-archive-search {
  max-width: 600px;
  margin: 0 auto;
}

.rs-search-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 20px;
  border: 1px solid var(--rs-line);
  border-radius: 6px;
  background: var(--rs-body-bg);
  color: var(--rs-charcoal);
  transition: all 0.2s ease;
}

.rs-search-input:focus {
  outline: none;
  border-color: var(--rs-teal);
  background: var(--rs-white);
}

.rs-search-input::placeholder {
  color: #999;
}

/* ============================================
   FILTER BAR - Dropdowns (One Line)
   ============================================ */

.rs-archive-filters {
  background: var(--rs-body-bg);
  border-bottom: 1px solid var(--rs-line);
  padding: 20px 0;
}

.rs-archive-filters-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.rs-filter-form {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap; /* Force one line on desktop */
}

.rs-filter-dropdown {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.rs-filter-dropdown label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rs-charcoal);
  white-space: nowrap;
}

.rs-filter-dropdown select {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--rs-line);
  border-radius: 4px;
  background: var(--rs-white);
  color: var(--rs-charcoal);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232B2B2B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  width: 160px; /* All same width */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Truncate with ... */
}

.rs-filter-dropdown select:hover {
  border-color: var(--rs-teal);
}

.rs-filter-dropdown select:focus {
  outline: none;
  border-color: var(--rs-teal);
  box-shadow: 0 0 0 2px rgba(79, 163, 165, 0.1);
}

/* Dropdown options (full width when open) */
.rs-filter-dropdown select option {
  white-space: normal; /* Allow wrapping in dropdown */
  overflow: visible;
  text-overflow: clip;
}

/* Mobile: Stack vertically */
@media (max-width: 968px) {
  .rs-filter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .rs-filter-dropdown {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .rs-filter-dropdown select {
    width: auto;
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .rs-archive-filters-container {
    padding: 0 20px;
  }
  
  .rs-filter-dropdown {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .rs-filter-dropdown select {
    width: 100%;
  }
}

/* ============================================
   ARCHIVE LIST - Text Dominant
   ============================================ */

.rs-archive-list {
  padding: 40px 0 80px 0;
}

.rs-archive-list-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.rs-archive-entry {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 18px 0; /* REDUCED from 28px */
  border-bottom: 1px solid var(--rs-line);
  transition: padding-left 0.2s ease;
}

.rs-archive-entry:hover {
  padding-left: 8px;
}

/* Thumbnail - Small 80×60 (4:3) */
.rs-archive-thumbnail {
  width: 80px;
  height: 60px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--rs-line);
  flex-shrink: 0;
}

.rs-archive-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rs-archive-entry:hover .rs-archive-thumbnail img {
  transform: scale(1.1);
}

/* Content */
.rs-archive-content {
  min-width: 0;
}

.rs-archive-category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px; /* REDUCED from 8px */
}

.rs-cat-clima-y-energia {
  color: var(--rs-teal);
}

.rs-cat-modelos-narrativa {
  color: #2C5F7C;
}

.rs-cat-impactos-adaptacion {
  color: #D97642;
}

.rs-archive-entry-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rs-black);
  margin: 0 0 6px 0; /* REDUCED from 8px */
}

.rs-archive-entry-title a {
  color: var(--rs-black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rs-archive-entry-title a:hover {
  color: var(--rs-teal);
  opacity: 1;
}

.rs-archive-meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: #999;
  margin: 0 0 8px 0; /* REDUCED from 10px */
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rs-archive-coleccion {
  color: #666;
  font-weight: 500;
}

.rs-archive-separator {
  color: #ddd;
}

.rs-archive-excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--rs-charcoal);
  margin: 0;
}

/* Ensure header elements are clickable */
.rs-header {
  position: relative;
  z-index: 1000;
}

.rs-menu-toggle,
.rs-search-toggle {
  position: relative;
  z-index: 1001;
}

/* Archive page shouldn't overlap header */
.rs-archive-page {
  position: relative;
  z-index: 1;
}

/* ============================================
   COLLECTION PAGE (tag.php)
   Book-like editorial layout
   ============================================ */

.rs-collection-page {
  background: var(--rs-body-bg);
  border-top: 1px solid var(--rs-line);
}

/* ============================================
   COLLECTION HERO - Cover Page Energy
   ============================================ */

.rs-collection-hero {
  background: var(--rs-white);
  border-bottom: 1px solid var(--rs-line);
  padding: 60px 0 50px 0;
}

.rs-collection-hero-container {
  max-width: 900px; /* Narrower than other pages */
  margin: 0 auto;
  padding: 0 40px;
}

.rs-collection-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rs-teal);
  margin-bottom: 20px;
}

.rs-collection-title {
  font-family: var(--font-masthead); /* Roboto Mono - matches site title */
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--rs-black);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.rs-collection-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--rs-charcoal);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.rs-collection-thesis {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--rs-charcoal);
  margin: 0 0 32px 0;
  padding-left: 24px;
  border-left: 3px solid var(--rs-teal); /* Editorial accent */
}

.rs-collection-meta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #999;
  margin: 0 0 32px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* PDF Download Button */
.rs-collection-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rs-charcoal);
  padding: 12px 24px;
  border: 2px solid var(--rs-line);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  background: var(--rs-white);
}

.rs-collection-pdf-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.rs-collection-pdf-btn:hover {
  border-color: var(--rs-teal);
  color: var(--rs-teal);
  background: var(--rs-body-bg);
  opacity: 1;
}

/* ============================================
   CHAPTERS - Vertical Book-like Layout
   ============================================ */

.rs-collection-chapters {
  background: var(--rs-body-bg);
  padding: 60px 0;
}

.rs-collection-chapters-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.rs-chapter {
  background: var(--rs-white);
  padding: 32px;
  margin-bottom: 20px;
  border: 1px solid var(--rs-line);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.rs-chapter:hover {
  border-color: var(--rs-teal);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.rs-chapter-number {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rs-teal);
  margin-bottom: 12px;
}

.rs-chapter-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rs-black);
  margin: 0 0 16px 0;
}

.rs-chapter-title a {
  color: var(--rs-black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rs-chapter-title a:hover {
  color: var(--rs-teal);
  opacity: 1;
}

.rs-chapter-summary {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--rs-charcoal);
  margin: 0 0 16px 0;
}

.rs-chapter-meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: #999;
  padding-top: 16px;
  border-top: 1px solid var(--rs-line); /* Subtle separator */
}

/* ============================================
   EDITORIAL NOTE
   ============================================ */

.rs-collection-editorial {
  background: var(--rs-white);
  border-top: 1px solid var(--rs-line);
  padding: 40px 0;
}

.rs-collection-editorial-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.rs-editorial-note {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  font-style: italic;
  margin: 0;
  padding-left: 24px;
  border-left: 2px solid var(--rs-line);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .rs-collection-hero {
    padding: 40px 0 30px 0;
  }
  
  .rs-collection-hero-container,
  .rs-collection-chapters-container,
  .rs-collection-editorial-container {
    padding: 0 20px;
  }
  
  .rs-collection-title {
    font-size: 32px;
  }
  
  .rs-collection-subtitle {
    font-size: 16px;
  }
  
  .rs-collection-thesis {
    font-size: 16px;
    padding-left: 16px;
  }
  
  /* PDF button below thesis on mobile */
  .rs-collection-pdf-btn {
    width: 100%;
    justify-content: center;
  }
  
  .rs-chapter {
    padding: 24px;
  }
  
  .rs-chapter-title {
    font-size: 22px;
  }
  
  .rs-chapter-summary {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .rs-collection-title {
    font-size: 28px;
  }
  
  .rs-chapter-title {
    font-size: 20px;
  }
}

/* ============================================
   COLLECTIONS LANDING PAGE
   Nature Climate-inspired editorial layout
   ============================================ */

.rs-collections-landing {
  background: var(--rs-white);
  border-top: 1px solid var(--rs-line);
}

/* ============================================
   COLLECTIONS HEADER
   ============================================ */

.rs-collections-header {
  background: var(--rs-white);
  border-bottom: 1px solid var(--rs-line);
  padding: 60px 0 40px 0;
}

.rs-collections-header-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.rs-collections-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--rs-black);
  margin: 0 0 16px 0;
  text-transform: uppercase;
}

.rs-collections-description {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--rs-charcoal);
  margin: 0;
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   COLLECTIONS LIST (Editorial Vertical Style)
   Like Nature Climate Collections
   ============================================ */

.rs-collections-list-section {
  padding: 60px 0 80px 0;
  background: var(--rs-body-bg);
}

.rs-collections-list-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================
   COLLECTION ITEM (Horizontal Card)
   ============================================ */

.rs-collection-item {
  background: var(--rs-white);
  border: 1px solid var(--rs-line);
  border-radius: 0; /* No border radius - more editorial */
  margin-bottom: 32px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.rs-collection-item:hover {
  border-color: var(--rs-teal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.rs-collection-link {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  text-decoration: none;
  color: inherit;
  min-height: 200px;
}

/* Image on left */
.rs-collection-item-image {
  position: relative;
  overflow: hidden;
  background: var(--rs-line);
  height: 100%;
  min-height: 200px;
}

.rs-collection-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rs-collection-item:hover .rs-collection-item-image img {
  transform: scale(1.05);
}

/* Content on right */
.rs-collection-item-content {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header label */
.rs-collection-item-header {
  margin-bottom: 12px;
}

.rs-collection-category {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Use existing category colors */
.rs-cat-clima-y-energia {
  color: var(--rs-teal);
}

.rs-cat-modelos-narrativa {
  color: #2C5F7C;
}

.rs-cat-impactos-adaptacion {
  color: #D97642;
}

/* Title */
.rs-collection-item-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rs-black);
  margin: 0 0 8px 0;
  transition: color 0.2s ease;
}

.rs-collection-item:hover .rs-collection-item-title {
  color: var(--rs-teal);
}

/* Subtitle */
.rs-collection-item-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  font-style: italic;
  margin: 0 0 16px 0;
}

/* Description (thesis) */
.rs-collection-item-description {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--rs-charcoal);
  margin: 0 0 20px 0;
}

/* Metadata */
.rs-collection-item-meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: #999;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rs-meta-dot {
  color: #ddd;
}

/* CTA (Call to action) */
.rs-collection-item-cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--rs-teal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.rs-collection-item:hover .rs-collection-item-cta {
  transform: translateX(4px);
}

/* No collections message */
.rs-no-collections {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--rs-charcoal);
  text-align: center;
  padding: 60px 20px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
  .rs-collections-header {
    padding: 40px 0 30px 0;
  }
  
  .rs-collections-header-container {
    padding: 0 20px;
  }
  
  .rs-collections-title {
    font-size: 36px;
    letter-spacing: 2px;
  }
  
  .rs-collections-description {
    font-size: 16px;
  }
  
  .rs-collections-list-section {
    padding: 40px 0 60px 0;
  }
  
  .rs-collections-list-container {
    padding: 0 20px;
  }
  
  /* Stack image on top of content */
  .rs-collection-link {
    grid-template-columns: 1fr;
  }
  
  .rs-collection-item-image {
    min-height: 180px;
  }
  
  .rs-collection-item-content {
    padding: 24px;
  }
  
  .rs-collection-item-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .rs-collections-title {
    font-size: 28px;
  }
  
  .rs-collection-item-title {
    font-size: 22px;
  }
  
  .rs-collection-item-subtitle {
    font-size: 15px;
  }
  
  .rs-collection-item-description {
    font-size: 14px;
  }
}

/* ============================================
   CONTACT PAGE - Professional Journal Style
   ============================================ */

.rs-contact-page {
  background: var(--rs-body-bg);
  border-top: 1px solid var(--rs-line);
}

/* ============================================
   HERO / INTRODUCTION
   ============================================ */

.rs-contact-hero {
  background: var(--rs-white);
  border-bottom: 1px solid var(--rs-line);
  padding: 60px 0 50px 0;
}

.rs-contact-hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.rs-contact-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--rs-black);
  margin: 0 0 24px 0;
  text-transform: uppercase;
}

.rs-contact-intro {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--rs-charcoal);
  margin: 0;
}

/* ============================================
   CONTACT CATEGORIES GRID
   ============================================ */

.rs-contact-categories {
  background: var(--rs-white);
  padding: 80px 0;
  border-bottom: 1px solid var(--rs-line);
}

.rs-contact-categories-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.rs-section-heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rs-black);
  text-align: center;
  margin: 0 0 50px 0;
}

.rs-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.rs-category-card {
  background: var(--rs-body-bg);
  border: 1px solid var(--rs-line);
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.rs-category-card:hover {
  border-color: var(--rs-teal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.rs-category-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rs-white);
  border-radius: 50%;
  border: 2px solid var(--rs-line);
  transition: all 0.3s ease;
}

.rs-category-card:hover .rs-category-icon {
  border-color: var(--rs-teal);
  background: var(--rs-teal);
}

.rs-category-icon svg {
  stroke: var(--rs-teal);
  transition: stroke 0.3s ease;
}

.rs-category-card:hover .rs-category-icon svg {
  stroke: var(--rs-white);
}

.rs-category-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--rs-black);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.rs-category-description {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--rs-charcoal);
  margin: 0;
}

/* ============================================
   CONTACT FORM SECTION
   ============================================ */

.rs-contact-form-section {
  background: var(--rs-body-bg);
  padding: 80px 0;
}

.rs-contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

.rs-form-intro {
  text-align: center;
  margin-bottom: 40px;
}

.rs-form-intro p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--rs-charcoal);
  margin: 0;
}

.rs-contact-form-wrapper {
  background: var(--rs-white);
  border: 1px solid var(--rs-line);
  border-radius: 6px;
  padding: 40px;
}

/* ============================================
   WPFORMS CUSTOM STYLING
   ============================================ */

/* Override WPForms styles to match Raw Science design */
.rs-contact-form-wrapper .wpforms-container {
  font-family: var(--font-body);
}

.rs-contact-form-wrapper .wpforms-field-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--rs-black);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.rs-contact-form-wrapper .wpforms-field input[type="text"],
.rs-contact-form-wrapper .wpforms-field input[type="email"],
.rs-contact-form-wrapper .wpforms-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--rs-line);
  border-radius: 4px;
  background: var(--rs-body-bg);
  color: var(--rs-charcoal);
  transition: all 0.2s ease;
  width: 100%;
}

/* ============================================
   WPFORMS DROPDOWN - Minimal Custom Styling
   ============================================ */

.rs-contact-form-wrapper .wpforms-field select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--rs-line) !important;
  border-radius: 4px;
  background-color: var(--rs-body-bg) !important;
  color: var(--rs-charcoal);
  transition: all 0.2s ease;
  width: 100%;
  cursor: pointer;
  height: auto !important;
}

.rs-contact-form-wrapper .wpforms-field select:hover {
  border-color: var(--rs-teal) !important;
  background-color: var(--rs-white) !important;
}

.rs-contact-form-wrapper .wpforms-field select:focus {
  outline: none !important;
  border-color: var(--rs-teal) !important;
  background-color: var(--rs-white) !important;
  box-shadow: 0 0 0 3px rgba(79, 163, 165, 0.1) !important;
}

.rs-contact-form-wrapper .wpforms-field input:focus,
.rs-contact-form-wrapper .wpforms-field textarea:focus,
.rs-contact-form-wrapper .wpforms-field select:focus {
  outline: none;
  border-color: var(--rs-teal);
  background: var(--rs-white);
  box-shadow: 0 0 0 3px rgba(79, 163, 165, 0.1);
}

.rs-contact-form-wrapper .wpforms-field textarea {
  min-height: 150px;
  resize: vertical;
}

.rs-contact-form-wrapper .wpforms-submit-container {
  text-align: center;
  margin-top: 24px;
}

/* ============================================
   WPFORMS SUBMIT BUTTON - Enhanced Override
   ============================================ */

/* Target all possible WPForms button selectors */
.rs-contact-form-wrapper .wpforms-submit,
.rs-contact-form-wrapper .wpforms-submit-container button,
.rs-contact-form-wrapper button[type="submit"],
.rs-contact-form-wrapper input[type="submit"] {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  background: var(--rs-teal) !important;
  background-color: var(--rs-teal) !important;
  color: var(--rs-white) !important;
  border: 2px solid var(--rs-teal) !important;
  padding: 14px 40px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(79, 163, 165, 0.2) !important;
  
  /* Remove WPForms default styles */
  background-image: none !important;
  text-shadow: none !important;
  height: auto !important;
  line-height: normal !important;
}

/* Hover state */
.rs-contact-form-wrapper .wpforms-submit:hover,
.rs-contact-form-wrapper .wpforms-submit-container button:hover,
.rs-contact-form-wrapper button[type="submit"]:hover,
.rs-contact-form-wrapper input[type="submit"]:hover {
  background: var(--rs-white) !important;
  background-color: var(--rs-white) !important;
  color: var(--rs-teal) !important;
  border-color: var(--rs-teal) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(79, 163, 165, 0.3) !important;
}

/* Active/Click state */
.rs-contact-form-wrapper .wpforms-submit:active,
.rs-contact-form-wrapper .wpforms-submit-container button:active,
.rs-contact-form-wrapper button[type="submit"]:active,
.rs-contact-form-wrapper input[type="submit"]:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 6px rgba(79, 163, 165, 0.2) !important;
}

/* Focus state (accessibility) */
.rs-contact-form-wrapper .wpforms-submit:focus,
.rs-contact-form-wrapper .wpforms-submit-container button:focus,
.rs-contact-form-wrapper button[type="submit"]:focus,
.rs-contact-form-wrapper input[type="submit"]:focus {
  outline: 3px solid rgba(79, 163, 165, 0.3) !important;
  outline-offset: 2px !important;
}

/* ============================================
   CITATION SECTION
   ============================================ */

.rs-citation-section {
  background: var(--rs-white);
  padding: 80px 0;
  border-top: 1px solid var(--rs-line);
  border-bottom: 1px solid var(--rs-line);
}

.rs-citation-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.rs-citation-box {
  background: var(--rs-body-bg);
  border-left: 4px solid var(--rs-teal);
  padding: 32px;
  border-radius: 4px;
}

.rs-citation-intro {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--rs-charcoal);
  margin: 0 0 24px 0;
}

.rs-citation-example {
  background: var(--rs-white);
  border: 1px solid var(--rs-line);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 0 0 20px 0;
}

.rs-citation-example code {
  font-family: var(--font-masthead); /* Roboto Mono */
  font-size: 15px;
  line-height: 1.8;
  color: var(--rs-black);
  display: block;
  white-space: pre-wrap;
}

.rs-citation-note {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  font-style: italic;
  margin: 0;
}

/* ============================================
   COLLABORATION POLICY
   ============================================ */

.rs-collaboration-section {
  background: var(--rs-body-bg);
  padding: 80px 0;
}

.rs-collaboration-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.rs-policy-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--rs-charcoal);
  background: var(--rs-white);
  border: 1px solid var(--rs-line);
  border-radius: 6px;
  padding: 40px;
}

.rs-policy-text p {
  margin: 0 0 20px 0;
}

.rs-policy-text p:last-child {
  margin-bottom: 0;
}

.rs-policy-text strong {
  color: var(--rs-black);
  font-weight: 600;
}

/* ============================================
   RESPONSE TIME EXPECTATIONS
   ============================================ */

.rs-response-section {
  background: var(--rs-white);
  padding: 80px 0;
  border-top: 1px solid var(--rs-line);
}

.rs-response-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.rs-response-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.rs-response-item {
  text-align: center;
  padding: 24px;
  background: var(--rs-body-bg);
  border: 1px solid var(--rs-line);
  border-radius: 6px;
}

.rs-response-time {
  font-family: var(--font-masthead); /* Roboto Mono */
  font-size: 32px;
  font-weight: 700;
  color: var(--rs-teal);
  margin-bottom: 12px;
}

.rs-response-label {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--rs-charcoal);
}

.rs-response-note {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  font-style: italic;
  text-align: center;
  margin: 0;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .rs-contact-hero {
    padding: 40px 0 30px 0;
  }
  
  .rs-contact-hero-container,
  .rs-contact-categories-container,
  .rs-contact-form-container,
  .rs-citation-container,
  .rs-collaboration-container,
  .rs-response-container {
    padding: 0 20px;
  }
  
  .rs-contact-title {
    font-size: 32px;
    letter-spacing: 2px;
  }
  
  .rs-contact-intro {
    font-size: 16px;
  }
  
  .rs-contact-categories,
  .rs-contact-form-section,
  .rs-citation-section,
  .rs-collaboration-section,
  .rs-response-section {
    padding: 60px 0;
  }
  
  .rs-section-heading {
    font-size: 24px;
  }
  
  .rs-categories-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .rs-contact-form-wrapper {
    padding: 24px;
  }
  
  .rs-citation-box,
  .rs-policy-text {
    padding: 24px;
  }
  
  .rs-response-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .rs-response-time {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .rs-contact-title {
    font-size: 24px;
  }
  
  .rs-citation-example code {
    font-size: 13px;
  }
}

/* ============================================
   SINGLE POST TEMPLATE - Editorial Journal Style
   ============================================ */

.rs-single-post {
  background: var(--rs-white);
}

/* ============================================
   POST HEADER
   ============================================ */

.rs-post-header {
  background: var(--rs-white);
  border-bottom: 1px solid var(--rs-line);
  padding: 60px 0 40px 0;
}

.rs-post-header-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Category Badge */
.rs-post-category-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 4px;
  color: var(--rs-white);
  text-decoration: none;
  margin-bottom: 20px;
  transition: opacity 0.2s ease;
}

.rs-post-category-badge:hover {
  opacity: 0.8;
}

/* Category colors */
.rs-badge-clima-y-energia {
  background: var(--rs-teal);
}

.rs-badge-modelos-narrativa {
  background: #2C5F7C;
}

.rs-badge-impactos-adaptacion {
  background: #D97642;
}

/* Post Title */
.rs-post-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rs-black);
  margin: 0 0 24px 0;
}

/* Byline (Author) */
.rs-post-byline {
  font-family: var(--font-body);
  font-size: 16px;
  margin: 0 0 16px 0;
}

.rs-author a {
  color: var(--rs-black);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.rs-author a:hover {
  color: var(--rs-teal);
}

/* Meta Information */
.rs-post-meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rs-meta-separator {
  color: #ddd;
}

.rs-collection-link {
  color: var(--rs-teal);
  text-decoration: none;
  font-weight: 600;
  transition: font-weight 0.2s ease;
}

.rs-collection-link:hover {
  font-weight: 700;
}

/* ============================================
   HERO IMAGE
   ============================================ */

.rs-post-hero {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}


.rs-hero-image {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16/9;
  height: auto;
  object-fit: cover;
  display: block

}

.rs-hero-caption {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: #666;
  text-align: center;
  padding: 16px 40px;
  background: var(--rs-body-bg);
  border-top: 1px solid var(--rs-line);
}

/* ============================================
   AI SUMMARY BOX (GEO Optimization)
   ============================================ */

.rs-ai-summary {
  max-width: 900px;
  margin-bottom: 30px;
  padding: 0 40px;

}

.rs-ai-summary > div:first-child {
  background: #F0F9F9; /* Light teal tint */
  border-left: 4px solid var(--rs-teal);
  border-right: 4px solid var(--rs-teal);
  border-radius: 6px;
  padding: 32px;
  display: grid;
  grid-template-columns: 120px 1fr; /* left title column + content */
  gap: 40px;
  align-items: center; /* vertically center title in left column */
}

.rs-summary-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--rs-black);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: center; /* center vertically inside the left grid cell */
  justify-self: start;
}

.rs-summary-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--rs-charcoal);
}

.rs-summary-text p {
  margin: 0 0 12px 0;
}

.rs-summary-text p:last-child {
  margin-bottom: 0;
}

/* ============================================
   MAIN CONTENT (Gutenberg Compatible)
   ============================================ */

.rs-post-content-wrapper {
  background: var(--rs-white);
  padding: 60px 0;
}

.rs-post-content-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.rs-post-content {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: var(--rs-charcoal);
}

/* Justified text */
.rs-post-content p {
  text-align: justify;
  margin: 0 0 24px 0;
}

/* Headings */
.rs-post-content h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  color: var(--rs-black);
  margin: 48px 0 24px 0;
  line-height: 1.3;
}

.rs-post-content h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--rs-black);
  margin: 36px 0 20px 0;
  line-height: 1.3;
}

/* Links - Teal color, bold on hover */
.rs-post-content a {
  color: var(--rs-teal);
  text-decoration: underline;
  text-decoration-color: rgba(79, 163, 165, 0.3);
  transition: all 0.2s ease;
  font-weight: 400;
}

.rs-post-content a:hover {
  font-weight: 700;
  text-decoration-color: var(--rs-teal);
  opacity: 1;
}

/* Blockquotes - Editorial Style */
.rs-post-content blockquote,
.rs-post-content .wp-block-quote {
  border-left: 4px solid var(--rs-teal);
  padding-left: 32px;
  margin: 40px 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-style: italic;
  line-height: 1.6;
  color: #333;
  background: var(--rs-body-bg);
  padding: 32px 32px 32px 36px;
  border-radius: 0 6px 6px 0;
}

.rs-post-content blockquote p,
.rs-post-content .wp-block-quote p {
  margin: 0;
}

.rs-post-content blockquote cite,
.rs-post-content .wp-block-quote cite {
  display: block;
  margin-top: 16px;
  font-size: 16px;
  font-style: normal;
  color: #666;
  font-family: var(--font-body);
}

/* Images and Figures */
.rs-post-content figure,
.rs-post-content .wp-block-image {
  margin: 40px 0;
  text-align: center;
}

.rs-post-content figure img,
.rs-post-content .wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--rs-line);
}

.rs-post-content figcaption,
.rs-post-content .wp-block-image figcaption {
  font-size: 14px;
  font-style: italic;
  color: #666;
  text-align: center;
  margin-top: 12px;
}

/* Lists */
.rs-post-content ul,
.rs-post-content ol {
  margin: 24px 0;
  padding-left: 32px;
}

.rs-post-content li {
  margin-bottom: 12px;
  line-height: 1.8;
}

/* Tables (for data) */
.rs-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  font-size: 16px;
}

.rs-post-content table th {
  background: var(--rs-body-bg);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--rs-line);
}

.rs-post-content table td {
  padding: 12px 16px;
  border: 1px solid var(--rs-line);
}

.rs-post-content table tr:nth-child(even) {
  background: #FAFAFA;
}

/* ============================================
   FAQ ACCORDION (Gutenberg Details Block Styled)
   ============================================ */

.rs-post-content details,
.rs-post-content .wp-block-details {
  background: var(--rs-body-bg);
  border: 1px solid var(--rs-line);
  border-radius: 6px;
  margin: 16px 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.rs-post-content details:hover {
  border-color: var(--rs-teal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rs-post-content summary,
.rs-post-content .wp-block-details summary {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--rs-black);
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rs-post-content summary::-webkit-details-marker {
  display: none;
}

.rs-post-content summary::after {
  content: '▼';
  color: var(--rs-teal);
  font-size: 14px;
  transition: transform 0.3s ease;
}

.rs-post-content details[open] summary::after {
  transform: rotate(180deg);
}

.rs-post-content summary:hover {
  background: var(--rs-white);
  color: var(--rs-teal);
}

.rs-post-content details div,
.rs-post-content .wp-block-details div {
  padding: 0 24px 24px 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--rs-charcoal);
}

/* ============================================
   REFERENCES SECTION
   ============================================ */

.rs-references {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--rs-line);
}

.rs-section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rs-black);
  margin: 0 0 24px 0;
}

.rs-references-content {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--rs-charcoal);
}

.rs-references-content ol {
  padding-left: 24px;
}

.rs-references-content li {
  margin-bottom: 16px;
}

/* ============================================
   POST FOOTER (Tags & Share)
   ============================================ */

.rs-post-footer {
  background: var(--rs-body-bg);
  border-top: 1px solid var(--rs-line);
  padding: 40px 0;
}

.rs-post-footer-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* Tags */
.rs-post-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rs-tags-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
}

.rs-tag {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--rs-charcoal);
  background: var(--rs-white);
  padding: 6px 12px;
  border: 1px solid var(--rs-line);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rs-tag:hover {
  background: var(--rs-teal);
  color: var(--rs-white);
  border-color: var(--rs-teal);
  opacity: 1;
}

/* Share Buttons */
.rs-share-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rs-share-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
}

.rs-share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rs-white);
  border: 1px solid var(--rs-line);
  border-radius: 50%;
  color: var(--rs-charcoal);
  transition: all 0.2s ease;
  text-decoration: none;
}

.rs-share-btn:hover {
  background: var(--rs-teal);
  color: var(--rs-white);
  border-color: var(--rs-teal);
  transform: translateY(-2px);
  opacity: 1;
}

/* ============================================
   COMMENTS SECTION (Styled)
   ============================================ */

.rs-comments-section {
  background: var(--rs-white);
  border-top: 1px solid var(--rs-line);
  padding: 60px 0;
}

.rs-comments-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Style default WordPress comments */
.rs-comments-container #respond {
  margin-top: 40px;
}

.rs-comments-container .comment-respond .comment-reply-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--rs-black);
  margin: 0 0 24px 0;
}

.rs-comments-container .comment-form-comment textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--rs-line);
  border-radius: 4px;
  background: var(--rs-body-bg);
  min-height: 150px;
  transition: all 0.2s ease;
}

.rs-comments-container .comment-form-comment textarea:focus {
  outline: none;
  border-color: var(--rs-teal);
  background: var(--rs-white);
  box-shadow: 0 0 0 3px rgba(79, 163, 165, 0.1);
}

.rs-comments-container .form-submit .submit {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--rs-teal);
  color: var(--rs-white);
  border: 2px solid var(--rs-teal);
  padding: 12px 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rs-comments-container .form-submit .submit:hover {
  background: var(--rs-white);
  color: var(--rs-teal);
  transform: translateY(-2px);
}

/* Comment list */
.rs-comments-container .comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rs-comments-container .comment {
  padding: 24px 0;
  border-bottom: 1px solid var(--rs-line);
}

.rs-comments-container .comment-author {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--rs-black);
  margin-bottom: 8px;
}

.rs-comments-container .comment-content {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--rs-charcoal);
}

/* ============================================
   RELATED POSTS
   ============================================ */

.rs-related-posts {
  background: var(--rs-body-bg);
  border-top: 1px solid var(--rs-line);
  padding: 60px 0;
}

.rs-related-posts-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.rs-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.rs-related-item {
  background: var(--rs-white);
  border: 1px solid var(--rs-line);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.rs-related-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--rs-teal);
}

.rs-related-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.rs-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rs-related-item:hover .rs-related-image img {
  transform: scale(1.05);
}

.rs-related-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rs-black);
  margin: 0;
  padding: 20px 20px 12px 20px;
}

.rs-related-title a {
  color: var(--rs-black);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rs-related-title a:hover {
  color: var(--rs-teal);
  opacity: 1;
}

.rs-related-date {
  font-family: var(--font-body);
  font-size: 13px;
  color: #999;
  padding: 0 20px 20px 20px;
  display: block;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .rs-post-header {
    padding: 40px 0 30px 0;
  }
  
  .rs-post-header-container,
  .rs-post-content-container,
  .rs-post-footer-container,
  .rs-comments-container,
  .rs-related-posts-container {
    padding: 0 20px;
  }
  
  .rs-post-title {
    font-size: 32px;
  }
  
  .rs-post-content {
    font-size: 16px;
  }
  
  .rs-post-content h2 {
    font-size: 24px;
  }
  
  .rs-post-content h3 {
    font-size: 20px;
  }
  
  .rs-post-footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .rs-related-grid {
    grid-template-columns: 1fr;
  }
  
  .rs-ai-summary {
    padding: 0 20px;
  }
  
  .rs-ai-summary > div:first-child {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* ============================================
   SCIENTIFIC NEWSLETTER BOX (BREVO)
   ============================================ */

.rs-newsletter-box {
    background-color: #F0F9F9;
    border-left: 4px solid var(--rs-teal);
    border-radius: 0 6px 6px 0;
    margin: 60px 0;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.rs-newsletter-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.rs-newsletter-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rs-teal);
    margin-bottom: 12px;
}

.rs-newsletter-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--rs-black);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.rs-newsletter-desc {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--rs-charcoal);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

/* Form Layout */
.rs-form-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

/* Reset Brevo default styling */
.sib_signup_form {
    padding: 0 !important;
}

.rs-form-group input[type="email"] {
    flex: 1;
    font-family: var(--font-body);
    font-size: 15px;
    padding: 14px 20px;
    border: 1px solid var(--rs-line);
    border-radius: 4px;
    background: var(--rs-white);
    color: var(--rs-charcoal);
    transition: all 0.2s ease;
    width: 100%;
}

.rs-form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--rs-teal);
    box-shadow: 0 0 0 3px rgba(79, 163, 165, 0.1);
}

.rs-form-group input[type="submit"] {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--rs-teal);
    color: var(--rs-white);
    border: 2px solid var(--rs-teal);
    padding: 0 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 52px; /* Matches input height */
}

.rs-form-group input[type="submit"]:hover {
    background: var(--rs-white);
    color: var(--rs-teal);
}

.rs-newsletter-privacy {
    font-family: var(--font-body);
    font-size: 12px;
    color: #888;
    margin: 16px 0 0 0;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .rs-newsletter-box {
        padding: 30px 20px;
        margin: 40px 0;
    }
    .rs-form-group {
        flex-direction: column;
    }
}

/* ============================================
   INLINE NEWSLETTER BOX (MID-ARTICLE)
   ============================================ */

.rs-newsletter-inline {
    background-color: var(--rs-body-bg); /* Soft gray to separate from white text background */
    border-left: 4px solid var(--rs-teal);
    padding: 24px 32px;
    margin: 40px 0; /* Breathing room above and below */
    border-radius: 0 6px 6px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.rs-newsletter-inline-text {
    flex: 1;
    min-width: 250px;
}

.rs-newsletter-inline-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--rs-black);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.rs-newsletter-inline-desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--rs-charcoal);
    margin: 0;
}

/* Horizontal Form Layout */
.rs-newsletter-inline-form {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 280px;
}

/* Reset Brevo wrappers if they appear */
.rs-newsletter-inline .sib_signup_form {
    padding: 0 !important;
    width: 100%;
}

.rs-newsletter-inline-form input[type="email"] {
    flex: 1;
    font-family: var(--font-body);
    font-size: 14px;
    padding: 12px 16px;
    border: 1px solid var(--rs-line);
    border-radius: 4px;
    background: var(--rs-white);
    color: var(--rs-charcoal);
    width: 100%;
    transition: all 0.2s ease;
}

.rs-newsletter-inline-form input[type="email"]:focus {
    outline: none;
    border-color: var(--rs-teal);
}

.rs-newsletter-inline-form input[type="submit"] {
    background: var(--rs-teal);
    color: var(--rs-white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--rs-teal);
    padding: 0 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 47px; /* Matches input height */
}

.rs-newsletter-inline-form input[type="submit"]:hover {
    background: var(--rs-white);
    color: var(--rs-teal);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .rs-newsletter-inline {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 16px;
    }
    
    .rs-newsletter-inline-form {
        width: 100%;
    }
}