/*
Theme Name: Hobby Haul
Theme URI: https://hobbyhaul.com
Author: Your Name
Author URI: https://hobbyhaul.com
Description: A vibrant theme for comic book and action figure collectors
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hobby-haul
*/

/* ============================================
   COLOR VARIABLES
   ============================================ */
:root {
  --primary-blue: #2563EB;
  --blue-700: #1D4ED8;
  --energy-orange: #F97316;
  --orange-600: #EA580C;
  --pop-yellow: #FBBF24;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-700);
  line-height: 1.6;
  font-size: 14px;
  zoom: 0.85;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.site-header {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.site-logo {
  text-align: center;
  margin-bottom: 0.75rem;
}

.site-logo img {
  max-width: 320px;
  height: auto;
  margin: 0 auto;
}

.custom-logo-link {
  display: inline-block;
}

.site-tagline {
  text-align: center;
  color: var(--gray-600);
  font-style: italic;
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation {
  background: var(--gray-900);
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.main-menu li {
  margin: 0;
}

.main-menu a {
  color: white;
  font-weight: 600;
  padding: 0.75rem 1rem;
  display: block;
  transition: color 0.3s ease;
}

.main-menu a:hover,
.main-menu .current-menu-item a {
  color: var(--energy-orange);
}

/* ============================================
   LAYOUT
   ============================================ */
.site-content {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

.main-content {
  min-width: 0;
}

/* ============================================
   CATEGORY BADGE
   ============================================ */
.category-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--primary-blue);
  color: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ============================================
   POST META - HIDE ICONS
   ============================================ */
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ADDED: Hide the meta icon emoji */
/* .meta-icon {
  display: none;
} */


/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, var(--primary-blue), var(--blue-700));
  color: white;
  font-weight: bold;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
  transform: scale(1.05);
  color: white;
}

.arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

/* ============================================
   RECENT POSTS SECTION - FIXED SPACING
   ============================================ */
.recent-posts-section {
  margin-bottom: 2rem;
  /* ADDED: Remove top margin to prevent gap from featured slider */
  margin-top: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  /* CHANGED: Remove bottom margin to make it touch the posts grid */
  margin-bottom: 0;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #2563EB, #4A9FD8);
  padding: 0.75rem 1rem;
  /* CHANGED: Only round top corners */
  border-radius: 0.5rem 0.5rem 0 0;
  box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}

.section-title::before {
  display: none;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  /* ADDED: Add top padding to create spacing from the section title */
  padding-top: 1.5rem;
}


/* ============================================
   POST CARD
   ============================================ */
.post-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.post-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.post-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--gray-200);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.1);
}

.post-card-category {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--primary-blue);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.post-card-content {
  padding: 1.25rem;
}

.post-card-title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.post-card-title a {
  color: inherit;
}

.post-card:hover .post-card-title {
  color: var(--primary-blue);
}

.post-card-excerpt {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.read-more {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--energy-orange);
}

.read-more .arrow {
  transition: transform 0.3s ease;
}

.read-more:hover .arrow {
  transform: translateX(4px);
}
/* ============================================
   INCREASED BODY COPY SIZES (55% larger)
   ============================================ */

/* Featured slide excerpt text */
.featured-post-excerpt {
  font-size: 1.36rem;
  line-height: 1.4;
  color: var(--gray-700);
  letter-spacing: 0.01em;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
  flex-grow: 1; /* This pushes the button down */
  margin-bottom: 1rem;
}

/* Post card excerpt text - REVERTED TO ORIGINAL */
.post-card-excerpt {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}



/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ============================================
   WIDGETS
   ============================================ */
