/* =====================================================================================
   BRILLIANT ACADEMIC MINDS — MEDIA & PHOTO STYLES v7.0
   ===================================================================================== */

/* ── Course Thumbnails ── */
.course-thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #0a0f0a;
}

.course-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
  display: block;
}

.course-card:hover .course-thumb img { transform: scale(1.06); }

/* ── Hero Visual ── */
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}

.hero-img-wrap img {
  width: 100%;
  height: 490px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
  box-shadow: var(--shadow-xl);
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.75));
  border-radius: var(--radius-xl);
}

.hero-img-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  color: white;
  border-radius: var(--radius-xl);
}

.hero-img-content h3 { color: white; font-size: 1.2rem; margin-bottom: 6px; }
.hero-img-content p { color: rgba(255,255,255,0.8); font-size: 0.88rem; }

/* ── About image ── */
.about-img-box {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 440px;
}

.about-img-box img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.about-img-box .img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%);
}

.about-img-box .overlay-content {
  position: absolute;
  bottom: 30px; left: 30px;
  color: white;
}

.about-img-box .overlay-content h3 { color: white; font-size: 1.4rem; margin-bottom: 4px; }
.about-img-box .overlay-content p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* ── Team Avatars ── */
.team-avatar {
  height: 220px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.team-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}

.team-card:hover .team-avatar img { transform: scale(1.05); }

/* ── Blog Card Images ── */
.blog-thumb {
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--bg-secondary);
}

.blog-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.blog-preview-card:hover .blog-thumb img { transform: scale(1.06); }

/* ── Service Images ── */
.service-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}

/* ── Image fallback gradients ── */
.img-fallback-green   { background: linear-gradient(135deg, var(--emerald), var(--emerald-deep)); }
.img-fallback-dark    { background: linear-gradient(135deg, #0a1520, #091820); }
.img-fallback-blue    { background: linear-gradient(135deg, #1a4fc4, #0d3599); }
.img-fallback-purple  { background: linear-gradient(135deg, #6c2bd9, #4a1a99); }
.img-fallback-teal    { background: linear-gradient(135deg, #0a7c7c, #0d6060); }
.img-fallback-gold    { background: linear-gradient(135deg, #c9a227, #a07d1a); }

/* ── Logo icon ── */
.nav-logo .logo-icon,
.footer-brand .logo-icon { overflow: hidden; }

/* ── Lazy loading fade-in ── */
img[loading="lazy"] {
  transition: opacity 0.4s ease;
}
