/* Hungama News 24 – brand theme (colours sampled from the logos) */
@font-face { font-family: 'Noto Sans Devanagari'; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-devanagari-devanagari-400-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Noto Sans Devanagari'; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-devanagari-devanagari-600-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Noto Sans Devanagari'; font-weight: 700; font-display: swap; src: url(../fonts/noto-sans-devanagari-devanagari-700-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Mukta'; font-weight: 400; font-display: swap; src: url(../fonts/mukta-devanagari-400-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Mukta'; font-weight: 400; font-display: swap; src: url(../fonts/mukta-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mukta'; font-weight: 500; font-display: swap; src: url(../fonts/mukta-devanagari-500-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: 'Mukta'; font-weight: 500; font-display: swap; src: url(../fonts/mukta-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Mukta'; font-weight: 600; font-display: swap; src: url(../fonts/mukta-devanagari-600-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: 'Mukta'; font-weight: 600; font-display: swap; src: url(../fonts/mukta-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Mukta'; font-weight: 700; font-display: swap; src: url(../fonts/mukta-devanagari-700-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: 'Mukta'; font-weight: 700; font-display: swap; src: url(../fonts/mukta-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Khand'; font-weight: 400; font-display: swap; src: url(../fonts/khand-devanagari-400-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: 'Khand'; font-weight: 400; font-display: swap; src: url(../fonts/khand-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Khand'; font-weight: 600; font-display: swap; src: url(../fonts/khand-devanagari-600-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: 'Khand'; font-weight: 600; font-display: swap; src: url(../fonts/khand-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Khand'; font-weight: 700; font-display: swap; src: url(../fonts/khand-devanagari-700-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: 'Khand'; font-weight: 700; font-display: swap; src: url(../fonts/khand-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Baloo 2'; font-weight: 700; font-display: swap; src: url(../fonts/baloo-2-devanagari-700-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: 'Baloo 2'; font-weight: 700; font-display: swap; src: url(../fonts/baloo-2-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Baloo 2'; font-weight: 400; font-display: swap; src: url(../fonts/baloo-2-devanagari-400-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url(../fonts/baloo-2-devanagari-800-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: 'Yatra One'; font-weight: 400; font-display: swap; src: url(../fonts/yatra-one-devanagari-400-normal.woff2) format('woff2'); unicode-range: U+0900-097F, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: 'Yatra One'; font-weight: 400; font-display: swap; src: url(../fonts/yatra-one-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --hn-red: #E00001; --hn-red-dark: #BA0102; --hn-blue: #020ACD; --hn-navy: #010448; --hn-orange: #F39821;
  --hn-gold: #F9AE3F; --hn-pink: #BE2561; --hn-bg: #f4f5fa; --hn-ink: #14162b; --hn-muted: #6b6f86; --hn-line: #e3e5ef;
  --bs-primary: #020ACD; --bs-primary-rgb: 2, 10, 205; --bs-danger: #E00001; --bs-danger-rgb: 224, 0, 1;
  --bs-warning: #F39821; --bs-warning-rgb: 243, 152, 33; --bs-link-color: #020ACD; --bs-link-color-rgb: 2, 10, 205;
  --bs-body-font-family: 'Mukta', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-border-radius: .55rem;
}
body { font-family: var(--bs-body-font-family); color: var(--hn-ink); background: var(--hn-bg); font-size: 1rem; }
h1, h2, h3, h4, .hn-head { font-family: 'Khand', 'Noto Sans Devanagari', sans-serif; font-weight: 700; letter-spacing: .1px; }
a { text-decoration: none; }
.btn { font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--hn-blue); --bs-btn-border-color: var(--hn-blue); --bs-btn-hover-bg: var(--hn-navy); --bs-btn-hover-border-color: var(--hn-navy); --bs-btn-active-bg: var(--hn-navy); }
.btn-danger, .btn-hn { --bs-btn-color:#fff; --bs-btn-bg: var(--hn-red); --bs-btn-border-color: var(--hn-red); --bs-btn-hover-bg: var(--hn-red-dark); --bs-btn-hover-border-color: var(--hn-red-dark); --bs-btn-hover-color:#fff; --bs-btn-active-bg: var(--hn-red-dark); --bs-btn-active-color:#fff; }
.btn-warning { --bs-btn-color:#111; --bs-btn-bg: var(--hn-gold); --bs-btn-border-color: var(--hn-gold); --bs-btn-hover-bg: var(--hn-orange); --bs-btn-hover-border-color: var(--hn-orange); }
.text-hn-red { color: var(--hn-red) !important; } .text-hn-blue { color: var(--hn-blue) !important; } .text-hn-navy { color: var(--hn-navy) !important; } .text-hn-orange { color: var(--hn-orange) !important; }
.bg-hn-red { background: var(--hn-red) !important; } .bg-hn-navy { background: var(--hn-navy) !important; } .bg-hn-blue { background: var(--hn-blue) !important; } .bg-hn-gold { background: var(--hn-gold) !important; }
.hn-stripe { height: 5px; background: linear-gradient(90deg, var(--hn-red) 0 40%, var(--hn-blue) 40% 70%, var(--hn-orange) 70% 100%); }
.card { border: 1px solid var(--hn-line); box-shadow: 0 1px 2px rgba(1,4,72,.04); }
.card-header { background: #fff; font-weight: 700; border-bottom: 1px solid var(--hn-line); }
.form-label { font-weight: 600; font-size: .92rem; margin-bottom: .25rem; }
.table > :not(caption) > * > * { padding: .55rem .6rem; }
.table thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .3px; color: var(--hn-muted); background: #fafbff; white-space: nowrap; }
.empty-state { text-align: center; color: var(--hn-muted); padding: 2.5rem 1rem; }
.empty-state i { font-size: 2.2rem; display: block; margin-bottom: .4rem; color: #c3c6d8; }
.small-muted { font-size: .85rem; color: var(--hn-muted); }
.kpi { border-radius: .8rem; padding: 1rem 1.1rem; color: #fff; position: relative; overflow: hidden; min-height: 104px; }
.kpi .v { font-family: 'Khand', sans-serif; font-size: 2rem; font-weight: 700; line-height: 1.1; }
.kpi .l { opacity: .9; font-size: .9rem; }
.kpi i { position: absolute; right: .8rem; top: .7rem; font-size: 2.2rem; opacity: .25; }
.kpi-red { background: linear-gradient(135deg, var(--hn-red), var(--hn-red-dark)); }
.kpi-blue { background: linear-gradient(135deg, var(--hn-blue), var(--hn-navy)); }
.kpi-orange { background: linear-gradient(135deg, var(--hn-gold), var(--hn-orange)); color: #1b1300; }
.kpi-pink { background: linear-gradient(135deg, var(--hn-pink), #8c1846); }
.kpi-navy { background: linear-gradient(135deg, #1d2273, var(--hn-navy)); }
.kpi-green { background: linear-gradient(135deg, #12a26a, #0b7048); }

/* ---------- Admin & member shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 262px; background: var(--hn-navy); color: #c9cbe8; flex-shrink: 0; position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 1030; transition: transform .2s; }
.sidebar .brand { background: #fff; padding: .7rem .9rem; display: block; border-bottom: 4px solid var(--hn-red); }
.sidebar .brand img { max-width: 100%; height: 52px; object-fit: contain; }
.sidebar .nav-section { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: #7f83b8; padding: 1rem 1.1rem .3rem; }
.sidebar a.nav-link { color: #d6d8f3; padding: .48rem 1.1rem; display: flex; align-items: center; gap: .65rem; font-size: .95rem; border-left: 3px solid transparent; }
.sidebar a.nav-link i { font-size: 1.05rem; width: 1.2rem; text-align: center; color: #9ea2d8; }
.sidebar a.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar a.nav-link.active { background: rgba(249,174,63,.12); color: #fff; border-left-color: var(--hn-gold); }
.sidebar a.nav-link.active i { color: var(--hn-gold); }
.main { margin-left: 262px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid var(--hn-line); padding: .55rem 1.2rem; display: flex; align-items: center; gap: .8rem; position: sticky; top: 0; z-index: 1020; }
.topbar .title { font-family: 'Khand', sans-serif; font-weight: 700; font-size: 1.35rem; margin: 0; color: var(--hn-navy); }
.content { padding: 1.2rem; flex: 1; }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.filters { background: #fff; border: 1px solid var(--hn-line); border-radius: .6rem; padding: .7rem; margin-bottom: 1rem; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .main { margin-left: 0; }
}
.badge { font-weight: 600; }
.legal-banner { background: #fff4e0; border: 1px solid var(--hn-gold); border-left: 5px solid var(--hn-orange); padding: .6rem .9rem; border-radius: .5rem; font-size: .92rem; }

/* auth pages */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  background: radial-gradient(circle at 15% 10%, rgba(224,0,1,.18), transparent 40%), radial-gradient(circle at 85% 90%, rgba(2,10,205,.22), transparent 45%), #f2f3f9; }
.auth-card { width: 100%; max-width: 460px; background: #fff; border-radius: 1rem; box-shadow: 0 20px 60px rgba(1,4,72,.15); overflow: hidden; }
.auth-card .head { padding: 1.1rem; text-align: center; border-bottom: 4px solid var(--hn-red); }
.auth-card .head img { max-width: 300px; width: 100%; }
.auth-card .body { padding: 1.4rem 1.5rem 1.6rem; }

/* ---------- Public website ---------- */
.site-top { background: var(--hn-navy); color: #cfd1ef; font-size: .85rem; }
.site-top a { color: #fff; }
.site-header { background: #fff; }
.site-header .logo img { height: 74px; max-width: 100%; object-fit: contain; }
.site-nav { background: var(--hn-red); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.site-nav .nav-scroll { display: flex; overflow-x: auto; scrollbar-width: none; }
.site-nav .nav-scroll::-webkit-scrollbar { display: none; }
.site-nav a { color: #fff; font-weight: 700; padding: .62rem .85rem; white-space: nowrap; font-size: 1.02rem; }
.site-nav a:hover, .site-nav a.active { background: var(--hn-red-dark); color: var(--hn-gold); }
.site-nav a.epaper-link { background: var(--hn-gold); color: #1a1100; }
.ticker { background: #fff; border-bottom: 1px solid var(--hn-line); display: flex; align-items: stretch; overflow: hidden; }
.ticker .label { background: var(--hn-blue); color: #fff; font-weight: 700; padding: .4rem .9rem; white-space: nowrap; font-family: 'Khand', sans-serif; font-size: 1.1rem; }
.ticker .track { flex: 1; overflow: hidden; position: relative; }
.ticker .move { display: inline-flex; gap: 3rem; white-space: nowrap; padding: .45rem 0; animation: tick 45s linear infinite; }
.ticker .move a { color: var(--hn-ink); font-weight: 600; }
.ticker .move a::before { content: '●'; color: var(--hn-red); margin-right: .5rem; font-size: .7rem; vertical-align: middle; }
.ticker:hover .move { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker .move { animation: none; } }
.section-title { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--hn-navy); margin: 1.4rem 0 .9rem; }
.section-title h2 { background: var(--hn-navy); color: #fff; margin: 0; font-size: 1.35rem; padding: .3rem 1rem .1rem; border-radius: .4rem .4rem 0 0; }
.section-title a { font-weight: 700; font-size: .9rem; }
.news-card { background: #fff; border-radius: .7rem; overflow: hidden; border: 1px solid var(--hn-line); height: 100%; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.news-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(1,4,72,.1); }
.news-card .ph { aspect-ratio: 16/10; background: #dfe2ee center/cover no-repeat; position: relative; }
.news-card .cat { position: absolute; left: .6rem; top: .6rem; background: var(--hn-red); color: #fff; font-size: .78rem; font-weight: 700; padding: .12rem .55rem; border-radius: .3rem; }
.news-card .bd { padding: .7rem .85rem .9rem; flex: 1; display: flex; flex-direction: column; }
.news-card h3 { font-size: 1.22rem; line-height: 1.25; margin: 0 0 .4rem; color: var(--hn-ink); }
.news-card .meta { margin-top: auto; font-size: .82rem; color: var(--hn-muted); }
.hero { position: relative; border-radius: .9rem; overflow: hidden; min-height: 420px; background: #222 center/cover no-repeat; display: flex; align-items: flex-end; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(1,4,72,.92)); }
.hero .cap { position: relative; z-index: 1; padding: 1.3rem; color: #fff; }
.hero h1 { font-size: 2.3rem; line-height: 1.12; margin: .4rem 0; }
.list-news a { display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px dashed var(--hn-line); color: var(--hn-ink); }
.list-news img { width: 96px; height: 66px; object-fit: cover; border-radius: .4rem; flex-shrink: 0; background: #dfe2ee; }
.list-news .t { font-weight: 700; line-height: 1.25; font-size: .98rem; }
.ad-slot { text-align: center; margin: 1rem 0; }
.ad-slot .lbl { font-size: .7rem; color: var(--hn-muted); text-transform: uppercase; letter-spacing: 1px; }
.ad-slot img { max-width: 100%; border-radius: .5rem; }
.article h1 { font-size: 2.2rem; line-height: 1.15; }
.article .body { font-size: 1.15rem; line-height: 1.85; }
.article .body p { margin-bottom: 1rem; }
.share-bar a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-right: .3rem; }
.site-footer { background: var(--hn-navy); color: #c3c6e6; margin-top: 2.5rem; }
.site-footer a { color: #fff; }
.site-footer .logo-box { background: #fff; border-radius: .6rem; padding: .6rem; display: inline-block; }
.cta-sub { background: linear-gradient(120deg, var(--hn-red), var(--hn-pink) 55%, var(--hn-blue)); color: #fff; border-radius: 1rem; padding: 1.4rem; }

/* ---------- E-paper reader ---------- */
.ep-bar { background: var(--hn-navy); color: #fff; padding: .45rem .7rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; position: sticky; top: 0; z-index: 50; }
.ep-bar .btn { --bs-btn-padding-y: .25rem; }
.ep-stage { background: #3a3d52; overflow: auto; height: calc(100vh - 160px); min-height: 420px; position: relative; touch-action: pan-x pan-y pinch-zoom; }
.ep-page { position: relative; margin: 1rem auto; box-shadow: 0 6px 28px rgba(0,0,0,.45); background: #fff; transform-origin: top center; }
.ep-page img { width: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.ep-hot { position: absolute; border: 2px solid transparent; border-radius: 3px; transition: background .15s; }
.ep-hot:hover, .ep-stage.show-hot .ep-hot { background: rgba(249,174,63,.25); border-color: var(--hn-orange); }
.ep-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .6rem; background: #24263a; }
.ep-thumbs a { flex-shrink: 0; width: 86px; text-align: center; color: #cfd1ef; font-size: .78rem; }
.ep-thumbs img { width: 86px; border: 3px solid transparent; border-radius: 4px; background: #fff; }
.ep-thumbs a.active img { border-color: var(--hn-gold); }
.ep-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(1,4,72,.6); backdrop-filter: blur(6px); }
.ep-stage:fullscreen { height: 100vh; }

/* ---------- Template editor & studio ---------- */
.ed-wrap { display: grid; grid-template-columns: 230px 1fr 300px; gap: .8rem; }
@media (max-width: 1199.98px) { .ed-wrap { grid-template-columns: 1fr; } }
.ed-stage { background: repeating-conic-gradient(#e7e8f0 0% 25%, #f6f6fb 0% 50%) 50% / 24px 24px; border-radius: .6rem; padding: 1rem; display: flex; justify-content: center; align-items: flex-start; min-height: 500px; overflow: auto; }
.ed-canvas-wrap { position: relative; box-shadow: 0 6px 30px rgba(0,0,0,.2); }
.ed-canvas-wrap canvas { display: block; width: 100%; height: auto; }
.ed-overlay { position: absolute; inset: 0; }
.ed-box { position: absolute; border: 1px dashed rgba(2,10,205,.35); cursor: move; }
.ed-box.sel { border: 2px solid var(--hn-red); background: rgba(224,0,1,.06); }
.ed-box .hd { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; background: var(--hn-red); border: 2px solid #fff; border-radius: 3px; cursor: nwse-resize; }
.ed-box.locked { cursor: default; }
.ed-safe { position: absolute; border: 1px dashed rgba(243,152,33,.8); pointer-events: none; }
.layer-list .list-group-item { cursor: pointer; padding: .4rem .6rem; font-size: .9rem; display: flex; align-items: center; gap: .4rem; }
.layer-list .list-group-item.active { background: var(--hn-navy); border-color: var(--hn-navy); }
.props .form-control, .props .form-select { padding: .25rem .5rem; font-size: .88rem; }
.props label { font-size: .8rem; font-weight: 600; color: var(--hn-muted); margin-bottom: .1rem; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.tpl-card { background: #fff; border: 1px solid var(--hn-line); border-radius: .6rem; overflow: hidden; display: block; color: var(--hn-ink); transition: box-shadow .15s; }
.tpl-card:hover { box-shadow: 0 8px 24px rgba(1,4,72,.14); }
.tpl-card canvas { width: 100%; display: block; background: #eef0f6; }
.tpl-card .cap { padding: .45rem .6rem; font-size: .86rem; font-weight: 600; }
.warn-list { font-size: .88rem; }

/* page crop / hotspot drawing */
.draw-wrap { position: relative; display: inline-block; max-width: 100%; user-select: none; }
.draw-wrap img { max-width: 100%; display: block; }
.draw-rect { position: absolute; border: 2px solid var(--hn-red); background: rgba(224,0,1,.15); }
.draw-rect span { position: absolute; left: 0; top: -1.4rem; background: var(--hn-red); color: #fff; font-size: .72rem; padding: 0 .3rem; border-radius: .2rem; white-space: nowrap; }
.page-sort .pg { cursor: grab; }
.page-sort .pg img { width: 100%; border-radius: .3rem; border: 1px solid var(--hn-line); background: #fff; }
.receipt { max-width: 760px; margin: auto; background: #fff; }
@media print { .no-print { display: none !important; } body { background: #fff; } .main { margin: 0; } .sidebar, .topbar { display: none !important; } }
