/* ============================================================
   NEW-SECTIONS.CSS — Faculty · Gallery · Blog
   WE CAN Institute of English
   ============================================================ */

/* ══════════════════════════════════════════════
   FACULTY SECTION
══════════════════════════════════════════════ */
.faculty {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.faculty__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(27,155,215,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 20%, rgba(227,30,36,0.06) 0%, transparent 50%);
}

.faculty .section-header__title { color: var(--white); }
.faculty .section-header__subtitle { color: var(--text-soft); }

.faculty__carousel {
  --faculty-gap: 0.8rem;
  --faculty-visible: 3;
  position: relative;
  padding: 0 2.7rem;
  max-width: 1120px;
  margin: 0 auto;
}

.faculty__viewport {
  width: 100%;
  overflow: hidden;
  overflow-y: hidden;
  position: relative;
}

.faculty__viewport::before,
.faculty__viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52px;
  z-index: 2;
  pointer-events: none;
}

.faculty__viewport::before {
  left: 0;
  background: linear-gradient(to right, rgba(2, 6, 29, 0.95), rgba(2, 6, 29, 0));
}

.faculty__viewport::after {
  right: 0;
  background: linear-gradient(to left, rgba(2, 6, 29, 0.95), rgba(2, 6, 29, 0));
}

.faculty__grid {
  display: flex;
  gap: var(--faculty-gap);
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  will-change: transform;
}

.faculty__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(14,24,52,0.85);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: all var(--t-fast);
}

.faculty__nav--prev { left: 0; }
.faculty__nav--next { right: 0; }

.faculty__nav:hover {
  background: rgba(27,155,215,0.2);
  border-color: rgba(27,155,215,0.5);
}

.faculty__nav.is-disabled,
.faculty__nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Faculty card */
.faculty-card {
  position: relative;
  flex: 0 0 calc((100% - ((var(--faculty-visible) - 1) * var(--faculty-gap))) / var(--faculty-visible));
  border-radius: 0;
  overflow: hidden;
  background: var(--navy-soft);
  border: 1px solid var(--border);
  opacity: 0.68;
  transform: scale(0.95);
  filter: saturate(0.82) brightness(0.92);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.faculty-card.is-active {
  opacity: 1;
  transform: scale(1);
  filter: none;
  border-color: rgba(106, 224, 255, 0.82);
  box-shadow: 0 0 0 1px rgba(106, 224, 255, 0.62), 0 0 26px rgba(88, 232, 255, 0.38), 0 16px 34px rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.faculty-card.is-near {
  opacity: 0.82;
  transform: scale(0.97);
  filter: saturate(0.9) brightness(0.96);
}

.faculty-card.is-far {
  opacity: 0.5;
  transform: scale(0.93);
  filter: saturate(0.75) brightness(0.88);
}

.faculty-card:not(.is-active):hover {
  transform: translateY(-3px);
  border-color: rgba(90, 210, 255, 0.52);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* Photo area */
.faculty-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(145deg, #142744, #0d1b31);
  box-sizing: border-box;
}

.faculty-card__photo-bg,
.faculty-card__photo-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.faculty-card__photo-bg {
  object-fit: cover;
  filter: blur(16px) brightness(0.55);
  transform: scale(1.12);
  opacity: 0.85;
}

.faculty-card__photo-main {
  width: min(70%, 220px);
  aspect-ratio: 1 / 1;
  height: auto;
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
  z-index: 1;
  border-radius: 50%;
  border: 2px solid rgba(106, 224, 255, 0.38);
  box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 0 16px rgba(73, 215, 255, 0.28);
}

.faculty-card__photo-bg {
  border-radius: 16px;
  transition: transform 0.5s ease;
}

.faculty-card__photo-main {
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.faculty-card__photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(to top, rgba(11, 20, 41, 0.92), rgba(11, 20, 41, 0));
  pointer-events: none;
}

.faculty-card:hover .faculty-card__photo-main {
  transform: translate(-50%, -50%) scale(1.05);
}

/* Placeholder avatar when no real image */
.faculty-card__avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a2a3a 0%, #0f1e2e 100%);
  position: relative;
  overflow: hidden;
}

.faculty-card__avatar-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(27,155,215,0.12) 0%, transparent 60%);
}

