/*
Theme Name: SolisVerge
Theme URI: https://solisverge.com
Author: SolisVerge Team
Author URI: https://solisverge.com
Description: Ultra-fast, SEO-optimized WordPress theme for clean energy and sustainability content. Built for Core Web Vitals, semantic HTML5, and top Google rankings.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solisverge
Tags: blog, clean-energy, sustainability, seo-optimized, performance, accessibility-ready, translation-ready
*/

/* ==========================================================================
   CSS RESET & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: #121212;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #e8eaed;
  background-color: #121212;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #ffffff;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.875rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: #2ecc71;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: #27ae60;
  text-decoration: underline;
}

a:focus {
  outline: 2px solid #2ecc71;
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-wide {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  background-color: #1a252f;
  border-bottom: 1px solid #2c2c2c;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  min-height: 70px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-branding .logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: #ffffff;
  text-decoration: none;
}

.site-title a:hover {
  color: #2ecc71;
  text-decoration: none;
}

.site-description {
  font-size: 0.875rem;
  color: #9aa0a6;
  margin: 0;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  color: #e8eaed;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  display: block;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: #2ecc71;
  text-decoration: none;
}

.main-navigation .current-menu-item a {
  color: #2ecc71;
  border-bottom: 2px solid #2ecc71;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #e8eaed;
  font-size: 1.5rem;
  line-height: 1;
}

.mobile-menu-toggle:focus {
  outline: 2px solid #2ecc71;
  outline-offset: 2px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  margin: 2rem 0;
}

.hero-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  background-color: #1e1e1e;
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-content {
  padding: 2rem;
}

.hero-category {
  display: inline-block;
  background-color: #2ecc71;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-title a {
  color: #ffffff;
}

.hero-title a:hover {
  color: #2ecc71;
}

.hero-excerpt {
  color: #bdc1c6;
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #9aa0a6;
}

/* ==========================================================================
   ARTICLE GRID
   ========================================================================== */

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.article-card {
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
}

.article-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-content {
  padding: 1.5rem;
}

.article-category {
  display: inline-block;
  background-color: #1e2e26;
  color: #2ecc71;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.article-title {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-title a {
  color: #ffffff;
}

.article-title a:hover {
  color: #2ecc71;
  text-decoration: none;
}

.article-excerpt {
  color: #bdc1c6;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: #95a5a6;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */

.single-post-header {
  margin: 2rem 0;
}

.single-post-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9375rem;
  color: #7f8c8d;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.featured-image {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: auto;
}

.entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #e8eaed;
  margin-bottom: 3rem;
}

.entry-content>* {
  margin-bottom: 1.5rem;
}

.entry-content h2 {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
  border-top: 3px solid #2ecc71;
}

