/* ==========================================================================
   BLOGS & CAREER GUIDANCE (DCICI Crimson & Deep Navy Palette)
   Includes: 3D Tilt, Mouse Radial Spotlight & Wave Kinetic Typography
   ========================================================================== */
:root {
  --blg-bg: #fafafa;
  --blg-card-bg: #ffffff;
  --blg-navy: #0c1b33;
  --blg-muted: #52525b;
  --blg-border: rgba(228, 228, 231, 0.85);
  --blg-border-hover: rgba(229, 35, 32, 0.35);
  --blg-red: #e52320;
  --blg-red-bright: #f03e3b;
  --blg-red-glow: rgba(229, 35, 32, 0.2);
  --blg-red-subtle: #fef2f2;
}

body {
  background-color: var(--blg-bg);
  color: var(--blg-navy);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* ==============================================
   1. WAVE ANIMATION ENGINE
   ============================================== */
.wave-word {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.24em;
}

.wave-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.wave-animated.in-view .wave-char {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--char-index) * 18ms);
}

/* ==============================================
   2. HERO BANNER
   ============================================== */
.blogs-hero {
  position: relative;
  background: radial-gradient(circle at 85% 15%, rgba(229, 35, 32, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 15% 85%, rgba(12, 27, 51, 0.08) 0%, transparent 55%),
              linear-gradient(180deg, #090e17 0%, #0c1b33 100%);
  padding: 95px 0 85px;
  color: #ffffff;
  overflow: hidden;
  text-align: center;
}

.blogs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

.blogs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.blogs-hero-badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--blg-red-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blg-red-bright);
}

.blogs-hero-title {
  font-weight: 900;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.blogs-hero-title .highlight-red {
  color: var(--blg-red-bright);
}

.blogs-hero-desc {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
}

/* ==============================================
   3. INTRO CONTENT (SEO Section)
   ============================================== */
.blogs-intro-section {
  position: relative;
  padding: 70px 0 30px;
}

.blogs-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--blg-border);
  color: var(--blg-navy);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.blogs-section-badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--blg-red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--blg-red);
}

.section-title {
  color: var(--blg-navy);
  font-weight: 900;
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

.section-title .highlight-red {
  color: var(--blg-red);
}

.blogs-text-lead {
  color: var(--blg-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.blogs-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 45px;
}

.blogs-pill-item {
  background: #ffffff;
  border: 1px solid var(--blg-border);
  border-radius: 12px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blg-navy);
  font-weight: 600;
  font-size: 0.86rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.blogs-pill-item i {
  color: var(--blg-red);
}

/* ==============================================
   4. BLOG CARDS (With 3D Tilt & Radial Spotlight)
   ============================================== */
.blogs-grid-section {
  padding-bottom: 90px;
}

.blog-card-modern {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--blg-border);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px -6px rgba(12, 27, 51, 0.05);
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

/* Mouse Hover Radial Spotlight */
.blog-card-modern::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(
    380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(229, 35, 32, 0.08),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.blog-card-modern:hover::after {
  opacity: 1;
}

.blog-card-modern:hover {
  border-color: var(--blg-border-hover);
  box-shadow: 0 20px 45px -12px rgba(12, 27, 51, 0.12),
              0 0 16px -4px rgba(229, 35, 32, 0.15);
}

.blog-card__img-link {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f1f5f9;
  display: block;
}

.blog-card__img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card-modern:hover .blog-card__img-link img {
  transform: scale(1.08);
}

.blog-card__body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.blog-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-card__title a {
  color: var(--blg-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card__title a:hover {
  color: var(--blg-red);
}

.blog-card__desc {
  font-size: 0.88rem;
  color: var(--blg-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-read-more {
  background: transparent;
  color: var(--blg-red) !important;
  border: 1px solid rgba(229, 35, 32, 0.25);
  font-weight: 700;
  font-size: 0.86rem;
  border-radius: 10px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  align-self: flex-start;
  transition: all 0.25s ease;
}

.btn-read-more:hover {
  background: var(--blg-red);
  color: #ffffff !important;
  border-color: var(--blg-red);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(229, 35, 32, 0.25);
}

@media (max-width: 768px) {
  .blog-card__img-link {
    height: 200px;
  }
}