:root {
  --primary: #1a1a1a;
  --secondary: #cc5500;
  --accent: #b22222;
  --bg: #faf9f6;
  --white: #fff;
  --gray: #dedbd3;
  --text: #333;
  --footer-bg: #faf9f6;
  --footer-text: #1a1a1a;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans Devanagari', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.header {
  background: var(--white);
  padding: 20px 0;
  border-bottom: 4px solid var(--secondary);
  box-shadow: 0 2px 6px rgba(204, 85, 0, 0.1);
  color: var(--primary);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo,
.header-img {
  width: 150px;
  text-align: center;
}

.header-logo img,
.header-img img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 8px;
  background: var(--white);
  object-fit: cover;
  border: 3px solid var(--secondary);
  box-shadow: 0 0 8px #cc550030;
}

.logo-text {
  font-size: 0.9em;
  color: var(--primary);
  margin-top: 4px;
  line-height: 1.3;
}

.logo-text .small {
  color: var(--accent);
  font-size: 1em;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}

.header-main {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.header-main .top-line {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.header-main .main-title {
  font-size: 2em;
  font-weight: 900;
  color: var(--secondary);
  margin-bottom: 6px;
  line-height: 1.2;
}

.header-main .subtitle {
  font-size: 1.2em;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 600;
}

.header-main .tagline {
  font-size: 1.1em;
  color: var(--primary);
  font-weight: 600;
}

nav {
  background: var(--white);
  border-bottom: 2px solid var(--secondary);
  box-shadow: none;
  display: flex;
  justify-content: center;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 10px 0;
}

nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.06em;
  padding: 12px 14px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav a.active,
nav a:hover {
  color: var(--secondary);
  border-bottom: 3px solid var(--secondary);
}

.admission-banner {
  background: var(--gray);
  border-bottom: 3px solid var(--secondary);
  padding: 32px 0 24px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.admission-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.admission-info h2 {
  color: var(--accent);
  font-size: 2em;
  margin: 0;
  font-weight: 800;
  letter-spacing: 1px;
}

.admission-info h2::after {
  content: none;
}

.admission-subtitle {
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: -5px;
  margin-bottom: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.admission-note {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  display: block;
  margin-top: 5px;
}

.admission-note a {
  color: var(--secondary);
  text-decoration: underline;
  font-weight: 600;
  transition: var(--transition);
}

.admission-note a:hover {
  color: var(--accent);
}

.admission-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: #fff;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  margin: 10px 0 8px 0;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.admission-btn::before {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

.admission-btn:hover::before {
  width: 80%;
  left: 10%;
}

.admission-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(178, 34, 34, 0.6);
  color: #fff;
}

.admission-contact {
  margin-top: 10px;
  font-size: 1em;
  color: var(--primary);
}

.admission-contact a {
  color: var(--secondary);
  text-decoration: underline;
  font-weight: 500;
}

.main-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.content-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
}

h2 {
  color: var(--secondary);
  font-size: 1.9rem;
  margin-bottom: 20px;
  margin-top: 10px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

h3 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 15px;
  margin-top: 20px;
  font-weight: 600;
}

h4 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 10px;
  margin-top: 20px;
  font-weight: 600;
}

h5 {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 15px;
  margin-top: 30px;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}

h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-image {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.section-image:hover {
  transform: scale(1.02);
}

.stream-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.stream-image:hover {
  transform: scale(1.02);
}

.highlight-box {
  background: #f9f7f3;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.highlight-box:hover {
  background: #f5f2ec;
}

.signature {
  color: var(--primary);
  font-style: italic;
  margin-top: 10px;
  font-size: 0.95rem;
}

.info-list {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}

.info-list li {
  padding: 10px 0;
  font-size: 1rem;
  color: var(--text);
  position: relative;
  padding-left: 25px;
  transition: var(--transition);
}

.info-list li::before {
  content: "➔";
  color: var(--secondary);
  position: absolute;
  left: 0;
  font-size: 1.1rem;
}

.info-list li:hover {
  color: var(--primary);
}

.info-list a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.info-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.content-text {
  font-size: 1rem;
  color: var(--text);
  margin-top: 20px;
  line-height: 1.8;
}

.leadership-highlight {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.highlight-card {
  position: relative;
  width: 280px;
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.highlight-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.highlight-image {
  width: 100%;
  object-fit: cover;
  border-bottom: 4px solid var(--accent);
}

.highlight-info {
  padding: 15px;
  text-align: center;
  background: linear-gradient(to top, var(--gray) 0%, var(--white) 100%);
}

.highlight-info h4 {
  color: var(--primary);
  font-size: 1.3rem;
  margin: 0 0 5px;
}

.highlight-info p {
  color: var(--text);
  font-size: 1.1rem;
  margin: 0;
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 20px;
}

.committee-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 300px));
  justify-content: center;
  gap: 20px;
}

.committee-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 300px));
  justify-content: center;
  gap: 20px;
}


.committee-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  text-align: center;
  transition: var(--transition);
}

.committee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
}

.committee-image {
  width: 100%;
  height: 300px;
  object-fit: fill;
  border-bottom: 3px solid var(--secondary);
}

.committee-info {
  padding: 15px;
}

.committee-info h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 0 0 5px;
}

.committee-info p {
  color: var(--text);
  font-size: 1rem;
  margin: 0;
}

.masonry-gallery {
  column-count: 3;
  column-gap: 20px;
  margin-bottom: 20px;
}

.gallery-card {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gallery-info {
  padding: 10px;
  text-align: center;
}

.gallery-info p {
  color: var(--primary);
  font-size: 0.9rem;
  margin: 0;
}

.table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modern-table th,
.modern-table td {
  padding: 15px;
  text-align: left;
  font-size: 0.95rem;
  border: 1px solid var(--secondary);
}

.modern-table th {
  background: var(--gray);
  color: var(--primary);
  font-weight: 600;
}

.modern-table tbody tr {
  transition: var(--transition);
}

.modern-table tbody tr:hover {
  background: #f5f2ec;
  cursor: pointer;
}

.modern-table td {
  color: var(--text);
}

.map-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.map-container {
  position: relative;
  padding-bottom: 50%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-details p {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text);
}

.contact-details a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer {
  background: var(--footer-bg);
  padding: 40px 20px 20px;
  border-top: 3px solid var(--secondary);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-section h3 {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.footer-section a {
  color: var(--footer-text);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--gray);
  color: var(--accent);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .main-container {
    padding: 0 15px;
  }

  .content-card {
    padding: 20px;
  }

  .masonry-gallery {
    column-count: 2;
  }

  nav {
    gap: 10px;
  }
}

@media (max-width: 700px) {
  .header-row {
    flex-direction: column;
    text-align: center;
  }

  .header-logo {
    margin-bottom: 15px;
  }

  .header-main .main-title {
    font-size: 1.5em;
  }

  nav {
    flex-wrap: wrap;
    gap: 5px;
  }

  nav a {
    padding: 10px 6px;
    font-size: 1em;
  }

  .masonry-gallery {
    column-count: 1;
  }

  .committee-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .leadership-highlight {
    flex-direction: column;
    align-items: center;
  }

  .highlight-card {
    width: 250px;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  h5 {
    font-size: 1.1rem;
  }

  .section-image {
    height: 250px;
  }

  .stream-image {
    height: 150px;
  }

  .admission-info h2 {
    font-size: 1.5em;
  }

  .admission-btn {
    padding: 10px 20px;
    font-size: 0.95em;
  }

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

  .highlight-card {
    width: 220px;
  }

  .committee-image {
    height: 180px;
  }
}