/* ==========================================================================
   BLOG PAGE STYLES
   ========================================================================== */

/* Ensure all elements use Open Sans */
* {
  font-family: 'Open Sans', sans-serif !important;
}

/* Blog Hero */
.blog-hero {
  background: var(--dark-green);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  text-align: center;
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-hero-overlay {
  background: rgba(0, 41, 38, 0.75);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 80px 20px;
}

/* Wave Divider */
.blog-hero .wave-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
}

.blog-hero .wave-divider-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.blog-hero .wave-divider-top .shape-fill {
  fill: var(--beige-bg);
}

.blog-hero-overlay .container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.blog-hero .page-title {
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.2;
}

.blog-hero .page-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Blog Posts Section */
.blog-posts {
  background: var(--beige-bg);
  padding: 80px 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

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

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

.blog-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--light-purple);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 20px;
}

.blog-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #666;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-meta i {
  color: var(--light-purple);
}

.blog-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
  transition: color 0.3s ease;
  text-align: left;
}

.blog-card:hover .blog-title {
  color: var(--dark-purple);
}

.blog-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 24px;
  flex-grow: 1;
}

.blog-link {
  color: var(--dark-green);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.blog-link:hover {
  color: var(--dark-purple);
  gap: 12px;
}

.blog-link i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.blog-link:hover i {
  transform: translateX(4px);
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .blog-hero {
    min-height: 400px;
  }

  .blog-hero-overlay {
    padding: 80px 20px 60px 20px;
  }

  .blog-hero .wave-divider-top svg {
    height: 40px;
  }

  .blog-hero .page-title {
    font-size: 32px;
  }

  .blog-hero .page-subtitle {
    font-size: 16px;
  }

  .blog-posts {
    padding: 60px 20px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-image {
    height: 200px;
  }

  .blog-content {
    padding: 24px;
  }

  .blog-title {
    font-size: 20px;
  }

  .blog-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 1023px) {
  .blog-hero .page-title {
    font-size: 42px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* ==========================================================================
   SINGLE BLOG POST STYLES
   ========================================================================== */

/* Single Blog Hero */
.blog-single-hero {
  background: var(--dark-green);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.blog-single-hero-overlay {
  background: rgba(0, 41, 38, 0.75);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px 20px;
}

/* Wave Divider for Single Hero */
.blog-single-hero .wave-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
}

.blog-single-hero .wave-divider-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.blog-single-hero .wave-divider-top .shape-fill {
  fill: var(--beige-bg);
}

.blog-single-hero-overlay .container {
  position: relative;
  z-index: 2;
}

.blog-single-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.blog-category-badge {
  display: inline-block;
  background: var(--light-purple);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 24px;
  border-radius: 24px;
  margin-bottom: 24px;
}

.blog-single-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.2;
}

.blog-single-meta {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  color: var(--white);
  flex-wrap: wrap;
}

.blog-single-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-single-meta svg {
  stroke: var(--white);
}

/* Single Blog Content */
.blog-single-content {
  background: var(--beige-bg);
  padding: 80px 20px;
}

.blog-single-content-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
}

.blog-single-main {
  background: var(--white);
  border-radius: 16px;
  padding: 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


.blog-post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-body);
}

.blog-post-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 40px 0 20px 0;
  line-height: 1.3;
}

.blog-post-content h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 32px 0 16px 0;
  line-height: 1.3;
}

.blog-post-content p {
  margin-bottom: 24px;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 24px 0;
  padding-left: 32px;
}

.blog-post-content li {
  margin-bottom: 12px;
}

.blog-post-content a {
  color: var(--dark-green);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.blog-post-content a:hover {
  color: var(--dark-purple);
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 32px 0;
}

.blog-post-content blockquote {
  border-left: 4px solid var(--light-purple);
  padding: 20px 30px;
  margin: 32px 0;
  background: rgba(149, 128, 182, 0.05);
  font-style: italic;
  color: var(--text-dark);
}

/* Blog Tags */
.blog-tags {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #f0f0f0;
}

.blog-tags h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  display: inline-block;
  background: var(--beige-bg);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: var(--light-purple);
  color: var(--white);
}

