/* Base styles */
:root {
  /* Color palette */
  --color-primary: #5a9090;
  --color-accent: #f05338;
  --color-accent-light: #ff8e7d;
  --color-text: #2d2d2d;
  --color-text-light: #5b6d6d;
  --color-background: #ffffff;
  --color-border: #d9d9d9;
  --color-light-gray: #f1f1f1;
  --color-blog-title-green: #154a39;
  --color-charts-bg: #fafafa;

  /* Chart category colors - DOCUMENTED */
  --color-economy: #19807e;
  --color-immigration: #f05338;
  --color-social-security: #124675;
  --color-health: #ff00bb;
  --color-education: #720d00;
  --color-foreign: #8b5cf6;

  /* Blog specific colors - UPDATED */
  --color-blog-category: #f05338;
  --color-blog-title: #19807e;
  /* Updated color */
  --color-blog-author: #939393;
  /* Updated color */
  --color-blog-text: #2d2d2d;
  /* Updated color */

  /* Typography */
  --font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Fluid spacing - Simplified */
  --space-xs: clamp(0.5rem, 2vw, 0.75rem);
  --space-sm: clamp(0.75rem, 3vw, 1rem);
  --space-md: clamp(1rem, 4vw, 1.5rem);
  --space-lg: clamp(1.5rem, 5vw, 2.5rem);
  --space-xl: clamp(2rem, 6vw, 4rem);

  /* Fluid typography - Simplified */
  --text-sm: clamp(0.875rem, 2vw, 1rem);
  --text-md: clamp(1rem, 2.5vw, 1.25rem);
  --text-lg: clamp(1.25rem, 3vw, 1.75rem);
  --text-xl: clamp(1.5rem, 4vw, 2.25rem);
  --text-2xl: clamp(1.75rem, 5vw, 3rem);

  /* Border radius */
  --radius-md: 8px;
  --radius-sm: 7px;
  --radius-blog: 5px;

  /* Transitions */
  --transition-normal: 0.3s ease;

  /* Shadows */
  --shadow-sm: 1px 2px 2px 0px rgba(0, 0, 0, 0.3);
  --shadow-sm-active: 1px 1px 1px 0px rgba(0, 0, 0, 0.2);
  --shadow-blog-card: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Header font override - maintain system font */
.header,
.header *,
.logo,
.logo *,
.nav-link,
.menu-toggle,
.menu-close,
.mobile-menu,
.mobile-menu * {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif !important;
}

/* Footer font override - maintain system font */
.footer,
.footer *,
.footer-nav-item,
.footer-social,
.footer-copyright,
.footer-copyright-desktop {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif !important;
}

/* Blog section - ensure Helvetica Neue */
.blog,
.blog *,
.blog-card,
.blog-card *,
.blog-category,
.blog-author,
.blog-author-name,
.blog-author-date,
.blog-card-title,
.blog-card-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* Blog content lists - restore list styling */
.blog-post-content ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: var(--space-md);
}

.blog-post-content ol {
  list-style: decimal;
  margin-left: 1.5rem;
  margin-bottom: var(--space-md);
}

.blog-post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.blog-post-content ul ul,
.blog-post-content ol ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Blog content horizontal rules - proper spacing */
.blog-post-content hr {
  margin: var(--space-lg) 0;
  border: none;
  height: 1px;
  background-color: var(--color-border);
}

/* Container - Modified to be wider in the hero section */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  box-sizing: border-box;
}

/* Specific container for the hero - wider */
.hero .container {
  max-width: 1400px;
  /* Increased to prevent the title from splitting into two lines */
}

/* Main content */
main {
  flex: 1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--color-text);
  text-align: center;
}

/* Dashboard/app pages override global h2 centering */
main[role="main"] h2 {
  text-align: left;
}

/* H2 Title Style - Reusable class for consistent title styling */
.h2-for-titles-style {
  color: #115151;
  font-weight: 500;
  /* medium weight */
  font-size: var(--text-xl);
  margin-bottom: 2em;
  /* Fixed spacing of 2em */
  text-align: center;
  margin-top: 0;
}

/* Section Title Styling - Future use, recyclable for other section titles */
.section-title,
.charts-section h2,
.blog h2,
.content h2 {
  color: #115151;
  font-weight: 500;
  /* medium weight */
  font-size: var(--text-xl);
  margin-bottom: 2em;
  /* Fixed spacing of 2em */
  text-align: center;
}

/* Override default h2 styling for sections that use the new title style */
.charts-section h2 {
  color: #115151;
  font-weight: 500;
  margin-top: 0;
  /* Removed margin-top since we now use padding in the section */
  margin-bottom: 2em;
  /* Fixed spacing of 2em */
}

/* Blog section title styling - matches charts section */
.blog h2 {
  color: #115151;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 2em;
  /* Fixed spacing of 2em */
}

h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: var(--text-md);
  margin-bottom: var(--space-sm);
}

h5 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
}

/* Chart Card Title Styling - Future use, recyclable for chart titles */
.chart-card h4,
.chart-main-card h4 {
  color: #4d4f4f;
  font-weight: 500;
  /* medium weight */
  font-size: var(--text-md);
  margin-bottom: 0.5rem;
  /* Reduced margin */
  margin-top: 0;
}

/* Chart Title Styling - Specific for chart titles */
.grid-sixty-thirty-left h5,
.chart-title-main {
  color: #19807e !important;
  font-weight: 500;
  font-size: var(--text-sm);
  margin-bottom: 1rem !important;
  margin-top: 0;
  padding: 0;
}

/* NEW: Chart Section H4 Styling - Specific for chart section titles */
.grid-sixty-thirty-column h4,
.chart-section-title {
  /* Remove these styles as we're now using h5 */
}

/* Chart column title hover effect (only for the first column) */
/*.grid-sixty-thirty-column:first-child h5:hover {
  color: #115151 !important;
}*/

p {
  margin-bottom: var(--space-md);
}

