/* 
   Blog Stylesheet for How to Fund Travel
   Extends main.css with blog-specific styling
*/

/* Blog Post Layout - Main Content Spacing */
.blog-post {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.blog-post #main-content {
    flex: 1;
    padding-top: 0; /* Remove top padding since we'll handle spacing in blog-hero */
    padding-bottom: 4rem;
}

/* Blog Post Content Structure */
.blog-post-content {
    width: 100%;
}

/* Blog Hero Section - Improved spacing and structure */
.blog-hero {
    position: relative;
    padding: 0; /* Remove padding to use absolute positioning */
    /* Prefer WebP with PNG fallback */
    background: url('../images/ocean-shores-transparency.png') no-repeat center center;
    background-size: cover;
    min-height: 60vh;
    color: var(--dark);
    margin-top: 0; /* Ensure no margin to prevent gaps */
}

/* WebP override disabled: asset not present. Using PNG default. */

/* Remove the dark overlay */
/* .blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
} */

.blog-hero-content {
    position: absolute;
    top: 15%; /* Use percentage to position in upper portion of hero */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    max-width: 800px;
    width: calc(100% - 2rem); /* Full width minus margins */
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem; /* Increased padding for better spacing */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) {
    .blog-hero {
        min-height: 85vh;
    }
    .blog-hero-content {
        top: 20%;
    }
}

.blog-hero-text {
    text-align: center;
}

.blog-hero-text h1 {
    color: var(--dark);
    font-size: clamp(1.75rem, 4vw, 2.5rem); /* Further reduced from 2rem-3rem to 1.75rem-2.5rem */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.blog-hero-subtitle {
    color: var(--medium);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem; /* Reduced from 2rem to 1rem to bring text closer to bottom of card */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Post Header Section - Alternative structure for posts without hero */
.blog-post-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    padding: 4rem 0 3rem; /* Increased top padding */
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    margin-top: 0; /* Ensure no gap from header */
}

.blog-post-header .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.blog-post-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 700;
}

.blog-post-excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--medium);
    max-width: 600px;
}

.blog-post-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: 4rem; /* Add top margin to create space between hero and body content */
}

/* Heading spacing rhythm inside blog content */
.blog-post-body h2 {
    margin-top: 2.5rem;
}

.blog-post-body h3 {
    margin-top: 2rem;
}

.blog-post-body h4 {
    margin-top: 1.25rem;
}

/* Avoid extra space on the very first heading in the first content section */
.blog-post-body .container .blog-section:first-of-type h2:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .blog-post-body h2 {
        margin-top: 2rem;
    }
    .blog-post-body h3 {
        margin-top: 1.25rem;
    }
    .blog-post-body h4 {
        margin-top: 1rem;
    }
}

/* Blog Sections */
.blog-section {
    margin-bottom: 3rem;
    padding: 0;
}

.blog-section:last-child {
    margin-bottom: 0;
}

.blog-section h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.blog-section h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-section p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Featured Image Section */
.featured-image-section {
    margin: 3rem 0;
}

.featured-image-container {
    text-align: center;
    margin: 2rem 0;
}

.featured-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
}

