﻿:root {
  --primary: #be1e2d;
  --primary-dark: #8f1421;
  --secondary: #0f4c81;
  --secondary-dark: #0a365c;
  --accent: #f2b705;
  --ink: #14212f;
  --muted: #516172;
  --bg: #eef2f7;
  --card: #ffffff;
  --border: #d7e0ea;
  --shadow: 0 14px 30px rgba(13, 28, 48, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans Devanagari", "Mukta", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f6f9fd 0%, #eef2f7 100%);
  line-height: 1.7;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  background: linear-gradient(90deg, var(--secondary-dark), var(--secondary));
  color: #fff;
  font-size: 0.88rem;
  border-bottom: 2px solid #fff;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.38rem 0;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 4px 12px rgba(17, 30, 43, 0.08);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: #a31625;
  box-shadow: 0 10px 24px rgba(17, 30, 43, 0.14);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 132px;
  height: 58px;
  object-fit: contain;
}

.nav-toggle {
  border: 1px solid var(--border);
  background: #fff;
  width: 38px;
  height: 38px;
  border-radius: 0.45rem;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
}

.nav-menu {
  display: flex;
  gap: 0.15rem;
  flex-wrap: wrap;
  background: #f7faff;
  border: 1px solid #dbe7f4;
  border-radius: 999px;
  padding: 0.22rem;
}

.nav-menu a {
  position: relative;
  text-decoration: none;
  color: #22364b;
  padding: 0.5rem 0.62rem;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.22rem;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: #fff;
  border-color: #d8e3f1;
  color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

.headline-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.headline-strip .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.45rem 0;
}

.headline-label {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.24rem 0.6rem;
  border-radius: 0.28rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.headline-track {
  overflow: hidden;
  white-space: nowrap;
}

.headline-track span {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 18s linear infinite;
  color: var(--secondary-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.headline-actions {
  display: flex;
  gap: 0.4rem;
}

.headline-actions a {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.34rem 0.64rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(120deg, #be1e2d, #de3a4b);
  background-size: 180% 180%;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(190, 30, 45, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease, filter 0.22s ease;
  animation: buttonPulse 2.2s ease-in-out infinite, buttonFloat 3.2s ease-in-out infinite;
}

.headline-actions a:nth-child(2) {
  background: linear-gradient(120deg, #0f4c81, #1b79c8);
  box-shadow: 0 10px 20px rgba(15, 76, 129, 0.28);
  animation-delay: 0.35s;
}

.headline-actions a:hover {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 24px rgba(17, 30, 43, 0.28);
  filter: brightness(1.07);
}

.headline-actions a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-22deg);
  animation: buttonShineLoop 3.4s ease-in-out infinite;
}

.headline-actions a::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  opacity: 0;
  animation: buttonRing 2.2s ease-out infinite;
}

.headline-actions a:hover::before {
  animation: buttonShine 0.8s ease;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes votePunch {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(0.9) rotate(-4deg); }
  55% { transform: scale(1.06) rotate(3deg); }
}

@keyframes votePulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.22); opacity: 0; }
}

@keyframes buttonShine {
  from { left: -120%; }
  to { left: 140%; }
}

@keyframes buttonShineLoop {
  0%, 70%, 100% { left: -120%; }
  85% { left: 140%; }
}

@keyframes buttonPulse {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes buttonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes buttonRing {
  0% { transform: scale(0.96); opacity: 0.45; }
  100% { transform: scale(1.16); opacity: 0; }
}

.hero {
  padding: 0 0 2.8rem;
}

.hero-banner-full {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 380px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.9s ease, transform 4s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay-text {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(10, 30, 56, 0.78);
  color: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  z-index: 2;
}

.hero-dots {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.hero-dot.active {
  background: #fff;
  border-color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 1.45rem;
}

.badge {
  display: inline-block;
  background: #fff2f4;
  color: var(--primary);
  border: 1px solid #ffced6;
  padding: 0.23rem 0.68rem;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.3;
  margin: 0 0 0.68rem;
}

h1 {
  font-size: clamp(1.85rem, 2.6vw, 2.7rem);
}

h2 {
  font-size: clamp(1.38rem, 2vw, 1.95rem);
}

.hero p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 0 0.15rem;
}

.hero-facts div {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--secondary);
  border-radius: 0.45rem;
  padding: 0.45rem 0.5rem;
}

.hero-facts b {
  display: block;
  color: var(--secondary-dark);
  font-size: 0.96rem;
}

.hero-facts span {
  color: var(--muted);
  font-size: 0.8rem;
}


.cta-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.58rem 0.95rem;
  border-radius: 0.42rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

.btn.secondary {
  background: #fff;
  border: 1px solid var(--secondary);
  color: var(--secondary-dark);
}

.hero-card {
  background: linear-gradient(175deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid #ccdaed;
  box-shadow: var(--shadow);
  border-radius: 0.85rem;
  padding: 1.2rem;
}

.hero-card h3 {
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.hero-card p {
  margin: 0 0 0.5rem;
}

.election-sign {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  border: 2px solid #b8d0ea;
  border-radius: 0.7rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 8px 20px rgba(15, 76, 129, 0.14);
}

.election-sign img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.election-sign span {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--secondary-dark);
  line-height: 1.35;
}

.election-sign span strong {
  font-size: 1.04rem;
  font-weight: 800;
}

.election-sign span small {
  font-size: 0.9rem;
  font-weight: 700;
  color: #be1e2d;
}

.section {
  padding: 1.35rem 0 2.3rem;
  position: relative;
  overflow: hidden;
}

.section:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.45);
}

.section::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.25;
  right: -120px;
  top: -120px;
  pointer-events: none;
  animation: sectionGlow 10s ease-in-out infinite;
}