/* Geometric Background */
.geometric-bg {
  background: url("../image/geometric_pattern_hero5.png");
  background-size: 100% auto;
  background-position: center;
  background-repeat: repeat;
  position: relative;
  overflow: hidden;
  color: var(--color-background);
}

/* ===== REUSABLE BASIC BUTTONS ===== */
/* basic-button-1: Main button with colored background and elevation effect */
/* used in homepage buttons */
.basic-button-1 {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  font-size: var(--text-sm);
  background-color: var(--color-accent);
  color: var(--color-background);
  box-shadow: var(--shadow-sm);
}

.basic-button-1:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
}

.basic-button-1:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm-active);
}

/* ===== BASIC TITLE STYLES ===== */
/* basic-h2-style: Left-aligned h2 title */
.basic-h2-style {
  color: #115151;
  font-weight: 500;
  font-size: var(--text-xl);
  margin-bottom: 2em;
  text-align: left;
}

/* basic-button-2: Secondary button with border and color change on hover */
.basic-button-2 {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 400;
  font-size: 0.65em;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 0.8px solid #9e534a;
  background-color: #ffffff;
  color: #9e534a;
  box-shadow: var(--shadow-sm);
  outline: none;
}

.basic-button-2:hover {
  background-color: #9e534a;
  color: #ffffff;
  cursor: pointer;
}

.basic-button-2:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm-active);
}

/* Hero Section */
.hero {
  padding: var(--space-xl) 0;
  position: relative;
  z-index: 1;
}

/* Hero Title Styling - Updated for h2 with organic background */
.hero-title {
  font-size: var(--text-xl);
  /* Reduced size for h2 */
  font-weight: 500;
  /* Medium weight */
  background-color: rgba(45, 45, 45, 0.8);
  padding: 0.2rem 0.4rem;
  /* Further reduced padding */
  border-radius: 2px;
  display: inline;
  /* Inline for organic background */
  line-height: 1.3;
  /* Tighter line-height */
  margin-bottom: 0;
  /* Completely removed */
  margin-top: 0;
  text-align: left;
  color: var(--color-background);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  box-shadow: 0.2rem 0 0 rgba(45, 45, 45, 0.8), -0.2rem 0 0 rgba(45, 45, 45, 0.8);
}

/* Hero Description Styling - Adjusted for organic background and less space */
.hero-description {
  font-size: calc(var(--text-md) - 1pt);
  /* Reduced size */
  margin-bottom: var(--space-lg);
  margin-top: 0.1rem;
  /* Minimal space */
  background-color: rgba(45, 45, 45, 0.8);
  padding: 0.2rem 0.4rem;
  /* Further reduced padding */
  border-radius: 2px;
  display: inline;
  /* Inline for organic background */
  line-height: 1.5;
  /* Adjusted line-height */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: var(--color-background);
  box-shadow: 0.2rem 0 0 rgba(45, 45, 45, 0.8), -0.2rem 0 0 rgba(45, 45, 45, 0.8);
}

/* Hero content container - adjusted for better spacing */
.hero-content {
  text-align: left;
  position: relative;
  z-index: 2;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ===== REUSABLE TWO-COLUMN GRID SYSTEM ===== */
/* Future use - Recyclable for any two-column layout across pages */

.grid-two-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2em;
  margin-bottom: 2em;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Two-column layout from 1000px to avoid compression */
@media (min-width: 1000px) {
  .grid-two-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
    max-width: 1200px;
  }
}

