/* SınavaHazırlık.tr - Blog ve Eğitim Rehberi Bölümü (Section 12) */

.blog-section {
  padding: 84px 24px 96px;
  background: #f8fafc;
  position: relative;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

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

/* Header */
.blog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.blog-head-info {
  max-width: 760px;
}

.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(15, 118, 107, 0.08);
  border: 1px solid rgba(15, 118, 107, 0.2);
  border-radius: 999px;
  color: #0f766b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.blog-title {
  font-family: 'Manrope', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 12px;
}

.blog-title .blog-gradient-text {
  background: linear-gradient(135deg, #0f766b 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-subtitle {
  font-size: 16px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* All Articles Button */
.btn-view-all-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #0f766b;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-view-all-blog:hover {
  background: #0f766b;
  color: #ffffff;
  border-color: #0f766b;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15, 118, 107, 0.2);
}

.btn-view-all-blog span.arrow {
  transition: transform 0.2s ease;
}

.btn-view-all-blog:hover span.arrow {
  transform: translateX(4px);
}

/* Category Filter Tabs */
.blog-tabs-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.blog-tab-btn {
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-tab-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.blog-tab-btn.active {
  background: #0f766b;
  color: #ffffff;
  border-color: #0f766b;
  box-shadow: 0 4px 12px rgba(15, 118, 107, 0.2);
}

/* 3-Column Articles Grid */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Individual Blog Card (100% Clickable) */
.blog-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px rgba(15, 118, 107, 0.1);
}

.blog-card-media {
  height: 190px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.blog-card-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

.blog-card-meta-top span.dot {
  font-weight: 900;
}

.blog-card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0 10px;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: #0f766b;
}

.blog-card-excerpt {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  font-size: 13px;
}

.blog-author-info {
  color: #334155;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-read-action {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: #0f766b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card:hover .blog-read-action span.arrow {
  transform: translateX(3px);
}

.blog-read-action span.arrow {
  transition: transform 0.2s ease;
}

/* Blog Reader Modal */
.blog-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.blog-modal.active {
  display: flex;
}

.blog-modal-card {
  background: #ffffff;
  border-radius: 22px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: blogModalPop 0.25s ease forwards;
}

@keyframes blogModalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.blog-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: background 0.2s ease;
}

.blog-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Responsive */
@media (max-width: 1080px) {
  .blog-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-section {
    padding: 60px 16px 72px;
  }

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

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

  .blog-modal-card {
    padding: 24px 20px;
  }
}
