* {
  box-sizing: border-box;
}

body {
  font-family: "Mukta", sans-serif;
  background-color: #ffffff;
  color: #1a1f2e;
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: "Sree Krushnadevaraya", serif;
  color: #16305e;
  line-height: 1.3;
}

a {
  color: #b3195f;
}

.skip {
  position: absolute;
  left: -9999px;
  background-color: #c9a227;
  color: #16305e;
  padding: 10px 18px;
  text-decoration: none;
  z-index: 20;
}

.skip:focus {
  left: 8px;
  top: 8px;
}

.attrib {
  font-size: 13px;
  margin: 8px 0 0 0;
}

nav {
  position: sticky;
  top: 0;
  background-color: #16305e;
  border-bottom: 3px solid #c9a227;
  padding: 12px 20px;
  z-index: 10;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.03em;
}

nav a:hover {
  color: #c9a227;
}

.band {
  height: 12px;
  background: repeating-linear-gradient(90deg, #c9a227 0 16px, #b3195f 16px 32px);
}

.hero {
  background-color: #16305e;
  color: #ffffff;
  text-align: center;
  padding: 70px 20px;
}

.hero h1 {
  color: #ffffff;
  font-size: 54px;
  margin: 0;
  letter-spacing: 0.02em;
}

.hero .hindi {
  font-size: 26px;
  color: #c9a227;
  margin: 8px auto 18px auto;
}

.hero p {
  max-width: 600px;
  margin: 0 auto;
  color: #d8dff0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background-color: #0e2144;
  color: #ffffff;
  text-align: center;
}

.facts div {
  padding: 28px 14px;
  border-right: 1px solid #2b4675;
}

.facts div:last-child {
  border-right: none;
}

.facts strong {
  display: block;
  font-family: "Sree Krushnadevaraya", serif;
  font-size: 40px;
  color: #c9a227;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

section {
  margin-bottom: 55px;
}

.center {
  text-align: center;
}

h2 {
  font-size: 32px;
}

.divider {
  display: block;
  width: 40px;
  margin: 45px auto;
  opacity: 0.35;
}

.map {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 612 / 696;
  margin: 20px auto;
}

.map img {
  display: block;
  width: 100%;
}

.pin {
  position: absolute;
  width: 6%;
  transform: translate(-50%, -50%);
}

.pin img {
  width: 100%;
  transition: transform 0.2s;
}

.pin:hover img {
  transform: scale(1.35);
}

.pin span {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  background-color: #16305e;
  color: #ffffff;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 2px;
  white-space: nowrap;
  display: none;
}

.pin:hover span {
  display: block;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.card {
  background-color: #ffffff;
  border: 1px solid #dfe3ec;
  border-top: 4px solid #16305e;
  padding: 26px 22px 28px 22px;
  text-align: center;
  transition: border-top-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-top-color: #b3195f;
  box-shadow: 0 8px 20px rgba(22, 48, 94, 0.13);
}

.niche {
  width: 84px;
  height: 100px;
  margin: 0 auto 16px auto;
  background-color: #16305e;
  border-radius: 42px 42px 3px 3px / 50px 50px 3px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.niche img {
  width: 46px;
  filter: brightness(0) invert(1);
}

.card h3 {
  margin: 0 0 8px 0;
  font-size: 27px;
}

.card p {
  margin: 0 0 18px 0;
  font-size: 16px;
  color: #55607a;
}

.button {
  display: inline-block;
  background-color: #b3195f;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.05em;
  padding: 9px 22px;
  border-radius: 2px;
}

.button:hover {
  background-color: #16305e;
}

.banner {
  background-color: #16305e;
  color: #ffffff;
  text-align: center;
  padding: 55px 20px;
}

.banner h1 {
  color: #ffffff;
  font-size: 48px;
  margin: 0;
}

.banner p {
  margin: 6px 0 0 0;
  color: #c9a227;
  letter-spacing: 0.05em;
}

.factbox {
  background-color: #f3f6fc;
  border-left: 5px solid #c9a227;
  padding: 20px 24px;
  float: right;
  width: 255px;
  margin: 0 0 22px 28px;
}

.factbox h3 {
  margin-top: 0;
  font-size: 23px;
}

.factbox p {
  font-size: 16px;
  margin: 0 0 12px 0;
}

.carousel {
  display: flex;
  max-width: 620px;
  margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border: 1px solid #dfe3ec;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
}

.slide img {
  display: block;
  width: 100%;
  height: 540px;
  object-fit: contain;
  background-color: #0e2144;
}

.slide figcaption {
  background-color: #16305e;
  color: #ffffff;
  font-size: 15px;
  text-align: center;
  padding: 10px 40px;
}

.slide a {
  position: absolute;
  top: 40%;
  background-color: rgba(14, 33, 68, 0.75);
  color: #ffffff;
  text-decoration: none;
  font-size: 30px;
  line-height: 1;
  padding: 8px 17px 13px 17px;
}

.slide a:hover {
  background-color: #b3195f;
}

.slide .prev {
  left: 0;
}

.slide .next {
  right: 0;
}

.contact dl {
  margin: 0;
}

.contact dt {
  font-weight: 600;
  color: #16305e;
  margin-top: 14px;
}

.contact dd {
  margin: 0;
  font-size: 19px;
}

.credits {
  font-size: 15px;
  color: #55607a;
  border-top: 1px solid #dfe3ec;
  padding-top: 14px;
}

.credits ul {
  padding-left: 20px;
}

.credits li {
  margin-bottom: 8px;
}

.quote {
  font-family: "Sree Krushnadevaraya", serif;
  font-size: 26px;
  color: #16305e;
  border-left: 4px solid #c9a227;
  padding-left: 22px;
  margin: 30px 0;
}

.quote span {
  display: block;
  font-family: "Mukta", sans-serif;
  font-size: 16px;
  color: #55607a;
  margin-top: 8px;
}

.glossary {
  background-color: #f3f6fc;
  border-top: 3px solid #16305e;
  padding: 10px 26px 26px 26px;
}

.glossary dl {
  margin: 0;
}

.glossary dt {
  font-weight: 600;
  color: #16305e;
  margin-top: 15px;
}

.glossary dd {
  margin: 0;
  color: #55607a;
}

.profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 38px;
}

.profile img {
  width: 260px;
  height: 330px;
  object-fit: cover;
  border: 3px solid #c9a227;
  border-radius: 130px 130px 3px 3px / 160px 160px 3px 3px;
}

.bio {
  flex: 1;
  min-width: 260px;
}

.timeline {
  border-left: 2px solid #c9a227;
  margin-left: 14px;
  padding-left: 28px;
}

.timeline h3 {
  margin-bottom: 2px;
  font-size: 24px;
}

.timeline p {
  margin-top: 0;
  color: #55607a;
}

.timeline div {
  position: relative;
  margin-bottom: 28px;
}

.timeline div::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 14px;
  width: 12px;
  height: 12px;
  background-color: #b3195f;
  transform: rotate(45deg);
}

footer {
  background-color: #16305e;
  border-top: 3px solid #c9a227;
  color: #d8dff0;
  text-align: center;
  padding: 28px 20px;
  font-size: 15px;
}

footer a {
  color: #c9a227;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 38px;
  }

  .banner h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 27px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts div {
    border-right: none;
    border-bottom: 1px solid #2b4675;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .factbox {
    float: none;
    width: auto;
    margin: 0 0 22px 0;
  }

  .slide img {
    height: 380px;
  }

  nav ul {
    gap: 14px;
  }
}