.faculty-card__avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-light), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.faculty-card__placeholder-name {
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1rem;
}

/* Replace image label */
.faculty-card__replace-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 3;
}

/* Gradient overlay on photo bottom */
.faculty-card__photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--navy-soft) 0%, transparent 100%);
  z-index: 2;
}

/* Info area */
.faculty-card__info {
  margin-top: 0;
  padding: 0.9rem 1rem 1rem;
  position: relative;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(17, 30, 55, 0.96), rgba(13, 23, 44, 0.98));
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 175px;
}

.faculty-card__role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(27,155,215,0.12);
  border: 1px solid rgba(27,155,215,0.22);
  border-radius: var(--r-full);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #60c9f8;
  margin-bottom: 0.15rem;
  width: fit-content;
}

.faculty-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin: 0;
}

.faculty-card__speciality {
  font-size: 12px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.35;
}

.faculty-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-height: 2.45rem;
  overflow: hidden;
  margin-top: 0.25rem;
}

.faculty-card__tag {
  padding: 2px 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-full);
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.faculty-card__exp {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
}

.faculty-card__exp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-light);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   GALLERY SECTION
══════════════════════════════════════════════ */
.gallery {
  background: var(--navy-mid);
  position: relative;
  overflow: hidden;
}

.gallery__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(227,30,36,0.05) 0%, transparent 60%);
}

.gallery .section-header__title { color: var(--white); }
.gallery .section-header__subtitle { color: var(--text-soft); }

/* Tab filter bar */
.gallery__tabs {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

.gallery__tab {
  padding: 9px 22px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--text-soft);
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s ease;
}

.gallery__tab:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}

.gallery__tab.active {
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(227,30,36,0.35);
}

/* Masonry-style grid */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 10px;
}

.gallery__item {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: var(--navy-soft);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4 / 3;
}

.gallery__item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 2;
}

/* Span variations for visual rhythm */
.gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

/* Placeholder colored tile (replace with real images) */
.gallery__item-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery__video-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: radial-gradient(circle at 30% 20%, rgba(27,155,215,0.2), rgba(10,22,44,0.95));
  color: rgba(255,255,255,0.82);
  border-radius: 0;
}

.gallery__video-preview--file {
  background:
    linear-gradient(160deg, rgba(227,30,36,0.18), rgba(10,22,44,0.9)),
    radial-gradient(circle at 20% 15%, rgba(27,155,215,0.26), rgba(10,22,44,0.98));
}

.gallery__video-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
}

.gallery__video-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}

.gallery__item:hover .gallery__item-bg {
  transform: scale(1.06);
}

/* Colored placeholder when no image */
.gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}

.gallery__placeholder-icon {
  font-size: 2rem;
  position: relative;
  z-index: 1;
  opacity: 0.6;
}

.gallery__placeholder-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.8rem;
}

/* Overlay on hover */
.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
}

.gallery__item-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.gallery__item-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 4px;
}

/* Video items */
.gallery__item--video .gallery__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(227,30,36,0.85);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(227,30,36,0.5);
}

.gallery__item--video:hover .gallery__play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--red-light);
}

.gallery__play-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
  margin-left: 3px;
}

/* Replace hint */
.gallery__replace-label {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.585);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 5;
}

/* Upload CTA */
.gallery__footer-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding: 2rem;
  border: 1.5px dashed rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, background 0.2s;
}

.gallery__footer-cta:hover {
  border-color: rgba(27,155,215,0.3);
  background: rgba(27,155,215,0.03);
}

.gallery__footer-cta p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

.gallery__footer-cta strong {
  color: #60c9f8;
}

/* Lightbox */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(16px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox__inner {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.gallery-lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--r-lg);
  object-fit: contain;
}

.gallery-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s;
}

.gallery-lightbox__close:hover {
  background: var(--red);
}

/* ══════════════════════════════════════════════
   BLOG SECTION
══════════════════════════════════════════════ */
.blog {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.blog__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 80% 0%, rgba(27,155,215,0.07) 0%, transparent 50%);
}

