/* ===================================================
   HOME.CSS — Homepage Specific Styles
   =================================================== */

/* ─── Hero Ambient Mesh Gradient ─────────────────── */
#hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#hero-mesh::before,
#hero-mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.22;
  filter: blur(80px);
  will-change: transform;
}

#hero-mesh::before {
  width: 70%;
  height: 70%;
  top: -20%;
  left: -10%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(201, 168, 76, 0.9),
    rgba(214, 51, 132, 0.7),
    rgba(123, 29, 46, 0.8),
    rgba(201, 168, 76, 0.9)
  );
  animation: meshDrift 18s ease-in-out infinite alternate;
}

#hero-mesh::after {
  width: 55%;
  height: 55%;
  bottom: -10%;
  right: -5%;
  background: conic-gradient(
    from 180deg at 50% 50%,
    rgba(214, 51, 132, 0.8),
    rgba(201, 168, 76, 0.6),
    rgba(123, 29, 46, 0.5),
    rgba(214, 51, 132, 0.8)
  );
  animation: meshDrift 22s ease-in-out infinite alternate-reverse;
}

@keyframes meshDrift {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  33%  { transform: translate(4%, -6%) scale(1.08) rotate(60deg); }
  66%  { transform: translate(-5%, 4%) scale(0.94) rotate(120deg); }
  100% { transform: translate(3%, 7%) scale(1.05) rotate(180deg); }
}

/* ─── Hero Section ────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--gold);
  top: -200px;
  right: -150px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--pink);
  bottom: -100px;
  left: -100px;
  animation-delay: 3s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: var(--maroon);
  top: 50%;
  left: 50%;
  animation-delay: 6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
  animation: badgePulse 3s ease infinite;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: dotPulse 1.5s ease infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.15); }
  50%       { box-shadow: 0 0 0 8px rgba(201, 168, 76, 0); }
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-title .accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-title .highlight {
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.8s ease 0.5s;
}

.hero-title .highlight.visible::after {
  transform: scaleX(1);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 0.5rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-value .num {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Hero Right — Visual */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  position: relative;
  width: 420px;
  height: 420px;
}

.hero-circle-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.15);
  animation: ringRotate 20s linear infinite;
}

.hero-circle-ring:nth-child(2) {
  inset: 20px;
  border-color: rgba(214, 51, 132, 0.1);
  animation-direction: reverse;
  animation-duration: 30s;
}

.hero-circle-ring:nth-child(3) {
  inset: 40px;
  border-color: rgba(201, 168, 76, 0.08);
  animation-duration: 15s;
}

.ring-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-logo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-radius: 50%;
  border: 2px solid rgba(201, 168, 76, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 20px 60px rgba(201, 168, 76, 0.1);
}

.hero-logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  animation: logoPulse 4s ease infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(201,168,76,0.3)); }
  50%       { transform: scale(1.03); filter: drop-shadow(0 0 25px rgba(201,168,76,0.5)); }
}

.hero-logo-label {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-align: center;
  padding: 0 1rem;
}

/* Floating cards */
.hero-float-card {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  animation: cardFloat 5s ease-in-out infinite;
}

.hero-float-card-1 {
  top: 30px;
  right: -20px;
  animation-delay: 0s;
}

.hero-float-card-2 {
  bottom: 60px;
  left: -30px;
  animation-delay: 2s;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.float-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.float-card-icon.gold { background: rgba(201, 168, 76, 0.15); }
.float-card-icon.pink { background: rgba(214, 51, 132, 0.12); }

.float-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.float-card-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.float-card-value {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ─── Scroll Indicator ───────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  z-index: 2;
}

.scroll-indicator span {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ─── About Section ──────────────────────────────── */
.about-section {
  background: var(--bg-secondary);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-stack {
  position: relative;
  height: 420px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  right: 60px;
  bottom: 60px;
  background: var(--gradient-maroon);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(123, 29, 46, 0.3);
  border: 2px solid var(--border);
}

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

.about-img-main:hover .about-faculty-photo {
  transform: scale(1.06);
}

.about-img-sub {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 160px;
  height: 160px;
  background: var(--gradient-gold);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.35);
}

.about-img-sub .big-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.about-img-sub .small-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* ─── Group Message Section (CD 5–10) ────────────── */
.group-message-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.group-message-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.group-message-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.group-message-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.group-message-signoff {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

.signoff-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.signoff-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--gradient-pink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.group-message-visual {
  position: relative;
}

.group-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: var(--gradient-pink);
  box-shadow: 0 20px 60px rgba(214, 51, 132, 0.28);
  border: 2px solid var(--border);
}

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

.group-photo-frame:hover .group-photo-img {
  transform: scale(1.05);
}

.group-photo-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 1.25rem 0.65rem 0.75rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.group-photo-badge .badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-gold);
  font-size: 1rem;
}

