/* ==========================================================
   Dr. Brijesh S. Deshmukh — Academic Website
   Style: Royal Academic — Maroon header, lecture-hall hero,
   Playfair Display serif + Source Sans 3, warm palette
   ========================================================== */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Royal Academic Palette */
  --maroon:         #8B1A1A;
  --maroon-dark:    #6B1010;
  --navy:           #1B2A4A;
  --gold:           #B8942E;
  --gold-light:     #D4AF37;
  --cream:          #FAF8F4;
  --parchment:      #F3F0E8;
  --white:          #FFFFFF;
  --text-primary:   #1E1E1E;
  --text-secondary: #4A4A4A;
  --text-muted:     #7A7A7A;
  --border:         #D8D4CC;
  --border-light:   #ECEAE4;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 980px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--maroon); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--maroon-dark); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.mt-2 { margin-top: 2rem !important; }

/* ============================================================
   HEADER — Maroon bar (like the reference)
   ============================================================ */
.site-header {
  background: var(--maroon);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 16px 14px;
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
  border-bottom: 2px solid transparent;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}
.nav-link.active {
  color: #fff;
  border-bottom-color: var(--gold-light);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.2s;
}

/* ============================================================
   HERO BANNER — Lecture hall background with overlay
   ============================================================ */
.hero-banner {
  position: relative;
  height: 320px;
  background: url('hero-bg.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 10, 0.6);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  opacity: 0.92;
  margin-bottom: 6px;
}
.hero-inst {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ============================================================
   ABOUT SECTION — Photo + Bio
   ============================================================ */
.content-section { padding: 3.5rem 0; }
.section-alt { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}
.photo-frame {
  width: 200px;
  height: 240px;
  border: 3px solid var(--maroon);
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--gold);
}
.professor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cv-button-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--maroon);
  color: #fff;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  margin: 10px 0 15px;
  transition: all 0.2s;
  box-shadow: 3px 3px 0 var(--gold);
}
.cv-button-main:hover {
  background: var(--maroon-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--gold-light);
}
.cv-button-main svg {
  color: #fff;
}

/* Quick info below photo */
.quick-info {
  margin-top: 16px;
  max-width: 200px;
}
.qi-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.qi-designation {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 8px;
}
.qi-divider {
  width: 30px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 10px;
}
.qi-detail {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.qi-detail strong {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Section heading */
.section-heading {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--maroon);
  display: inline-block;
}
.section-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-top: 4px;
}

/* Bio */
.bio-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-align: justify;
}
.bio-text strong { color: var(--maroon); }

/* Affiliation bar */
.affiliation-bar {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  background: var(--cream);
}
.affiliation-item {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.affiliation-item:last-child { border-bottom: none; }
.aff-label {
  width: 110px;
  flex-shrink: 0;
  padding: 10px 14px;
  background: var(--parchment);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-right: 1px solid var(--border-light);
}
.aff-value {
  padding: 10px 14px;
  color: var(--text-secondary);
}

/* ============================================================
   TWO-COLUMN LAYOUT
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

/* Subsection heading */
.subsection-heading {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}

/* ============================================================
   RESEARCH
   ============================================================ */
.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}
.tag {
  font-size: 12.5px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--white);
  letter-spacing: 0.01em;
}
.section-alt .tag { background: var(--parchment); }

.research-card {
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  margin-bottom: 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}
.section-alt .research-card { background: var(--parchment); border-bottom-color: var(--border); }
.rc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: var(--maroon);
  color: #fff;
  padding: 2px 10px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.rc-thesis {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 4px;
}
.rc-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.rc-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   SIDE CARDS
   ============================================================ */
.side-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 18px;
  margin-bottom: 1rem;
}
.section-alt .side-card { background: var(--parchment); }
.highlight-card {
  border-left: 4px solid var(--gold);
  background: var(--cream) !important;
}
.sc-icon {
  font-size: 20px;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.sc-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}
.sc-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================================
   PUBLICATIONS
   ============================================================ */
.pub-group { margin-bottom: 2rem; }
.pub-group-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pgt-marker {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--maroon);
  border-radius: 1px;
  flex-shrink: 0;
}