/* Maintain single column until 999px to avoid compression */
@media (max-width: 999px) {
  .grid-two-columns {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

/* Two-column grid items - base styling for cards/items within the grid */
.grid-two-columns-item {
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 0.9rem;
  /* Cambiado de var(--space-md) a 0.9rem */
  border: 1px solid var(--color-border);
  width: 100%;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  box-sizing: border-box;
}

/* Responsive adjustments for two-column grid items */
@media (min-width: 1000px) {
  .grid-two-columns-item {
    min-width: 400px;
  }
}

@media (max-width: 999px) {
  .grid-two-columns-item {
    min-width: 300px;
    max-width: 100%;
  }
}

/* ===== REUSABLE 60%-30% GRID SYSTEM ===== */
/* Future use - Recyclable for 60%-30% layout across pages */

.grid-sixty-thirty {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2em;
  margin-bottom: 2em;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 60%-30% layout from 728px */
@media (min-width: 728px) {
  .grid-sixty-thirty {
    grid-template-columns: 60% 30%;
    gap: 2em;
    align-items: stretch;
  }
}

/* Maintain single column until 727px */
@media (max-width: 727px) {
  .grid-sixty-thirty {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

/* 60%-30% grid items - base styling for cards/items within the grid */
.grid-sixty-thirty-item {
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 0.9rem;
  /* Cambiado de var(--space-md) a 0.9rem */
  border: 1px solid var(--color-border);
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Left column (60%) specific styling */
.grid-sixty-thirty-left {
  /* Inherits from grid-sixty-thirty-item */
}

/* Right column (30%) specific styling */
.grid-sixty-thirty-right {
  /* Inherits from grid-sixty-thirty-item */
}

/* New column wrapper for titles outside containers */
.grid-sixty-thirty-column {
  display: flex;
  flex-direction: column;
}

/* Chart hover effects - RESTORED AND CORRECTED */
.grid-sixty-thirty-left {
  cursor: pointer;
  transition: all 0.3s ease;
}

.grid-sixty-thirty-left:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.grid-sixty-thirty-left:active {
  transform: scale(0.98);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.1s ease;
}

.grid-sixty-thirty-left h5:hover {
  color: #115151 !important;
}

/* Right column (30%) hover effects - NEW */
.grid-sixty-thirty-right {
  cursor: pointer;
  transition: all 0.3s ease;
}

.grid-sixty-thirty-right:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.grid-sixty-thirty-right:active {
  transform: scale(0.98);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.1s ease;
}

.grid-sixty-thirty-right h5:hover {
  color: #115151 !important;
}

/* Remove the previous styles that disabled interactivity */
/* .grid-sixty-thirty-right {
  cursor: default;
}

.grid-sixty-thirty-right h5 {
  cursor: default;
} */

/* ===== HOMEPAGE CATEGORIES STYLING (MOVED FROM homepage-categories-panel) ===== */
.grid-sixty-thirty-right {
  background-color: #ffffff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Categories Panel Title - Match chart title */
.categories-panel-title {
  color: #19807e !important;
  font-weight: 500;
  font-size: var(--text-sm) !important;
  margin-bottom: 1rem !important;
  margin-top: 0;
  text-align: center;
  /* Changed from left to center */
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.grid-sixty-thirty-right .categories-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-md);
  padding: 0;
  /* Remove any padding */
  align-items: center;
  /* Center the list items */
  width: 100%;
  /* Ensure full width */
}

.grid-sixty-thirty-right .explore-more-btn {
  background-color: var(--color-accent);
  color: var(--color-background);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.grid-sixty-thirty-right .explore-more-btn:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
}

.grid-sixty-thirty-right .explore-more-btn:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm-active);
}

/* Fix uneven margins in categories list */
.category-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #d9d9d9;
  margin: 0;
  /* Remove any margin */
  width: 90%;
  /* Set width to less than 100% to create centered appearance */
  max-width: 300px;
  /* Limit maximum width */
}

.category-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  padding-right: 1rem;
  /* Add consistent right padding */
  min-width: 0;
  /* Allow text to shrink */
}

.category-name {
  font-size: 0.875rem;
  color: var(--color-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  flex: 1;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.category-value {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  flex-shrink: 0;
  /* Prevent shrinking */
  text-align: right;
  min-width: 50px;
  /* Ensure minimum space for values */
}

/* Ensure consistent padding in categories list container */
.categories-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-md);
  padding: 0;
  /* Remove any padding */
}

/* Placeholder styling for right column content */
.grid-sixty-thirty-placeholder {
  background-color: #d3d3d3;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  color: #666;
  font-size: var(--text-sm);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments for 60%-30% grid items - UPDATED HEIGHTS */
/* Single column breakpoints: 320px, 390px, 430px, 500px, 620px */
@media (max-width: 727px) {
  .grid-sixty-thirty-item {
    min-height: auto;
    /* Altura automática en una columna */
    max-width: 100%;
  }

  .grid-sixty-thirty-left .chart-container {
    height: 280px !important;
    /* Reducido de 300px a 280px */
    min-height: 280px !important;
    max-height: 280px !important;
  }

  .grid-sixty-thirty-right .homepage-categories-panel {
    min-height: auto;
    /* Altura automática en una columna */
  }
}

/* Two column breakpoints: 728px, 1024px, 1100px, 1440px */
@media (min-width: 728px) {
  .grid-sixty-thirty-item {
    min-height: 320px;
    /* Reducido de 400px a 320px */
    align-items: flex-start;
  }

  .grid-sixty-thirty-left .chart-container {
    height: 280px !important;
    /* Reducido de 300px a 280px */
    min-height: 280px !important;
    max-height: 280px !important;
    flex: none;
  }

  .grid-sixty-thirty-right .homepage-categories-panel {
    height: 350px;
    /* Altura fija específica */
    min-height: 350px;
    max-height: 350px;
    /* Prevenir estiramiento */
  }
}

/* Charts Section */
.charts-section {
  padding: 2em 0 2em 0;
  /* Adjusted: added top padding of 2em */
  background-color: #ffffff;
  /* Cambiado de var(--color-charts-bg) a #ffffff */
  position: relative;
  /* Added for shadow positioning */
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.05);
  /* Subtle shadow - increased by 1px */
  z-index: 1;
  /* Ensure shadow appears above next section */
}

/* Modify the existing style for the charts section */
.charts-section h2 {
  color: #115151;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 2em;
  text-align: left;
  /* Changed from center to left */
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2em;
  /* Fixed spacing of 2em between charts */
  margin-bottom: 2em;
  /* Fixed spacing of 2em between grid and button */
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.chart-card {
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  width: 100%;
  display: flex;
  flex-direction: column;
  min-width: 300px;
  /* Add minimum width */
}

/* Base Chart Container Styles - Enhanced overflow prevention */
.chart-container {
  position: relative;
  width: 100%;
  min-height: 250px;
  height: 300px;
  margin-bottom: 1rem;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  /* Prevent overflow */
  box-sizing: border-box;
}

/* Chart Canvas Element - Enhanced responsive constraints */
.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  border-radius: var(--radius-md);
  box-sizing: border-box;
}

/* Chart Actions Container - Future use, recyclable for chart button layouts */
.chart-actions {
  display: flex;
  justify-content: flex-end;
  /* Align to right */
  margin-top: auto;
  /* Push to bottom of card */
  padding-top: 0.5rem;
}

.charts-action {
  text-align: center;
  margin-top: 0;
  /* Reset margin-top since charts-grid has margin-bottom */
  margin-bottom: calc(2em + 2%);
  /* Increased by 2% from original 2em */
}

/* HOME INSIGHTS CTA BANNER SECTION - Vertical layout */
.home-insights-cta-banner {
  padding: var(--space-lg) 0;
  background-color: #19807e;
  color: #ffffff;
  text-align: center;
}

.home-insights-cta-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  max-width: 600px;
  margin: 0 auto;
}

.home-insights-cta-banner-icon {
  width: 48px;
  height: 48px;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.home-insights-cta-banner-icon svg {
  width: 100%;
  height: 100%;
}

.home-insights-cta-banner-title {
  font-size: var(--text-lg);
  font-weight: 500;
  color: #ffffff !important;
  margin: 0;
  text-align: center;
  margin-bottom: 0.5rem;
}

.home-insights-cta-banner-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  font-size: var(--text-sm);
  background-color: var(--color-accent);
  color: var(--color-background);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.home-insights-cta-banner-button:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
}

.home-insights-cta-banner-button:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm-active);
}

