/* ============================================================
   DR. PAMU DOBBIDI — IIT GUWAHATI | MASTER STYLESHEET
   Aesthetic: Refined Academic — Deep Navy, Warm Gold, Clean Ivory
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600&family=JetBrains+Mono:wght@400&display=swap');

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --iitg-blue:      #0A2540;
  --iitg-blue-mid:  #133A60;
  --iitg-blue-lt:   #1A5276;
  --accent-gold:    #C9A84C;
  --accent-gold-lt: #E8C97A;
  --bg-light:       #F7F5F0;
  --bg-white:       #FFFFFF;
  --bg-card:        #FDFCF9;
  --text-dark:      #1A1A2E;
  --text-mid:       #3D3D5C;
  --text-muted:     #7A7A96;
  --border:         #DDD8CC;
  --shadow-sm:      0 2px 8px rgba(10,37,64,0.08);
  --shadow-md:      0 6px 24px rgba(10,37,64,0.13);
  --shadow-lg:      0 16px 48px rgba(10,37,64,0.18);
  --radius:         6px;
  --radius-lg:      12px;
  --nav-h:          68px;
  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Source Sans 3', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --transition:     0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--iitg-blue-lt); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-gold); }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; color: var(--iitg-blue); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin-bottom: 1rem; color: var(--text-mid); }

/* ── LAYOUT UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--iitg-blue);
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 14px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 52px; height: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
}
.section-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 36px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tag {
  display: inline-block;
  background: rgba(10,37,64,0.08);
  color: var(--iitg-blue-mid);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--iitg-blue);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-gold); color: var(--iitg-blue); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--iitg-blue);
  color: var(--iitg-blue);
}
.btn-outline:hover { background: var(--iitg-blue); color: #fff; }

/* ── DESKTOP NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--iitg-blue);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.nav-brand img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(201,168,76,0.18);
  color: var(--accent-gold-lt);
}
.nav-links a.active { border-bottom: 2px solid var(--accent-gold); }
.nav-links .external-link {
  background: var(--accent-gold);
  color: var(--iitg-blue);
  margin-left: 8px;
  border-radius: var(--radius);
}
.nav-links .external-link:hover { background: var(--accent-gold-lt); color: var(--iitg-blue); }

/* Hamburger — hidden on desktop */
.hamburger { display: none; }

/* ── MOBILE SIDE DRAWER ── */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--iitg-blue);
  height: 56px;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
}
.mobile-header .brand-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.side-drawer {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 280px;
  background: var(--iitg-blue);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.side-drawer.is-open { transform: translateX(0); }
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.drawer-overlay.is-open { opacity: 1; pointer-events: all; }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.drawer-logo { width: 120px; height: auto; }
.drawer-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color var(--transition);
}
.drawer-close:hover { color: var(--accent-gold); }
.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 4px;
}
.drawer-nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 13px 20px;
  border-radius: var(--radius);
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}
.drawer-nav a:hover,
.drawer-nav a.active {
  background: rgba(201,168,76,0.18);
  color: var(--accent-gold-lt);
}
.drawer-nav .drawer-external {
  margin-top: 8px;
  background: var(--accent-gold);
  color: var(--iitg-blue);
  text-align: center;
}
.drawer-nav .drawer-external:hover { background: var(--accent-gold-lt); }

/* ── TICKER / ANNOUNCEMENT ── */
.ticker-wrap {
  background: var(--accent-gold);
  overflow: hidden;
  padding: 10px 0;
}
.ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-block;
  padding: 0 48px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--iitg-blue);
  letter-spacing: 0.03em;
}
.ticker-item::before { content: '● '; color: var(--iitg-blue-lt); margin-right: 8px; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── HOME HERO ── */
.hero {
  background: linear-gradient(135deg, var(--iitg-blue) 0%, var(--iitg-blue-mid) 60%, #0E3B5C 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; display: flex; align-items: center; gap: 48px; }
.hero-photo {
  flex-shrink: 0;
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-gold);
  box-shadow: 0 0 0 8px rgba(201,168,76,0.15);
}
.hero-text { flex: 1; }
.hero-text .designation {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 10px;
}
.hero-text h1 { color: #fff; margin-bottom: 8px; }
.hero-text .dept {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.hero-text .contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}
.hero-text .contact-row span { display: flex; align-items: center; gap: 6px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-tags .tag {
  background: rgba(201,168,76,0.2);
  color: var(--accent-gold-lt);
  border: 1px solid rgba(201,168,76,0.3);
}

/* ── SPECIALIZATION CAROUSEL ── */
.carousel-wrap { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel-slide {
  min-width: 100%;
  background: linear-gradient(135deg, var(--iitg-blue) 0%, var(--iitg-blue-lt) 100%);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  border-radius: var(--radius-lg);
  min-height: 220px;
}
.slide-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(201,168,76,0.25);
  line-height: 1;
  flex-shrink: 0;
}
.slide-content h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.slide-content p  { color: rgba(255,255,255,0.7); margin: 0; }
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--iitg-blue);
  background: #fff;
  color: var(--iitg-blue);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: var(--iitg-blue); color: #fff; }
.carousel-dots { display: flex; align-items: center; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.carousel-dot.active { background: var(--accent-gold); transform: scale(1.3); }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-gold), var(--border));
}
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 2px solid var(--bg-white);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.25);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.timeline-title { font-weight: 700; color: var(--iitg-blue); font-size: 0.97rem; }
.timeline-sub { color: var(--text-muted); font-size: 0.88rem; }

