/* UPPCS Diary — वेबसाइट */
:root {
  color-scheme: only light;
  --navy: #13294B;
  --blue: #1E4E9C;
  --accent: #C2410C;
  --accent-dark: #9A3412;
  --ink: #1A2233;
  --ink-2: #33415C;
  --muted: #4A5568;
  --line: #DDE3EE;
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --tint-blue: #EAF0FA;
  --tint-orange: #FDEBDD;
  --serif: 'Noto Serif Devanagari', Georgia, serif;
  --sans: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
html[lang="en"] body { font-size: 16px; }
img { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); margin: 0; line-height: 1.35; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; border-radius: 6px; }

/* top strip */
.topstrip { background: var(--navy); color: #DCE4F2; font-size: 14px; }
.topstrip-in { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.topstrip-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.topstrip a { color: #fff; text-decoration: none; font-weight: 600; }
.topstrip a:hover { text-decoration: underline; color: #fff; }
.langbtn { font: inherit; font-weight: 600; color: #fff; background: transparent; border: 1px solid #4A6496; border-radius: 999px; padding: 4px 12px; min-height: 32px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.langbtn:hover { background: #1E3A66; }

/* header */
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-in { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 800; }
.brand-sub { font-size: 14px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 17px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--navy); padding: 10px 0; }
.nav a:hover { color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; text-align: center; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #0C1C36; color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--tint-blue); color: var(--navy); }
.btn-lg { font-size: 18px; padding: 12px 24px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center-row { display: flex; justify-content: center; margin-top: 28px; }

.pill { display: inline-block; font-size: 14px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.pill-accent { background: var(--tint-orange); color: var(--accent-dark); }
.pill-onDark { background: var(--accent); color: #fff; align-self: flex-start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }

/* sections */
.section-first { padding-top: 28px; }
.section { padding-top: 56px; }
.section-head { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.section-title { font-size: clamp(26px, 3vw, 34px); }
.eyebrow { display: block; font-size: 15px; font-weight: 700; color: var(--accent-dark); }
.eyebrow-blue { color: var(--blue); }
.intro { margin-bottom: 22px; max-width: 900px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.lead { overflow: hidden; display: flex; flex-direction: column; }
.lead-visual { height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #33507F; background: #DCE6F5; }
.lead-visual-date { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--navy); }
.lead-body { padding: 22px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; }
.lead-title { font-size: clamp(24px, 2.8vw, 34px); }
.lead-summary { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.testad { background: var(--navy); color: #fff; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.testad-title { color: #fff; font-size: 40px; line-height: 1.2; }
.testad-lede { font-size: 18px; color: #DCE4F2; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex-shrink: 0; margin-top: 2px; }
.testad .btn-block { margin-top: auto; font-size: 18px; }

/* filters + news grid */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { font: inherit; font-size: 15px; font-weight: 600; padding: 8px 14px; min-height: 44px; border-radius: 999px; cursor: pointer; background: #fff; color: var(--navy); border: 1.5px solid #C7D1E2; }
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.grid-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 22px; }
.news { display: flex; flex-direction: column; overflow: hidden; }
.news-visual { height: 120px; display: flex; align-items: center; justify-content: center; color: #33507F; }
.news-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.news-cat { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--tint-blue); color: var(--blue); }
.news h3 { font-size: 19px; line-height: 1.45; }
.news p { font-size: 16px; color: var(--muted); }
.news a.more { margin-top: auto; font-weight: 700; text-decoration: none; padding-top: 6px; }
.news a.more:hover { text-decoration: underline; }
.v-national { background: #DCE6F5; }
.v-up { background: var(--tint-orange); color: #8A3A12; }
.v-economy { background: #DDF0EA; color: #1F5E4B; }
.v-international { background: #E7E3F5; color: #4A3B87; }
.v-scitech { background: #E2EEF7; color: #24557A; }
.v-sports { background: #FFF1D6; color: #7A5410; }
.empty { text-align: center; padding: 24px 0; }

/* features */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.feature { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature h3 { font-size: 24px; }
.feature p { color: var(--muted); }
.feature .btn { margin-top: auto; align-self: flex-start; }

/* banner */
.banner { background: var(--tint-orange); border: 1px solid #F4C8A6; border-radius: 18px; padding: 30px 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.banner-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.banner h2 { font-size: 30px; }
.banner p { font-size: 18px; color: var(--ink-2); }

/* app */
.appsec { padding: 36px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.appsec-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-size: 17px; font-weight: 600; color: var(--navy); }
.chips span { background: var(--tint-blue); padding: 12px 14px; border-radius: 10px; }
.phone { flex: 0 1 240px; height: 400px; margin: 0 auto; background: var(--navy); border-radius: 32px; padding: 14px; }
.phone-screen { height: 100%; background: var(--bg); border-radius: 22px; padding: 22px 16px; display: flex; flex-direction: column; gap: 12px; }
.phone-brand { font-family: var(--serif); font-weight: 800; color: var(--navy); font-size: 20px; }
.phone-line { height: 10px; border-radius: 6px; background: #C7D1E2; }
.phone-line.w80 { width: 80%; } .phone-line.w60 { width: 60%; }
.phone-card { height: 64px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.phone-card.short { height: 40px; }

/* telegram */
.tg { padding: 22px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; text-decoration: none; color: var(--navy); }
.tg:hover { border-color: var(--blue); color: var(--navy); }
.tg-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tg-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 180px; min-width: 0; }
.tg-name { font-size: 20px; font-weight: 700; }
.tg-handle { font-size: 15px; font-weight: 600; color: var(--blue); }
.qr { width: 120px; height: 128px; border: 1px solid var(--line); border-radius: 12px; }

/* footer */
.footer { margin-top: 64px; background: var(--navy); color: #C3CEE3; }
.footer-in { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.footer-about { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-about p { font-size: 15px; line-height: 1.7; }
.footer-about strong { color: #fff; }
.footer-brand { font-family: var(--serif); font-size: 24px; font-weight: 800; color: #fff; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; color: #fff; }
.footer-bottom { border-top: 1px solid #2A4270; text-align: center; padding: 16px 20px; font-size: 14px; }

/* language popup */
.lang-overlay { position: fixed; inset: 0; background: rgba(13, 26, 48, 0.62); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lang-overlay[hidden] { display: none; }
.lang-dialog { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 30px 26px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; box-shadow: 0 24px 60px rgba(13, 26, 48, 0.35); }
.lang-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.lang-title { font-size: 26px; }
.lang-sub { font-size: 18px; font-weight: 600; color: var(--muted); }
.lang-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; }
.lang-choice { font-family: inherit; cursor: pointer; border: 2px solid var(--navy); border-radius: 14px; padding: 16px 12px; min-height: 88px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lang-hi { background: var(--navy); color: #fff; }
.lang-en { background: #fff; color: var(--navy); }
.lang-choice:hover { box-shadow: 0 0 0 3px #C7D1E2; }
.lc-main { font-size: 26px; font-weight: 700; }
.lang-hi .lc-main { font-family: var(--serif); }
.lc-sub { font-size: 14px; opacity: .85; }
.lang-note { font-size: 14px; color: var(--muted); }

/* archive */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.day { padding: 18px 20px; text-decoration: none; color: var(--navy); display: flex; flex-direction: column; gap: 4px; }
.day:hover { border-color: var(--blue); color: var(--navy); }
.day-date { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.noscript { padding: 20px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .lead-visual { height: 170px; }
  .lead-body { padding: 18px 20px 22px; }
  .testad-title { font-size: 34px; }
  .nav { gap: 0 16px; font-size: 16px; }
  .appsec { padding: 24px; }
  .banner { padding: 24px; }
  .banner h2 { font-size: 24px; }
  .section { padding-top: 44px; }
}
@media (max-width: 420px) {
  .chips { grid-template-columns: minmax(0, 1fr); }
  .header .btn-accent { width: 100%; }
  .phone { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
