/* ===== BLOG STYLES ===== */

/* Blog Home Page */
.blog-home-page {
  background: var(--light-gray);
}

.blog-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  color: var(--white);
  padding: 4rem 0 2rem;
}

.blog-header .page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.blog-header .page-subtitle {
  font-size: 1.2rem;
  text-align: center;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Featured Post Section */
.featured-post-section {
  padding: 4rem 0;
  background: var(--white);
}

.featured-post-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.featured-post-image {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-post-card:hover .featured-post-image img {
  transform: scale(1.05);
}

.featured-badge {
  top: 1rem;
  left: 1rem;
  background: var(--primary-orange);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.featured-post-content {
  padding: 2rem;
}

.featured-post-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
  line-height: 1.3;
}

.featured-post-title a {
  color: var(--dark-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-post-title a:hover {
  color: var(--primary-blue);
}

.featured-post-excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

/* Blog Categories Section */
.blog-categories-section {
  padding: 4rem 0;
  background: var(--light-gray);
}

.blog-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-category-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.category-icon {
  margin-bottom: 1rem;
}

.category-emoji {
  font-size: 3rem;
  display: block;
}

.category-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.category-description {
  color: var(--text-gray);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.category-count {
  font-size: 0.9rem;
  color: var(--primary-blue);
  font-weight: 500;
  margin-bottom: 1rem;
}

.category-link {
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.category-link:hover {
  color: var(--dark-blue);
}

/* Recent Posts Section */
.recent-posts-section {
  padding: 4rem 0;
  background: var(--white);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.view-all-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.view-all-link:hover {
  color: var(--primary-orange);
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-post-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.blog-post-card .post-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-post-card .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 136, 229, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-post-card:hover .post-overlay {
  opacity: 1;
}

.read-more-btn {
  background: var(--white);
  color: var(--primary-blue);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background: var(--primary-orange);
  color: var(--white);
  transform: scale(1.05);
}

.blog-post-card .post-content {
  padding: 1.5rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.post-date {
  color: var(--text-gray);
}

.post-category {
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.post-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.post-title a {
  color: var(--dark-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--primary-blue);
}

.post-excerpt {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-author {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* Newsletter Section */
.newsletter-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
  color: var(--white);
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.newsletter-description {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
}

.newsletter-form .form-group {
  display: flex;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 1rem 2rem;
  background: var(--primary-orange);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: #e64a19;
}

.newsletter-privacy {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Single Blog Post */
.single-blog-post {
  background: var(--white);
}

.post-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  color: var(--white);
  padding: 3rem 0 2rem;
}

.post-header-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.post-breadcrumbs {
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.post-breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.post-breadcrumbs a:hover {
  color: var(--white);
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  opacity: 0.6;
}

.current-page {
  opacity: 0.8;
}

.post-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.post-categories {
  display: flex;
  gap: 0.5rem;
}

.post-category-tag {
  background: var(--primary-orange);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 500;
}

.post-date {
  font-size: 0.9rem;
  opacity: 0.9;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.post-meta-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar img {
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-name {
  font-weight: 600;
  display: block;
}

.reading-time {
  font-size: 0.9rem;
  opacity: 0.8;
  display: block;
}

.post-actions {
  position: relative;
}

.share-btn {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.share-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  display: none;
  min-width: 150px;
  z-index: 100;
}

.share-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--dark-blue);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.share-link:hover {
  background: var(--light-gray);
}

/* Featured Image */
.post-featured-image {
  margin: 2rem 0;
}

.featured-image-container {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Post Content */
.post-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--dark-blue);
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.post-content h2 {
  font-size: 1.8rem;
}

.post-content h3 {
  font-size: 1.5rem;
}

.post-content h4 {
  font-size: 1.3rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content blockquote {
  border-left: 4px solid var(--primary-orange);
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-gray);
}

.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-tags {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
}

.post-tags h4 {
  margin-bottom: 1rem;
  color: var(--dark-blue);
}

.tags-list a {
  display: inline-block;
  background: var(--light-gray);
  color: var(--text-gray);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  margin: 0 0.5rem 0.5rem 0;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tags-list a:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--light-gray);
  border-radius: 12px;
  margin: 2rem 0;
}

.author-avatar-large img {
  border-radius: 50%;
}

.author-bio-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.author-bio-description {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.author-social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--primary-orange);
}

/* Post Sidebar */
.post-sidebar {
  padding-top: 2rem;
}

.sidebar-widget {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-orange);
}

.related-post-item,
.popular-post-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.related-post-item:last-child,
.popular-post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.related-post-image,
.popular-post-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.related-post-image img,
.popular-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-title,
.popular-post-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.related-post-title a,
.popular-post-title a {
  color: var(--dark-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-title a:hover,
.popular-post-title a:hover {
  color: var(--primary-blue);
}

.related-post-date,
.popular-post-date {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.categories-list {
  list-style: none;
  padding: 0;
}

.category-item {
  margin-bottom: 0.75rem;
}

.category-link {
  color: var(--text-gray);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.category-link:hover {
  color: var(--primary-blue);
}

.category-count {
  font-size: 0.9rem;
  color: var(--text-light);
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-link {
  background: var(--light-gray);
  color: var(--text-gray);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tag-link:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.newsletter-widget .widget-description {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.newsletter-widget .newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-widget input {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
}

.newsletter-widget button {
  padding: 0.75rem;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-widget button:hover {
  background: var(--dark-blue);
}

/* Post Navigation */
.post-navigation {
  background: var(--light-gray);
  padding: 3rem 0;
}

.post-nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.nav-previous,
.nav-next {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.nav-link {
  display: block;
  padding: 2rem;
  text-decoration: none;
  color: var(--text-dark);
}

.nav-direction {
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

.nav-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-blue);
  line-height: 1.4;
}

.nav-next {
  text-align: right;
}

/* Blog Archive */
.blog-archive-page {
  background: var(--light-gray);
  min-height: 100vh;
}

.archive-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  color: var(--white);
  padding: 3rem 0 2rem;
}

.archive-content {
  padding: 3rem 0;
}

.archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.archive-filters {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-section {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.search-form {
  position: relative;
}

.search-form input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
}

.search-form button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  padding: 0.5rem;
}

.filter-dropdown select,
.sort-dropdown select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--white);
}

.results-info {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.archive-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.archive-post-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.archive-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.archive-post-card .post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.no-posts-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}

.no-posts-content h3 {
  font-size: 1.5rem;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

.no-posts-content p {
  color: var(--text-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Archive Sidebar */
.archive-sidebar {
  padding-top: 0;
}

/* Pagination */
.archive-pagination {
  margin-top: 3rem;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-pagination .page-numbers li {
  margin: 0;
}

.archive-pagination .page-numbers a,
.archive-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-gray);
  transition: all 0.3s ease;
  min-width: 44px;
}

.archive-pagination .page-numbers a:hover,
.archive-pagination .page-numbers .current {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .blog-header .page-title {
    font-size: 2rem;
  }

  .featured-post-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .featured-post-image {
    height: 250px;
  }

  .blog-categories-grid {
    grid-template-columns: 1fr;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .newsletter-form .form-group {
    flex-direction: column;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-meta-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .post-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .post-nav-container {
    grid-template-columns: 1fr;
  }

  .archive-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .filter-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .archive-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-header .page-title {
    font-size: 1.75rem;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .featured-post-content {
    padding: 1.5rem;
  }

  .blog-category-card,
  .sidebar-widget {
    padding: 1.5rem;
  }

  .post-header-container {
    padding: 0 1rem;
  }
}
