/* ---------------------------------------------
   DiPStrategy -- Latest Blog Section
   style/blog.css
   --------------------------------------------- */

.blog-section {
  background: #ffffff;
  padding: 80px 56px;
  position: relative;
}

/* --- HEADER -- centered --- */
.blog-header {
  text-align: center;
  margin-bottom: 64px;
}

.blog-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #093564;
  margin-bottom: 16px;
}

.blog-label-star {
  width: 16px;
  height: 16px;
  animation: spin 12s linear infinite;
  flex-shrink: 0;
}

.blog-headline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: clamp(28px, 3.5vw, 48px);
  color: #093564;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.blog-headline strong {
  font-weight: 900;
}

.blog-subtext {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: rgba(9,53,100,0.45);
  letter-spacing: 0.04em;
}

.blog-slider {
  max-width: 1100px;
  margin: 0 auto;
}

.blog-viewport {
  overflow: hidden;
}

.blog-track {
  display: flex;
  transition: transform 0.55s ease;
  will-change: transform;
}

.blog-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  flex: 0 0 100%;
  min-width: 100%;
  padding: 20px 12px;
  box-sizing: border-box;
}

/* --- CARD --- */
.blog-card {
  background: #f2f2f2;
  border: 8px solid #ffffff;
  border-radius: 16px;
  box-shadow: 4px 4px 4px rgba(0,0,0,0.03), 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* Thumbnail -- fixed width, stretches to card height */
.blog-card-thumb {
  width: 40%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* Placeholder thumbnail */
.blog-card-thumb-placeholder {
  width: 150px;
  background: linear-gradient(135deg, #d8d8d8 0%, #e8e8e8 50%, #d0d0d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blog-card-thumb-placeholder svg {
  width: 28px;
  height: 28px;
  opacity: 0.25;
  fill: #093564;
}

/* Card body */
.blog-card-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.blog-card-category {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #DEFF2D;
  background: #093564;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  align-self: flex-start;
}

.blog-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: #093564;
  letter-spacing: -0.01em;
  white-space: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-card-excerpt {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(9,53,100,0.6);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.blog-card-date {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 11px;
  color: rgba(9,53,100,0.35);
  letter-spacing: 0.06em;
}

.blog-card-read {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #093564;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.blog-card:hover .blog-card-read { opacity: 1; }
.blog-card-read svg { width: 12px; height: 12px; }

/* --- VIEW ALL LINK --- */
.blog-footer {
  text-align: center;
  margin-top: 48px;
}

.blog-all-link {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(9,53,100,0.45);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.blog-all-link:hover { color: #093564; }
.blog-all-link svg { width: 16px; height: 16px; }

.blog-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.blog-slider-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(9,53,100,0.18);
  border-radius: 50%;
  background: #ffffff;
  color: #093564;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-slider-btn:hover {
  background: #093564;
  border-color: #093564;
  color: #DEFF2D;
}

.blog-slider-btn:disabled {
  cursor: default;
  opacity: 0.35;
}

.blog-slider-btn:disabled:hover {
  background: #ffffff;
  border-color: rgba(9,53,100,0.18);
  color: #093564;
}

.blog-slider-btn svg {
  width: 18px;
  height: 18px;
}

.blog-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(9,53,100,0.22);
  padding: 0;
  cursor: pointer;
}

.blog-dot.active {
  width: 24px;
  border-radius: 999px;
  background: #093564;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .blog-section { padding: 80px 24px; }
  .blog-slider { max-width: 480px; }
  .blog-slide { grid-template-columns: 1fr; gap: 20px; }
  .blog-card { min-height: 150px; }
}