/* Methodology Section - UPDATED COLORS */
.methodology {
  padding: var(--space-lg) 0;
  /* Reduced from --space-xl */
  background-color: #f9f9f2;
  /* Changed from #dbdbdb */
  color: #154a39;
  /* Changed from #2d2d2d */
  text-align: center;
  position: relative;
  z-index: 0;
}

.methodology-icon {
  width: clamp(48px, 8vw, 120px);
  height: clamp(48px, 8vw, 120px);
  margin: 0 auto 0.5rem;
  /* Reduced from --space-sm */
  color: #154a39;
  /* Changed from #2d2d2d */
}

.methodology-title {
  margin-bottom: var(--space-xs);
  /* Reduced from --space-sm */
  font-size: var(--text-lg);
  color: #154a39;
  /* Changed from #2d2d2d */
}

.methodology-subtitle {
  margin-bottom: var(--space-sm);
  /* Reduced from --space-md */
  font-size: var(--text-md);
  color: #154a39;
  /* Changed from #2d2d2d */
}

.methodology-text {
  max-width: 600px;
  margin: 0 auto var(--space-md);
  /* Reduced from --space-lg */
  font-size: var(--text-sm);
  color: #154a39;
  /* Changed from #2d2d2d */
}

/* ===== BLOG SECTION - COMPLETELY REDESIGNED ===== */
.blog {
  padding: 2em 0 2em 0;
  background-color: var(--color-background);
}

.blog-title {
  margin-bottom: var(--space-lg);
}

/* Blog Grid - Base (Mobile First) */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  /* Reduced gap for tighter spacing */
  margin-bottom: 2em;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog Card Base Styles */
.blog-card {
  width: 100%;
  background-color: var(--color-background);
  border-radius: var(--radius-blog);
  border: 1px solid var(--color-light-gray);
  box-shadow: var(--shadow-blog-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0.75rem;
  min-height: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Blog Image - Vertical Layout (Default) */
.blog-image {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  border-radius: var(--radius-blog);
  overflow: hidden;
  margin-bottom: 0.75rem;
  background-color: var(--color-light-gray);
  position: relative;
  flex-shrink: 0;
}

.blog-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-blog);
}

/* Blog Content */
.blog-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Blog Category */
.blog-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-blog-category);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Blog Author Section - Simplified horizontal layout */
.blog-author {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.6875rem;
  color: var(--color-blog-author);
  /* #939393 */
}

.blog-author svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.blog-author-name {
  margin-right: 0.5rem;
}

/* Remove these styles as they're no longer needed */
.blog-author-avatar,
.blog-author-info,
.blog-author-date svg {
  display: none;
}

/* Blog Card Title - Updated color */
.blog-card-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-blog-title);
  /* #19807E */
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

/* Blog Card Text - Updated color */
.blog-card-text {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-blog-text);
  /* #2d2d2d */
  line-height: 1.4;
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/*=====BLOG ENTRY STYLES=====*/
.blog-post-section {
  padding: var(--space-lg) 0;
  background-color: var(--color-background);
}

.blog-post-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 100%;
}

@media (min-width: 1024px) {
  .blog-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }

  .blog-post-meta {
    flex-wrap: nowrap;
  }

  .blog-post-meta-right {
    flex-direction: row;
    align-items: center;
    gap: var(--space-sm);
  }

  .related-post-image {
    width: 120px;
    height: 90px;
  }

  .blog-entry-image-placeholder {
    height: 280px;
  }
}

.blog-post-main {
  width: 100%;
  max-width: 100%;
}

.blog-post-header {
  margin-bottom: var(--space-lg);
}

.blog-post-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #154a39;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  text-align: left;
}

@media (min-width: 1100px) {
  .blog-post-title {
    font-size: 2.5rem;
  }

  .blog-post-content {
    font-size: 1.125rem;
  }

  .blog-entry-image-placeholder {
    height: 300px;
  }
}

.blog-post-subtitle {
  font-size: var(--text-md);
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 0;
}

.blog-post-image {
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-blog);
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 200px;
  object-fit: cover;
}

.blog-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.blog-post-meta-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-post-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.blog-entry-author-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-blog-author);
}

.blog-entry-author-date svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.blog-social-share {
  display: flex;
  gap: 0.5rem;
}

.blog-social-share a {
  color: var(--color-blog-author);
  transition: color 0.3s ease;
}

.blog-social-share a:hover {
  color: var(--color-accent);
}

.blog-social-share svg {
  width: 16px;
  height: 16px;
}

.blog-post-content {
  font-size: var(--text-md);
  line-height: 1.6;
  color: #2d2d2d;
  margin-bottom: var(--space-xl);
}

.blog-post-content h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: #154a39;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  text-align: left;
}

.blog-post-content h3 {
  font-size: var(--text-md);
  font-weight: 600;
  color: #154a39;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

.blog-post-content h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #154a39;
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

.blog-post-content p {
  margin-bottom: var(--space-md);
  color: #2d2d2d;
}

.blog-post-image-secondary {
  margin: var(--space-lg) 0;
  border-radius: var(--radius-blog);
  overflow: hidden;
}

.blog-post-image-secondary img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-content blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  border-left: 4px solid #19807e;
}

.blog-post-content blockquote p {
  font-size: calc(var(--text-lg) * 1.02);
  font-style: normal;
  color: #19807e;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.blog-post-content blockquote cite {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-style: normal;
  font-weight: 500;
}

.blog-author-bio {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background-color: #f8f9fa;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.blog-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.blog-empty-icon {
  margin-bottom: 1rem;
  opacity: 0.6;
}

.blog-empty-icon svg {
  color: #999;
}

.blog-empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.blog-empty-text {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}

.author-name {
  font-size: var(--text-md);
  font-weight: 600;
  color: #154a39;
  margin-bottom: 0.5rem;
}

