/* ==========================================================================
   Krishna Priya Adusumilli — theme
   Palette: deep red + gold + TDP yellow on cream. No black or grey anywhere —
   every dark surface and every "dark" text colour is a maroon.
   ========================================================================== */

/* ---------- self-hosted fonts ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/sourcesans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/sourcesans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/sourcesans-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Telugu";
  src: url("../fonts/telugu-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Telugu";
  src: url("../fonts/telugu-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* Reds carry every dark surface — there is no black or grey in this theme. */
  --red: #a6161c;
  --red-dark: #7d1116;
  --red-deep: #5e0c10;
  --gold: #c29b2e;
  --gold-light: #e6c664;
  --gold-pale: #f6ecd2;
  --yellow: #f7c623;
  /* "ink" is a deep maroon used for text, not a neutral black. */
  --ink: #3a1416;
  --ink-soft: #4d1c1f;
  --paper: #fffdf9;
  --paper-alt: #faf5ec;
  --line: #e7ddc9;
  --body: #4a3230;
  --muted: #8a6f6a;

  --font-display: "Playfair Display", Georgia, "Times New Roman", "Noto Sans Telugu", serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, "Noto Sans Telugu", Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--paper);
  font-size: 1.02rem;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .navbar-brand span, .display-serif {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--gold); }

/* A gold rule with a diamond in the middle — used under section headings. */
.rule-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.85rem auto 0;
  max-width: 190px;
}
.rule-gold::before,
.rule-gold::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.rule-gold i {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  display: block;
}
/* Narrower variant, for a rule under a card heading rather than a section one. */
.rule-gold-sm { max-width: 130px; }

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2000;
  background: var(--yellow);
  color: var(--red-deep);
  padding: 0.5rem 1rem;
  border-radius: 3px;
}

/* ---------- top bar ---------- */
.topbar {
  background: var(--red-deep);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(226, 198, 100, 0.25);
}
.topbar a { color: var(--gold-light); }
.topbar a:hover { color: #fff; }

/* ---------- navbar ---------- */
.site-nav {
  background: var(--red-dark);
  border-bottom: 3px solid var(--gold);
  padding: 0.55rem 0;
  box-shadow: 0 2px 14px rgba(94, 12, 16, 0.25);
}
.navbar-brand { display: flex; align-items: center; gap: 0.7rem; }
.navbar-brand img {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  padding: 2px;
  background: #fff;
}
.navbar-brand span {
  line-height: 1.15;
  font-weight: 700;
  font-size: 1.12rem;
  color: #fff;
}
.navbar-brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.site-nav .nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  position: relative;
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--yellow); }
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .dropdown-toggle::after { margin-left: 0.35rem; }
.site-nav .dropdown-menu {
  border: 0;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 14px 32px rgba(94, 12, 16, 0.28);
  font-size: 0.92rem;
  padding: 0.35rem 0;
}
.site-nav .dropdown-item { padding: 0.5rem 1.1rem; font-weight: 500; }
.site-nav .dropdown-item:hover { background: var(--gold-pale); color: var(--red); }
.site-nav .dropdown-item.active,
.site-nav .dropdown-item:active { background: var(--red); color: #fff; }
.navbar-toggler { border-color: rgba(226, 198, 100, 0.5); }
.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(226, 198, 100, 0.3); }

/* ---------- page banner ---------- */
.page-banner {
  background:
    linear-gradient(120deg, var(--red) 0%, var(--red-deep) 100%),
    radial-gradient(circle at 85% 20%, rgba(226, 198, 100, 0.3), transparent 55%);
  background-color: var(--red-dark);
  color: #fff;
  padding: 3rem 0;
  border-bottom: 3px solid var(--gold);
}
.page-banner h1 { font-size: 2.15rem; font-weight: 700; margin: 0; }
.page-banner h1::after {
  content: "";
  display: block;
  width: 62px;
  height: 3px;
  background: var(--yellow);
  margin-top: 0.7rem;
}
.page-banner p { margin: 0.85rem 0 0; color: rgba(255, 255, 255, 0.78); max-width: 46rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, var(--red) 0%, var(--red-dark) 48%, var(--red-deep) 100%),
    radial-gradient(circle at 78% 35%, rgba(247, 198, 35, 0.26), transparent 52%);
  background-color: var(--red-dark);
  color: #fff;
  padding: 4.25rem 0;
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
}
.hero .lead-in {
  color: var(--gold-light);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); font-weight: 700; margin: 0.5rem 0 0; }