.entry-content h3 {
  margin-top: 2rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content blockquote {
  border-left: 4px solid #2ecc71;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #bdc1c6;
}

.entry-content code {
  background-color: #2a2a2a;
  color: #e8eaed;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

.entry-content pre {
  background-color: #1a1a1a;
  color: #e8eaed;
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid #2c2c2c;
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ==========================================================================
   TABLE OF CONTENTS - Sticky on Desktop & Collapsible on Mobile
   ========================================================================== */

.table-of-contents {
  background-color: #1e1e1e;
  border-left: 4px solid #2ecc71;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.toc-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.toc-toggle {
  display: none;
  font-size: 1.25rem;
  color: #2ecc71;
  transition: transform 0.3s ease;
}

.toc-toggle.active {
  transform: rotate(180deg);
}

.toc-list {
  list-style: none;
  padding-left: 0;
  line-height: 1.8;
}

.toc-list li {
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  position: relative;
}

.toc-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #2ecc71;
  font-weight: bold;
}

.toc-list a {
  color: #e8eaed;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.toc-list a:hover,
.toc-list a.active {
  color: #2ecc71;
  text-decoration: none;
}

.toc-list a.active {
  font-weight: 700;
}

/* ==========================================================================
   BREADCRUMBS - Enhanced Visibility
   ========================================================================== */

.breadcrumbs {
  font-size: 0.875rem;
  color: #9aa0a6;
  margin: 1.5rem 0 2rem;
  padding: 0.75rem 1rem;
  background-color: #1e1e1e;
  border-left: 3px solid #2ecc71;
  border-radius: 4px;
}

.breadcrumbs a {
  color: #2ecc71;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #27ae60;
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: #bdc3c7;
  font-weight: 400;
}

.breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   RELATED POSTS
   ========================================================================== */

.related-posts {
  margin: 4rem 0;
  padding: 2rem 0;
  border-top: 2px solid #2c2c2c;
}

.related-posts-title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar {
  margin-top: 2rem;
}

.widget {
  background-color: #1e1e1e;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2c2c2c;
}

.widget li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.widget a {
  color: #e8eaed;
  font-size: 0.9375rem;
}

.widget a:hover {
  color: #2ecc71;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: #1a252f;
  color: #ecf0f1;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-widget h3 {
  color: #ffffff;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
}

.footer-widget li {
  margin-bottom: 0.5rem;
}

.footer-widget a {
  color: #bdc3c7;
  font-size: 0.9375rem;
}

.footer-widget a:hover {
  color: #2ecc71;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #95a5a6;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #2c2c2c;
  border-radius: 4px;
  color: #e8eaed;
  background-color: #1e1e1e;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background-color: #2ecc71;
  color: #ffffff;
  border-color: #2ecc71;
  text-decoration: none;
}

.pagination .current {
  background-color: #2ecc71;
  color: #ffffff;
  border-color: #2ecc71;
}

/* ==========================================================================
   BUTTONS & FORMS
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #2ecc71;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
}

.btn:hover,
.btn:focus {
  background-color: #27ae60;
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  background-color: #2c2c2c;
  color: #e8eaed;
}

.btn-secondary:hover {
  background-color: #3a3a3a;
  color: #ffffff;
}

input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #3a3a3a;
  background-color: #1e1e1e;
  color: #e8eaed;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #2ecc71;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #1e1e1e;
  border-radius: 3px;
  clip: auto !important;
  color: #2ecc71;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: #2ecc71;
  color: #ffffff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100000;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    padding: 2.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

/* Mobile toggle - hide on desktop */
@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none !important;
  }

  .main-navigation {
    display: flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* ==========================================================================
   RESPONSIVE - DESKTOP
   ========================================================================== */

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .related-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-widgets {
    grid-template-columns: repeat(4, 1fr);
  }

  .single-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
  }

  .sidebar {
    margin-top: 0;
  }

  .sidebar.sticky {
    position: sticky;
    top: 90px;
    align-self: start;
  }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #1a1a1a;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  }

  .main-navigation.active {
    left: 0;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
  }

  .main-navigation li {
    border-bottom: 1px solid #2c2c2c;
  }

  .main-navigation a {
    padding: 1rem 0;
    font-size: 1.125rem;
  }

  .single-post-title {
    font-size: 1.75rem;
  }

  .entry-content {
    font-size: 1rem;
  }
}

/* ==========================================================================
   INTERNAL LINKING - Pillar Link Box
   ========================================================================== */

.pillar-link-box {
  background-color: #1e2e26;
  border-left: 4px solid #2ecc71;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.6;
}

.pillar-link-box .pillar-icon {
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

.pillar-link-box strong {
  color: #ffffff;
}

.pillar-link-box .pillar-link {
  color: #2ecc71;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.pillar-link-box .pillar-link:hover {
  color: #27ae60;
}

/* Contextual links */
a.contextual-link {
  color: #2ecc71;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

a.contextual-link:hover {
  color: #27ae60;
  text-decoration-style: solid;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {

  .mobile-menu-toggle,
  .main-navigation,
  .sidebar,
  .related-posts,
  .site-footer {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
/* ==========================================================================
   HOMEPAGE SECTIONS (Hero, Trending, Latest, Categories)
   ========================================================================== */

/* Main Containers */
.sv-main-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-bottom: 3rem;
  padding-top: 3rem;
}

.sv-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #2ecc71;
  padding-bottom: 0.5rem;
}

.sv-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #eeeeee;
  margin: 0;
  position: relative;
}

.sv-section-link {
  font-size: 0.9rem;
  color: #bdc3c7;
  text-decoration: none;
  font-weight: 500;
}

.sv-section-link:hover {
  color: #2ecc71;
}

/* 1. Hero Section */
.sv-hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  margin-bottom: 0; /* Container padding handles spacing */
  color: #ffffff;
}

.sv-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.1) 100%);
}