.image-caption {
    font-style: italic;
    color: var(--medium);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Benefits Grid */
.benefits-section {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.benefit-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.benefit-item p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Platforms List */
.platforms-list {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.platforms-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.platforms-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.platforms-list li:last-child {
    border-bottom: none;
}

.platforms-list strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Callout Box */
.callout-box {
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    position: relative;
}

.callout-box::before {
    content: "💡";
    position: absolute;
    top: -8px;
    left: 1rem;
    background: white;
    padding: 0 0.5rem;
    font-size: 0.875rem;
}

.callout-box p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    font-style: italic;
}

/* Points Container - Similar to FAQ format */
.points-container {
    max-width: 100%;
    margin: 2rem 0;
}

.point-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.point-item:last-child {
    margin-bottom: 0;
}

.point-item h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.point-item p {
    color: var(--medium);
    line-height: 1.6;
    margin: 0;
}

/* Resources Section */
.resources-section {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
}

.resources-list ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.resources-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.resources-list li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-post #main-content {
        padding-top: 0;
        padding-bottom: 2rem;
    }
    
    .blog-hero {
        padding: 0; /* Remove padding to use absolute positioning */
        min-height: 50vh;
    }
    
    .blog-hero-content {
        top: 10%; /* Use percentage for mobile positioning */
        width: calc(100% - 1rem); /* Smaller margins for mobile */
        padding: 1.5rem;
    }
    
    .blog-hero-text h1 {
        font-size: clamp(1.5rem, 5vw, 2.25rem); /* Further reduced from 1.75rem-2.5rem to 1.5rem-2.25rem */
    }
    
    .blog-hero-subtitle {
        font-size: 1rem;
    }
    
    .blog-post-header {
        padding: 3rem 0 2rem;
        margin-bottom: 2rem;
    }
    
    .blog-post-header h1 {
        font-size: 2rem;
    }
    
    .blog-post-body {
        padding: 0 0.5rem;
        margin-top: 3rem; /* Reduced top margin for mobile */
    }
    
    .blog-section {
        margin-bottom: 2rem;
    }
    
    .blog-section h2 {
        font-size: 1.75rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefits-section,
    .platforms-list,
    .resources-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .featured-image-container {
        margin: 1.5rem 0;
    }
    
    .callout-box {
        padding: 1rem 1.25rem;
        margin: 1.5rem 0;
    }
    
    .callout-box::before {
        font-size: 0.75rem;
        top: -6px;
    }
    
    .point-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .point-item h3 {
        font-size: 1.125rem;
    }
}

/* Blog Header */
.blog-header {
  background-color: var(--primary-light);
  padding: var(--space-xl) 0;
  text-align: center;
}

.blog-header h1 {
  margin-bottom: var(--space-sm);
}

.blog-tagline {
  font-size: 1.25rem;
  color: var(--medium);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

/* Search Styling */
.search-container {
  max-width: 600px;
  margin: 0 auto;
}

.search-wrapper {
  position: relative;
  display: flex;
}

.search-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border: 2px solid rgba(0,0,0,0.1);
  background-color: var(--white);
  font-size: 1.125rem;
  padding-right: 50px;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.search-button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50px;
  border: none;
  background: transparent;
  color: var(--medium);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.search-button:hover {
  color: var(--primary-color);
}

/* Blog Categories */
.blog-categories {
  padding: 2rem 0 2rem; /* Increased top padding for better button positioning */
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background-color: #f8faf9;
  margin-top: 0; /* Removed negative margin since hero has no bottom padding */
  position: relative;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.category-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  color: #555;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  min-width: fit-content;
}

.category-btn:hover {
  background-color: #3BAEA0;
  border-color: #3BAEA0;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 174, 160, 0.3);
}

.category-btn.active {
  background-color: #2A9D8F;
  border-color: #2A9D8F;
  color: white;
  box-shadow: 0 2px 8px rgba(42, 157, 143, 0.4);
}

@media (max-width: 768px) {
  .category-filters {
    gap: 0.5rem;
  }
  
  .category-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Featured Posts Section - ENHANCED STYLING */
.featured-posts {
  padding: 4rem 0;
  background-color: var(--white);
}

.featured-posts h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  color: var(--dark);
  position: relative;
}

.featured-posts h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 2px;
}

.featured-posts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Large Featured Post Card */
.featured-post-card.large {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all var(--transition-normal);
  border: 1px solid rgba(0,0,0,0.05);
}

.featured-post-card.large:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.featured-post-card.large .post-image {
  height: 350px;
  position: relative;
  overflow: hidden;
}

.featured-post-card.large .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-post-card.large:hover .post-image img {
  transform: scale(1.05);
}

.featured-post-card.large .post-content {
  padding: 2rem;
}

.featured-post-card.large .post-content h3 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark);
}

.featured-post-card.large .post-content p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--medium);
  margin-bottom: 1.5rem;
}

/* Small Featured Post Cards */
.featured-post-card:not(.large) {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: all var(--transition-normal);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.featured-post-card:not(.large):hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.featured-post-card:not(.large) .post-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.featured-post-card:not(.large) .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-post-card:not(.large):hover .post-image img {
  transform: scale(1.05);
}

.featured-post-card:not(.large) .post-content {
  padding: 1.5rem;
}

.featured-post-card:not(.large) .post-content h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.featured-post-card:not(.large) .post-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--medium);
  margin-bottom: 1rem;
}

/* Common styles for all featured post cards */
.featured-post-card .post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.featured-post-card .post-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.featured-post-card .post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--medium);
  font-size: 0.875rem;
  font-weight: 500;
}