.group-photo-badge .badge-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .group-message-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .group-message-visual {
    order: -1;
  }
  .group-photo-badge {
    left: 16px;
    bottom: -16px;
  }
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-item:hover {
  transform: translateX(4px);
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.12);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-icon.gold-bg { background: rgba(201, 168, 76, 0.12); }
.feature-icon.pink-bg  { background: rgba(214, 51, 132, 0.1); }
.feature-icon.maroon-bg { background: rgba(123, 29, 46, 0.1); }

.feature-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.feature-text span {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* ─── Groups Section ─────────────────────────────── */
.groups-section {
  position: relative;
  overflow: hidden;
}

.groups-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  background: var(--bg-secondary);
  padding: 0.35rem;
  border-radius: 12px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.group-tab {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.group-tab.active {
  background: var(--bg-card);
  color: var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.group-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.group-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.group-card:hover::before {
  transform: scaleX(1);
}

.group-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(201, 168, 76, 0.15);
  border-color: rgba(201, 168, 76, 0.25);
}

.group-card.cd-group::before {
  background: var(--gradient-pink);
}

.group-card.cd-group:hover {
  box-shadow: 0 16px 40px rgba(214, 51, 132, 0.15);
  border-color: rgba(214, 51, 132, 0.25);
}

.group-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
}

.group-card.cd-group .group-icon {
  background: rgba(214, 51, 132, 0.08);
}

.group-card:hover .group-icon {
  transform: scale(1.1) rotate(5deg);
}

.group-name {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.group-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ─── Program Highlights ───────────────────────── */
.highlights-section {
  background: var(--bg-secondary);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Animated gradient border ring via pseudo-element */
@keyframes glowBorderSpin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.highlight-card {
  padding: 2rem 1.75rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease;
  /* Glassmorphism */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Animated glow border via outline-offset pseudo trick */
.highlight-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(
    var(--glow-angle, 135deg),
    rgba(201, 168, 76, 0.6),
    rgba(214, 51, 132, 0.4),
    rgba(123, 29, 46, 0.5),
    rgba(201, 168, 76, 0.6)
  );
  background-size: 300% 300%;
  animation: glowBorderSpin 6s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.highlight-card:hover::before {
  opacity: 1;
}

.highlight-card.card-gold {
  background: linear-gradient(135deg,
    rgba(201, 168, 76, 0.12) 0%,
    rgba(201, 168, 76, 0.04) 100%);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.highlight-card.card-pink {
  background: linear-gradient(135deg,
    rgba(214, 51, 132, 0.10) 0%,
    rgba(214, 51, 132, 0.03) 100%);
  border: 1px solid rgba(214, 51, 132, 0.15);
}

.highlight-card.card-maroon {
  background: linear-gradient(135deg,
    rgba(123, 29, 46, 0.12) 0%,
    rgba(123, 29, 46, 0.04) 100%);
  border: 1px solid rgba(123, 29, 46, 0.15);
}

.highlight-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.highlight-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.15;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.highlight-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.highlight-title {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.highlight-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Faculty / English Teachers Section ─────────── */
.faculty-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.teacher-card {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.5rem 1.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}

.teacher-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
  border-radius: 22px 22px 0 0;
  transform: scaleX(0.4);
  transition: transform 0.4s ease, height 0.4s ease;
}

.teacher-card:hover::before {
  transform: scaleX(1);
  height: 5px;
}

.teacher-card.teacher-pink::before {
  background: var(--gradient-pink);
}

.teacher-card.teacher-maroon::before {
  background: var(--gradient-maroon);
}

.teacher-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(201, 168, 76, 0.18);
  border-color: rgba(201, 168, 76, 0.35);
}

.teacher-card.teacher-pink:hover {
  box-shadow: 0 20px 50px rgba(214, 51, 132, 0.18);
  border-color: rgba(214, 51, 132, 0.35);
}

/* Photo ring — gradient border wrapping the actual photo */
.teacher-photo-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  padding: 4px;
  background: var(--gradient-gold);
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.22);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.teacher-pink .teacher-photo-wrap {
  background: var(--gradient-pink);
  box-shadow: 0 10px 28px rgba(214, 51, 132, 0.22);
}

.teacher-maroon .teacher-photo-wrap {
  background: var(--gradient-maroon);
  box-shadow: 0 10px 28px rgba(123, 29, 46, 0.25);
}

.teacher-card:hover .teacher-photo-wrap {
  transform: scale(1.05);
}

.teacher-photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-secondary);
  border: 3px solid var(--bg-card);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.teacher-card:hover .teacher-photo {
  transform: scale(1.06);
}

.teacher-name {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.teacher-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.teacher-pink .teacher-role {
  color: var(--pink);
}

.teacher-maroon .teacher-role {
  color: var(--maroon-light);
}

/* Small "CD 5" style group-mentor tag, overlapping the photo ring */
.teacher-group-tag {
  position: absolute;
  bottom: -4px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--gradient-gold);
  border: 2.5px solid var(--bg-card);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(201, 168, 76, 0.35);
  transition: transform 0.3s ease;
}

.teacher-pink .teacher-group-tag {
  background: var(--gradient-pink);
  box-shadow: 0 6px 16px rgba(214, 51, 132, 0.35);
}

.teacher-maroon .teacher-group-tag {
  background: var(--gradient-maroon);
  box-shadow: 0 6px 16px rgba(123, 29, 46, 0.4);
}

.teacher-card:hover .teacher-group-tag {
  transform: scale(1.08);
}

@media (max-width: 1024px) {
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .faculty-grid { grid-template-columns: 1fr; }
}

/* ─── CTA Section ────────────────────────────────── */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  background: var(--gradient-gold);
  color: white;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  /* Magnetic spring via JS CSS vars */
  transform: translate(var(--btn-tx, 0px), var(--btn-ty, 0px)) scale(var(--btn-scale, 1));
  transition: box-shadow 0.3s ease;
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
  will-change: transform;
}

.btn-cta:hover {
  box-shadow: 0 20px 55px rgba(201, 168, 76, 0.65);
}

/* ─── Responsive Hero ────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-right { display: none; }
  .hero-left { align-items: center; }
  .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .groups-grid { grid-template-columns: repeat(4, 1fr); }
  .highlights-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .groups-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
}

/* ─── Projects Showcase & Category Tabs ──────────── */
.showcase-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: radial-gradient(circle at 50% 0%, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
}

.showcase-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2.75rem;
  position: relative;
}