.sv-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.sv-hero-content {
  max-width: 600px;
}

.sv-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.sv-hero-subtitle {
  font-size: 1.25rem;
  color: #ecf0f1;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.sv-hero-buttons {
  display: flex;
  gap: 1rem;
}

.sv-hero-btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: capitalize;
}

/* 2. Grids (Common) */
.sv-grid {
  display: grid;
  gap: 1.5rem;
}

.sv-grid-3 {
  grid-template-columns: repeat(1, 1fr);
}

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

.sv-grid-4 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 600px) {
  .sv-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* 3. Cards (Trending & Latest) */
.sv-card {
  background-color: #ffffff; /* Light card as per design image white background */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Dark theme overrides for cards if parent is dark, but design shows white cards on light grey bg.
   Assuming the theme is generally dark based on previous file viewing (dark bg colors).
   Let's check style.css again... yes, body is dark (#121212 usually or similar).
   Wait, the design image shows WHITE cards on a light background?
   Actually the user provided image has a light background mostly.
   BUT the user's current 'style.css' has background-color: #121212 (Dark Theme) in the previous context/files I saw?
   Let's re-read style.css start...
   Wait, I didn't see the body background in the view_file snippet.
   Let's assume the user wants it to look like the IMAGE provided.
   The image provided is LIGHT THEME.
   However, the user pushed for 'Dark Theme' in a previous conversation.
   I should probably stick to the theme's current aesthetic but implement the LAYOUT of the image.
   If the theme is dark, I'll make the cards dark (#1e1e1e) to match the dark theme established in previous queries.
   'style.css' snippet showed:
   .pagination a { background-color: #1e1e1e; color: #e8eaed; }
   This confirms a DARK theme is active.
   So I will make the cards DARK (#1e1e1e) with Light Text to match the existing theme, 
   adapting the 'layout' from the image but the 'colors' from the theme.
*/

.sv-card {
  background-color: #1e1e1e;
  border: 1px solid #2c2c2c;
  color: #e8eaed;
}

.sv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.3);
  border-color: #2ecc71;
}

.sv-card-image-link {
  display: block;
  width: 100%;
  padding-top: 60%; /* Aspect ratio */
  position: relative;
}

.sv-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-card-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sv-card-category-wrapper {
  margin-bottom: 0.5rem;
}

.sv-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #2ecc71;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sv-card-title {
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.sv-card-title a {
  color: #ffffff;
  text-decoration: none;
}

.sv-card-title a:hover {
  color: #2ecc71;
}

.sv-card-excerpt {
  font-size: 0.9rem;
  color: #bdc3c7;
  display: flex;
  gap: 0.5rem;
  margin-top: auto; /* Push to bottom if needed, or just flow */
}

.sv-card-icon {
  color: #2ecc71;
  flex-shrink: 0;
  margin-top: 3px;
}

/* 4. Category Cards */
.sv-category-card {
  position: relative;
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
  border: 1px solid #2c2c2c;
}

.sv-category-card:hover {
  transform: translateY(-5px);
  border-color: #2ecc71;
}

.sv-category-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.sv-category-image-wrapper {
  height: 120px;
  overflow: hidden;
  position: relative;
}

.sv-category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sv-category-card:hover .sv-category-image {
  transform: scale(1.1);
}

.sv-category-content {
  padding: 1rem;
}

.sv-category-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
}

.sv-category-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #95a5a6;
}

