@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --ink: #11121a;
  --muted: #5b6470;
  --paper: #f7f3ee;
  --surface: #ffffff;
  --accent: cadetblue;
  --accent-strong: #7a1120;
  --nav: #0b1d3a;
  --nav-2: #123256;
  --gold: #c9a24a;
  --cool: #0f4c81;
  --shadow: 0 18px 40px rgba(13, 24, 43, 0.18);
  --soft-shadow: 0 10px 25px rgba(16, 26, 50, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fef6e6 0%, #f4f1eb 40%, #edf2f7 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
td,
th,
a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-strong);
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(12, 26, 52, 0.4), transparent);
  margin: 1.5rem 0;
}

/* Header + banner */
.bg-nav {
  background: linear-gradient(120deg, var(--nav), var(--nav-2));
  color: #f5f6fb;
}

.top-bar {
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 6px 18px rgba(6, 14, 28, 0.25);
  padding: 0.45rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-bar .container {
  flex: 1;
  margin: 0;
  min-width: 240px;
  padding: 0 0.75rem;
  margin-top: 0;
}

.top-bar .container.mt-3 {
  margin-top: 0 !important;
}

.top-bar .btn {
  border-radius: 999px;
  padding: 0.35rem 1rem;
}

.top-bar marquee {
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  opacity: 0.95;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  font-weight: 600;
}

.lang-switch {
  position: relative;
  width: 52px;
  height: 28px;
  display: inline-block;
}

.lang-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lang-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: background 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.lang-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(7, 14, 28, 0.35);
}

.lang-switch input:checked + .lang-slider {
  background: rgba(201, 162, 74, 0.85);
}

.lang-switch input:checked + .lang-slider::before {
  transform: translateX(24px);
}

.banner-bg {
  position: relative;
  /*background-image: url("img/Bgty.png");*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: white;
  margin: 0;
  padding: 0;
}

.banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 29, 58, 0.6), rgba(11, 29, 58, 0.2));
  z-index: 0;
}

.banner-bg .row,
.banner-bg .col-sm-2,
.banner-bg .col-sm-8 {
  position: relative;
  z-index: 1;
}

.banner-bg .col-sm-8 {
  display: flex;
  justify-content: center;
}

.banner-bg .col-sm-2 {
  display: flex;
  justify-content: center;
}

.darpan-logo {
  width: min(70vw, 460px);
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(8, 17, 34, 0.35));
}

.logos {
  max-height: 120px;
  width: auto;
  filter: drop-shadow(0 6px 10px rgba(9, 19, 36, 0.25));
}

img[src$="swamiji.png"] {
  border-radius: 45%;
    border: 0px solid #ffffff;
    padding: 1px;
    background-color: #ffffff;
}

img[src$="mg.jpeg"] {
  border-radius: 45%;
    border: 0px solid #ffffff;
    padding: 1px;
    background-color: #ffffff;
}

marquee {
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Navbar */
.navbar {
  box-shadow: 0 12px 28px rgba(7, 15, 30, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0;
}

.navbar .nav-link {
  color: #f8f9ff !important;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 0.55rem 0.8rem;
}

.navbar-nav {
  gap: 0.2rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--gold) !important;
}

.navbar .dropdown-menu {
  border-radius: 14px;
  border: none;
  padding: 0.5rem;
  background: #0f2746;
  box-shadow: var(--soft-shadow);
}

.navbar .dropdown-menu a {
  color: #eef2ff;
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
}

.navbar .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.6);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons + form */
.btn-outline-primary,
.btn-outline-success {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  font-weight: 500;
}

.btn-outline-primary:hover,
.btn-outline-success:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0b1d3a;
}

.form-control {
  border-radius: 999px;
  border: 1px solid rgba(16, 36, 66, 0.2);
  box-shadow: inset 0 1px 2px rgba(16, 36, 66, 0.08);
}

/* Section helpers */
.section-title {
  text-align: center;
  font-family: "Playfair Display", "Times New Roman", serif;
  letter-spacing: 0.5px;
}

.section-subtitle {
  font-family: "Playfair Display", "Times New Roman", serif;
  color: var(--cool);
  border-bottom: 2px solid rgba(15, 76, 129, 0.25);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.content-panel {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 2.8vw, 2.4rem);
  margin: clamp(1.2rem, 2.6vw, 2rem);
}

.content-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.content-text {
  flex: 1;
  min-width: 260px;
}

.content-paragraph {
  text-align: justify;
  font-size: 1rem;
  color: var(--muted);
}

.vision-points {
  font-size: 1.1rem;
  line-height: 1.8;
  padding-left: 1.2rem;
  margin-bottom: 0;
  color: var(--ink);
}

.vision-points li {
  margin-bottom: 0.4rem;
}

.abhipray-item {
  background: rgba(15, 76, 129, 0.08);
  border-left: 4px solid rgba(15, 76, 129, 0.45);
  padding: 12px 14px;
  border-radius: 12px;
  margin: 0 0 1rem;
  color: var(--ink);
}

.content-image {
  width: min(260px, 85vw);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}

.office-photo {
  width: 140px;
  height: 200px;
  object-fit: contain;
  object-position: top;
}

.clean-list {
  list-style: none;
  padding-left: 0;
}

main {
  padding-bottom: 1rem;
}

main a {
  color: var(--accent) !important;
}

/* Tabs */
.scroll-tabs {
  white-space: nowrap;
  scrollbar-width: thin;
  padding: 0 10px;
}

.tab-item {
  width: 210px;
  flex-shrink: 0;
  display: inline-block;
  color: var(--ink);
  text-align: center;
  overflow: hidden;
}