.featured-post-card .post-meta .read-time {
  color: var(--primary-color);
}

.featured-post-card .post-meta .post-date {
  background: var(--secondary-color);
  color: var(--dark);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Responsive Design for Featured Posts */
@media (max-width: 992px) {
  .featured-posts-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .featured-post-card.large .post-image {
    height: 300px;
  }
  
  .featured-post-card:not(.large) {
    margin-bottom: 0;
  }
  
  .featured-posts {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .featured-posts {
    padding: 2rem 0;
  }
  
  .featured-posts h2 {
    margin-bottom: 2rem;
  }
  
  .featured-post-card.large .post-image {
    height: 250px;
  }
  
  .featured-post-card.large .post-content {
    padding: 1.5rem;
  }
  
  .featured-post-card.large .post-content h3 {
    font-size: 1.5rem;
  }
  
  .featured-post-card:not(.large) .post-content {
    padding: 1.25rem;
  }
}

/* Blog Posts Section */
.blog-posts {
  padding: var(--space-xxl) 0;
}

.blog-posts h2 {
  margin-bottom: var(--space-xl);
}

/* Post Cards - Extending styles from main.css */
.blog-posts .post-card {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blog-posts .post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xxl);
}

.pagination-item,
.pagination-next,
.pagination-prev {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--medium);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pagination-next,
.pagination-prev {
  width: auto;
  padding: 0 var(--space-md);
  gap: var(--space-xs);
}

.pagination-item:hover,
.pagination-next:hover,
.pagination-prev:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.pagination-item.current {
  background-color: var(--primary-color);
  color: white;
}

.pagination-ellipsis {
  color: var(--medium);
}

/* Single Blog Post Page Styles */
.single-post-header {
  padding: var(--space-xxl) 0 var(--space-xl);
  text-align: center;
}

.single-post-header .post-category {
  display: inline-block;
  margin-bottom: var(--space-md);
}

.single-post-title {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 900px;
  margin: 0 auto var(--space-lg);
}

.single-post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  color: var(--medium);
}

.single-post-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.single-post-featured-image {
  max-width: 900px;
  margin: 0 auto var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.post-content {
  max-width: 800px;
  margin: 0 auto var(--space-xxl);
}

.post-content p {
  margin-bottom: var(--space-lg);
}

.post-content h2 {
  font-size: 1.75rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.post-content h3 {
  font-size: 1.5rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.post-content ul li,
.post-content ol li {
  margin-bottom: var(--space-md);
}

.post-content ul {
  list-style-type: disc;
}

.post-content ol {
  list-style-type: decimal;
}

.post-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
}

.post-content blockquote {
  padding: var(--space-lg);
  border-left: 4px solid var(--primary-color);
  background-color: var(--light);
  margin: var(--space-lg) 0;
  font-style: italic;
}

/* Post Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(0,0,0,0.1);
}

.post-tags a {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background-color: var(--light);
  border-radius: var(--radius-sm);
  color: var(--medium);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.post-tags a:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

/* Blog Newsletter CTA */
.blog-newsletter-cta {
  background-color: var(--primary-light);
  padding: var(--space-xxl) 0;
  margin: 3rem 0 4rem;
  color: var(--dark);
  position: relative;
}

.newsletter-cta-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-xxl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.newsletter-cta-text {
  max-width: 600px;
}

.newsletter-cta-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-lg);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}

.newsletter-cta-text p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: var(--medium);
}

.newsletter-cta-form {
  max-width: 450px;
}

.newsletter-cta-form .form-group {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.newsletter-cta-form input {
  flex: 1;
  min-width: 0;
  padding: var(--space-md);
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  background-color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-normal);
  color: var(--dark);
}

.newsletter-cta-form input::placeholder {
  color: var(--medium);
  opacity: 0.8;
}

.newsletter-cta-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 174, 160, 0.1);
}