/* Blog Share */
.blog-share {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid #f0f0f0;
}

.blog-share h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.share-buttons {
  display: flex;
  gap: 12px;
}

.share-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-btn.facebook {
  background: #1877f2;
  color: var(--white);
}

.share-btn.facebook:hover {
  background: #0d65d9;
  transform: translateY(-2px);
}

.share-btn.linkedin {
  background: #0077b5;
  color: var(--white);
}

.share-btn.linkedin:hover {
  background: #006399;
  transform: translateY(-2px);
}

.share-btn.email {
  background: var(--dark-green);
  color: var(--white);
}

.share-btn.email:hover {
  background: var(--darker-green);
  transform: translateY(-2px);
}

/* Post Navigation */
.blog-post-navigation {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #f0f0f0;
}

.blog-post-navigation a {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--beige-bg);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-post-navigation a:hover {
  background: var(--light-purple);
  color: var(--white);
  transform: translateY(-2px);
}

.blog-post-navigation .nav-prev {
  justify-content: flex-start;
}

.blog-post-navigation .nav-next {
  justify-content: flex-end;
  text-align: right;
}

.blog-post-navigation svg {
  flex-shrink: 0;
  stroke: var(--dark-green);
}

.blog-post-navigation a:hover svg {
  stroke: var(--white);
}

.blog-post-navigation small {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.blog-post-navigation a:hover small {
  color: rgba(255, 255, 255, 0.8);
}

.blog-post-navigation strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

.blog-post-navigation a:hover strong {
  color: var(--white);
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blog-cta-box {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--darker-green) 100%);
  color: var(--white);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.blog-cta-box h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.blog-cta-box p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  opacity: 0.95;
}

.blog-categories-widget,
.blog-recent-widget {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.blog-categories-widget h3,
.blog-recent-widget h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

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

.categories-list li {
  margin-bottom: 12px;
}

.categories-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.categories-list a:hover {
  background: var(--light-purple);
  color: var(--white);
}

.categories-list svg {
  flex-shrink: 0;
  stroke: var(--dark-green);
}

.categories-list a:hover svg {
  stroke: var(--white);
}

.categories-list .count {
  margin-left: auto;
  font-size: 13px;
  opacity: 0.7;
}

.recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts-list li {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.recent-posts-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-posts-list a {
  display: flex;
  gap: 16px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.recent-posts-list a:hover {
  opacity: 0.7;
}

.recent-post-image {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
}

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

.recent-post-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}

.recent-post-date {
  font-size: 13px;
  color: #666;
}

/* Mobile Responsive for Single Post */
@media (max-width: 767px) {
  .blog-single-hero {
    min-height: 400px;
  }

  .blog-single-hero-overlay {
    padding: 100px 20px 60px 20px;
  }

  .blog-single-hero .wave-divider-top svg {
    height: 40px;
  }

  .blog-single-title {
    font-size: 28px;
  }

  .blog-single-meta {
    font-size: 14px;
    gap: 16px;
  }

  .blog-single-content {
    padding: 60px 20px;
  }

  .blog-single-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-single-main {
    padding: 32px 24px;
  }

  .blog-post-content {
    font-size: 16px;
  }

  .blog-post-content h2 {
    font-size: 26px;
  }

  .blog-post-content h3 {
    font-size: 22px;
  }

  .blog-post-navigation {
    flex-direction: column;
  }

  .blog-post-navigation .nav-next {
    text-align: left;
  }

  .share-buttons {
    justify-content: center;
  }
}

/* Tablet Responsive for Single Post */
@media (min-width: 768px) and (max-width: 1023px) {
  .blog-single-title {
    font-size: 38px;
  }

  .blog-single-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-single-main {
    padding: 48px;
  }
}
