/* Anjuman Society Atmakur — premium red, bilingual, responsive (mobile + desktop) */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #9b1c1c; --red-dark: #7a1414; --gold: #d4af37;
  --bg: #f4f1ee; --line: #e2ddd7; --ink: #1c1c1c; --maxw: 1080px;
}
html, body { height: 100%; }
body {
  font-family: "Noto Sans Telugu", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--ink); min-height: 100vh; overflow-x: hidden;
  display: flex; flex-direction: column;
}
#app { display: flex; flex-direction: column; min-height: 100vh; }
.boot { text-align: center; padding: 80px 20px; color: #888; }
/* crawlable hero shown before JS renders the app */
.seo-hero { max-width: 720px; margin: 0 auto; padding: 28px 20px; line-height: 1.6; }
.seo-hero h1 { font-size: 22px; color: var(--red); margin-bottom: 14px; }
.seo-hero p, .seo-hero ul { font-size: 14px; color: #333; margin-bottom: 12px; }
.seo-hero ul { padding-left: 20px; }
.seo-hero a { color: var(--red); font-weight: 600; }
.center { width: 100%; max-width: var(--maxw); margin: 0 auto; }

/* ===== brand (logo left, title beside it) ===== */
.brand {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: #fff; display: flex; flex-direction: row; align-items: center;
  gap: 14px; padding: 16px 20px; position: sticky; top: 0; z-index: 20;
}
.brand img {
  width: 60px; height: 60px; border-radius: 50%; background: #fff;
  padding: 5px; object-fit: contain; box-shadow: 0 0 0 2px var(--gold); flex-shrink: 0;
}
.brand .bt { flex: 1; min-width: 0; }
.brand h1 { font-size: 22px; font-weight: 800; line-height: 1.2;
  white-space: normal; overflow-wrap: break-word; word-break: break-word; }
.brand .sub { font-size: 12.5px; color: #ffffffc8; margin-top: 4px; }
.brand .seva { font-size: 11.5px; color: var(--gold); margin-top: 4px; font-weight: 600; }
.brand .lang {
  flex-shrink: 0; background: #ffffff1f; border: 1px solid #ffffff66; color: #fff;
  cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 9px 14px; border-radius: 8px; white-space: nowrap;
}
.brand .lang:hover { background: #ffffff33; }

/* ===== nav ===== */
nav { background: var(--red-dark); position: sticky; top: 0; z-index: 19; }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; display: flex; overflow-x: auto; scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
nav a {
  flex: 0 0 auto; color: #ffffffb5; text-decoration: none; font-size: 14px;
  padding: 13px 18px; white-space: nowrap; border-bottom: 3px solid transparent; font-weight: 600;
}
nav a.active { color: #fff; border-bottom-color: var(--gold); }
nav a:hover { color: #fff; }

main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 18px; }
main.narrow { max-width: 720px; }
.ask { font-size: 13.5px; font-weight: 700; color: #777; margin-bottom: 12px; }
.muted { color: #777; font-size: 12.5px; }

/* ===== home ===== */
.cta {
  background: linear-gradient(135deg,#fff,#fbf7f3); border: 1px solid var(--line);
  border-radius: 16px; padding: 30px 20px; text-align: center; margin-bottom: 20px;
}
.cta h2 { font-size: 22px; color: var(--red); margin-bottom: 8px; }
.cta p { font-size: 14px; color: #555; margin-bottom: 18px; }
.cta .go { display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  padding: 13px 28px; border-radius: 10px; font-weight: 700; font-size: 16px; }
.cta .go:hover { background: var(--red-dark); }
.eragrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.era { display: flex; align-items: center; gap: 14px; color: #fff; border-radius: 14px;
  padding: 20px; text-decoration: none; transition: transform .12s; }
.era:hover { transform: translateY(-2px); }
.e2002 { background: linear-gradient(135deg,#9b1c1c,#5e0f0f); }
.e2025 { background: linear-gradient(135deg,#b3541c,#6e2f0c); }
.era .yr { border: 1.2px solid var(--gold); border-radius: 10px; padding: 12px 14px;
  font-size: 21px; font-weight: 800; background: #ffffff22; }
.era .et { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.era .et b { font-size: 17px; }
.era .et small { color: #ffffffc4; font-size: 12.5px; }
.era .et em { color: var(--gold); font-style: normal; font-size: 13.5px; font-weight: 700; }
.era .arr { font-size: 24px; color: #ffffffb0; }
.tip { background: #fff8e9; border: 1px solid #e8d9a8; border-radius: 10px;
  padding: 14px; font-size: 13px; line-height: 1.6; margin-top: 16px; }

.infocard { background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; margin-bottom: 14px; font-size: 14.5px; line-height: 1.65; }
.infocard h3 { font-size: 16px; color: var(--red); margin-bottom: 8px; }

/* ===== search ===== */
.searchwrap { background: var(--red); position: sticky; top: 0; z-index: 18; }
.searchwrap-in { max-width: var(--maxw); margin: 0 auto; padding: 14px 18px 16px; }
.lbl { color: #fff; font-size: 13.5px; font-weight: 700; padding: 2px 2px 10px; }
#q { width: 100%; height: 50px; border: 0; border-radius: 10px; padding: 0 16px;
  font-size: 16px; font-family: inherit; outline: none; }
.filt { display: flex; gap: 10px; margin-top: 11px; }
.filt select { flex: 1; height: 40px; border-radius: 8px; font-family: inherit; font-size: 13.5px;
  border: 1px solid #ffffff66; background: #ffffff1c; color: #fff; padding: 0 10px; max-width: 420px; }
.filt select option { color: #1c1c1c; }
.cnt { color: #fff; font-size: 13px; font-weight: 600; background: #ffffff1c;
  border: 1px solid #ffffff66; padding: 10px 14px; border-radius: 8px; white-space: nowrap; }
.ps-toggle { margin-top: 10px; background: none; border: 0; color: #ffe9c2; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 600; text-decoration: underline;
  padding: 2px 0; }
.del-toggle { margin-left: 16px; color: #ffd0d0; }
.ps-find { margin-top: 10px; display: flex; gap: 8px; max-width: 480px; }
.ps-find[hidden] { display: none; }
.ps-find input { flex: 1; min-width: 0; height: 42px; border: 0; border-radius: 8px;
  padding: 0 12px; font-size: 15px; font-family: inherit; outline: none; }
.ps-find button { flex-shrink: 0; height: 42px; padding: 0 18px; border: 0; border-radius: 8px;
  background: var(--gold); color: #4a3500; font-weight: 700; font-family: inherit;
  font-size: 14px; cursor: pointer; }

.results { padding: 14px 18px 80px; }
.loadbox { text-align: center; padding: 60px 24px; color: #666; font-size: 13.5px; }
.bar { height: 9px; background: #e4ddd5; border-radius: 6px; overflow: hidden; margin-bottom: 14px; max-width: 360px; margin-left:auto; margin-right:auto; }
.bar i { display: block; height: 100%; width: 2%; background: var(--red); transition: width .15s; }
.none { text-align: center; color: #666; padding: 40px 20px; font-size: 16px; }

.hintgrid, .rgrid, .eragrid, .boothgrid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.hints .card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 14px; }
.hints small { color: #666; }

.vcard { background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; display: flex; gap: 12px; align-items: center; cursor: pointer; transition: border-color .1s; }
.vcard:hover { border-color: var(--red); }
.badge { min-width: 52px; text-align: center; background: #fbf0f0; border: 1px solid #9b1c1c44;
  border-radius: 8px; padding: 6px 4px; display: flex; flex-direction: column; }
.badge b { color: var(--red); font-size: 13px; }
.badge small { font-size: 9.5px; color: #777; }
.vmain { flex: 1; min-width: 0; }
.vname { font-size: 15.5px; font-weight: 600; }
.vname.del { text-decoration: line-through; color: #888; }
.dup { color: #e65100; font-size: 12px; }
.vsub { font-size: 12.5px; color: #555; margin-top: 2px; }
.vside { text-align: right; font-size: 12px; font-weight: 600; color: #555; display: flex; flex-direction: column; }
.vside small { font-weight: 400; font-size: 11px; color: #999; }
.more { width: 100%; max-width: 360px; margin: 6px auto 0; display: block; padding: 13px;
  border: 1px dashed var(--red); background: #fff; color: var(--red); border-radius: 10px;
  font-family: inherit; font-size: 14px; cursor: pointer; }

/* ===== detail sheet (bottom on mobile, centered modal on desktop) ===== */
.overlay { position: fixed; inset: 0; background: #0008; z-index: 40;
  display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 760px; border-radius: 16px 16px 0 0;
  max-height: 88vh; overflow-y: auto; }
.sheet-hd { background: var(--red); color: #fff; padding: 18px 22px; }
.sheet-hd h2 { font-size: 21px; }
.sheet-hd p { font-size: 12.5px; color: #ffffffc4; margin-top: 4px; }
.sheet-body { padding: 16px 22px 28px; }
.drow { display: flex; padding: 7px 0; font-size: 13.5px; gap: 8px; border-bottom: 1px solid #f0ece8; }
.drow span { width: 175px; color: #666; font-size: 12.5px; flex-shrink: 0; }
.drow b { font-size: 14.5px; word-break: break-word; }
.sheet-acts { display: flex; gap: 12px; margin-top: 18px; }
.sheet-acts button { flex: 1; padding: 14px; border-radius: 10px; border: 1px solid var(--red);
  background: #fff; color: var(--red); font-family: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.sheet-acts .wa { background: #25d366; border: 0; color: #fff; }

/* booths */
.booth { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.booth-hd { display: flex; align-items: center; gap: 10px; }
.bno { background: #fbf0f0; border: 1px solid #9b1c1c55; color: var(--red); border-radius: 8px;
  padding: 6px 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.booth-hd b { flex: 1; font-size: 14.5px; }
.booth-hd small { color: #888; font-size: 11.5px; white-space: nowrap; }
.baddr { margin-top: 8px; font-size: 13px; color: #333; line-height: 1.45; }

/* disclaimer */
.discwrap { position: fixed; inset: 0; background: #0009; z-index: 60; display: flex;
  align-items: center; justify-content: center; padding: 16px; }
.disc { background: #fff; border-radius: 14px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; }
.disc-hd { background: var(--red); color: #fff; padding: 16px 20px; border-radius: 14px 14px 0 0; }
.disc-hd h2 { font-size: 18px; }
.disc-b { padding: 16px; }
.disc-b .card { background: #faf7f4; border: 1px solid var(--line); border-radius: 10px;
  padding: 13px; margin-bottom: 10px; font-size: 13.8px; line-height: 1.55; }
.agree { width: calc(100% - 32px); margin: 0 16px 16px; padding: 14px; border: 0; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; }

footer { background: var(--red-dark); color: #ffffffb5; text-align: center; font-size: 12px;
  padding: 20px; line-height: 1.7; }
footer b { color: #fff; }
.craft { margin-top: 10px; padding-top: 10px; border-top: 1px solid #ffffff22; font-size: 11.5px; }
.craft a { color: var(--gold); text-decoration: none; font-weight: 700; }
.craft a:hover { text-decoration: underline; }
.flinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #ffffff22; }
.flinks a { color: #ffffffcf; text-decoration: none; font-size: 12.5px; }
.flinks a:hover { color: #fff; text-decoration: underline; }

/* long-form content pages */
main.article { padding-bottom: 30px; }
.page-h { color: var(--red); font-size: 22px; margin: 6px 0 14px; }
.article p { line-height: 1.75; margin-bottom: 10px; color: #2a2a2a; }
.article .infocard p { margin-bottom: 8px; }
.article a { color: var(--red); font-weight: 600; }
.article code { background: #f1ece9; padding: 1px 6px; border-radius: 5px; font-size: 13px; }
/* ad slots */
.adslot { margin: 16px auto; max-width: 720px; min-height: 0; text-align: center; overflow: hidden; }
.adslot:empty { display: none; }

/* narrow phones */
@media (max-width: 480px) {
  .brand { padding: 14px 12px; gap: 11px; }
  .brand img { width: 50px; height: 50px; }
  .brand h1 { font-size: 16.5px; }
  .brand .sub { font-size: 10.5px; }
  .brand .seva { font-size: 9.5px; }
  .brand .lang { padding: 7px 9px; font-size: 12px; }
}

/* ===================== DESKTOP ===================== */
@media (min-width: 820px) {
  .brand { padding: 18px 28px; }
  .brand h1 { font-size: 24px; }
  .brand img { width: 60px; height: 60px; }
  nav a { padding: 14px 22px; font-size: 15px; }
  .home { padding-top: 26px; }
  .cta { padding: 44px 24px; }
  .cta h2 { font-size: 27px; }
  .eragrid { grid-template-columns: 1fr 1fr; gap: 18px; }   /* two datasets side by side */
  .hintgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rgrid { grid-template-columns: 1fr 1fr; gap: 10px; }      /* results in 2 columns */
  .boothgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .searchwrap-in { padding: 18px 28px 20px; }
  #q { height: 54px; font-size: 17px; }
  .overlay { align-items: center; }                          /* centered modal */
  .sheet { border-radius: 16px; max-width: 600px; max-height: 84vh; }
  .results { padding: 18px 28px 80px; }
}
@media (min-width: 1180px) {
  .rgrid { grid-template-columns: 1fr 1fr 1fr; }              /* 3 columns on wide screens */
  .boothgrid { grid-template-columns: 1fr 1fr 1fr; }
}