.showcase-tabs {
  display: flex;
  gap: 0.6rem;
  padding: 0.4rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.showcase-tabs::-webkit-scrollbar { display: none; }

.showcase-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.showcase-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.showcase-tab.active {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.22), rgba(214, 51, 132, 0.16));
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.25);
}

.showcase-tab .tab-count {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  font-weight: 700;
}

[data-theme="dark"] .showcase-tab .tab-count {
  background: rgba(255, 255, 255, 0.1);
}

.showcase-tab.active .tab-count {
  background: var(--gold);
  color: #000;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  animation: showcaseFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  position: relative;
}

.showcase-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 45px rgba(201, 168, 76, 0.15);
}

.showcase-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e1e2d, #14141f);
  overflow: hidden;
}

.showcase-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.showcase-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(214, 51, 132, 0.12));
  color: var(--gold);
  font-size: 2.5rem;
}

.showcase-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.showcase-group-tag {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.showcase-cat-tag {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--cat-color, var(--gold));
  color: var(--cat-color, var(--gold));
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.showcase-video-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(123, 29, 46, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.showcase-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.showcase-card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.showcase-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.6rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-card-excerpt {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.showcase-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.showcase-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, gap 0.2s ease;
}

.showcase-card-btn:hover {
  gap: 0.65rem;
}

.showcase-meta-pills {
  display: flex;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes showcaseFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .showcase-tabs {
    border-radius: 16px;
    padding: 0.5rem;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}