/* BLOG PAGE */
.blog-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 207, 255, 0.11), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 138, 0, 0.1), transparent 25%),
    #0a0f1f;
  overflow-x: hidden;
}

.blog-hero {
  padding: 158px 0 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.8fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.blog-hero-copy h1 {
  max-width: 760px;
  margin: 10px 0 16px;
  color: var(--text-white);
  font-size: clamp(2.25rem, 5vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.blog-hero-copy p {
  max-width: 680px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
}

.blog-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  max-width: 680px;
  margin-top: 30px;
  padding: 8px;
  border: 1px solid rgba(0, 207, 255, 0.2);
  border-radius: var(--radius-full);
  background: rgba(5, 10, 22, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.blog-search i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--eibo-cyan);
}

.blog-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-white);
  font: 600 0.96rem var(--font-body);
}

.blog-search input::placeholder {
  color: rgba(148, 163, 184, 0.86);
}

.blog-search button {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ff8a00, #fb923c);
  color: #fff;
  font: 800 0.9rem var(--font-heading);
  cursor: pointer;
  transition: var(--transition);
}

.blog-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 138, 0, 0.28);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.blog-filters .filter-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-muted);
  padding: 10px 18px;
  font: 800 0.88rem var(--font-heading);
  cursor: pointer;
  transition: var(--transition);
}

.blog-filters .filter-btn:hover,
.blog-filters .filter-btn.active {
  color: #fff;
  border-color: rgba(0, 207, 255, 0.48);
  background: rgba(0, 207, 255, 0.13);
  box-shadow: 0 12px 26px rgba(0, 207, 255, 0.13);
}

.hero-feature-card {
  overflow: hidden;
  padding: 0;
  border-color: rgba(0, 207, 255, 0.16);
}

.hero-feature-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-feature-image img,
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
  filter: brightness(0.92) saturate(1.1);
}

.hero-feature-card:hover .hero-feature-image img,
.blog-card:hover .blog-card-img img {
  transform: scale(1.08);
  filter: brightness(1) saturate(1.2);
}

/* Gradient overlay on blog card images */
.blog-card-img {
  position: relative;
}

.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 12, 24, 0.75) 0%,
    rgba(8, 12, 24, 0.2) 40%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.blog-card:hover .blog-card-img::after {
  background: linear-gradient(
    to top,
    rgba(0, 207, 255, 0.18) 0%,
    rgba(8, 12, 24, 0.1) 40%,
    transparent 100%
  );
}

/* Shimmer effect on hover */
.blog-card-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  z-index: 2;
  pointer-events: none;
  transition: none;
}

.blog-card:hover .blog-card-img::before {
  animation: blogShimmer 0.8s ease forwards;
}

@keyframes blogShimmer {
  from { left: -100%; }
  to { left: 120%; }
}

.hero-feature-content {
  padding: 24px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.blog-tags .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-feature-content h2 {
  margin-bottom: 12px;
  color: var(--text-white);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.hero-feature-content p {
  margin-bottom: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

.blog-section {
  padding: 72px 0 96px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}

.blog-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.blog-section-head h2 {
  margin-top: 8px;
  color: var(--text-white);
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.16;
}

.blog-section-head p {
  max-width: 360px;
  color: var(--text-muted);
  line-height: 1.65;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
  background: rgba(8, 12, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease,
              box-shadow 0.45s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 207, 255, 0.35);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    0 0 32px rgba(0, 207, 255, 0.1),
    0 0 0 1px rgba(0, 207, 255, 0.12);
}

.blog-card[hidden] {
  display: none;
}

.blog-card-img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050a16;
  border-radius: 16px 16px 0 0;
}

.blog-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.blog-card h3 {
  min-height: 4.2em;
  margin-bottom: 12px;
  color: var(--text-white);
  font-size: 1.08rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card p {
  min-height: 5.1em;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.blog-date-small {
  color: var(--text-faint);
  font-size: 0.72rem;
  line-height: 1.2;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--eibo-cyan);
  font: 800 0.86rem var(--font-heading);
  transition: var(--transition);
  white-space: nowrap;
}

.read-more:hover {
  color: #fff;
  transform: translateX(3px);
}

.blog-sidebar {
  position: sticky;
  top: 118px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-widget {
  padding: 24px;
  background: rgba(8, 12, 24, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-widget h4 {
  margin-bottom: 18px;
  color: var(--text-white);
  font-size: 1.08rem;
}

.widget-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--eibo-cyan);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-enroll-card {
  background:
    linear-gradient(145deg, rgba(255, 138, 0, 0.12), transparent 58%),
    rgba(8, 12, 24, 0.88);
}

.quick-enroll-card p {
  margin-bottom: 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

.quick-enroll-card .btn {
  width: 100%;
  justify-content: center;
}

.recent-post-list,
.placement-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recent-post,
.sidebar-placement {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}

.recent-post:hover,
.sidebar-placement:hover {
  background: rgba(0, 207, 255, 0.07);
  border-color: rgba(0, 207, 255, 0.18);
}

.recent-post img,
.sidebar-placement img {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.sidebar-placement img {
  border-radius: 50%;
}

.recent-post strong,
.sidebar-placement strong {
  display: -webkit-box;
  color: var(--text-white);
  font-size: 0.84rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-post small,
.sidebar-placement small {
  display: block;
  margin-top: 4px;
  color: var(--eibo-cyan);
  font-size: 0.72rem;
  line-height: 1.35;
}

.sidebar-courses {
  display: grid;
  gap: 10px;
  list-style: none;
}

.sidebar-courses a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}

.sidebar-courses a:hover {
  color: #fff;
  background: rgba(0, 207, 255, 0.08);
  transform: translateX(3px);
}

.sidebar-courses i {
  width: 18px;
  color: var(--eibo-cyan);
}

@media (max-width: 1180px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .blog-hero {
    padding: 136px 0 56px;
  }

  .blog-hero-grid,
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .blog-hero {
    padding: 120px 0 44px;
  }

  .blog-search {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: var(--radius-lg);
  }

  .blog-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .blog-section {
    padding: 48px 0 72px;
  }

  .blog-section-head {
    display: block;
  }

  .blog-section-head p {
    margin-top: 12px;
  }

  .blog-grid,
  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .blog-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 480px) {
  .blog-hero-copy h1 {
    font-size: 2.08rem;
  }

  .blog-filters .filter-btn {
    padding: 9px 13px;
    font-size: 0.8rem;
  }

  .hero-feature-content,
  .blog-card-content,
  .sidebar-widget {
    padding: 18px;
  }

  .blog-card h3 {
    min-height: auto;
    font-size: 1rem;
  }

  .blog-card p {
    min-height: auto;
  }
}