.author-description {
  font-size: var(--text-sm);
  color: #2d2d2d;
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.author-social {
  display: flex;
  gap: 0.75rem;
}

.author-social a {
  color: var(--color-blog-author);
  transition: color 0.3s ease;
}

.author-social a:hover {
  color: var(--color-accent);
}

.author-social svg {
  width: 16px;
  height: 16px;
}

.blog-sidebar {
  width: 100%;
  position: sticky;
  top: 80px;
  z-index: 10;
}

.sidebar-content {
  background-color: #f9f9f7;
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius-md);
}

.sidebar-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.related-posts {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.related-post {
  display: flex;
  gap: var(--space-sm);
  padding: 0;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background-color: transparent;
}

.related-post:hover {
  transform: translateY(-2px);
}

.related-post-image {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.related-post-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ef713a;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.related-category {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--color-blog-category);
  text-transform: uppercase;
  padding: 0.125rem 0.375rem;
  background-color: rgba(240, 83, 56, 0.1);
  border-radius: var(--radius-sm);
}

.related-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  color: var(--color-blog-author);
  white-space: nowrap;
}

.related-date svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.sidebar-action {
  text-align: center;
}

.blog-entry-image-placeholder {
  width: 100%;
  height: 100%;
  background-image: url("../image/geometric_pattern_hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.875rem;
  border-radius: var(--radius-blog);
}

.blog-entry-image-placeholder::after {
  content: "";
}

.blog-entry-image-placeholder-small {
  width: 100%;
  height: 100%;
  background-color: #e0e0e0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.625rem;
}

.blog-entry-image-placeholder-small::after {
  content: "IMG";
  opacity: 0.7;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  background-color: #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.625rem;
}

.avatar-placeholder::after {
  content: "";
  opacity: 0.7;
}

/* Blog Responsive Breakpoints */
@media (max-width: 350px) {
  .blog-post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-post-meta-right {
    align-items: flex-start;
  }

  .blog-author-bio {
    flex-direction: column;
    text-align: center;
  }

  .author-avatar {
    align-self: center;
  }
}

@media (min-width: 390px) {
  .blog-post-section {
    padding: var(--space-xl) 0;
  }

  .blog-entry-image-placeholder {
    height: 220px;
  }
}

@media (min-width: 500px) {
  .related-post-image {
    width: 100px;
    height: 75px;
  }

  .related-post-title {
    font-size: 1rem;
  }
}

@media (min-width: 1440px) {
  .blog-post-layout {
    gap: 4rem;
  }

  .sidebar-content {
    padding: var(--space-lg);
  }

  .related-posts {
    gap: var(--space-lg);
  }

  .related-post {
    padding: 0;
  }
}

.blog-action {
  text-align: center;
  margin-top: 0;
  margin-bottom: calc(2em + 2%);
}

.btn-other-entries {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  font-size: var(--text-sm);
  background-color: var(--color-accent);
  color: var(--color-background);
  box-shadow: var(--shadow-sm);
}

.btn-other-entries:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
}

.btn-other-entries:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm-active);
}

/* ===== STATIC CATEGORY INDICATORS (HOMEPAGE ONLY) ===== */
.category-indicator-static {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  /* Reducido de 0.5rem a 0.25rem */
  font-size: 0.75rem;
  color: var(--color-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.category-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.category-label {
  font-weight: 400;
  line-height: 1.2;
}

/* Updated chart-categories - CENTERED WITH CONTAINER */
.chart-categories {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.25rem;
  margin-bottom: 0;
  padding: 0 1rem;
  /* Simplified padding instead of clamp */
  justify-content: center;
  order: 2;
  width: 100%;
  /* Use 100% instead of 100vw */
  max-width: 100%;
}

/* Responsive adjustments for static indicators */
@media (min-width: 540px) {
  .chart-categories {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
}

@media (max-width: 539px) {
  .chart-categories {
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    /* Even tighter on mobile */
  }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* 350px and below - Extra small mobile */
@media (max-width: 350px) {
  .blog-card {
    padding: 0.625rem;
    min-height: 320px;
  }

  .blog-author-avatar {
    width: 1.25rem;
    height: 1.25rem;
  }

  .blog-author-avatar svg {
    width: 10px;
    height: 10px;
  }
}

/* 390px - Standard mobile */
@media (min-width: 390px) and (max-width: 499px) {
  .blog-grid {
    gap: 1.25rem;
  }

  .blog-card {
    min-height: 360px;
  }
}

/* 390px - 419px: Vertical layout */
@media (min-width: 390px) and (max-width: 419px) {
  .blog-grid {
    gap: 1.25rem;
  }

  .blog-card {
    min-height: 360px;
    flex-direction: column;
    /* Ensure vertical layout */
  }

  .blog-image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin-bottom: 0.75rem;
    margin-right: 0;
  }

  .blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

/* 420px - 949px: HORIZONTAL LAYOUT (1 column) */
@media (min-width: 420px) and (max-width: 949px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .blog-card {
    flex-direction: row;
    /* Change to horizontal */
    align-items: stretch;
    min-height: 180px;
    /* Reduced height for horizontal layout */
    padding: 1rem;
    max-width: 100%;
  }

  .blog-image {
    width: 40%;
    /* Fixed width for image */
    height: 150px;
    /* Fixed height instead of auto */
    padding-bottom: 0;
    /* Remove aspect ratio padding */
    margin-bottom: 0;
    margin-right: 1rem;
    /* Add right margin */
    flex-shrink: 0;
    position: relative;
    /* Ensure position relative for absolute child */
  }

  .blog-image img {
    position: absolute;
    /* Keep position absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure image covers the area */
  }

  .blog-content {
    width: 60%;
    /* Remaining width for content */
    flex: 1;
  }
}

/* 950px+: 3 columns vertical */
@media (min-width: 950px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }

  .blog-card {
    flex-direction: column;
    width: 100%;
    max-width: 350px;
    min-height: 400px;
    padding: 1rem;
  }

  .blog-image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    margin-bottom: 0.75rem;
    margin-right: 0;
  }

  .blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .blog-content {
    width: 100%;
  }
}

/* 1440px+ - 3 columns vertical (MAINTAINED) */
@media (min-width: 1440px) {
  .blog-grid {
    gap: 1.5rem;
    max-width: 1200px;
  }

  .blog-card {
    min-height: 420px;
  }
}

/* Generic Content Section - Future use, recyclable for other content blocks */
@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
  }
}