/* ── EXPERIENCE TABLE ── */
.exp-table { width: 100%; border-collapse: collapse; }
.exp-table th {
  background: var(--iitg-blue);
  color: #fff;
  padding: 12px 18px;
  text-align: left;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.exp-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-mid);
}
.exp-table tr:last-child td { border-bottom: none; }
.exp-table tr:hover td { background: rgba(10,37,64,0.03); }
.exp-table th:first-child { border-radius: var(--radius) 0 0 0; }
.exp-table th:last-child  { border-radius: 0 var(--radius) 0 0; }

/* ── AWARD CARDS ── */
.award-card {
  border-left: 4px solid var(--accent-gold);
  background: var(--bg-card);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.award-card h4 { color: var(--iitg-blue); margin-bottom: 4px; }
.award-card .year { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-gold); }

/* Clean styles for card text */
.award-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* Optional premium highlight treatment for the industrial tech transfer card */
.award-card.highlight-card {
  border-left: 4px solid var(--accent-gold, #D4AF37);
  background: linear-gradient(to bottom right, var(--bg-white), #fffdf6);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--iitg-blue);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 28px;
  margin-top: 80px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}
.footer-photo {
  width: 100px; height: 100px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 2px solid var(--accent-gold);
  flex-shrink: 0;
}
.footer-info h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.footer-info p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.8;
}
.footer-info .contact-line {
  margin-top: 8px;
  font-size: 0.85rem;
}
.footer-info .contact-line a { color: var(--accent-gold-lt); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ── RESEARCH PAGE ── */
.technique-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.technique-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.technique-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent-gold);
}
.technique-card h4 { padding-left: 12px; margin-bottom: 8px; color: var(--iitg-blue); }
.technique-card p  { padding-left: 12px; font-size: 0.87rem; margin: 0; color: var(--text-muted); }
.projects-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.projects-table th {
  background: var(--iitg-blue-mid);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.projects-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text-mid); }
.projects-table tr:hover td { background: rgba(10,37,64,0.03); }
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-badge.ongoing { background: #e6f4ea; color: #1e7e34; }
.status-badge.completed { background: #e8eaf6; color: #3949ab; }
.status-badge.proposed { background: #fff3e0; color: #e65100; }

/* ── STUDENTS PAGE ── */
.student-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.student-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.student-card-header {
  background: linear-gradient(135deg, var(--iitg-blue) 0%, var(--iitg-blue-lt) 100%);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.student-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(201,168,76,0.2);
  border: 2px solid var(--accent-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.student-avatar img { width: 100%; height: 100%; object-fit: cover; }
.student-name { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.student-roll { color: rgba(255,255,255,0.6); font-size: 0.78rem; font-family: var(--font-mono); }
.student-card-body { padding: 20px 24px; }
.student-card-body .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700; margin-bottom: 3px; }
.student-card-body .value { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 12px; }
.student-card-body a { font-size: 0.85rem; color: var(--iitg-blue-lt); font-weight: 600; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 0.87rem; }
.data-table th {
  background: var(--iitg-blue);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-mid); }
.data-table tr:nth-child(even) td { background: rgba(10,37,64,0.025); }

/* ── PUBLICATIONS PAGE ── */
.metrics-banner {
  background: linear-gradient(135deg, var(--iitg-blue) 0%, var(--iitg-blue-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
}
.metric-item { text-align: center; }
.metric-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
}
.metric-label { color: rgba(255,255,255,0.65); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }
.metric-divider { width: 1px; height: 60px; background: rgba(255,255,255,0.15); }
.book-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
}
.book-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.book-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--iitg-blue) 0%, #1A4D70 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  color: rgba(201,168,76,0.6);
}
.book-info { padding: 20px; }
.book-info h4 { color: var(--iitg-blue); margin-bottom: 6px; font-size: 0.97rem; }
.book-info p  { font-size: 0.83rem; color: var(--text-muted); margin: 0; }
.patent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 3px solid var(--accent-gold);
}
.patent-card h4 { color: var(--iitg-blue); margin-bottom: 8px; font-size: 0.95rem; }
.patent-card .meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.patent-card .meta span::before { content: '· '; }
.pub-entry {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-mid);
}
.pub-entry:last-child { border-bottom: none; }
.pub-entry .authors { color: var(--text-muted); }
.pub-entry .journal { font-style: italic; color: var(--iitg-blue-lt); font-weight: 600; }
.pub-entry .year-badge {
  display: inline-block;
  background: var(--iitg-blue);
  color: #fff;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 1px 8px;
  border-radius: 3px;
  margin-right: 8px;
}