.pub-list {
  list-style: none;
  padding: 0;
  counter-reset: pub-counter;
}
.pub-list[start="4"] { counter-reset: pub-counter 3; }
.pub-list[start="6"] { counter-reset: pub-counter 5; }
.pub-list li {
  counter-increment: pub-counter;
  padding: 12px 0 12px 40px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pub-list li:last-child { border-bottom: none; }
.pub-list li::before {
  content: counter(pub-counter) ".";
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--maroon);
  width: 30px;
  text-align: right;
}
.pub-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
}
.pub-venue {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   BOOK FEATURE — Featured book publication card
   ============================================================ */
.book-feature {
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  background: var(--cream);
  overflow: hidden;
}
.book-feature-inner {
  display: flex;
  gap: 0;
}
.book-cover-wrap {
  width: 220px;
  flex-shrink: 0;
  background: var(--parchment);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.book-cover-img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.12);
}
.book-details {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.book-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--maroon);
  color: #fff;
  padding: 3px 12px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.book-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
}
.book-authors {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.book-authors strong {
  color: var(--maroon);
}
.book-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}
.book-meta-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bm-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.bm-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================================
   TEACHING — COURSES TABLE
   ============================================================ */
.courses-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.courses-table th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  text-align: left;
  padding: 10px 14px;
}
.courses-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}
.courses-table td:first-child {
  width: 36px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}
.courses-table td:last-child {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.courses-table tbody tr:hover { background: rgba(139,26,26,0.03); }

/* ============================================================
   LEARNING RESOURCES
   ============================================================ */
.resource-banner {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.02);
}
.resource-banner::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: var(--font-serif);
  font-size: 120px;
  color: var(--maroon);
  opacity: 0.05;
}
.resource-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.resource-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.resource-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.feat {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feat::before {
  content: '◈';
  color: var(--gold);
}

.royal-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--maroon);
  color: #fff;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.3s ease;
  border: 1px solid var(--maroon);
  box-shadow: 4px 4px 0 var(--gold);
}
.royal-button:hover {
  background: var(--maroon-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--gold-light);
}

/* ============================================================
   COMPACT LIST
   ============================================================ */
.compact-list { list-style: none; padding: 0; }
.compact-list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--border-light);
  margin-bottom: 4px;
}
.compact-list li:hover { border-left-color: var(--maroon); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--maroon);
  background: var(--white);
  border-radius: 50%;
}
.timeline-marker.current {
  background: var(--maroon);
}
.section-alt .timeline-marker { background: var(--cream); }
.section-alt .timeline-marker.current { background: var(--maroon); }
.tl-title { font-weight: 600; font-size: 14px; color: var(--navy); }
.tl-subtitle { font-size: 13px; color: var(--text-secondary); }
.tl-meta {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ============================================================
   DEGREE STACK
   ============================================================ */
.degree-item {
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.degree-item:last-child { border-bottom: none; }
.dg-name {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.dg-detail {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   AWARDS
   ============================================================ */
.awards-grid { display: flex; flex-direction: column; gap: 0; }
.award-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.award-card:last-child { border-bottom: none; }
.aw-icon {
  font-size: 16px;
  color: var(--gold-light);
  flex-shrink: 0;
  margin-top: 2px;
}
.aw-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.aw-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ============================================================
   CONTACT GRID
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.contact-card {
  border: 1px solid var(--border);
  padding: 22px 18px;
  text-align: center;
  background: var(--cream);
  transition: box-shadow 0.2s;
}
.contact-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cc-icon {
  color: var(--maroon);
  margin-bottom: 10px;
}
.contact-card h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.contact-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 24px 0;
}
.footer-inner { text-align: center; }
.footer-name {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.footer-inst {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--maroon);
    flex-direction: column;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  .header-nav.open { display: flex; }
  .nav-link { padding: 12px 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .mobile-toggle { display: block; }

  .hero-banner { height: 240px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 16px; }

  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-photo-col { display: flex; gap: 1.5rem; align-items: flex-start; }
  .photo-frame { width: 140px; height: 170px; flex-shrink: 0; }

  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; }

  .book-feature-inner { flex-direction: column; }
  .book-cover-wrap { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 24px; }
  .book-cover-img { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .about-photo-col { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 22px; }
  .hero-banner { height: 200px; }

  .book-title { font-size: 18px; }
  .book-details { padding: 18px; }
  .book-meta-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .hero-banner, .mobile-toggle, .cc-icon { display: none; }
  .content-section { padding: 1.5rem 0; }
  body { font-size: 12px; }
  .section-alt { background: #fff; }
}