.hero h1 .surname { color: var(--yellow); }
.role-badge {
  display: inline-block;
  margin: 0.9rem 0 0;
  padding: 0.4rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: rgba(247, 198, 35, 0.12);
  color: var(--yellow);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.role-badge span { font-weight: 400; color: rgba(255, 255, 255, 0.7); }
.hero .rule {
  width: 84px;
  height: 3px;
  background: var(--gold);
  margin: 1.1rem 0;
}
.hero .tagline {
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  max-width: 33rem;
}
.hero-photo-wrap {
  display: inline-block;
  padding: 10px;
  border-radius: 50%;
  background: conic-gradient(var(--gold), var(--yellow), var(--gold-light), var(--gold));
  box-shadow: 0 20px 46px rgba(94, 12, 16, 0.55);
}
.hero-photo {
  display: block;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 5px solid var(--red-deep);
  background: var(--red-dark);
}

/* ---------- sections ---------- */
.section { padding: 3.75rem 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--red-deep); color: rgba(255, 255, 255, 0.85); }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title .eyebrow {
  display: block;
  color: var(--red);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.section-title h2 { font-weight: 700; font-size: 2rem; margin: 0; color: var(--ink); }
.section-title p { color: var(--muted); margin: 1rem auto 0; max-width: 40rem; }
.section-dark .section-title h2 { color: #fff; }
.section-dark .section-title .eyebrow { color: var(--gold-light); }
.section-dark .section-title p { color: rgba(255, 255, 255, 0.65); }

/* ---------- buttons ---------- */
.btn-kp {
  background: linear-gradient(180deg, var(--yellow), var(--gold));
  border: 1px solid var(--gold);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(194, 155, 46, 0.3);
}
.btn-kp:hover {
  background: linear-gradient(180deg, var(--gold), var(--gold));
  border-color: var(--gold);
  color: var(--red-deep);
}
.btn-red {
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
  font-weight: 600;
  border-radius: 3px;
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline-kp {
  border: 1px solid var(--red);
  color: var(--red);
  font-weight: 600;
  background: transparent;
  border-radius: 3px;
}
.btn-outline-kp:hover { background: var(--red); color: #fff; }
.btn-outline-gold {
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  font-weight: 600;
  background: transparent;
  border-radius: 3px;
}
.btn-outline-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- initiative cards ---------- */
.initiative-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-top-color 0.22s ease;
}
.initiative-card:hover {
  box-shadow: 0 14px 30px rgba(92, 10, 14, 0.14);
  transform: translateY(-4px);
  border-top-color: var(--red);
}
.initiative-card .cover {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: contain;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem;
}
.initiative-card .body { padding: 1.25rem 1.3rem 1.45rem; display: flex; flex-direction: column; flex: 1; }
.initiative-card h3 { font-size: 1.18rem; font-weight: 700; margin: 0 0 0.55rem; color: var(--ink); }
.initiative-card:hover h3 { color: var(--red); }
.initiative-card p { font-size: 0.94rem; color: #5a534f; margin: 0 0 1.1rem; flex: 1; }
.initiative-card .btn { align-self: flex-start; }

/* ---------- info cards ---------- */
/* Natural height by default so sidebar cards don't stretch to the row.
   Add Bootstrap's .h-100 where cards sit in an equal-height grid. */
.info-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 1.65rem;
  box-shadow: 0 2px 10px rgba(94, 12, 16, 0.07);
}
.info-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 1.1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  color: var(--red);
}
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list > li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.fact-list > li:last-child { border-bottom: 0; }
.fact-list .label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.fact-list .value { font-weight: 600; color: var(--ink); }

.skill-badge {
  display: inline-block;
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  color: #6d5410;
  border-radius: 2px;
  padding: 0.34rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 0 0.35rem 0.5rem 0;
}

.portrait-frame {
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 4px;
  background: #fff;
  padding: 0.75rem;
  box-shadow: 0 2px 10px rgba(94, 12, 16, 0.08);
}
.portrait-frame img { width: 100%; border-radius: 2px; display: block; }

/* ---------- article body ---------- */
.article-body { max-width: 52rem; }
.article-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2.25rem 0 0.85rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--red);
  color: var(--ink);
}
.article-body h2:first-child { margin-top: 0; }
.article-body p { line-height: 1.85; }
.article-body ul { line-height: 1.9; padding-left: 1.15rem; }
.article-body ul li::marker { color: var(--gold); }
.role-line {
  font-weight: 700;
  color: var(--red);
  font-size: 1.02rem;
  margin: -0.35rem 0 1rem;
}
.role-line span { font-weight: 400; color: var(--muted); }
.article-body .lede {
  font-family: var(--font-display);
  font-size: 1.14rem;
  line-height: 1.7;
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  padding: 1.15rem 1.3rem;
  border-radius: 0 3px 3px 0;
  color: #4a3f20;
}