.widget {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ============================================
   WIDGET TITLE - DEFAULT (ORANGE)
   ============================================ */
.widget-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.widget-icon {
  font-size: 1.25rem;
}

/* ============================================
   SPECIFIC WIDGET COLORS
   ============================================ */

/* Search Widget - Blue */
.widget-search .widget-title {
  background: linear-gradient(135deg, #2563EB, #4A9FD8);
  color: white;
}

/* Hot Deal Widget - Blue */
.widget-featured-product .widget-title {
  background: linear-gradient(135deg, #2563EB, #4A9FD8);
  color: white;
}

/* Categories Widget - Orange (default, but explicit) */
.widget-categories .widget-title {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: white;
}

/* Recent Posts Widget - Orange (default, but explicit) */
.widget-recent-posts .widget-title {
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: white;
}

/* Search Widget - Blue Gradient Header */
.widget-search .widget-title {
  background: linear-gradient(135deg, #2563EB, #4A9FD8);
  color: white;
}

/* Search Widget */
.widget-search .search-wrapper {
  position: relative;
}

.search-form {
  width: 100%;
}

.search-field {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-field:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.search-submit {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-submit:hover {
  background: var(--blue-700);
}

.search-icon {
  font-size: 1.125rem;
}

/* Categories Widget */
.widget-categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-categories li {
  margin-bottom: 0.75rem;
}

.widget-categories li:last-child {
  margin-bottom: 0;
}

.widget-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: 0.5rem;
  color: var(--gray-700);
  font-weight: 600;
  transition: all 0.3s ease;
}

.widget-categories a:hover {
  background: var(--gray-50);
  color: var(--primary-blue);
  transform: translateX(4px);
}

.category-name {
  flex: 1;
}

.category-count {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: bold;
  min-width: 24px;
  text-align: center;
}

/* Hot Deal Widget */
.widget-hot-deal {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 20px rgba(30,64,175,0.3);
}

.widget-hot-deal .widget-title {
    background: none;
    margin: 0 0 1rem 0;
    padding: 0;
    color: white;
}

.hot-deal-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.hot-deal-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
}

.hot-deal-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FBBF24;
    margin-bottom: 0.75rem;
}

.hot-deal-description {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-hot-deal {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: white;
    color: #1e40af;
    font-weight: bold;
    text-align: center;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-hot-deal:hover {
    background: #FBBF24;
    color: #1e40af;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
}

/* ============================================
   CONTACT BANNER & FOOTER ICONS
   ============================================ */
.contact-banner {
  margin-top: 2rem;
  background: #3B82F6;
  padding: 1.5rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.contact-banner-title {
  color: white;
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.05em;
}

.contact-banner p.contact-links {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.contact-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.contact-link .contact-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.contact-link:hover .contact-icon {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.email-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="24px" height="24px"><path d="M0 0h24v24H0z" fill="none"/><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

.instagram-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="24px" height="24px"><path d="M0 0h24v24H0z" fill="none"/><path d="M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8A3.6 3.6 0 0 0 7.6 20h8.8A3.6 3.6 0 0 0 20 16.4V7.6A3.6 3.6 0 0 0 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"/></svg>');
}

/* ============================================
   SINGLE POST STYLES
   ============================================ */
.single-post-layout {
  grid-template-columns: 1fr 320px;
}

.single-post {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-header {
  margin-bottom: 2rem;
}

.post-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--gray-900);
  line-height: 1.3;
  margin: 1rem 0;
}

.post-featured-image {
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: auto;
}

.post-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray-700);
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--gray-900);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.post-content h2 {
  font-size: 2rem;
}

.post-content h3 {
  font-size: 1.5rem;
}

.post-content img {
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.post-content a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.post-content a:hover {
  color: var(--energy-orange);
}

.post-tags {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-200);
  color: var(--gray-600);
}

.post-tags a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-tags a:hover {
  color: var(--energy-orange);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-200);
}

.post-navigation a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-navigation a:hover {
  color: var(--energy-orange);
}

.comments-section {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-top: 2rem;
}

/* ============================================
   PAGE STYLES
   ============================================ */
.single-page {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-200);
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--gray-900);
  margin: 0;
}

.page-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray-700);
}

/* ============================================
   ARCHIVE STYLES
   ============================================ */
.archive-header {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  text-align: center;
}

.archive-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.archive-description {
  color: var(--gray-600);
  font-size: 1.125rem;
  margin-top: 1rem;
}

/* ============================================
   SEARCH RESULTS STYLES
   ============================================ */
.search-header {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  text-align: center;
}

.search-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.search-title span {
  color: var(--primary-blue);
}

.search-count {
  color: var(--gray-600);
  font-size: 1rem;
}

.no-results {
  background: white;
  padding: 3rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
}