#about.section {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%);
}

#about.section::before {
  background: #cfe1f7;
}

#sankalp.section::before {
  background: #f7d8de;
}

#employment.section {
  background: linear-gradient(180deg, #f7fbff 0%, #eff6ff 100%);
}

#employment.section::before {
  background: #c7e0fa;
}

#scholarship.section {
  background: linear-gradient(180deg, #fffdf6 0%, #fff8e9 100%);
}

#scholarship.section::before {
  background: #ffe5ad;
}

#works.section {
  background: linear-gradient(180deg, #f7fbf8 0%, #eef8f0 100%);
}

#works.section::before {
  background: #c8e8cf;
}

#join.section::before {
  background: #e4d8fb;
}

#gallery.section {
  background: linear-gradient(180deg, #f8faff 0%, #f1f5ff 100%);
}

#gallery.section::before {
  background: #d7defe;
}

#contact.section::before {
  background: #f9d7dc;
}

.section-head {
  margin-bottom: 1.05rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--primary);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}


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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 1.05rem;
  box-shadow: 0 7px 18px rgba(14, 24, 38, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #c7d8ec;
  box-shadow: 0 14px 28px rgba(14, 24, 38, 0.13);
}

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
  color: var(--secondary-dark);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.sankalp-section {
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
  border-top: 1px solid #dde8f4;
  border-bottom: 1px solid #dde8f4;
}

.sankalp-section .cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sankalp-card {
  border: 1px solid #d3e0ef;
  border-top: 4px solid var(--secondary);
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.05rem 1.05rem 0.95rem;
}

.sankalp-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--secondary-dark);
  background: #eef5ff;
  border: 1px solid #d3e3f7;
  padding: 0.2rem 0.52rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.sankalp-card h3 {
  margin-bottom: 0.35rem;
}

.sankalp-card p {
  margin-bottom: 0.55rem;
}

.sankalp-card ul {
  margin: 0;
  padding-left: 1rem;
  color: #43586e;
}

.sankalp-card li {
  margin-bottom: 0.22rem;
}

.about-card {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 0.55rem;
  align-items: start;
}

.about-photo img {
  width: 100%;
  height: 245px;
  object-fit: contain;
  object-position: center top;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  border-radius: 0.6rem;
  border: 1px solid var(--border);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.78rem;
  padding: 0.46rem 0.82rem;
  border-radius: 999px;
  border: 1px solid #b91c2f;
  background: linear-gradient(120deg, #be1e2d 0%, #d73647 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(190, 30, 45, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.read-more:hover {
  transform: translateY(-2px);
  border-color: #9f1325;
  color: #fff;
  box-shadow: 0 12px 22px rgba(190, 30, 45, 0.3);
}

.page-hero {
  padding: 2rem 0 1.2rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 74ch;
}

.about-banner {
  position: relative;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 1.1rem;
}

.about-banner img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  object-position: center top;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  display: block;
}

.about-banner-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(8, 20, 37, 0) 0%, rgba(8, 20, 37, 0.82) 68%);
  color: #fff;
}

.about-banner-overlay h2 {
  margin: 0 0 0.15rem;
}

.about-banner-overlay p {
  margin: 0;
  font-size: 0.9rem;
}

.content-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 8px 20px rgba(14, 24, 38, 0.05);
}

.content-box h3 {
  color: var(--secondary-dark);
}

.content-box ul {
  margin: 0;
  padding-left: 1.2rem;
}

.content-box li {
  margin-bottom: 0.32rem;
}

.gallery{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(2, 1fr); /* mobile */
}

/* tablet */
@media (min-width:768px){
  .gallery{ grid-template-columns: repeat(3, 1fr); }
}

/* desktop */
@media (min-width:1024px){
  .gallery{ grid-template-columns: repeat(4, 1fr); }
}

.gallery img{
  width:100%;
  height:220px;          /* same height = perfect row alignment */
  display:block;
  object-fit:cover;      /* crop ok (you said doesn't matter) */
  border-radius:10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.footer {
  margin-top: 1.2rem;
  background: #0c1b2d;
  color: #d6dfeb;
  padding: 1.12rem 0;
  border-top: 4px solid var(--primary);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes sectionGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 12px) scale(1.08); }
}

.floating-vote {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
}

.vote-ring {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #fff7f8 45%, #ffe3e8 100%);
  border: 3px solid #be1e2d;
  box-shadow: 0 10px 24px rgba(190, 30, 45, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  position: relative;
  animation: votePunch 1.25s ease-in-out infinite;
}

.vote-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(190, 30, 45, 0.35);
  animation: votePulse 1.25s ease-out infinite;
}

.vote-ring img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.vote-ring b {
  font-size: 0.82rem;
  color: #8f1421;
}


@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner-full {
    height: 240px;
  }

  .hero-overlay-text {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.6rem;
    font-size: 0.75rem;
  }

  .about-card {
    grid-template-columns: 1fr;
  }

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

  .about-photo img {
    height: 320px;
  }

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

  .election-sign {
    padding: 0.7rem 0.75rem;
    gap: 0.6rem;
  }

  .election-sign img {
    width: 56px;
    height: 56px;
  }

  .election-sign span {
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 0.7rem 0.7rem;
    padding: 0.6rem;
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  }

  .nav-menu.open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .headline-strip .container {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .headline-actions {
    flex-wrap: wrap;
  }

  .headline-track span {
    padding-left: 0;
    animation: none;
    white-space: normal;
  }

  .about-banner img {
    height: 240px;
  }

  .floating-vote {
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .vote-ring {
    width: 92px;
    height: 92px;
  }

  .vote-ring img {
    width: 36px;
    height: 36px;
  }

  .vote-ring b {
    font-size: 0.74rem;
  }
}