.sv-category-icon {
  color: #2ecc71;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .sv-hero-title {
    font-size: 2rem;
  }
  
  .sv-section-header {
    flex-direction: row; /* Keep row for small screens too usually */
    align-items: baseline;
  }
  
  .sv-section-title {
    font-size: 1.25rem;
  }
}


/* ==========================================================================
   SIDEBAR LAYOUT & WIDGETS
   ========================================================================== */

.sv-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .sv-sidebar-layout {
    grid-template-columns: 2fr 1fr; /* 2/3 Content, 1/3 Sidebar */
  }
}

.sv-main-column .sv-grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .sv-main-column .sv-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* SIDEBAR CONTAINER & COMMON WIDGETS */
.sv-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sv-sidebar-widget {
  background-color: #1e1e1e;
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.sv-widget-title {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.sv-widget-title-small {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 1rem;
  border-bottom: 2px solid #2ecc71;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.sv-widget-desc {
  font-size: 0.9rem;
  color: #bdc3c7;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}


/* WIDGET 1: NEWSLETTER */
.sv-widget-newsletter {
  background: linear-gradient(135deg, #1e2e26 0%, #1a1a1a 100%);
  border-color: #2ecc71;
}

.sv-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sv-btn-block {
  width: 100%;
}


/* WIDGET 2: CARBON COUNTER / SOCIAL */
.sv-widget-counter {
  text-align: center;
}

.sv-carbon-number {
  font-size: 2rem;
  font-weight: 800;
  color: #2ecc71;
  font-family: monospace;
  letter-spacing: -1px;
}

.sv-carbon-label {
  font-size: 0.85rem;
  color: #95a5a6;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sv-social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.sv-social-icons a {
  width: 36px;
  height: 36px;
  background-color: #2c2c2c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: bold;
  transition: all 0.2s;
}

.sv-social-icons a:hover {
  background-color: #2ecc71;
  transform: translateY(-2px);
}


/* WIDGET 3: VERTICAL TRENDING */
.sv-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sv-vertical-item {
  display: flex;
  align-items: center; /* Align numbers with text vertically */
  gap: 1rem;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid #2c2c2c;
}

.sv-vertical-item:last-child {
  border-bottom: none;
}

.sv-vertical-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #34495e; /* Default dark grey number */
  line-height: 1;
  min-width: 25px;
}

.sv-vertical-item:nth-child(1) .sv-vertical-number { color: #f1c40f; } /* Gold */
.sv-vertical-item:nth-child(2) .sv-vertical-number { color: #bdc3c7; } /* Silver */
.sv-vertical-item:nth-child(3) .sv-vertical-number { color: #cd7f32; } /* Bronze */

.sv-vertical-content {
  flex: 1;
}

.sv-vertical-title {
  font-size: 0.95rem;
  color: #e8eaed;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
  transition: color 0.2s;
}

.sv-vertical-item:hover .sv-vertical-title {
  color: #2ecc71;
}

.sv-vertical-views {
  font-size: 0.75rem;
  color: #7f8c8d;
}


/* WIDGET 4: EDITOR'S PICK */
.sv-widget-editor-pick {
  padding: 0;
  border: none;
}

.sv-editor-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #f1c40f;
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sv-editor-link {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 120%; /* Portrait card */
}

.sv-editor-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-editor-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  padding: 2rem 1rem 1rem;
}

.sv-editor-title {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}


/* WIDGET 5: CALCULATOR */
.sv-widget-calculator {
  text-align: center;
}

.sv-calculator-ui {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sv-range-input {
  width: 100%;
  accent-color: #2ecc71;
}

.sv-calc-result {
  font-size: 1.1rem;
  color: #2ecc71;
  font-weight: 700;
  margin: 0;
}

.sv-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