/* Newsletter: horizontal layout from 768px */
@media (min-width: 768px) {
  .newsletter .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
  }

  .newsletter-image {
    margin: 0;
    flex: 1;
    max-width: 300px;
  }

  .newsletter-content {
    flex: 1;
    text-align: left;
  }

  .newsletter-form {
    margin: 0;
    flex-direction: row;
  }

  .newsletter-form input {
    flex: 1;
  }
}

/* Desktop - 1024px+ */
@media (min-width: 1024px) {
  .hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
  }

  .hero-content {
    text-align: left;
    max-width: 100%;
    padding: 0;
  }

  .methodology-content {
    max-width: 800px;
    margin: 0 auto;
  }
}

/* Animation classes */
@media (max-width: 727px) {
  .grid-sixty-thirty-right .categories-panel-title {
    text-align: center;
  }
}

@media (min-width: 728px) {
  .grid-sixty-thirty-right .homepage-categories-panel {
    height: 100%;
    /* Usar toda la altura del contenedor padre */
    min-height: 350px;
    /* Altura mínima consistente */
  }
}

/* ===== ENHANCED RESPONSIVE BREAKPOINTS FOR UNIFIED CHARTS ===== */

/* Mobile (320px - 539px) - Enhanced */
@media (max-width: 539px) {

  .chart-container,
  .grid-sixty-thirty-item .chart-container,
  .grid-two-columns-item .chart-container {
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .chart-container canvas {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Tablet (540px - 1023px) - Enhanced with specific 710px fix */
@media (min-width: 540px) and (max-width: 1023px) {
  .grid-sixty-thirty-item .chart-container {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .grid-two-columns-item .chart-container {
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .chart-container canvas {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Specific fix for 710px breakpoint */
@media (min-width: 700px) and (max-width: 750px) {
  .chart-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  .chart-container canvas {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
  }

  .grid-sixty-thirty-item {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  .charts-container {
    overflow-x: hidden;
  }
}

/* Desktop (1024px+) - Enhanced */
@media (min-width: 1024px) {
  .grid-sixty-thirty-item .chart-container {
    height: 300px !important;
    /* Altura fija con !important */
    min-height: 300px !important;
    max-height: 300px !important;
    /* Prevenir estiramiento */
  }

  .grid-two-columns-item .chart-container {
    height: 280px !important;
    /* Altura fija con !important */
    min-height: 280px !important;
    max-height: 280px !important;
    /* Prevenir estiramiento */
  }
}

/* Large Desktop (1440px+) - Enhanced */
@media (min-width: 1440px) {
  .grid-sixty-thirty-item .chart-container {
    height: 350px !important;
    /* Altura fija con !important */
    min-height: 350px !important;
    max-height: 350px !important;
    /* Prevenir estiramiento */
  }

  .grid-two-columns-item .chart-container {
    height: 320px !important;
    /* Altura fija con !important */
    min-height: 320px !important;
    max-height: 320px !important;
    /* Prevenir estiramiento */
  }
}

/* Enhanced responsiveness for charts section */
@media (max-width: 727px) {
  .grid-sixty-thirty-item {
    padding: 0.75rem;
  }

  .category-list-item {
    padding: 0.5rem 0;
  }

  .category-info {
    padding-right: 0.5rem;
  }

  .category-name {
    font-size: 0.8rem;
  }

  .category-value {
    font-size: 0.8rem;
    min-width: 45px;
  }
}

@media (min-width: 728px) {
  .grid-sixty-thirty-item {
    padding: 1rem;
  }
}

/* Container overflow prevention */
.charts-container,
.container {
  overflow-x: hidden;
  box-sizing: border-box;
}

.grid-sixty-thirty-item,
.grid-two-columns-item {
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

/* Independent content placeholder styling */
.independent-content-placeholder {
  background-color: #f9f9f7;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: left;
  color: #666;
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.independent-content-placeholder p {
  margin: 0;
  line-height: 1.5;
}

/* Loading States for Fetch Components */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  color: #686868;
  font-size: 0.875rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #f9f9f9;
  border-radius: var(--radius-md);
}

/* Loading state for chart containers */
.chart-container .loading {
  min-height: 250px;
  border: 1px solid var(--color-border);
}

/* Loading state for categories */
.categories-list .loading {
  min-height: 100px;
  margin: 1rem 0;
}

/* reCAPTCHA badge positioning */
.grecaptcha-badge {
  z-index: 9999 !important;
  position: fixed !important;
}

/* Homepage Quote Section - v2 */
.homepage-quote-v1 {
  background-color: #f9f9f2;
  padding: var(--space-xl) 0;
  overflow: hidden;
  /* Previene el scroll horizontal */
}

.homepage-quote-v1 .container {
  display: flex;
  flex-direction: column;
}

/* INSIGHTS BANNER SECTION */
.insights-banner {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, #19807e 0%, #16706e 100%);
  color: #ffffff;
  text-align: center;
}

.insights-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.insights-banner-icon {
  width: 64px;
  height: 64px;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.insights-banner-icon svg {
  width: 100%;
  height: 100%;
}

.insights-banner-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.insights-banner-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

.insights-banner-stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.insights-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.insights-stat-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.insights-stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* INSIGHTS LISTING SECTION */
.insights-listing {
  padding: var(--space-xl) 0;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.insight-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.insight-item:hover {
  border-color: #19807e;
  box-shadow: 0 4px 12px rgba(25, 128, 126, 0.1);
  transform: translateY(-2px);
}

.insight-image {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insight-image::before {
  content: '';
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.insight-image-timeseries {
  background-color: #e0f2f1;
}

.insight-image-timeseries::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2319807e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22,12 18,12 15,21 9,3 6,12 2,12'%3E%3C/polyline%3E%3C/svg%3E");
}

.insight-image-list {
  background-color: #fff3e0;
}

.insight-image-list::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f57c00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='8' y1='18' x2='21' y2='18'%3E%3C/line%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

/* Add any other insight type icons you have */
.insight-image-bar_chart {
  background-color: #e3f2fd;
}

.insight-image-bar_chart::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231976d2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'%3E%3C/line%3E%3Cline x1='12' y1='20' x2='12' y2='4'%3E%3C/line%3E%3Cline x1='6' y1='20' x2='6' y2='14'%3E%3C/line%3E%3C/svg%3E");
}

.insight-image-pie_chart {
  background-color: #f3e5f5;
}

.insight-image-pie_chart::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237b1fa2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.21 15.89A10 10 0 1 1 8 2.83'%3E%3C/path%3E%3Cpath d='M22 12A10 10 0 0 0 12 2v10z'%3E%3C/path%3E%3C/svg%3E");
}

.insight-content-info {
  flex: 1;
  min-width: 0;
}

.insight-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.insight-category {
  background-color: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.insight-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4b5563;
  margin: 0;
}

.insights-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-xl);
}

.insights-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: #9ca3af;
}

.insights-empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.insights-empty-text {
  color: #6b7280;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .insights-banner-title {
    font-size: 2rem;
  }

  .insights-banner-stats {
    gap: var(--space-md);
  }

  .insights-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .insight-item {
    padding: var(--space-sm);
  }
}

align-items: flex-start;
/* Alinea los elementos a la izquierda */
max-width: 900px;
/* Ancho máximo para el contenido */
}

.quote-text-homepage {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  /* Aumentado medio punto */
  line-height: 1.6;
  color: #354242;
  position: relative;
  padding-left: 4rem;
  /* Espacio para la comilla */
  margin: 0;
  font-style: normal;
  max-width: 100%;
}

.quote-text-homepage::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -0.2em;
  font-size: clamp(4rem, 10vw, 6rem);
  /* Tamaño de comilla responsivo */
  color: #f05338;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.quote-divider {
  width: 50px;
  height: 4px;
  background-color: #f05338;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.quote-author {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(0.9rem, 2.1vw, 1.05rem);
  /* Aumentado medio punto */
  color: #354242;
  font-style: normal;
  font-weight: 500;
}

/* =================================================== */
/* ===== SPLIT BANNER STYLES (DEFINITIVE FIX) ===== */
/* =================================================== */

/* Mobile-first styles (default) */
section.split-banner {
  display: flex;
  flex-direction: column;
  /* Image on top, text below */
  width: 100%;
  box-sizing: border-box;
}

.split-banner-image {
  background-image: url("https://galaxina.mx/politicker/test-img/202507-split-banner-img-1.jpg");
  background-size: cover;
  background-position: center;
  min-height: 300px;
  width: 100%;
}

.split-banner-content {
  background-color: #354242;
  color: #ffffff;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.split-banner-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.2;
}

.split-banner-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--text-md);
  max-width: 500px;
  margin: 0 0 var(--space-lg) 0;
  line-height: 1.6;
  opacity: 0.9;
}

.split-banner-cta {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  border: 1px solid #ffffff;
  color: #ffffff;
  background-color: transparent;
  padding: 0.75rem 2rem;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.split-banner-cta:hover {
  background-color: #ffffff;
  color: #354242;
}

/* Desktop layout (from 950px and up) with INCREASED SPECIFICITY */
@media (min-width: 950px) {

  /* This selector is now more specific to prevent overrides */
  main>section.split-banner {
    flex-direction: row;
    /* Side-by-side layout */
    min-height: 330px;
  }

  main>section.split-banner>.split-banner-image {
    width: 50%;
    order: 2;
    /* Image on the right */
    min-height: auto;
  }

  main>section.split-banner>.split-banner-content {
    width: 50%;
    order: 1;
    /* Text on the left */
    align-items: flex-start;
    /* Align content to the left */
    text-align: left;
    padding: var(--space-xl) clamp(2rem, 8vw, 6rem);
  }
}

/*newsletter subscribe styles*/

.newsletter-subscribe-section {
  padding: var(--space-xl) 0 !important;
  background-color: #fdfdfd !important;
  text-align: center !important;
}

.newsletter-subscribe-section .container {
  max-width: 700px !important;
}

.newsletter-subscribe-title {
  font-family: Georgia, "Times New Roman", serif !important;
  color: var(--color-accent) !important;
  font-size: clamp(1.5rem, 4vw, 2.25rem) !important;
  font-weight: 400 !important;
  margin-bottom: var(--space-lg) !important;
  line-height: 1.3 !important;
}

.newsletter-subscribe-form {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 1.5rem !important;
  width: 100% !important;
}

.newsletter-subscribe-input-wrapper {
  position: relative !important;
  width: 100% !important;
  max-width: 450px !important;
}

.newsletter-subscribe-icon {
  position: absolute !important;
  left: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #a0a0a0 !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* Apply grid item styling to anchor tags when they wrap grid items */
.grid-sixty-thirty>a {
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  padding: 0.9rem;
  border: 1px solid var(--color-border);
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}

/* Remove styling from grid items when wrapped in anchors */
.grid-sixty-thirty>a>.grid-sixty-thirty-item {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

/* Responsive adjustments for anchor-wrapped grid items */
@media (min-width: 728px) {
  .grid-sixty-thirty>a {
    min-height: 320px;
    align-items: flex-start;
  }
}

@media (max-width: 727px) {
  .grid-sixty-thirty>a {
    min-height: auto;
    max-width: 100%;
  }
}

.newsletter-subscribe-input {
  width: 100% !important;
  padding: 0.8rem 1rem 0.8rem 3rem !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  font-size: var(--text-md) !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  transition: border-color 0.3s ease !important;
  box-sizing: border-box !important;
}

.newsletter-subscribe-input:focus {
  outline: none !important;
  border-color: var(--color-accent) !important;
}

.newsletter-subscribe-input::placeholder {
  color: #a0a0a0 !important;
}

/* ===== MOBILE STYLES (320px - 539px) - ENHANCED ===== */
@media (max-width: 539px) {
  .newsletter-subscribe-section {
    padding: clamp(2rem, 6vw, 3rem) 0 !important;
  }

  .newsletter-subscribe-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem) !important;
    margin-bottom: 2rem !important;
  }

  .newsletter-subscribe-form {
    gap: 1.5rem !important;
    flex-direction: column !important;
  }

  .newsletter-subscribe-input-wrapper {
    max-width: 100% !important;
  }

  .newsletter-subscribe-input {
    padding: 1rem 1rem 1rem 3.5rem !important;
    font-size: 1rem !important;
  }

  .newsletter-subscribe-icon {
    left: 1.2rem !important;
    width: 18px !important;
    height: 18px !important;
  }
}

/* ===== TABLET AND DESKTOP STYLES (540px+) ===== */
@media (min-width: 540px) {
  .newsletter-subscribe-form {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }

  .newsletter-subscribe-input-wrapper {
    flex-grow: 1 !important;
    max-width: 350px !important;
  }

  .newsletter-subscribe-form button {
    flex-shrink: 0 !important;
  }
}

/* ===== TABLET SPECIFIC (768px+) ===== */
@media (min-width: 768px) {
  .newsletter-subscribe-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  }

  .newsletter-subscribe-input-wrapper {
    max-width: 400px !important;
  }
}

/* ===== OVERRIDE CONFLICTING STYLES ===== */
@media (min-width: 768px) {
  .newsletter-subscribe-section .container {
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
    gap: unset !important;
  }
}

.blog-author-avatar {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-author-avatar svg {
  width: 12px;
  height: 12px;
}

/* Author avatar in author bio section */
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pagination styles */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.pagination-info {
  color: var(--color-text-light);
  font-size: var(--text-sm);
}

.pagination-controls {
  display: flex;
  gap: var(--space-sm);
}

.pagination-btn {
  padding: 0.5rem 1rem;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: var(--transition-normal);
}

.pagination-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-background);
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .pagination {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* Add explicit height for mobile screens under 390px */
@media (max-width: 389px) {
  .blog-entry-image-placeholder {
    height: 200px !important;
    min-height: 200px !important;
  }
}

/* ===== LOGIN PAGE STYLES ===== */
.login-section {
  padding: var(--space-xl) 0;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-xl);
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.login-subtitle {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--color-text-light);
  font-size: var(--text-md);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.login-messages {
  margin-bottom: var(--space-md);
}

.login-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.login-message-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.login-message-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.login-message-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.login-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-label {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
}

.login-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.login-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.login-input::placeholder {
  color: #a0a0a0;
}

.login-remember-group {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.login-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  font-size: var(--text-sm);
  cursor: pointer;
}

.login-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.login-error {
  color: #dc3545;
  font-size: var(--text-sm);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin-top: 0.25rem;
}

.login-error-general {
  padding: 0.75rem;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius-sm);
  color: #721c24;
}

.login-submit {
  width: 100%;
  margin-top: var(--space-sm);
  padding: 0.8rem 1.2rem;
  font-size: var(--text-md);
}

.login-footer {
  margin-top: var(--space-lg);
  text-align: center;
}

.login-footer-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--color-text-light);
  font-size: var(--text-sm);
  margin-bottom: 0.5rem;
}