.blog .section-header__title { color: var(--white); }
.blog .section-header__subtitle { color: var(--text-soft); }

/* Featured post (large) + sidebar */
.blog__layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
  align-items: start;
  grid-auto-rows: min-content;
}

/* Featured card */
.blog-featured {
  background: var(--navy-soft);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  align-self: start;
  height: auto;
}

.blog-featured:hover {
  border-color: rgba(27,155,215,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.blog-featured__cover {
  width: 100%;
  height: clamp(180px, 24vw, 260px);
  position: relative;
  overflow: hidden;
}

.blog-featured__cover-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-featured:hover .blog-featured__cover-bg {
  transform: scale(1.04);
}

.blog-featured__cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}

.blog-featured__cover-gradient {
  position: absolute;
  inset: 0;
  opacity: 0.85;
}

.blog-featured__cover-emoji {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.blog-featured__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  padding: 5px 14px;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  box-shadow: 0 4px 16px rgba(227,30,36,0.4);
}

.blog-featured__body {
  padding: 1rem 1.1rem 1.1rem;
  display: grid;
  gap: 0.7rem;
}

.blog-featured__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
}

.blog-featured__cat {
  color: #60c9f8;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.blog-featured__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin: 0;
}

.blog-featured__excerpt {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
}

.blog-featured__author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.blog-featured__author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-light), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.blog-featured__author-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.blog-featured__author-role {
  font-size: 12px;
  color: var(--text-soft);
}

.blog-featured__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #60c9f8;
  letter-spacing: 0.06em;
  margin-top: 1.5rem;
  transition: gap 0.2s;
}

.blog-featured:hover .blog-featured__read-more {
  gap: 10px;
}

/* Blog sidebar stack */
.blog__sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.blog-card-sm {
  background: var(--navy-soft);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  gap: 0;
  flex-direction: column;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  min-height: 0;
}

.blog-card-sm:hover {
  border-color: rgba(27,155,215,0.25);
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.blog-card-sm__cover {
  width: 100%;
  height: 108px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card-sm__cover-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card-sm:hover .blog-card-sm__cover-bg {
  transform: scale(1.06);
}

.blog-card-sm__cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.blog-card-sm__body {
  padding: 0.75rem 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.blog-card-sm__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #60c9f8;
  margin-bottom: 0.4rem;
}

.blog-card-sm__title {
  font-family: 'Playfair Display', serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin: 0;
}

.blog-card-sm__excerpt {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
  min-height: 2.9em;
}

.blog-card-sm__meta {
  font-size: 11px;
  color: var(--text-soft);
  margin: 0;
}

.blog-card-sm__author {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.blog-card-sm__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-light), var(--blue));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--white);
}

.blog-card-sm__author-name {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
}

/* Bottom 3-column grid */
.blog__grid-bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.blog-card-grid {
  background: var(--navy-soft);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.blog-card-grid:hover {
  border-color: rgba(27,155,215,0.25);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.blog-card-grid__cover {
  width: 100%;
  height: 126px;
  position: relative;
  overflow: hidden;
}

.blog-card-grid__cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.blog-card-grid__body {
  padding: 0.85rem 0.9rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.blog-card-grid__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 0.5rem;
}

.blog-card-grid__title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin: 0;
}

.blog-card-grid__excerpt {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
  min-height: 3em;
}

.blog-card-grid__meta {
  font-size: 11px;
  color: var(--text-soft);
  margin: 0;
}

.blog-card-grid__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: auto;
}

.blog-card-grid__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card-grid__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-light), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.blog-card-grid__author-name {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
}


/* View all CTA */
.blog__view-all {
  text-align: center;
  margin-top: 3rem;
}

