/* ===== BLOG HERO SECTION ===== */
.blog-hero {
  text-align: center;
  padding: 80px 20px;
  background-image: url(images/bca.jpg);
  color: #fff;
  margin-top: 80px;
}

.blog-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
}

.blog-hero p {
  font-size: 18px;
  color: #ddd;
}

/* ===== BLOG CONTROLS ===== */
.blog-controls {
  background: #fff;
  padding: 30px 20px;
  border-bottom: 2px solid #000;
}

.controls-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-search,
.blog-category {
  padding: 12px 18px;
  border: 2px solid #000;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  font-family: inherit;
}

.blog-search {
  min-width: 300px;
  flex: 1;
  max-width: 500px;
}

.blog-category {
  min-width: 150px;
  cursor: pointer;
}

.blog-search:focus,
.blog-category:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* ===== BLOG SECTION ===== */
.blog-section {
  padding: 60px 20px;
  background: #fff;
  min-height: 60vh;
}

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== BLOG TILE ===== */
.blog-tile {
  background: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.blog-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.blog-tile-image {
  width: 100%;
  height: 200px;
  background: #e0e0e0;
  object-fit: cover;
  display: block;
}

.blog-tile-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-tile-category {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  width: fit-content;
}

.blog-tile-title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-tile-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.blog-tile-meta {
  font-size: 11px;
  color: #999;
  margin-bottom: 12px;
}

.blog-tile-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.blog-tile-btn:hover {
  background: #333;
}

/* ===== BLOG MODAL ===== */
.blog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  overflow-y: auto;
  padding: 40px 20px;
  display: none;
}

.blog-modal.show {
  display: block;
}

.blog-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: -1;
  cursor: pointer;
}

.blog-modal-content {
  background: #fff;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  padding: 40px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.blog-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #000;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.blog-modal-close:hover {
  background: #333;
}

/* ===== BLOG POST CONTENT ===== */
.blog-post-title {
  font-size: 32px;
  font-weight: 700;
  color: #000;
  margin-bottom: 15px;
}

.blog-post-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 25px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-post-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
  display: block;
}

.blog-post-content {
  font-size: 15px;
  color: #333;
  line-height: 1.8;
}

.blog-post-content p {
  margin-bottom: 16px;
}

.blog-post-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-top: 25px;
  margin-bottom: 12px;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-left: 20px;
  margin-bottom: 16px;
}

.blog-post-content li {
  margin-bottom: 8px;
}

.blog-post-content strong {
  color: #000;
  font-weight: 700;
}

/* ===== RELATED POSTS ===== */
.related-posts {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.related-posts h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.related-link {
  background: #f9f9f9;
  padding: 15px;
  border-left: 4px solid #000;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.related-link:hover {
  background: #f0f0f0;
  padding-left: 25px;
}

.related-link a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-results p {
  font-size: 18px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 32px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .controls-container {
    flex-direction: column;
  }

  .blog-search,
  .blog-category {
    width: 100%;
  }

  .blog-modal-content {
    padding: 20px;
  }

  .blog-post-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 50px 15px;
  }

  .blog-post-content {
    font-size: 14px;
  }
}