.login-link {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-link:hover {
  color: var(--color-accent-light);
  text-decoration: underline;
}

.login-help-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* Email verification resend section */
.login-resend-section {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.login-resend-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  text-align: center;
}

/* Icon support in login messages */
.login-message i {
  margin-right: 0.5rem;
}

/* Google OAuth button styles */
.login-divider {
  display: flex;
  align-items: center;
  margin: var(--space-lg) 0;
  text-align: center;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-border);
}

.login-divider-text {
  padding: 0 var(--space-md);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--color-text-light);
  font-size: var(--text-sm);
}

.google-oauth-form {
  margin-bottom: var(--space-md);
}

.google-oauth-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-background);
  color: var(--color-text);
  font-size: var(--text-md);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.google-oauth-button:hover {
  background-color: var(--color-light-gray);
  border-color: var(--color-text-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-oauth-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.google-icon {
  flex-shrink: 0;
}

/* ===== DASHBOARD PAGE STYLES ===== */
.dashboard-section {
  padding: var(--space-xl) 0;
  min-height: calc(100vh - 200px);
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.dashboard-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.dashboard-welcome {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.dashboard-description {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--color-text-light);
  font-size: var(--text-md);
  margin-bottom: var(--space-lg);
}

.dashboard-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.dashboard-widget {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-blog-card);
}

.dashboard-widget-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.dashboard-widget-placeholder {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--color-text-light);
  font-size: var(--text-sm);
  font-style: italic;
  margin: 0;
}

.dashboard-actions {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.logout-form {
  display: inline-block;
}

.logout-button {
  padding: 0.6rem 1.2rem;
  font-size: var(--text-sm);
}

/* Responsive dashboard widgets */
@media (min-width: 768px) {
  .dashboard-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dashboard-widgets {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== RESPONSIVE LOGIN STYLES ===== */
@media (max-width: 539px) {
  .login-container {
    padding: var(--space-lg);
    margin: var(--space-md);
  }

  .login-title {
    font-size: var(--text-xl);
  }

  .login-subtitle {
    font-size: var(--text-sm);
  }

  .login-input {
    padding: 1rem;
    font-size: 1rem;
  }
}