.newsletter-cta-form .btn {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.newsletter-cta-form .btn:hover,
.newsletter-cta-form .btn:focus {
  background-color: var(--primary-dark);
  color: white;
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.newsletter-disclaimer {
  font-size: 0.875rem;
  color: var(--medium);
  text-align: center;
  margin: var(--space-sm) 0 0 0;
}

@media (max-width: 768px) {
  .blog-newsletter-cta {
    padding: var(--space-xl) 0;
    margin: 2rem 0 3rem;
  }
  
  .newsletter-cta-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
  
  .newsletter-cta-form .form-group {
    flex-direction: column;
  }
  
  .newsletter-cta-form .btn {
    padding: var(--space-md);
    width: 100%;
  }
}

/* Author Box */
.author-box {
  display: flex;
  gap: var(--space-lg);
  margin: var(--space-xxl) auto;
  padding: var(--space-lg);
  background-color: var(--light);
  border-radius: var(--radius-lg);
  max-width: 800px;
}

.author-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.author-content h3 {
  margin-bottom: var(--space-sm);
}

.author-bio {
  color: var(--medium);
  margin-bottom: var(--space-md);
}

/* Related Posts */
.related-posts {
  padding: var(--space-xxl) 0;
  background-color: var(--light);
}

.related-posts h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

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

/* Comments Section */
.comments-section {
  padding: var(--space-xxl) 0;
  max-width: 800px;
  margin: 0 auto;
}

.comments-section h2 {
  margin-bottom: var(--space-xl);
}

.comment-form {
  margin-bottom: var(--space-xxl);
}

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

.form-row label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.1);
  background-color: var(--white);
  transition: border-color var(--transition-fast);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-item {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background-color: var(--white);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.comment-author {
  font-weight: 600;
}

.comment-date {
  color: var(--medium);
  font-size: 0.875rem;
}

/* Media Queries for Blog Pages */
@media (max-width: 992px) {
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  
  .featured-post-image {
    height: 300px;
  }
  
  .related-posts .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .categories-nav {
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    padding: var(--space-xs) 0;
  }
  
  .related-posts .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  
  .author-image {
    margin: 0 auto;
  }
  
  .single-post-meta {
    flex-direction: column;
    gap: var(--space-xs);
  }
}

/* Category Filtering Animations and UX Enhancements */
.post-card,
.featured-post-card {
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover,
.featured-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Smooth transitions for category filtering */
.post-card[style*="display: none"],
.featured-post-card[style*="display: none"] {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.post-card[style*="display: block"],
.featured-post-card[style*="display: block"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Category button active state improvements */
.category-btn {
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.category-btn:hover::before {
  left: 100%;
}

.category-btn.active::before {
  display: none;
}

/* Posts counter styling */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.posts-counter {
  font-size: 0.9rem;
  color: var(--medium);
  font-weight: 500;
}

/* No results state */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--medium);
}

.no-results p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Enhanced no-results styling */
.no-results h3 {
  color: var(--dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.no-results .btn {
  margin: 0.5rem;
  transition: all 0.3s ease;
}

.no-results .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Category filter feedback - positioned at the base of the section */
.category-filters::after {
  content: '';
  position: absolute;
  bottom: -2rem; /* Position at the base of the section */
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 1;
}

.category-filters.has-active::after {
  transform: scaleX(1);
}

/* Loading state for category filtering */
.category-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.category-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Improved posts grid for better filtering experience */
.posts-grid {
  min-height: 400px;
  transition: all 0.3s ease;
}

.posts-grid:empty::before {
  content: 'Loading...';
  display: block;
  text-align: center;
  padding: 2rem;
  color: var(--medium);
  font-style: italic;
}

/* Category badge improvements */
.post-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(42, 157, 143, 0.9);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.post-category-badge:hover {
  background: rgba(42, 157, 143, 1);
  transform: scale(1.05);
}

/* Lead Magnet Section */
.lead-magnet-section {
    margin: 3rem 0;
}

.lead-magnet-container {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.lead-magnet-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.lead-magnet-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.lead-magnet-icon {
    margin-bottom: 1.5rem;
}

.lead-magnet-content h2 {
    color: var(--dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.lead-magnet-content p {
    color: var(--medium);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.lead-magnet-benefits {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.lead-magnet-benefits h3 {
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.lead-magnet-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lead-magnet-benefits li {
    color: var(--medium);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.lead-magnet-form {
    margin-bottom: 1.5rem;
}

.lead-magnet-form .form-group {
    margin-bottom: 1rem;
}

.lead-magnet-form input[type="email"] {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.lead-magnet-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.lead-magnet-form .btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.lead-magnet-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.lead-magnet-footer {
    color: var(--medium);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Thank You Page Styles */
.thank-you-section {
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.thank-you-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.success-icon {
    margin-bottom: 2rem;
}

.thank-you-content h1 {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.thank-you-content h2 {
    color: var(--dark);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.email-info {
    background: var(--light);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.email-info p {
    color: var(--medium);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.email-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.email-info li {
    color: var(--medium);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.download-section {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.download-section h3 {
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.download-section p {
    color: var(--medium);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.download-button-container {
    margin-bottom: 1.5rem;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.btn-success {
    background: var(--success);
    color: white;
}

.instructions {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: left;
}

.instructions h4 {
    color: var(--dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.instructions ol {
    color: var(--medium);
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 1.5rem;
}

.instructions li {
    margin-bottom: 0.5rem;
}

.next-steps {
    margin-bottom: 2rem;
}

.next-steps h3 {
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.step {
    background: var(--light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.step h4 {
    color: var(--dark);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--medium);
    font-size: 0.875rem;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-proof {
    background: var(--light);
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
}

.social-proof p {
    color: var(--medium);
    font-style: italic;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lead-magnet-container {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .lead-magnet-content h2 {
        font-size: 1.75rem;
    }
    
    .lead-magnet-content p {
        font-size: 1rem;
    }
    
    .lead-magnet-benefits {
        padding: 1rem;
    }
    
    .thank-you-content {
        padding: 2rem 1.5rem;
    }
    
    .thank-you-content h1 {
        font-size: 2rem;
    }
    
    .thank-you-content h2 {
        font-size: 1.5rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* Job Platforms Table */
.job-platforms-table {
    margin: 2rem 0;
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.job-platforms-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.job-platforms-table thead {
    background: var(--primary);
    color: white;
}

.job-platforms-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-platforms-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.job-platforms-table tbody tr:hover {
    background: var(--light);
}

.job-platforms-table a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.job-platforms-table a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Mobile responsive for table */
@media (max-width: 768px) {
    .job-platforms-table {
        font-size: 0.85rem;
    }
    
    .job-platforms-table th,
    .job-platforms-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .job-platforms-table th {
        font-size: 0.8rem;
    }
} 

/* List styling inside blog content */
.blog-post-body ul,
.blog-post-body ol {
    margin: 1rem 0 1.5rem;
    padding-left: 1.25rem;
}

.blog-post-body ul {
    list-style: disc;
}

.blog-post-body ol {
    list-style: decimal;
}

.blog-post-body li {
    margin-bottom: 0.5rem;
}

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

/* Blockquote styling inside blog content */
.blog-post-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--primary-color);
    background-color: var(--light);
    color: var(--dark);
    font-style: italic;
}

.blog-post-body blockquote p {
    margin: 0;
}

@media (max-width: 768px) {
    .blog-post-body ul,
    .blog-post-body ol {
        margin: 0.75rem 0 1.25rem;
        padding-left: 1rem;
    }
    .blog-post-body li {
        margin-bottom: 0.4rem;
    }
    .blog-post-body blockquote {
        padding: 0.875rem 1rem;
    }
} 

/* Inline Lead CTA - subtle, compact */
.inline-lead-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    margin: 1.5rem 0;
}

.inline-lead-cta p {
    margin: 0;
    font-size: 1rem;
    color: var(--dark);
}

.inline-lead-cta .btn {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .inline-lead-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.875rem 1rem;
    }
    .inline-lead-cta .btn {
        width: 100%;
    }
} 

/* Remove bottom spacing under newsletter CTA on blog index */
.blog-index .blog-newsletter-cta {
    margin-bottom: 0;
} 

/* Inline blog figures */
.blog-inline-image {
	margin: 1.5rem 0;
	text-align: center;
}
.blog-inline-image img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
}
.blog-inline-image .image-caption {
	margin-top: 0.5rem;
	font-size: 0.95rem;
	color: var(--medium);
} 

/* Callout boxes */
.callout {
	margin: 1.25rem 0;
	padding: 1rem 1rem 1rem 1.25rem;
	background: var(--surface, #ffffff);
	border-left: 4px solid var(--primary-color);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}
.callout strong {
	display: block;
	margin-bottom: 0.25rem;
}
.callout.tip { border-left-color: var(--primary-color); }
.callout.note { border-left-color: var(--secondary-color, #2A9D8F); }
.callout.warning { border-left-color: #e76f51; }
.callout ul { margin: 0.5rem 0 0 1rem; }
.callout li { margin: 0.25rem 0; } 