/* GRIPPX Blog Stylesheet - Extends base style.css */
:root {
  --primary: #2dae4f;        /* Your green color */
  --primary-dark: #1b5e20;   /* Darker green (already in your code) */
  --white: #ffffff;
}

/* Hero Section for Blog */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.subheading {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Container Layout */
.blog-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin: 4rem auto 0;
  padding: 0 20px;
  max-width: var(--max-width);
}

.blog-grid {
  display: grid;
  gap: 2.5rem;
}

/* Blog Post Cards */
.blog-post {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: minmax(auto, 280px) 1fr;
  gap: 0;
  border: 1px solid #e0e0e0;
}

.blog-post.featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(auto, 450px) 1fr;
  border: 2px solid var(--primary);
  box-shadow: 0 8px 25px rgba(45, 174, 79, 0.15);
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

/* Post Image */
.post-image {
  flex-shrink: 0;
  height: 100%;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post.featured .post-image img {
  height: 280px;
}

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

.post-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(45, 174, 79, 0.9);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Post Content */
.post-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-content h2,
.post-content h3 {
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.post-content h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
}

.post-content h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.post-content h2 a,
.post-content h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-content h2 a:hover,
.post-content h3 a:hover {
  color: var(--primary);
}

.post-excerpt {
  color: var(--muted-text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  flex-grow: 1;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #888;
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: auto;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.post-meta i {
  color: var(--primary);
}

/* Sidebar Styles */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.sidebar-widget h4 {
  margin: 0 0 1.5rem 0;
  color: var(--primary-dark);
  font-size: 1.3rem;
  font-weight: 600;
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
}

.newsletter-widget h4 {
  color: var(--white);
}

.newsletter-widget p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

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

.newsletter-form input {
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.newsletter-form input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
  background: var(--white);
  color: var(--primary-dark);
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--light-bg-2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Categories Widget */
.categories-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-widget li {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.categories-widget li:last-child {
  border-bottom: none;
}

.categories-widget a {
  text-decoration: none;
  color: var(--dark-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
  font-weight: 500;
}

.categories-widget a:hover {
  color: var(--primary);
}

.categories-widget span {
  background: var(--light-bg-2);
  color: var(--primary-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Popular Posts Widget */
.popular-post {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.popular-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-post img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.popular-post div {
  flex-grow: 1;
}

.popular-post a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.5rem;
}

.popular-post a:hover {
  color: var(--primary);
}

.popular-post .post-date {
  font-size: 0.8rem;
  color: var(--muted-text);
}

/* Newsletter Message Styling */
.newsletter-message {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
}

.newsletter-message.success {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.newsletter-message.error {
  background: rgba(255, 0, 0, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 0, 0, 0.3);
}
.cta-widget {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
  border: none;
}

.cta-widget h4 {
  color: var(--white);
}

.cta-widget p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.cta-button-small {
  background: var(--white);
  color: var(--primary-dark);
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.cta-button-small:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: var(--light-bg-2);
}

/* Navigation Active State */
.nav-links a.active {
  color: var(--primary-dark);
  font-weight: 700;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .blog-post,
  .blog-post.featured {
    grid-template-columns: minmax(auto, 250px) 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 100px 0 60px;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .subheading {
    font-size: 1.1rem;
  }
  
  .blog-container {
    margin-top: 2rem;
    padding: 0 15px;
  }
  
  .blog-post,
  .blog-post.featured {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .post-image img,
  .blog-post.featured .post-image img {
    height: 200px;
  }
  
  .post-content {
    padding: 1.5rem;
  }
  
  .post-content h2 {
    font-size: 1.5rem;
  }
  
  .post-content h3 {
    font-size: 1.3rem;
  }

  .post-meta {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .sidebar-widget {
    padding: 1.5rem;
  }
  
  .popular-post {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
  
  .popular-post img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .subheading {
    font-size: 1rem;
  }
  
  .blog-grid {
    gap: 1.5rem;
  }
  
  .post-content h2 {
    font-size: 1.3rem;
  }
  
  .post-content h3 {
    font-size: 1.2rem;
  }
  
  .post-meta {
    font-size: 0.8rem;
    gap: 0.8rem;
  }
  
  .sidebar-widget h4 {
    font-size: 1.2rem;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    padding: 0.8rem;
  }
}
