/* Rastrabani design – header, footer and home blocks.
   Colours/fonts come from CSS variables set in Customize → Rastrabani Design. */

:root {
	--rb-primary: #d21f27; --rb-nav-bg: #003399; --rb-nav-text: #fff; --rb-nav-active: #ff4d4d;
	--rb-heading: #1c1c1c; --rb-text: #333; --rb-link-hover: #d21f27;
	--rb-bg-blue: #d9e1f2; --rb-bg-grey: #f4f5f7; --rb-topbar-bg: #f7f7f7;
	--rb-footer-bg: #003399; --rb-footer-text: #fff;
	--rb-font: "Mukta", sans-serif; --rb-font-label: "Khand", sans-serif;
	--rb-container: 1140px; --rb-headline-size: 54px; --rb-title-size: 18px; --rb-body-size: 16px; --rb-nav-size: 19px; --rb-radius: 4px;
	--rb-gap: 24px; --rb-line: #e3e3e3;
}

body.rb-site { font-family: var(--rb-font); color: var(--rb-text); background: #fff; font-size: var(--rb-body-size); line-height: 1.6; }
.rb-site h1, .rb-site h2, .rb-site h3, .rb-site h4 { font-family: var(--rb-font); color: var(--rb-heading); }
.rb-site a { color: inherit; text-decoration: none; transition: color .15s; }
.rb-site a:hover, .rb-site a:focus { color: var(--rb-link-hover); }
.rb-site img { max-width: 100%; height: auto; }
.rb-site :focus-visible { outline: 2px solid var(--rb-primary); outline-offset: 2px; }
.rb-container { width: 100%; max-width: var(--rb-container); margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.rb-skip { position: absolute; left: -9999px; top: 0; z-index: 100000; background: #fff; padding: 8px 12px; }
.rb-skip:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- Header ---------- */
.rb-header__logo { text-align: center; padding: 18px 16px 14px; }
.rb-logo img { max-height: 110px; width: auto; display: inline-block; }
.rb-logo__text { font-size: 40px; font-weight: 700; color: var(--rb-primary); }
.rb-datebar { background: var(--rb-topbar-bg); }
.rb-datebar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; }
.rb-datebar__date { font-size: 16px; color: #333; }
.rb-datebar__iframe { width: 320px; max-width: 100%; height: 24px; border: 0; display: block; }
.rb-social { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; }
.rb-social a { display: inline-flex; color: #222; }
.rb-social a:hover { color: var(--rb-primary); }

.rb-nav { background: var(--rb-nav-bg); z-index: 999; }
.rb-nav.is-sticky { position: sticky; top: 0; }
.admin-bar .rb-nav.is-sticky { top: 32px; }
.rb-nav__in { display: flex; align-items: center; }
.rb-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.rb-menu li { position: relative; }
.rb-menu > li > a { display: block; padding: 9px 12px; color: var(--rb-nav-text); font-family: var(--rb-font-label); font-size: var(--rb-nav-size); font-weight: 600; line-height: 1.4; }
.rb-menu > li:first-child > a { padding-left: 0; }
.rb-menu > li.current-menu-item > a, .rb-menu > li > a:hover, .rb-menu > li.current-menu-ancestor > a { color: var(--rb-nav-active); }
.rb-menu .menu-item-has-children > a::after { content: " +"; }
.rb-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 190px; background: #fff; list-style: none; margin: 0; padding: 6px 0; box-shadow: 0 8px 24px rgba(0,0,0,.15); z-index: 1000; }
.rb-menu li:hover > .sub-menu, .rb-menu li:focus-within > .sub-menu { display: block; }
.rb-menu .sub-menu a { display: block; padding: 7px 14px; color: #222; font-family: var(--rb-font-label); font-size: 17px; }
.rb-menu .sub-menu .sub-menu { left: 100%; top: 0; }
.rb-nav__toggle { display: none; background: none; border: 0; padding: 12px 6px; cursor: pointer; }
.rb-nav__toggle span:not(.screen-reader-text) { display: block; width: 24px; height: 2px; background: var(--rb-nav-text); margin: 5px 0; }

.rb-ticker { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.rb-ticker__label { font-family: var(--rb-font-label); font-weight: 700; font-size: 22px; color: var(--rb-primary); white-space: nowrap; }
.rb-ticker__track { flex: 1; overflow: hidden; background: var(--rb-primary); border-radius: 4px; color: #fff; }
.rb-ticker__move { display: inline-flex; white-space: nowrap; animation: rb-marquee 60s linear infinite; padding: 3px 0; }
.rb-ticker__track:hover .rb-ticker__move { animation-play-state: paused; }
.rb-ticker__move a { color: #fff !important; padding: 0 28px; font-size: 15px; position: relative; }
.rb-ticker__move a::before { content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; background: #fff; border-radius: 50%; transform: translateY(-50%); }
@keyframes rb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .rb-ticker__move { animation: none; } }

.rb-ad { margin: 18px auto; text-align: center; }
.rb-ad img { display: block; margin: 0 auto; width: 100%; height: auto; }
.rb-ad--section { margin: 28px auto 0; }
.rb-header-ads:empty, .rb-top-ads:empty { display: none; }

/* ---------- Sections ---------- */
.rb-section { padding: 44px 0; }
.rb-bg-blue { background: var(--rb-bg-blue); }
.rb-bg-grey { background: var(--rb-bg-grey); }
.rb-head { position: relative; display: flex; align-items: flex-end; gap: 18px; border-bottom: 2px solid var(--rb-primary); margin-bottom: 26px; min-height: 36px; }
.rb-head__title { margin: 0; font-family: var(--rb-font-label) !important; font-size: 26px; font-weight: 700; line-height: 1; }
.rb-head__title, .rb-head__title a { background: var(--rb-primary); color: #fff !important; padding: 7px 10px 4px; display: inline-block; position: relative; }
.rb-head__title a { padding: 0; }
.rb-head__title::after { content: ""; position: absolute; left: 50%; bottom: -9px; margin-left: -8px; border: 8px solid transparent; border-top-color: var(--rb-primary); border-bottom: 0; }
.rb-head__more { margin-left: auto; font-size: 14px; font-weight: 600; color: #333; padding-bottom: 4px; white-space: nowrap; }
.rb-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding-bottom: 2px; }
.rb-tabs button { background: none; border: 0; border-left: 1px solid #ccc; padding: 2px 12px; font-family: var(--rb-font); font-size: 14px; font-weight: 600; color: #333; cursor: pointer; }
.rb-tabs button:first-child { border-left: 0; }
.rb-tabs button.is-active, .rb-tabs button:hover { color: var(--rb-primary); }

.rb-grid { display: grid; gap: var(--rb-gap); }
.rb-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rb-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rb-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rb-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; }
.rb-noimg { display: block; aspect-ratio: 16 / 10; background: #e9ecf2 linear-gradient(135deg, #e9ecf2, #dfe4ee); }
.rb-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rb-meta { font-size: 13px; color: #777; }
.rb-site article h3 { margin: 0; }

/* image boxes */
.rb-card__img, .rb-lead__img, .rb-biggrid__img, .rb-list__big-img, .rb-boxcard__img, .rb-ent__img, .rb-headline__img { display: block; overflow: hidden; border-radius: var(--rb-radius); }
.rb-card__img img, .rb-lead__img img, .rb-biggrid__img img, .rb-list__big-img img, .rb-boxcard__img img, .rb-ent__img img { width: 100%; object-fit: cover; display: block; transition: transform .35s; }
.rb-card__img img, .rb-list__big-img img, .rb-ent__img img { aspect-ratio: 16 / 10; }
.rb-lead__img img { aspect-ratio: 16 / 9; }
.rb-site a:hover img { transform: scale(1.03); }

/* Top headlines */
.rb-section--headlines { padding: 10px 0 20px; }
.rb-headline { text-align: center; padding: 30px 30px 34px; margin-bottom: 22px; }
.rb-headline--card { background: #fff; border: 1px solid #eee; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.rb-headline__title { font-size: var(--rb-headline-size); font-weight: 700; line-height: 1.25; margin: 0 0 12px; }
.rb-headline__by { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.rb-headline__by a { text-decoration: underline; }
.rb-avatar { border-radius: 50%; }
.rb-headline__img { max-width: 720px; margin: 0 auto; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.rb-headline__img img { width: 100%; max-height: 480px; object-fit: cover; display: block; }

/* lead + cards */
.rb-lead { margin-bottom: 24px; }
.rb-lead__title { font-size: calc(var(--rb-title-size) + 8px); font-weight: 700; line-height: 1.35; margin: 14px 0 6px !important; text-align: center; }
.rb-lead__excerpt { color: #555; margin: 0; }
.rb-card__title { font-size: var(--rb-title-size); font-weight: 600; line-height: 1.4; margin-top: 10px !important; }

/* list */
.rb-list { display: flex; flex-direction: column; }
.rb-list__big { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--rb-primary); }
.rb-list__big-title { font-size: var(--rb-title-size); font-weight: 700; line-height: 1.35; margin-top: 8px !important; }
.rb-list__item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rb-line); }
.rb-list__item:last-child { border-bottom: 0; }
.rb-list__img { position: relative; display: block; overflow: hidden; border-radius: var(--rb-radius); align-self: start; }
.rb-list__img img, .rb-list__img .rb-noimg { width: 96px; height: 72px; object-fit: cover; display: block; aspect-ratio: auto; }
.rb-list__title { font-size: calc(var(--rb-title-size) - 1px); font-weight: 600; line-height: 1.4; }
.rb-badge { position: absolute; top: 4px; right: 4px; background: var(--rb-primary); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 2px; line-height: 1.5; }

/* 3-column list (प्रदेश) */
.rb-cols3 .rb-list { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 28px; }
.rb-cols3 .rb-list__item { border-bottom: 0; padding: 10px 0; }

/* big + grid (समाचार) */
.rb-biggrid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--rb-gap); align-items: start; }
.rb-biggrid__img img { aspect-ratio: 16 / 11; }
.rb-biggrid__title { font-size: calc(var(--rb-title-size) + 10px); font-weight: 700; text-align: center; line-height: 1.35; margin-top: 14px !important; }
.rb-biggrid .rb-grid--2 { gap: 18px; }
.rb-biggrid .rb-card__img img { aspect-ratio: 1 / 0.88; }

/* box cards (अन्तर्वार्ता, अर्थ) */
.rb-boxcard { position: relative; }
.rb-boxcard__img img { aspect-ratio: 16 / 10; }
.rb-boxcard__box { position: relative; background: var(--rb-bg-blue); margin: -40px 14px 0; padding: 20px 20px 26px; }
.rb-bg-blue .rb-boxcard__box { background: #ececec; }
.rb-boxcard__title { font-size: var(--rb-title-size); font-weight: 700; line-height: 1.4; padding-bottom: 10px; border-bottom: 2px solid #999; margin-bottom: 10px !important; }
.rb-boxcard__excerpt { font-size: 14px; color: #444; margin: 0; text-align: justify; }
.rb-boxcard__corner { position: absolute; right: 0; bottom: 0; border: 8px solid transparent; border-right-color: var(--rb-nav-bg); border-bottom-color: var(--rb-nav-bg); }
.rb-boxcard--flat .rb-boxcard__box { margin: 0; text-align: center; }
.rb-boxcard--flat .rb-boxcard__title { border-bottom: 0; padding-bottom: 0; font-size: calc(var(--rb-title-size) + 3px); }
.rb-boxcard--flat .rb-boxcard__img { border-radius: 0; }
.rb-roundcards { margin-top: 30px; }
.rb-roundcard { text-align: center; }
.rb-roundcard__img { display: block; width: 140px; height: 140px; margin: 0 auto -20px; border-radius: 50%; overflow: hidden; position: relative; z-index: 1; border: 4px solid #fff; }
.rb-roundcard__img img, .rb-roundcard__img .rb-noimg { width: 100%; height: 100%; object-fit: cover; }
.rb-roundcard__box { position: relative; background: #ececec; padding: 34px 16px 24px; }
.rb-roundcard .rb-boxcard__title { border: 0; padding: 0; font-size: calc(var(--rb-title-size) + 1px); }

/* three category columns */
.rb-triple__col { background: #fff; padding: 16px; }
.rb-bg-white .rb-triple__col { background: var(--rb-bg-grey); }
.rb-triple .rb-head__title { font-size: 24px; }
.rb-overlay { position: relative; margin-bottom: 8px; }
.rb-overlay__link { display: block; position: relative; overflow: hidden; color: #fff !important; }
.rb-overlay__link img, .rb-overlay__link .rb-noimg { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.rb-overlay__text { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.rb-overlay__title { display: block; font-size: calc(var(--rb-title-size) + 1px); font-weight: 700; line-height: 1.35; }
.rb-overlay__title--big { font-size: calc(var(--rb-title-size) + 10px); }
.rb-overlay__date { display: block; font-size: 13px; margin-top: 4px; }
.rb-triple .rb-list__item { border-bottom: 2px solid var(--rb-heading); }

/* entertainment */
.rb-ent { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--rb-gap); }
.rb-ent__title { font-size: calc(var(--rb-title-size) + 8px); font-weight: 700; line-height: 1.3; margin: 12px 0 6px !important; }
.rb-ent__excerpt { text-align: justify; font-size: 15px; margin: 6px 0 0; }
.rb-overlay--tall, .rb-overlay--tall .rb-overlay__link { height: 100%; }
.rb-overlay--tall .rb-overlay__link img { height: 100%; aspect-ratio: auto; min-height: 420px; }

/* photo mosaic */
.rb-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 160px; gap: 4px; }
.rb-mosaic__item { position: relative; overflow: hidden; display: block; color: #fff !important; }
.rb-mosaic__item.is-big { grid-row: span 2; }
.rb-mosaic__item img, .rb-mosaic__item .rb-noimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.rb-mosaic__title { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; font-weight: 600; line-height: 1.35; background: linear-gradient(transparent, rgba(0,0,0,.8)); }

/* video */
.rb-video { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rb-video__item { position: relative; aspect-ratio: 16 / 9; }
.rb-video__item.is-main { grid-column: 1 / -1; }
.rb-video__item iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.rb-video__embed iframe { max-width: 100%; }

/* ---------- Footer ---------- */
.rb-footer__band { background: #e4e4e4; padding: 14px 0; }
.rb-footer__band-in { display: flex; align-items: center; gap: 80px; }
.rb-footer__logo img { max-height: 48px; width: auto; }
.rb-social--boxed a { width: 46px; height: 46px; align-items: center; justify-content: center; background: var(--rb-footer-bg); color: #fff !important; }
.rb-social--boxed a:hover { background: var(--rb-primary); }
.rb-footer__main { background: var(--rb-footer-bg); color: var(--rb-footer-text); padding: 40px 0 30px; }
.rb-footer__main a, .rb-footer__main h2, .rb-footer__main h3, .rb-footer__main h4, .rb-footer__main .widget-title { color: var(--rb-footer-text) !important; }
.rb-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.rb-footer__name { font-size: 22px; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.rb-footer__name-en { font-size: 16px; letter-spacing: .5px; margin: 0 0 12px; }
.rb-footer__reg { font-size: 14px; margin: 0; }
.rb-footer__main hr { border: 0; border-top: 2px solid rgba(255,255,255,.7); margin: 14px 0; }
.rb-footer__contact { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 2; }
.rb-footer__col .widget { margin-bottom: 18px; }
.rb-footer__col img, .rb-footer__col iframe { max-width: 100%; }
.rb-footer__adbar { background: var(--rb-footer-bg); background-image: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)); padding: 18px 16px; border-top: 1px solid rgba(255,255,255,.15); }
.rb-footer__adbox { max-width: 420px; margin: 0 auto; text-align: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 14px; color: #fff; }
.rb-footer__adbox h4 { color: #fff !important; margin: 0 0 8px; font-size: 18px; }
.rb-footer__adbox a { color: #fff !important; margin: 0 12px; font-weight: 600; }
.rb-footer__copy { background: #e4e4e4; text-align: center; font-size: 13px; padding: 10px 0; color: #333; }
.rb-footer__copy a { color: var(--rb-nav-bg); }
.rb-totop { position: fixed; right: 18px; bottom: 18px; width: 38px; height: 38px; border: 0; border-radius: 4px; background: var(--rb-primary); color: #fff; font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 999; }
.rb-totop.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.rb-split, .rb-biggrid { grid-template-columns: 1fr; }
	.rb-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.rb-cols3 .rb-list { grid-template-columns: repeat(2, 1fr); }
	.rb-ent { grid-template-columns: 1fr 1fr; }
	.rb-overlay--tall { grid-column: 1 / -1; }
	.rb-overlay--tall .rb-overlay__link img { min-height: 0; aspect-ratio: 16 / 9; }
	.rb-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.rb-headline__title { font-size: min(var(--rb-headline-size), 40px); }
}
@media (max-width: 767px) {
	.rb-nav__toggle { display: block; }
	.rb-nav__in { flex-wrap: wrap; }
	.rb-menu { display: none; width: 100%; flex-direction: column; padding-bottom: 10px; }
	.rb-menu.is-open { display: flex; }
	.rb-menu > li > a { padding: 8px 0; }
	.rb-menu .sub-menu { position: static; box-shadow: none; background: transparent; display: block; padding-left: 14px; }
	.rb-menu .sub-menu a { color: var(--rb-nav-text); }
	.rb-grid--3, .rb-grid--2, .rb-cols3 .rb-list, .rb-ent { grid-template-columns: 1fr; }
	.rb-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.rb-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
	.rb-mosaic__item.is-big { grid-column: 1 / -1; }
	.rb-video { grid-template-columns: 1fr 1fr; }
	.rb-footer__grid { grid-template-columns: 1fr; }
	.rb-footer__band-in { flex-direction: column; gap: 14px; }
	.rb-headline { padding: 18px 14px 22px; }
	.rb-headline__title { font-size: min(var(--rb-headline-size), 28px); }
	.rb-datebar__iframe { width: 240px; }
	.rb-ticker__label { font-size: 18px; }
	.rb-section { padding: 30px 0; }
	.rb-head { flex-wrap: wrap; }
	.rb-tabs { order: 3; width: 100%; padding: 6px 0; }
	.admin-bar .rb-nav.is-sticky { top: 0; }
}
@media (max-width: 480px) {
	.rb-grid--4 { grid-template-columns: 1fr; }
	.rb-social { gap: 10px; }
}