.figure-inline { margin: 1.25rem 0 1.5rem; }
.figure-inline img { border: 1px solid var(--line); padding: 6px; background: #fff; }
.figure-inline figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  padding-top: 0.55rem;
  border-left: 3px solid var(--gold);
  padding-left: 0.7rem;
  margin-top: 0.6rem;
}

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.9rem; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 2rem 0.4rem; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: -2.35rem;
  top: 0.4rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--red);
}
.timeline .when {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 0.28rem 0.85rem;
  border-radius: 2px;
  margin-bottom: 0.7rem;
}
.timeline ul { margin: 0; padding-left: 1.15rem; line-height: 1.8; }
.timeline ul li::marker { color: var(--gold); }
.timeline strong { color: var(--red); }

/* ---------- galleries ---------- */
.gallery-figure { margin: 0; height: 100%; }
.gallery-figure figcaption {
  padding: 0.6rem 0.2rem 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 600;
}
.gallery-figure figcaption strong { display: block; color: var(--red); }
.gallery-figure figcaption span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}
.gallery-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
  padding: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item:hover { border-color: var(--gold); box-shadow: 0 10px 24px rgba(92, 10, 14, 0.14); }
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.tall img { height: 320px; object-fit: contain; background: var(--paper-alt); }

.video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 3px;
  overflow: hidden;
  background: var(--red-deep);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(94, 12, 16, 0.09);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- contact ---------- */
.contact-tile {
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  padding: 1.6rem;
  height: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(94, 12, 16, 0.07);
}
.contact-tile .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.contact-tile h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.55rem; color: var(--ink); }
.contact-tile p, .contact-tile a { font-size: 0.95rem; margin: 0; color: #5a534f; }
.contact-tile a:hover { color: var(--red); text-decoration: underline; }

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(194, 155, 46, 0.2);
}
.form-label { font-weight: 600; color: var(--ink); font-size: 0.92rem; }

/* ---------- cta strip ---------- */
/* Gold band — the one bright break between the red hero and the red footer. */
.cta-strip {
  background: linear-gradient(120deg, var(--yellow) 0%, var(--gold) 100%);
  color: var(--ink);
  padding: 2.85rem 0;
  border-top: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
}
.cta-strip h2 { font-weight: 700; font-size: 1.75rem; margin: 0; color: var(--red-deep); }
.cta-strip p { margin: 0.4rem 0 0; color: #6b4a10; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--red-deep);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 3.25rem;
  font-size: 0.94rem;
  border-top: 4px solid var(--gold);
}
.site-footer h6 {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-name { color: #fff; font-weight: 700; font-family: var(--font-display); font-size: 1.08rem; }
.site-footer .rounded-circle { border: 2px solid var(--gold); padding: 2px; background: #fff; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  padding: 0.25rem 0;
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.footer-links a:hover { color: var(--yellow); padding-left: 0.3rem; }
.footer-contact li { margin-bottom: 0.95rem; }
.footer-contact span {
  display: block;
  color: var(--gold-light);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.footer-contact a { color: rgba(255, 255, 255, 0.7); }
.footer-contact a:hover { color: var(--yellow); }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(226, 198, 100, 0.3);
  color: #fff;
  margin-right: 0.45rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.footer-bottom {
  margin-top: 2.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 1.1rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.lightbox-caption {
  color: var(--gold-light);
  font-size: 0.95rem;
  max-width: 46rem;
  margin-inline: auto;
}

/* ---------- back to top ---------- */
#toTop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--red);
  color: var(--yellow);
  font-size: 1.2rem;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(94, 12, 16, 0.38);
  z-index: 1030;
}
#toTop:hover { background: var(--red-dark); }
#toTop.show { display: block; }

/* ---------- text colour utilities ---------- */
/* Bootstrap has no helper for the palette above; these keep the tokens in this
   file instead of scattering style="color:var(--…)" through the templates. */
.text-red { color: var(--red); }
.text-gold-light { color: var(--gold-light); }

@media (max-width: 991.98px) {
  .site-nav .navbar-nav { padding: 0.6rem 0; }
  .site-nav .nav-link::after { display: none; }
  .hero { padding: 2.75rem 0; text-align: center; }
  .hero .tagline { margin-inline: auto; }
  .hero .rule { margin-inline: auto; }
  .page-banner h1::after { margin-inline: auto; }
  .page-banner { text-align: center; }
  .page-banner p { margin-inline: auto; }
}