/* ── COURSES PAGE ── */
.quadrant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.quadrant {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quadrant:nth-child(even) { border-right: none; }
.quadrant:nth-last-child(-n+2) { border-bottom: none; }
.quadrant-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(23, 159, 196, 0.438);
  margin-bottom: -8px;
}
.quadrant h3 { margin-bottom: 20px; }
.course-list { display: flex; flex-direction: column; gap: 10px; }
.course-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-mid);
}
.course-item::before {
  content: '▸';
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.quadrant.current-q { background: var(--iitg-blue); }
.quadrant.current-q .quadrant-num { color: rgba(255,255,255,0.1); }
.quadrant.current-q h3 { color: var(--accent-gold); }
.quadrant.current-q .course-item { color: rgba(255,255,255,0.8); }
.quadrant.current-q .course-item::before { color: var(--accent-gold-lt); }

/* ── GALLERY PAGE ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--iitg-blue);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,37,64,0.9));
  padding: 24px 16px 16px;
  color: #fff;
  font-size: 0.85rem;
  transform: translateY(100%);
  transition: transform var(--transition);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--iitg-blue) 0%, var(--iitg-blue-lt) 100%);
  color: rgba(255,255,255,0.4);
  font-size: 2.5rem;
  gap: 10px;
}
.gallery-placeholder span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── RECENT HIGHLIGHTS CAROUSEL ── */
.highlights-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.highlights-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.highlight-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.highlight-img-wrap {
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: var(--iitg-blue);
  flex-shrink: 0;
}
.highlight-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.highlight-slide:hover .highlight-img-wrap img {
  transform: scale(1.04);
}
.highlight-text {
  padding: 28px 32px 32px;
}
.highlight-tag {
  display: inline-block;
  background: var(--iitg-blue);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.highlight-text h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--iitg-blue);
  margin-bottom: 10px;
}
.highlight-text p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}
/* Arrows */
.hl-arrow {
  position: absolute;
  top: calc(360px / 2);          /* vertically centered on image */
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--iitg-blue);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), color var(--transition);
  z-index: 10;
}
.hl-arrow:hover { background: var(--iitg-blue); color: #fff; border-color: var(--iitg-blue); }
.hl-prev { left: 14px; }
.hl-next { right: 14px; }
/* Dots */
.hl-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 8px;
}
.hl-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.hl-dot.active {
  background: var(--accent-gold);
  transform: scale(1.35);
}

/* Mobile */
@media (max-width: 768px) {
  .highlight-img-wrap { height: 220px; }
  .highlight-text { padding: 20px; }
  .highlight-text h4 { font-size: 1.1rem; }
  .hl-arrow { top: calc(220px / 2); width: 36px; height: 36px; font-size: 1.1rem; }
}

/* ── MISC COMPONENTS ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
.alert-box {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--iitg-blue);
}
.page-banner {
  background: linear-gradient(135deg, var(--iitg-blue) 0%, var(--iitg-blue-mid) 100%);
  padding: 48px 0;
}
.page-banner h1 { color: #fff; }
.page-banner .breadcrumb { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-top: 8px; }
.page-banner .breadcrumb a { color: var(--accent-gold-lt); }
.highlight-box {
  background: linear-gradient(135deg, rgba(10,37,64,0.04) 0%, rgba(201,168,76,0.06) 100%);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.numbered-list { counter-reset: item; display: flex; flex-direction: column; gap: 10px; }
.numbered-list li {
  counter-increment: item;
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-mid);
  align-items: flex-start;
}
.numbered-list li::before {
  content: counter(item, decimal-leading-zero);
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 3px;
  min-width: 22px;
}

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 768px) {
  /* Hide desktop nav, show mobile header */
  .navbar { display: none !important; }
  .mobile-header { display: flex !important; }
  .hamburger { display: flex !important; }

  /* Layout adjustments */
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .quadrant-grid { grid-template-columns: 1fr; }
  .quadrant { border-right: none; }
  .quadrant:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .quadrant:last-child { border-bottom: none; }

  /* Hero */
  .hero-content { flex-direction: column; text-align: center; }
  .hero-photo { width: 140px; height: 140px; }
  .hero-tags { justify-content: center; }
  .hero-text .contact-row { justify-content: center; }

  /* Metrics banner */
  .metrics-banner { flex-direction: column; gap: 24px; text-align: center; }
  .metric-divider { width: 60px; height: 1px; }

  /* Carousel */
  .carousel-slide { padding: 32px 24px; flex-direction: column; }
  .slide-num { font-size: 3rem; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Table */
  .table-scroll { overflow-x: auto; }
}

@media (max-width: 480px) {
  .ticker-item { font-size: 0.8rem; }
  .carousel-slide { min-height: 180px; }
  h1 { font-size: 1.5rem; }
}

/* Container holding the image within the slide */
.slide-image-container {
  width: 120px;         
  height: 120px;        
  flex-shrink: 0;       
  border-radius: 8px;   
  overflow: hidden;     
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;    
  transition: transform 0.3s ease; 
}

.carousel-slide:hover .slide-img {
  transform: scale(1.05);
}