.tab-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(10, 24, 49, 0.15);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--soft-shadow);
}

.tab-img:hover {
  transform: translateY(-4px);
}

.tab-title {
  font-size: 1rem;
  color: var(--cool);
  font-weight: 600;
}

.scroll-tabs::-webkit-scrollbar {
  height: 6px;
}

.scroll-tabs::-webkit-scrollbar-thumb {
  background-color: rgba(12, 26, 52, 0.3);
  border-radius: 10px;
}

.bg-mn {
  background: linear-gradient(120deg, var(--nav), var(--cool));
  color: #fff;
}

/* Editorial */
.content-box {
  margin-bottom: 20px;
}

.link-item {
  color: #fef6e6;
  cursor: pointer;
  padding: 10px;
  display: block;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.link-item:hover {
  color: #0b1d3a;
  background-color: #f4e3b5;
}

.content-box {
  display: none;
}

.content-box.active {
  display: block;
}

.link-item.active {
  font-weight: 600;
  color: var(--nav);
  background: rgba(255, 255, 255, 0.85);
}

.adm {
  max-width: 190px;
  margin-bottom: 10px;
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

.text-edi {
  background: linear-gradient(140deg, #0b1d3a, #16415f);
  border-radius: 14px;
  padding: 8px;
}

.text-edi .link-item {
  color: #ffffff;
}

.text-edi .link-item:hover {
  color: #0b1d3a;
}

.bg-edi1 {
  background: linear-gradient(120deg, rgba(245, 236, 221, 0.6), rgba(228, 237, 248, 0.9));
}

.text-color1 {
  color: var(--ink);
}

.btn-his {
  border-radius: 999px;
  border: none;
  padding: 8px 18px;
  background: var(--cool);
  color: #fff;
}

.btn-his:hover {
  background-color: var(--nav);
}

/* Gallery */
.gallery-container {
  position: relative;
  max-width: 1100px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: var(--surface);
  padding: 10px;
}

.image-row {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.image-item {
  flex: 0 0 calc(100% / 2);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  transition: none;
}

.btn-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(11, 29, 58, 0.7);
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.btn-prev {
  left: 10px;
}

.btn-next {
  right: 10px;
}

.btn-control:hover {
  background-color: rgba(11, 29, 58, 0.9);
}

.modal-content {
  background: transparent;
  border: none;
}

.modal-body img {
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* PDF viewer */
.pdf-viewer {
  background: #0f2746;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.pdf-page-label {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.pdf-canvas {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #ffffff;
}

/* Tables */
.table {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.table thead tr {
  background: rgba(11, 29, 58, 0.1);
}

.table th,
.table td {
  vertical-align: middle;
}

/* Footer */
footer {
  background: linear-gradient(120deg, var(--nav), #081427);
  color: #f4f4f6;
}

footer a {
  color: #f4f4f6;
}

footer a:hover {
  color: var(--gold);
}

mark.highlight {
  background-color: #ffe073;
  padding: 0 3px;
  border-radius: 3px;
}

@media (max-width: 991px) {
  .navbar .nav-link {
    padding: 0.6rem 0.8rem;
  }

  .darpan-logo {
    width: min(80vw, 420px);
  }
}

@media (max-width: 767px) {
  body {
    background: #f3f5f9;
  }

  main {
    padding: 0.6rem 0.6rem 1.2rem;
  }

  .top-bar {
    padding: 0.75rem 1rem;
    border-radius: 0 0 18px 18px;
    position: sticky;
    top: 0;
    z-index: 2000;
  }

  .top-bar .container {
    margin: 0.5rem 0;
  }

  .top-bar marquee {
    display: none;
  }

  .lang-toggle {
    width: 100%;
    justify-content: center;
  }

  .banner-bg {
    border-radius: 0 0 22px 22px;
    overflow: hidden;
  }

  .banner-bg .row {
    gap: 0.5rem;
  }

  .darpan-logo {
    width: min(78vw, 320px);
  }

  .navbar {
    border-radius: 18px;
    margin: 0.75rem 0.75rem 0;
    overflow: hidden;
  }

  .navbar-collapse {
    background: #0f2746;
    border-radius: 14px;
    margin-top: 0.5rem;
    padding: 0.5rem 0.6rem;
  }

  .navbar .nav-link {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin: 0.25rem 0;
  }

  .logos {
    max-height: 90px;
    margin-bottom: 8px;
  }

  .tab-item {
    width: 160px;
  }

  .scroll-tabs {
    padding: 0 12px 10px;
  }

  .tab-img {
    height: 170px;
  }

  .carousel,
  .gallery-container,
  .scroll-tabs,
  .bg-edi1,
  .bg-mn {
    border-radius: 18px;
    margin: 0.8rem 0.6rem;
  }

  .image-item {
    flex: 0 0 100%;
  }

  .image-item img {
    height: 320px;
  }

  .content-panel {
    margin: 0.9rem;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(10, 20, 40, 0.12);
  }

  .content-flex {
    flex-direction: column;
  }

  .content-image {
    width: 100%;
    max-width: 100%;
  }

  .btn,
  .btn-outline-primary,
  .btn-outline-success,
  .btn-outline-light,
  .btn-his {
    width: 100%;
    justify-content: center;
  }

  .form-control {
    width: 100%;
  }

  footer {
    border-radius: 18px 18px 0 0;
  }

  .table {
    width: 100%;
    table-layout: fixed;
  }

  .table th,
  .table td {
    white-space: normal;
    word-break: break-word;
  }
}