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

/* Blog Hero Section */
.blog-hero {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
              url('../images/contact-bg.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-hero .container {
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
}

.blog-hero h1 {
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
  line-height: 1.1;
}

.blog-hero p {
  font-size: 22px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.3;
}

/* Blog Main Section */
.blog-main-section {
  background: white;
  padding: 80px 40px;
  min-height: 600px;
}

.blog-container {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
}

/* Blog Sidebar */
.blog-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.blog-sidebar-content {
  background: #eaf7ff;
  border-radius: 20px;
  padding: 30px;
}

.blog-sidebar-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 25px 0;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-link {
  display: block;
  padding: 12px 20px;
  font-size: 18px;
  color: #262626;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: transparent;
}

.category-link:hover {
  background: rgba(93, 173, 226, 0.1);
  color: #5dade2;
  transform: translateX(5px);
}

.category-link.active {
  background: #5dade2;
  color: white;
  font-weight: 600;
}

/* Blog Posts Grid */
.blog-posts-wrapper {
  width: 100%;
}

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

.blog-post-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.blog-post-image {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  display: block;
}

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

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

.blog-post-tags {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.blog-post-content {
  padding: 30px;
}

.blog-post-date {
  font-size: 16px;
  color: #939393;
  display: block;
  margin-bottom: 15px;
}

.blog-post-title {
  font-size: 24px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.blog-post-title a {
  color: #262626;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-post-title a:hover {
  color: #5dade2;
}

.blog-post-excerpt {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.blog-post-content .btn {
  margin-top: 10px;
}

/* Empty State */
.blog-empty-state {
  text-align: center;
  padding: 100px 40px;
  background: #eaf7ff;
  border-radius: 20px;
}

.blog-empty-state p {
  font-size: 24px;
  color: #939393;
  margin: 0;
}

/* ============================================
   BLOG POST DETAIL PAGE STYLES
   ============================================ */

/* Blog Post Hero */
.blog-post-hero {
  background: linear-gradient(138deg, rgba(234, 247, 255, 1) 0%, rgba(167, 211, 243, 1) 100%);
  padding: 150px 80px 80px 80px;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-post-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.blog-post-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.blog-post-breadcrumb a {
  color: #5dade2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-post-breadcrumb a:hover {
  color: #4a9dd1;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #999;
}

.blog-post-hero-title {
  font-size: 56px;
  font-weight: 700;
  color: #262626;
  margin: 0 0 30px 0;
  line-height: 1.2;
}

.blog-post-meta-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-post-date-large {
  font-size: 18px;
  color: #666;
}

.blog-post-category-badge {
  background: #5dade2;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
}

.blog-post-read-time {
  font-size: 16px;
  color: #666;
}

/* Blog Post Article */
.blog-post-article {
  background: white;
  padding: 80px 40px;
}

.blog-post-container {
  max-width: 900px;
  margin: 0 auto;
}

.blog-post-featured-image {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

.blog-post-body {
  font-size: 20px;
  line-height: 1.8;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-line;
}

.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4,
.blog-post-body h5,
.blog-post-body h6 {
  white-space: normal;
}

.blog-post-body h1 {
  font-size: 42px;
  font-weight: 700;
  color: #262626;
  margin: 50px 0 25px 0;
  line-height: 1.3;
}

.blog-post-body h2 {
  font-size: 36px;
  font-weight: 700;
  color: #262626;
  margin: 50px 0 25px 0;
  line-height: 1.3;
}

.blog-post-body h3 {
  font-size: 28px;
  font-weight: 700;
  color: #262626;
  margin: 40px 0 20px 0;
  line-height: 1.3;
}

.blog-post-body h4 {
  font-size: 24px;
  font-weight: 700;
  color: #262626;
  margin: 30px 0 15px 0;
}

.blog-post-body h5 {
  font-size: 20px;
  font-weight: 700;
  color: #262626;
  margin: 25px 0 12px 0;
}

.blog-post-body h6 {
  font-size: 18px;
  font-weight: 700;
  color: #262626;
  margin: 20px 0 10px 0;
}

.blog-post-body p {
  margin: 0 0 25px 0;
  line-height: 1.8;
  white-space: pre-wrap;
}

.blog-post-body strong,
.blog-post-body b {
  font-weight: 700;
  color: #262626;
}

.blog-post-body em,
.blog-post-body i {
  font-style: italic;
}

.blog-post-body u {
  text-decoration: underline;
}

.blog-post-body br {
  display: block;
  content: "";
  margin: 10px 0;
}

.blog-post-body ul,
.blog-post-body ol {
  margin: 0 0 25px 0;
  padding-left: 30px;
}

.blog-post-body li {
  margin-bottom: 12px;
  line-height: 1.8;
}

.blog-post-body blockquote {
  background: #eaf7ff;
  border-left: 5px solid #5dade2;
  padding: 25px 30px;
  margin: 30px 0;
  font-size: 22px;
  font-style: italic;
  color: #555;
  border-radius: 0 10px 10px 0;
}

.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  margin: 30px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.blog-post-body a {
  color: #5dade2;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.blog-post-body a:hover {
  color: #4a9dd1;
}

.blog-post-body code {
  background: #f5f5f5;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  color: #e74c3c;
}

.blog-post-body pre {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 30px 0;
}

.blog-post-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 16px;
}

.blog-post-actions {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #eee;
  display: flex;
  justify-content: center;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-back svg {
  flex-shrink: 0;
}

/* Related Posts Section */
.blog-related-section {
  background: linear-gradient(271deg, rgba(234, 247, 255, 0.8) 50%, rgba(190, 227, 248, 1) 100%);
  padding: 100px 80px;
}

.blog-related-container {
  max-width: 1600px;
  margin: 0 auto;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1400px) {
  .blog-container {
    grid-template-columns: 250px 1fr;
    gap: 40px;
  }
  
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .blog-hero h1 {
    font-size: 48px;
  }

  .blog-hero p {
    font-size: 20px;
  }
  
  .blog-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .blog-sidebar {
    position: static;
  }
  
  .blog-sidebar-content {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .category-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .blog-main-section,
  .blog-post-article {
    padding: 60px 30px;
  }
  
  .blog-related-section {
    padding: 80px 40px;
  }
  
  .blog-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    height: 240px;
  }

  .blog-hero h1 {
    font-size: 38px;
  }

  .blog-hero p {
    font-size: 18px;
  }
  
  .blog-main-section,
  .blog-post-article {
    padding: 40px 20px;
  }
  
  .blog-post-image {
    height: 250px;
  }
  
  .blog-post-featured-image {
    height: 300px;
  }
  
  .blog-post-title {
    font-size: 20px;
  }
  
  .blog-post-excerpt {
    font-size: 16px;
  }
  
  .blog-post-body {
    font-size: 18px;
  }
  
  .blog-post-body h2 {
    font-size: 28px;
  }
  
  .blog-post-body h3 {
    font-size: 24px;
  }
  
  .blog-post-body h4 {
    font-size: 20px;
  }
  
  .blog-related-section {
    padding: 60px 20px;
  }
  
  .section-title-center {
    font-size: 36px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    height: 240px;
  }

  .blog-hero h1 {
    font-size: 36px;
  }

  .blog-hero p {
    font-size: 20px;
  }
  
  .blog-post-image {
    height: 200px;
  }
  
  .blog-post-featured-image {
    height: 250px;
  }
  
  .blog-post-content {
    padding: 20px;
  }
  
  .blog-post-title {
    font-size: 18px;
  }
  
  .blog-post-body {
    font-size: 16px;
  }
  
  .blog-post-body h2 {
    font-size: 24px;
  }
  
  .blog-post-body h3 {
    font-size: 20px;
  }
}
