/* ==========================================================
   My City My Pride - stylesheet
   Colours: change the 4 values in :root to re-theme the site.
   ========================================================== */
:root {
  --red: #e53935;
  --orange: #f5853a;
  --dark: #1f1f2e;
  --cream: #fff8f2;
  --text: #333;
  --muted: #6b6b6b;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Poppins", system-ui, sans-serif; color: var(--text); background: #fff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
.wrap { width: min(1100px, 92%); margin: 0 auto; }
h1, h2, h3 { color: var(--dark); line-height: 1.25; }
h2 { font-size: 1.7rem; margin: 0 0 18px; }

/* header */
.site-header { background: var(--red); position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; flex-wrap: wrap; }
.brand img { height: 64px; width: 64px; border-radius: 50%; background: #fff; object-fit: contain; border: 3px solid var(--orange); }
.site-header nav a { color: #fff; text-decoration: none; margin-left: 18px; font-weight: 500; }
.site-header nav a:hover { text-decoration: underline; }

/* hero */
.hero { background: linear-gradient(120deg, var(--orange), #ff6f3c); color: #fff; padding: 48px 0; }
.hero .wrap { display: grid; gap: 24px; align-items: center; }
.hero .tag { font-size: 1.05rem; margin: 0 0 8px; opacity: .95; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 6px; }
.hero img { border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.btn { display: inline-block; background: var(--dark); color: #fff; padding: 10px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; margin-top: 10px; }

/* sections */
section { padding: 52px 0; }
section.alt { background: var(--cream); }
.hindi { font-size: 1.1rem; font-weight: 600; color: var(--red); }
.join { display: grid; gap: 12px; padding: 0; list-style: none; margin: 16px 0 0; }
.join li { background: #fff; border-left: 4px solid var(--orange); padding: 12px 16px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
.stat { background: var(--dark); color: #fff; border-radius: 12px; padding: 18px; text-align: center; }
.stat b { display: block; font-size: 1.6rem; color: var(--orange); }

/* city cards */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.card .thumb { background: #fff; height: 150px; display: flex; align-items: center; justify-content: center; padding: 12px; border-bottom: 1px solid #eee; }
.card .thumb img { max-height: 126px; width: auto; object-fit: contain; }
.card .body { padding: 16px; }
.card h3 { margin: 0 0 4px; }
.card .meta { color: var(--muted); font-size: .92rem; margin: 0 0 10px; }
.card a.more { font-weight: 600; text-decoration: none; color: var(--orange); }

/* schedule table */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #eee; }
th { background: var(--red); color: #fff; font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* gallery */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.gallery img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; background: #eee; }

/* city page */
.crumb { font-size: .9rem; color: var(--muted); padding-top: 22px; }
.crumb a { color: var(--muted); }
.city-hero { text-align: center; padding: 24px 0 8px; }
.city-hero img { margin: 0 auto; max-height: 340px; width: auto; }
.facts { display: grid; gap: 12px; margin: 22px 0; }
.fact { background: var(--cream); border-radius: 12px; padding: 14px 18px; }
.fact small { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.fact div { font-weight: 600; font-size: 1.05rem; }
.city-text p { font-size: 1.05rem; }
.agenda li { margin: 6px 0; }

/* contact + footer */
.contact p { margin: 6px 0; }
footer { background: var(--dark); color: #d7d7e0; padding: 26px 0; font-size: .92rem; }
footer a { color: #fff; }

/* responsive */
@media (min-width: 640px) {
  .hero .wrap { grid-template-columns: 1.2fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .join { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

/* mobile menu: CSS-only (tap the menu icon to open or close) */
.menu-toggle { display: none; }
.menu-btn { display: none; color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; padding: 4px 8px; user-select: none; }
@media (max-width: 759px) {
  .menu-btn { display: block; margin-left: auto; }
  .site-header nav { display: none; width: 100%; flex-direction: column; }
  .menu-toggle:checked ~ nav { display: flex; }
  .site-header nav a { margin: 0; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.25); }
}

/* ===== v3: dropdown, stat cards, city cards, footer ===== */
.site-header .wrap { position: relative; }
.dropdown { position: relative; display: inline-block; margin-left: 18px; }
.dropdown summary { list-style: none; color: #fff; font-weight: 500; cursor: pointer; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: " \25BE"; font-size: .8em; }
.submenu { position: absolute; top: calc(100% + 14px); right: 0; background: #fff; border-radius: 14px; box-shadow: 0 16px 36px rgba(0,0,0,.22); padding: 10px; min-width: 300px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; z-index: 20; }
.submenu a { color: var(--dark); padding: 9px 12px; border-radius: 8px; white-space: nowrap; margin: 0; font-size: .95rem; }
.submenu a:hover { background: var(--cream); color: var(--red); text-decoration: none; }

.stat { color: #fff; border-radius: 16px; padding: 22px 14px; text-align: center; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.stat span { display: block; font-size: 1.8rem; margin-bottom: 4px; }
.stat b { display: block; font-size: 1.9rem; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.2); }
.stat.s1 { background: linear-gradient(135deg, #f5853a, #ff6f3c); }
.stat.s2 { background: linear-gradient(135deg, #e53935, #ff7043); }
.stat.s3 { background: linear-gradient(135deg, #7e57c2, #ab47bc); }
.stat.s4 { background: linear-gradient(135deg, #00897b, #26a69a); }

.card .thumb { background: linear-gradient(180deg, #fff, #fff4ea); }
.card .meta { color: var(--text); font-size: .9rem; line-height: 1.5; }
.excerpt { font-size: .95rem; color: var(--muted); margin: 0 0 10px; }

.site-footer { background: linear-gradient(135deg, #1f1f2e 0%, #3a1d4a 60%, #5a1f2e 100%); color: #e8e8f0; padding: 0; margin-top: 0; }
.foot-grid { display: grid; gap: 28px; padding: 40px 0 26px; grid-template-columns: 1fr; }
.site-footer h3 { color: #fff; margin: 0 0 8px; font-size: 1.3rem; }
.site-footer h4 { color: var(--orange); margin: 0 0 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer p { margin: 6px 0; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; display: block; padding: 3px 0; font-size: .95rem; }
.site-footer a:hover { color: var(--orange); }
.foot-cities { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.15); text-align: center; padding: 16px; font-size: .85rem; opacity: .85; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

/* mobile: dropdown fills the menu column */
@media (max-width: 759px) {
  .dropdown { display: block; margin: 0; width: 100%; border-top: 1px solid rgba(255,255,255,.25); }
  .dropdown summary { padding: 12px 0; display: block; }
  .submenu { position: static; box-shadow: none; background: rgba(0,0,0,.18); border-radius: 10px; min-width: 0; margin: 4px 0 8px; }
  .submenu a { color: #fff; }
  .submenu a:hover { background: rgba(255,255,255,.15); color: #fff; }
}
/* dropdown colours need higher specificity than the nav link rule */
.site-header nav .submenu a { color: var(--dark); }
.site-header nav .submenu a:hover { color: var(--red); background: var(--cream); }
@media (max-width: 759px) {
  .site-header nav .submenu a { color: #fff; }
  .site-header nav .submenu a:hover { color: #fff; background: rgba(255,255,255,.15); }
}

/* ===== v4: colourful stat cards (no black) ===== */
.stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat {
  position: relative; overflow: hidden; color: #fff; border-radius: 20px;
  padding: 24px 14px; text-align: center; font-weight: 500; font-size: .95rem;
  box-shadow: 0 12px 26px rgba(0,0,0,.14); transition: transform .2s ease;
}
.stat:hover { transform: translateY(-4px); }
.stat::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.16); right: -36px; top: -36px; }
.stat span {
  display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
  border-radius: 50%; background: rgba(255,255,255,.25); font-size: 1.6rem; margin-bottom: 10px;
}
.stat b { display: block; font-size: 2rem; font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 4px; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.stat.s1 { background: linear-gradient(135deg, #ff9a3c, #ff5e62); }
.stat.s2 { background: linear-gradient(135deg, #f72585, #b5179e); }
.stat.s3 { background: linear-gradient(135deg, #4361ee, #3a0ca3); }
.stat.s4 { background: linear-gradient(135deg, #00b4d8, #0077b6); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