.no-results h2 {
  font-size: 2rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.no-results p {
  color: var(--gray-600);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* ============================================
   404 ERROR PAGE STYLES
   ============================================ */
.error-404 {
  background: white;
  padding: 3rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
}

.error-title {
  font-size: 6rem;
  font-weight: bold;
  background: linear-gradient(to right, var(--primary-blue), var(--energy-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.error-subtitle {
  font-size: 2rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.error-search,
.error-categories {
  margin-top: 3rem;
}

.error-search h3,
.error-categories h3 {
  font-size: 1.25rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.error-links {
  margin: 2rem 0;
}

.error-categories ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.error-categories li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.error-categories li a:hover {
  background: var(--primary-blue);
  color: white;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  margin-top: 3rem;
  text-align: center;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination .current {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid var(--gray-300);
  border-radius: 0.5rem;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

.pagination .current {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

.pagination .dots {
  padding: 0.5rem;
  color: var(--gray-500);
}

/* ============================================
   WIDGET RECENT POSTS
   ============================================ */
.widget-recent-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-recent-posts li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.widget-recent-posts li:last-child {
  border-bottom: none;
}

.widget-recent-posts a {
  color: var(--gray-900);
  font-weight: 600;
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.widget-recent-posts a:hover {
  color: var(--primary-blue);
}

.recent-post-date {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ============================================
   FEATURED POST SLIDER - FIXED
   ============================================ */
.featured-slider-section {
  /* CHANGED: Ensure proper bottom margin */
  margin-bottom: 0;
}

.featured-slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  /* ADDED: Ensure container width is explicit */
  width: 100%;
}

.featured-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  /* ADDED: Prevent any gaps between slides */
  width: 100%;
}

.featured-slide {
  /* CHANGED: Use width instead of min-width for exact sizing */
  width: 100%;
  min-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  /* ADDED: Prevent any internal spacing issues */
  flex-basis: 100%;
}

.featured-slide .featured-post-image {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: var(--gray-200);
  /* ADDED: Ensure image container takes full width */
  width: 100%;
}

.featured-slide .featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.5s ease;
  /* ADDED: Prevent image from causing width issues */
  display: block;
}

.featured-slide:hover .featured-post-image img {
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--energy-orange);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 0.875rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 2;
}

.featured-post-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  z-index: 1;
}

.featured-overlay-title {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.featured-slide .featured-post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.featured-post-excerpt-link {
  text-decoration: none;
  color: inherit;
  flex-grow: 0;
  margin-bottom: 1rem;
}

/* Make sure button doesn't stretch */
.featured-slide .btn-primary {
  align-self: flex-start;
  margin-top: auto;
}

.featured-post-excerpt-link {
  text-decoration: none;
  color: inherit;
}

.slider-control {
  position: absolute;
  top: 45%; 
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.slider-control:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.slider-control.prev {
  left: 1rem;
}

.slider-control.next {
  right: 1rem;
}

/* Force correct layout on desktop */
@media (min-width: 1025px) {
  .site-content {
    display: grid !important;
    grid-template-columns: 1fr 320px !important;
    gap: 2rem !important;
  }
}

/* ============================================
   RESPONSIVE DESIGN - ENHANCED
   ============================================ */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .site-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .sidebar {
    margin-top: 2rem;
  }
  
  .main-menu {
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .single-post-layout {
    grid-template-columns: 1fr;
  }
  
  .post-title,
  .page-title,
  .archive-title {
    font-size: 2rem;
  }
  
  .featured-overlay-title {
    font-size: 1.5rem;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    zoom: 1;
  }
  
  .site-content {
    padding: 0 0.75rem;
    margin: 1rem auto;
    gap: 1rem;
  }
  
  .header-container {
    padding: 1rem 0.75rem;
  }
  
  .site-logo img {
    max-width: 200px;
  }
  
  .site-tagline {
    font-size: 0.875rem;
  }
  
  /* Mobile Navigation */
  .main-menu {
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
  }
  
  .main-menu li {
    flex: 0 1 auto;
  }
  
  .main-menu a {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  
  /* Posts Grid - Single Column */
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 1rem;
  }
  
  .section-title {
    font-size: 1.125rem;
    padding: 0.5rem 0.75rem;
  }
  
  /* Post Cards */
  .post-card-content {
    padding: 1rem;
  }
  
  .post-card-title {
    font-size: 1rem;
  }
  
  .post-card-excerpt {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
  
  /* Single Post */
  .single-post,
  .single-page {
    padding: 1.25rem;
  }
  
  .post-title,
  .page-title {
    font-size: 1.5rem;
  }
  
  .post-content,
  .page-content {
    font-size: 1rem;
  }
  
  /* Featured Slider */
  .featured-slide .featured-post-image {
    height: 250px;
  }
  
  .featured-overlay-title {
    font-size: 1.25rem;
    padding: 0 0.5rem;
  }
  
  .featured-post-excerpt {
    font-size: 1rem;
  }
  
  .featured-slide .featured-post-content {
    padding: 1rem;
    min-height: 140px;
  }
  
  .slider-control {
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
    top: 40%;
  }
  
  .slider-control.prev {
    left: 0.5rem;
  }
  
  .slider-control.next {
    right: 0.5rem;
  }
  
  /* Contact Banner */
  .contact-banner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .contact-banner-title {
    font-size: 1rem;
  }
  
  .contact-icon {
    width: 32px !important;
    height: 32px !important;
  }
  
  /* Widgets */
  .widget {
    padding: 1rem;
  }
  
  .widget-title {
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
    margin: -1rem -1rem 0.75rem -1rem;
  }
  
  /* Error Page */
  .error-title {
    font-size: 4rem;
  }
  
  .error-subtitle {
    font-size: 1.25rem;
  }
  
  .error-message {
    font-size: 1rem;
  }
  
  /* Navigation */
  .post-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Archive/Search Headers */
  .archive-header,
  .search-header {
    padding: 1.5rem 1rem;
  }
  
  .archive-title,
  .search-title {
    font-size: 1.5rem;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .site-logo img {
    max-width: 180px;
  }
  
  .site-tagline {
    font-size: 0.75rem;
  }
  
  .main-menu {
    justify-content: space-around;
    gap: 0.15rem;
  }
  
  .main-menu li {
    flex: 1;
    text-align: center;
  }
  
  .main-menu a {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
  }
  
  .featured-slide .featured-post-image {
    height: 200px;
  }
  
  .featured-overlay-title {
    font-size: 1rem;
  }
  
  .post-card-image {
    height: 180px;
  }
  
  .section-title {
    font-size: 1rem;
  }
  
  .contact-banner-title {
    font-size: 0.875rem;
  }
  
  .contact-icon {
    width: 28px !important;
    height: 28px !important;
  }
}