/* ======  BLOG-SPECIFIC STYLES  ====== */

/* 1. HERO SLIDER */
.blog-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  margin-top: 3rem;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  text-align: center;
}
.blog-hero::before {           /* dark overlay so text pops */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 2;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade 18s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }

@keyframes fade {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  33.33% { opacity: 1; }
  41.33% { opacity: 0; }
  100% { opacity: 0; }
}

.blog-hero .container {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 1rem;
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
}
.hero-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: .92;
}
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  padding: .85rem 2.2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: .3s ease;
}
.btn-primary {
  background: #ff6b00;
  color: #fff;
}
.btn-primary:hover {
  background: #e55d00;
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-secondary:hover {
  background: #fff;
  color: #111;
}

/* 2. SECTIONS & HEADER */
.blog-section {
  padding: 5rem 0;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}
.section-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ff6b00;
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-text {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
}

/* 3. BLOG GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  transition: .35s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s ease;
}
.blog-card:hover .card-img img {
  transform: scale(1.05);
}
.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.25), transparent 60%);
}
.card-content {
  padding: 1.5rem 1.75rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .75rem;
}
.card-title a {
  color: #111;
  text-decoration: none;
}
.card-title a:hover {
  color: #ff6b00;
}
.card-text {
  font-size: .95rem;
  color: #444;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}
.blog-footer {
  margin-top: auto;
}
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .9rem;
  color: #ff6b00;
  text-decoration: none;
}
.read-more-btn:hover {
  gap: .6rem;
}
.read-more-btn ion-icon {
  font-size: 1.1rem;
  transition: transform .25s;
}
.read-more-btn:hover ion-icon {
  transform: translateX(4px);
}

/* 4. RESPONSIVE TWEAKS */
@media (max-width: 768px) {
  .blog-hero { height: 60vh; }
  .btn-group { flex-direction: column; align-items: center; }
  .blog-grid { gap: 2rem; }
}