.blog__view-note {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.blog__view-note-text {
  max-width: 620px;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--text-soft);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════
   FACULTY — REPLACE HINT FLEX
══════════════════════════════════════════════ */
.faculty-card__replace-hint {
  display: flex;
  align-items: center;
  gap: 5px;
}

.faculty-card__replace-hint i { color: var(--white); }

/* ══════════════════════════════════════════════
   GALLERY PLACEHOLDER — COLOR VARIANTS
══════════════════════════════════════════════ */
.gallery__placeholder--red-dark {
  background: linear-gradient(135deg, #1a0a0a, #3d1010);
}
.gallery__placeholder--blue-dark {
  background: linear-gradient(135deg, #0a1a2a, #0d3350);
}
.gallery__placeholder--green-dark {
  background: linear-gradient(135deg, #0a1f0a, #0d3b1a);
}
.gallery__placeholder--gold-dark {
  background: linear-gradient(135deg, #1a140a, #3d2d08);
}
.gallery__placeholder--purple-dark {
  background: linear-gradient(135deg, #150a1a, #2d1040);
}
.gallery__placeholder--teal-dark {
  background: linear-gradient(135deg, #0a1a1a, #0d3535);
}
.gallery__placeholder--rose-dark {
  background: linear-gradient(135deg, #1a0a10, #3d0d20);
}
.gallery__placeholder--indigo-dark {
  background: linear-gradient(135deg, #0a0a1a, #101040);
}
.gallery__placeholder--emerald-dark {
  background: linear-gradient(135deg, #0a150a, #0d2b10);
}
.gallery__placeholder--amber-dark {
  background: linear-gradient(135deg, #1a1200, #3d2d00);
}

.gallery__placeholder--red-dark img {
  object-fit: cover;
  width: 100%;
}

.gallery__placeholder i  { color: var(--white); }
.gallery__placeholder-video i { color: rgba(255,255,255,0.6); }

/* Gallery replace label flex */
.gallery__replace-label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.gallery__replace-label i { color: var(--white); }
.gallery__replace-label--video i { color: rgba(255,255,255,0.6); }

/* Gallery update note */
.gallery__update-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.gallery__update-note-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gallery__update-note-row i { color: var(--text-soft); }

/* ══════════════════════════════════════════════
   BLOG COVER PLACEHOLDER — COLOR VARIANTS
══════════════════════════════════════════════ */
.blog-cover--featured {
  background: linear-gradient(135deg, #0f1f35, #1a3a5c);
}
.blog-cover--red-brown {
  background: linear-gradient(135deg, #1a0f0a, #3d2010);
}
.blog-cover--green-dark {
  background: linear-gradient(135deg, #0a1a0a, #103520);
}
.blog-cover--indigo {
  background: linear-gradient(135deg, #0d0a1a, #1a1040);
}
.blog-cover--navy {
  background: linear-gradient(135deg, #0a1520, #102030);
}
.blog-cover--purple-dark {
  background: linear-gradient(135deg, #150a1a, #2d1240);
}
.blog-cover--emerald {
  background: linear-gradient(135deg, #0a1a10, #0d3520);
}

.blog-featured__cover-emoji i { color: var(--white); }
.blog-card-sm__cover-placeholder i { color: var(--white); }
.blog-card-grid__cover-placeholder i { color: var(--white); }

/* ══════════════════════════════════════════════
   NAVBAR UPDATE — add Faculty/Gallery/Blog links
══════════════════════════════════════════════ */
.navbar__right .navbar__link[href="#faculty"],
.navbar__right .navbar__link[href="#gallery"],
.navbar__right .navbar__link[href="#blog"] {
  /* these links are now valid internal anchors */
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .faculty__carousel { --faculty-gap: 0.75rem; }
  .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .faculty__carousel { --faculty-visible: 2; }
  .blog__layout { grid-template-columns: 1fr; }
  .blog__grid-bottom { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item--wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  .faculty__carousel {
    --faculty-visible: 1;
    --faculty-gap: 0.7rem;
    padding: 0 2.35rem;
  }
  .faculty__nav { width: 36px; height: 36px; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item { aspect-ratio: 16 / 10; }
  .gallery__item--wide { grid-column: span 1; }
  .blog__grid-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .faculty__carousel {
    padding: 0 2.1rem;
  }
  .faculty__nav { width: 32px; height: 32px; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__tabs { gap: 0.4rem; }
  .gallery__tab { padding: 7px 14px; font-size: 12px; }
}
