@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+Telugu:wght@400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  --ink: #171717;
  --muted: #626262;
  --paper: #faf9f5;
  --card: #ffffff;
  --gold: #c9982e;
  --gold-dark: #8d681d;
  --red: #8d1f24;
  --line: #dedbd2;
  --shadow: 0 14px 40px rgba(0,0,0,.08);
  --max: 1120px;
}

* { box-sizing: border-box; scroll-behavior: smooth; }

html { scroll-padding-top: 86px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.72;
}

body, button, input { -webkit-font-smoothing: antialiased; }

.hero {
  background:
    radial-gradient(circle at 10% 0%, rgba(201,152,46,.22), transparent 35%),
    linear-gradient(135deg, #171717 0%, #26221a 100%);
  color: white;
  padding: 54px 24px 46px;
}

.hero-inner {
  max-width: var(--max);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-copy { max-width: 780px; }

.eyebrow, .kicker {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 700;
}

.eyebrow { color: #e0bd6c; margin: 0 0 10px; }

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: -.035em;
}

.subtitle {
  margin: 0 0 20px;
  font-size: 1.08rem;
  color: #e6e1d7;
}

.tagline {
  display: inline-block;
  margin: 0;
  padding: 10px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,.06);
  font-weight: 600;
}

.tagline span { color: #e0bd6c; }

.portrait {
  width: 175px;
  height: 175px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #d3a43c;
  box-shadow: 0 0 0 8px rgba(211,164,60,.12);
  flex: 0 0 auto;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 18px rgba(0,0,0,.06);
  backdrop-filter: blur(10px);
}

.tabs a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 17px 25px;
  border-bottom: 3px solid transparent;
  transition: .2s ease;
}

.tabs a:hover, .tabs a:focus {
  color: var(--red);
  border-bottom-color: var(--gold);
  background: #fbf7ec;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 24px 20px;
}

.section + .section { padding-top: 80px; }

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 35px;
}

.kicker { color: var(--gold-dark); }

h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 12px;
}

h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.65rem;
  margin: 46px 0 18px;
}

p { margin: 0 0 18px; }

.lead-card {
  background: var(--card);
  padding: 34px 38px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
}

.lead { font-size: 1.12rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 25px 0 50px;
}

.stats div {
  background: #f2eee3;
  border: 1px solid #e3ddcc;
  padding: 22px 18px;
  text-align: center;
}

.stats strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--red);
  font-size: 2rem;
  line-height: 1.1;
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #ebe8e0;
}

th {
  background: #24221e;
  color: white;
  font-size: .82rem;
  letter-spacing: .04em;
}

tr:last-child td { border-bottom: 0; }

tr.total td {
  font-weight: 800;
  background: #f4eddb;
  color: var(--red);
}

.note {
  color: var(--muted);
  font-size: .82rem;
  margin-top: 10px;
}

.award-card {
  margin-top: 55px;
  padding: 42px;
  background: linear-gradient(135deg, #fffbea, #f5ead0);
  border: 2px solid #d2aa50;
  box-shadow: var(--shadow);
}

.award-title {
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 10vw, 6.8rem);
  line-height: .8;
  letter-spacing: .03em;
}

.award-subtitle {
  color: var(--red);
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 18px;
}

.award-prize {
  display: inline-block;
  margin-top: 14px;
  background: var(--red);
  color: white;
  padding: 8px 15px;
  font-weight: 800;
}

.award-card ul {
  padding-left: 22px;
  margin-bottom: 0;
}

.award-card li { margin: 10px 0; }

.telugu {
  font-family: "Noto Sans Telugu", "Nirmala UI", sans-serif;
}

.telugu h1, .telugu h2, .telugu h3 {
  font-family: "Noto Sans Telugu", "Nirmala UI", sans-serif;
}

.timeline {
  border-left: 3px solid var(--gold);
  margin: 30px 0 0 9px;
}

.timeline article {
  position: relative;
  padding: 13px 15px 13px 26px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
}

.timeline article::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  background: var(--gold);
  border-radius: 50%;
  left: -7px;
  top: 21px;
  border: 3px solid var(--paper);
}

.timeline b { color: var(--red); }

.gallery-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 25px;
  align-items: start;
}

.gallery-card {
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-card figcaption {
  padding: 13px 7px 5px;
  font-size: .88rem;
  color: var(--muted);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 20px;
  background: #24221e;
  color: white;
  padding: 38px;
  box-shadow: var(--shadow);
}

.contact-card h3 { margin: 0 0 7px; color: white; }

.contact-detail {
  border-left: 1px solid #5d584f;
  padding-left: 22px;
}

.contact-detail span {
  display: block;
  color: #d8b35c;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .7rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.contact-detail a {
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.contact-detail a:hover { color: #e0bd6c; }

footer {
  margin-top: 80px;
  background: #171717;
  color: #bdb9b0;
  text-align: center;
  padding: 35px 20px;
  font-size: .9rem;
}

footer p { margin: 5px 0; }

footer strong { color: white; }

.footer-small {
  color: #c9a650;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .hero-inner { align-items: flex-start; }
  .portrait { width: 120px; height: 120px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card.wide { max-width: 600px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-detail { border-left: 0; border-top: 1px solid #5d584f; padding: 18px 0 0; }
}

@media (max-width: 560px) {
  .hero { padding: 38px 18px; }
  .hero-inner { flex-direction: column-reverse; }
  .portrait { width: 145px; height: 145px; align-self: center; }
  .tabs { justify-content: stretch; }
  .tabs a { flex: 1; padding: 14px 8px; text-align: center; font-size: .85rem; }
  .section { padding: 65px 16px 15px; }
  .lead-card, .award-card, .contact-card { padding: 25px 20px; }
  .stats { gap: 8px; margin-bottom: 35px; }
  .stats div { padding: 16px 8px; }
  .stats strong { font-size: 1.55rem; }
  .stats span { font-size: .75rem; }
  .timeline article { grid-template-columns: 48px 1fr; padding-left: 19px; font-size: .9rem; }
}
