/* =========================================================
   Nirzar Kala Sansthan — style.css
   Palette: blue #0e8fd6 | cyan #1fb6d4 | gold #d9a441
            brown #8a6a1f | ink #17100a
   ========================================================= */

:root {
  --blue:        #0e8fd6;
  --blue-dark:   #0a6fb0;
  --cyan:        #1fb6d4;
  --gold:        #d9a441;
  --gold-deep:   #b98a2a;
  --brown:       #8a6a1f;
  --ink:         #17100a;
  --slate:       #2b3a4a;
  --text:        #4a5560;
  --light:       #f7f7f8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Poppins', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

img { max-width: 100%; display: block; }

/* ---------- Section titles ---------- */
.section-title {
  text-align: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  letter-spacing: 5px;
  color: var(--slate);
  margin-bottom: 3rem;
}
.section-title.light { color: #fff; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .7rem 0;
  flex-wrap: wrap;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
  line-height: 1.2;
}

.brand-logo {
  display: inline-flex;   /* shrink-wrap to the image */
  flex: none;
}
.brand-logo img {
  display: block;
  height: 56px;           /* adjust to your header height */
  width: auto;            /* keeps original aspect ratio */
  max-width: 170px;
  object-fit: contain;
}

.brand-side {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e5e7eb;
  padding-left: .9rem;
}
.since { font-size: .62rem; letter-spacing: 2px; color: #6b7280; }
.motto { font-style: italic; font-size: .74rem; color: #d6336c; }
.since { font-size: .6rem; letter-spacing: 2px; color: #6b7280; }
.motto { font-style: italic; font-size: .72rem; color: #d6336c; }

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--slate);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  padding: .4rem 0;
}
.main-nav a:not(.btn-ashwamedh)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 3px;
  border-radius: 3px;
  background: var(--blue);
  transition: width .3s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--blue); }

.btn-ashwamedh {
  background: linear-gradient(90deg, #d946ef, #7c3aed);
  color: #fff !important;
  padding: .55rem 1.4rem !important;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(168, 85, 247, .4);
}
.btn-ashwamedh::after { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span {
  width: 26px; height: 3px;
  border-radius: 3px;
  background: var(--slate);
  transition: .3s;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  color: #fff;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4.5rem, 9vw, 8rem);
  background:
    linear-gradient(90deg,
      rgba(18, 12, 4, .96) 0%,
      rgba(18, 12, 4, .88) 42%,
      rgba(18, 12, 4, .35) 72%,
      rgba(18, 12, 4, .05) 100%),
    url('../images/nirzar/hero-dancer.png') right center / cover no-repeat,
    var(--ink);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 1.15;
  max-width: 15ch;
}
.hero h1 .gold { color: #e8c37e; }

.hero-line {
  width: 64px; height: 2px;
  margin: 2.2rem 0;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.hero-lead {
  max-width: 46ch;
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: #e5e0d5;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  margin-top: 2.2rem;
  padding: .9rem 2.1rem;
  font-size: .92rem;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 8px 22px rgba(14, 143, 214, .45);
}

.hero-foot {
  margin-top: 2.4rem;
  font-size: .85rem;
  color: #cdbd97;
  letter-spacing: .3px;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: clamp(4rem, 8vw, 7rem) 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-text h2 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: 1.8rem;
}
.about-text h2 .blue { color: var(--blue); }
.about-text p {
  font-size: .9rem;
  margin-bottom: 1.4rem;
  font-weight: 300;
}

.about-img {
  min-height: 420px;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .18);
  background:
    linear-gradient(160deg, rgba(217, 164, 65, .35), rgba(23, 16, 10, .55)),
    url('../images/nirzar/about.png') center / cover no-repeat,
    linear-gradient(135deg, #c99a3c, #5f4310);
}

/* =========================================================
   PROGRAMS
   ========================================================= */
.programs {
  background: var(--light);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.program-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.2rem 1.9rem;
  box-shadow: 0 12px 30px rgba(20, 40, 60, .09);
  transition: transform .3s ease, box-shadow .3s ease;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(20, 40, 60, .14);
}

.program-card.featured {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
}

.program-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.program-head h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--slate);
}
.program-card.featured .program-head h3 { color: #fff; }

.program-icon {
  width: 52px; height: 52px;
  flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.4rem;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.dance-img-style {
  max-width:75%;
  display:block;
}
.program-icon.gold {
  background: radial-gradient(circle at 30% 30%, #ecc063, var(--gold-deep));
}

.program-card p {
  font-size: .86rem;
  font-weight: 300;
  margin-bottom: 1.6rem;
}

.program-link {
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
  color: var(--blue);
  transition: transform .25s ease;
  display: inline-block;
}
.program-link:hover { transform: translateX(6px); }
.program-card.featured .program-link { color: #fff; }

/* =========================================================
   UPCOMING EVENT
   ========================================================= */
.upcoming {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background:
    linear-gradient(120deg, #6e5312 0%, #a67c1b 55%, #7d5f14 100%);
}

.upcoming-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
}

/* video card */
.video-card {
  position: relative;
  min-height: 340px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  background:
    linear-gradient(rgba(20, 10, 0, .25), rgba(20, 10, 0, .45)),
    url('../images/nirzar/event-video.jpg') center / cover no-repeat,
    linear-gradient(135deg, #4a2c10, #1c0f04);
}

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: transform .25s ease;
}
.video-card:hover .play-btn { transform: scale(1.08); }
.play-triangle {
  width: 0; height: 0;
  border-left: 22px solid var(--blue);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
}

/* banner card */
.banner-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  background:
    linear-gradient(200deg, rgba(80, 20, 120, .35), rgba(10, 30, 90, .55)),
    url('../images/nirzar/event-banner.png') center / cover no-repeat,
    linear-gradient(135deg, #5b2a86, #1e3a8a);
}
.banner-content {
  padding: 2.2rem;
  color: #fff;
  text-align: center;
  width: 100%;
}
.banner-sub { font-size: .95rem; letter-spacing: 1px; color: #ffe9b3; }
.banner-content h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  margin: .3rem 0 1.1rem;
}
.banner-season {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffd166;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  margin-bottom: 1.4rem;
}
.banner-season span { color: #ff5d8f; }

.btn-outline {
  padding: .55rem 1.6rem;
  font-size: .85rem;
  color: #fff;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, .08);
}
.btn-outline:hover { background: #fff; color: var(--blue-dark); }

/* dots */
.dots {
  display: flex;
  justify-content: center;
  gap: .55rem;
  margin-top: 2.4rem;
}
.dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}
.dot.active { background: var(--cyan); }
.events .dot { background: #d5dbe1; }
.events .dot.active { background: var(--blue); }

/* =========================================================
   EVENTS & WORKSHOPS
   ========================================================= */
.events { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.event-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(20, 40, 60, .1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(20, 40, 60, .16);
}

.event-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}
.event-img.img-1 {
  background-image:
    linear-gradient(rgba(120, 30, 20, .15), rgba(40, 10, 5, .35)),
    url('../images/nirzar/event-pratibha.jpg'),
    linear-gradient(135deg, #b3502e, #4a1508);
}
.event-img.img-2 {
  background-image:
    linear-gradient(rgba(20, 20, 40, .15), rgba(5, 5, 20, .35)),
    url('../images/nirzar/event-smruti.jpg'),
    linear-gradient(135deg, #4a3b6b, #14102b);
}
.event-img.img-3 {
  background-image:
    linear-gradient(rgba(30, 60, 20, .15), rgba(8, 20, 5, .35)),
    url('../images/nirzar/event-ashwamedh.jpg'),
    linear-gradient(135deg, #5f7a2e, #1c2a0c);
}

.event-body { padding: 1.6rem 1.7rem 1.9rem; }
.event-body h3 {
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .7rem;
}
.event-body p {
  font-size: .85rem;
  font-weight: 300;
  margin-bottom: 1.3rem;
}
.arrow-link {
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--blue);
  display: inline-block;
  transition: transform .25s ease;
}
.arrow-link:hover { transform: translateX(6px); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: linear-gradient(120deg, #0d8fd6 0%, #0a5fa8 100%);
  color: #fff;
  padding: 2.6rem 0 2.2rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin-bottom: 1.6rem;
}
.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: 2px;
  opacity: .92;
  transition: opacity .2s;
}
.footer-nav a:hover { opacity: 1; text-decoration: underline; }

.copyright {
  font-size: .72rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .75);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  background: linear-gradient(160deg, #ecc063, var(--gold-deep));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
  transition: transform .25s ease;
  z-index: 90;
}
.back-to-top:hover { transform: translateY(-4px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .main-nav { gap: 1.3rem; }
  .program-grid { gap: 1.4rem; }
}

@media (max-width: 880px) {
  .header-inner { flex-wrap: nowrap; }
  .brand-side { display: none; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .12);
    padding: .6rem 4%;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: .85rem 0; border-bottom: 1px solid #f0f0f2; }
  .btn-ashwamedh { text-align: center; margin: .8rem 0; }

  .about-grid { grid-template-columns: 1fr; }
  .about-img { min-height: 300px; order: -1; }

  .program-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .upcoming-grid { grid-template-columns: 1fr; }
  .event-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }

  .hero {
    background:
      linear-gradient(rgba(18, 12, 4, .82), rgba(18, 12, 4, .82)),
      url('../images/nirzar/hero-dancer.png') center / cover no-repeat,
      var(--ink);
  }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.2rem; }
  .hero-foot { font-size: .78rem; }
  .banner-content { padding: 1.5rem; }
  .video-card, .banner-card { min-height: 260px; }
}

@media (max-width: 520px) {
  .brand-logo img { height: 42px; }
}
