/*
Theme Name: Budha Ka Sandesh
Theme URI: https://www.budhakasandesh.com/
Author: Budha Ka Sandesh
Description: Hindi news theme for दैनिक बुद्ध का संदेश. The homepage builds itself from your posts and categories: breaking strip, top news, district links, a video row, one block per category, a photo row, most-read list and share buttons.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bks
*/

:root {
	--bks-accent: #c40808;
	--bks-ink: #1a1a1a;
	--bks-ink-2: #3a3a3a;
	--bks-muted: #5c5c5c;
	--bks-line: #e2e3e6;
	--bks-line-2: #c9ccd1;
	--bks-bg: #ffffff;
	--bks-soft: #f0f1f3;
	--bks-soft-2: #f6f6f7;
	--bks-noimg: #e6e8ec;
}
html.bks-dark {
	--bks-accent: #ff6b6b;
	--bks-ink: #f1f2f4;
	--bks-ink-2: #d6d8dc;
	--bks-muted: #a9adb5;
	--bks-line: #33373f;
	--bks-line-2: #4a4f59;
	--bks-bg: #16181d;
	--bks-soft: #20232a;
	--bks-soft-2: #1b1e24;
	--bks-noimg: #2c3038;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Mukta', 'Noto Sans Devanagari', sans-serif;
	font-size: 16px;
	line-height: 1.45;
	color: var(--bks-ink);
	background: var(--bks-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bks-ink); text-decoration: none; }
a:hover { color: var(--bks-accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--bks-accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
ul { margin: 0; padding: 0; list-style: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bks-skip { position: absolute; left: -9999px; top: 0; background: var(--bks-ink); color: var(--bks-bg); padding: 10px 16px; z-index: 100; }
.bks-skip:focus { left: 8px; top: 8px; }
.bks-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Header */
.bks-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 10px; padding-bottom: 10px; }
.bks-brand { display: flex; flex-direction: column; align-items: flex-end; }
.bks-brand .custom-logo { max-height: 64px; width: auto; }
.bks-brand__name { font-size: 36px; font-weight: 800; line-height: 1.15; color: var(--bks-accent); }
.bks-brand__date { font-size: 12px; color: var(--bks-muted); }
.bks-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-weight: 600; }
.bks-tool { display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 44px; }
.bks-tool + .bks-tool { border-left: 1px solid var(--bks-line-2); }
.bks-tool svg { color: var(--bks-accent); }
.bks-iconbtn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--bks-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bks-search { display: flex; align-items: center; border: 1px solid var(--bks-line-2); border-radius: 22px; overflow: hidden; padding-right: 4px; background: var(--bks-bg); }
.bks-search input { border: 0; padding: 0 14px; height: 42px; width: 180px; max-width: 100%; font: inherit; font-size: 15px; color: var(--bks-ink); background: transparent; }
.bks-search button { border: 0; background: transparent; width: 40px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--bks-ink); cursor: pointer; }

/* Menu */
.bks-nav { border-top: 1px solid var(--bks-line); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12); position: relative; z-index: 20; background: var(--bks-bg); }
.bks-nav__toggle { display: none; align-items: center; gap: 8px; height: 46px; border: 0; background: transparent; color: var(--bks-ink); font: inherit; font-weight: 700; cursor: pointer; }
.bks-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 17px; font-weight: 600; }
.bks-menu li { position: relative; }
.bks-menu a { display: block; padding: 0 12px; line-height: 46px; white-space: nowrap; }
.bks-menu > .current-menu-item > a, .bks-menu > .current-cat > a, .bks-menu > .current-menu-ancestor > a { color: var(--bks-accent); font-weight: 800; }
.bks-menu .sub-menu, .bks-menu .children { display: none; position: absolute; left: 0; top: 100%; min-width: 220px; max-height: 70vh; overflow-y: auto; background: var(--bks-bg); border: 1px solid var(--bks-line); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16); z-index: 30; }
.bks-menu li:hover > .sub-menu, .bks-menu li:focus-within > .sub-menu { display: block; }
.bks-menu .sub-menu a { line-height: 40px; font-size: 15px; }

/* Ads */
.bks-ad { background: var(--bks-soft); padding: 6px 12px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.bks-ad--top { margin-top: 12px; }
.bks-ad__label { font-size: 12px; color: var(--bks-muted); }
.bks-ad .bks-widget { margin: 0; }

/* Layout */
.bks-layout { display: flex; flex-wrap: wrap; gap: 24px 28px; padding-top: 20px; padding-bottom: 48px; }
.bks-main { flex: 1000 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.bks-rail { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

/* Breaking and chips */
.bks-breaking { display: flex; align-items: stretch; border: 1px solid var(--bks-line); }
.bks-breaking__label { background: var(--bks-accent); color: #ffffff; font-weight: 800; padding: 0 14px; display: flex; align-items: center; white-space: nowrap; }
html.bks-dark .bks-breaking__label { color: #16181d; }
.bks-breaking a { padding: 9px 14px; font-weight: 600; font-size: 17px; }
.bks-chips { display: flex; gap: 8px; overflow-x: auto; white-space: nowrap; padding-bottom: 2px; }
.bks-chips a { border: 1px solid var(--bks-accent); color: var(--bks-accent); border-radius: 22px; padding: 0 16px; line-height: 42px; font-size: 15px; }

/* Section heading */
.bks-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bks-head__bar { flex: 0 0 4px; height: 24px; background: var(--bks-accent); }
.bks-head__title { font-size: 24px; line-height: 1.2; font-weight: 800; }
.bks-head__line { flex: 1 1 0; height: 1px; background: var(--bks-accent); }
.bks-head__more { color: var(--bks-accent); font-weight: 700; line-height: 44px; white-space: nowrap; }
.bks-rail .bks-head__title, .bks-head--small .bks-head__title { font-size: 21px; }

/* Big tile + rows */
.bks-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 20px; }
.bks-big { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--bks-noimg); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.bks-big__img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.bks-big__label { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, 0.72); color: #ffffff; font-size: 12px; padding: 2px 8px; border-radius: 3px; }
.bks-big__title { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.72); color: #ffffff; font-size: 21px; line-height: 1.35; font-weight: 700; padding: 10px 12px; }
.bks-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bks-line); }
.bks-block__col > .bks-row:first-child { padding-top: 0; }
.bks-row__media { position: relative; flex: 0 0 120px; height: 68px; border-radius: 4px; overflow: hidden; background: var(--bks-noimg); }
.bks-row__img { width: 100%; height: 100%; object-fit: cover; }
.bks-row__body { min-width: 0; }
.bks-row__title { font-size: 17px; line-height: 1.4; font-weight: 600; }
.bks-meta { font-size: 12px; color: var(--bks-muted); margin-top: 4px; }
.bks-noimg { display: block; background: var(--bks-noimg); }
.bks-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #ffffff; display: flex; align-items: center; justify-content: center; }
.bks-row__media .bks-play { width: 30px; height: 30px; }
.bks-row__media .bks-play svg { width: 14px; height: 14px; }

/* Tiles: videos and photos */
.bks-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.bks-tile { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bks-noimg); border-radius: 6px; overflow: hidden; }
.bks-tiles--tall .bks-tile { aspect-ratio: 3 / 4; background: #2c3038; }
.bks-tile__img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.bks-tile__title { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.72); color: #ffffff; font-size: 15px; font-weight: 700; padding: 8px 10px; }

/* Districts */
.bks-districts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.bks-districts a { border: 1px solid var(--bks-line-2); border-radius: 4px; padding: 0 12px; line-height: 44px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Rail */
.bks-card { border: 1px solid var(--bks-line); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10); padding: 12px 12px 4px; }
.bks-mini { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bks-line); }
.bks-mini:last-child { border-bottom: 0; }
.bks-mini__media { flex: 0 0 84px; height: 62px; border-radius: 4px; overflow: hidden; background: var(--bks-noimg); }
.bks-mini__img { width: 100%; height: 100%; object-fit: cover; }
.bks-mini__title { font-size: 15px; line-height: 1.4; font-weight: 600; }
.bks-signs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 4px; text-align: center; font-size: 14px; }
.bks-signs a { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bks-signs span { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--bks-accent); color: var(--bks-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.bks-follow { display: flex; flex-direction: column; gap: 8px; }
.bks-follow a { display: flex; align-items: center; gap: 12px; border: 1px solid var(--bks-line-2); border-radius: 4px; padding: 0 14px; height: 48px; font-weight: 700; }
.bks-widget ul li { padding: 10px 0; border-bottom: 1px solid var(--bks-line); }

/* Lists */
.bks-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--bks-muted); }
.bks-crumb a { font-weight: 600; }
.bks-pagehead { border-bottom: 3px solid var(--bks-accent); padding-bottom: 10px; }
.bks-pagehead h1 { font-size: 34px; font-weight: 800; }
.bks-pagehead__desc { color: var(--bks-ink-2); }
.bks-item { display: flex; flex-wrap: wrap; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--bks-line); }
.bks-list .bks-item:first-child { padding-top: 0; }
.bks-item__media { position: relative; flex: 1 1 220px; max-width: 320px; aspect-ratio: 16 / 9; background: var(--bks-noimg); border-radius: 4px; overflow: hidden; }
.bks-item__img { width: 100%; height: 100%; object-fit: cover; }
.bks-item__body { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bks-kicker { font-size: 13px; font-weight: 700; color: var(--bks-accent); }
.bks-item__title { font-size: 22px; line-height: 1.35; font-weight: 700; }
.bks-item__excerpt { margin: 0; color: var(--bks-ink-2); }
.pagination, .comments-pagination { padding-top: 8px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { min-width: 44px; padding: 0 12px; line-height: 42px; text-align: center; border: 1px solid var(--bks-line-2); border-radius: 4px; font-weight: 700; }
.nav-links .page-numbers.current { background: var(--bks-ink); color: var(--bks-bg); border-color: var(--bks-ink); }

/* Article */
.bks-article { display: flex; flex-direction: column; gap: 16px; }
.bks-article__title { font-size: 38px; line-height: 1.25; font-weight: 800; }
.bks-article__lead { margin: 0; font-size: 20px; line-height: 1.5; color: var(--bks-ink-2); }
.bks-byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--bks-line); border-bottom: 1px solid var(--bks-line); padding: 10px 0; }
.bks-byline__who { display: flex; align-items: center; gap: 12px; }
.bks-byline__who img, .bks-author img { border-radius: 50%; }
.bks-byline__name { font-weight: 700; }
.bks-share { display: flex; align-items: center; gap: 6px; }
.bks-share a, .bks-share button { width: 44px; height: 44px; border: 1px solid var(--bks-line-2); border-radius: 50%; background: var(--bks-bg); color: var(--bks-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bks-copy.is-done { border-color: var(--bks-accent); color: var(--bks-accent); }
.bks-article__figure { margin: 0; }
.bks-article__figure img { width: 100%; }
.bks-article__figure figcaption { font-size: 14px; color: var(--bks-muted); margin-top: 6px; }
.bks-article__video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.bks-content { font-size: 19px; line-height: 1.75; }
.bks-content p { margin: 0 0 16px; }
.bks-content h2, .bks-content h3 { margin: 24px 0 10px; }
.bks-content a { color: var(--bks-accent); text-decoration: underline; }
.bks-content img, .bks-content iframe { max-width: 100%; }
.bks-content ul, .bks-content ol { margin: 0 0 16px; padding-left: 24px; list-style: revert; }
.bks-content blockquote { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 3px solid var(--bks-accent); color: var(--bks-ink-2); }
.bks-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.bks-content td, .bks-content th { border: 1px solid var(--bks-line-2); padding: 8px 10px; }
.bks-content input[type="text"], .bks-content input[type="email"], .bks-content input[type="tel"], .bks-content input[type="url"], .bks-content select, .bks-content textarea,
.bks-comments input[type="text"], .bks-comments input[type="email"], .bks-comments input[type="url"], .bks-comments textarea { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--bks-line-2); border-radius: 4px; font: inherit; font-size: 16px; color: var(--bks-ink); background: var(--bks-bg); }
.bks-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bks-tags span { font-size: 14px; font-weight: 700; }
.bks-tags a { border: 1px solid var(--bks-line-2); border-radius: 22px; padding: 0 14px; line-height: 42px; font-size: 15px; font-weight: 600; }
.bks-author { background: var(--bks-soft-2); padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.bks-author__body { flex: 1 1 260px; }
.bks-author__name { font-size: 19px; font-weight: 800; }
.bks-btn, .bks-content input[type="submit"], .bks-content button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: 4px; background: var(--bks-accent); color: #ffffff; font: inherit; font-weight: 700; cursor: pointer; }
html.bks-dark .bks-btn { color: #16181d; }
.bks-btn:hover { color: #ffffff; opacity: 0.9; }
.bks-btn--line { background: transparent; color: var(--bks-ink); border: 1px solid var(--bks-ink); }
.bks-btn--line:hover { color: var(--bks-accent); border-color: var(--bks-accent); }
.bks-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.bks-related__item { display: flex; flex-direction: column; gap: 8px; }
.bks-related__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.bks-related__title { font-size: 17px; line-height: 1.4; font-weight: 700; }
.bks-comments__list { margin: 0 0 16px; padding: 0; list-style: none; }
.bks-comments__list li { padding: 12px 0; border-bottom: 1px solid var(--bks-line); }
.bks-comments__list .children { padding-left: 24px; list-style: none; }
.comment-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.comment-form p { margin: 0 0 12px; }

/* Footer */
.bks-footer { background: var(--bks-soft-2); border-top: 1px solid var(--bks-line); }
.bks-footer__in { display: flex; flex-direction: column; gap: 22px; padding-top: 28px; padding-bottom: 8px; }
.bks-footer__title { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.bks-links { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 15px; }
.bks-links li a { display: inline-block; line-height: 36px; padding-right: 12px; border-right: 1px solid var(--bks-line-2); }
.bks-links li:last-child a { border-right: 0; }
.bks-links--center { justify-content: center; border-top: 1px solid var(--bks-line-2); padding-top: 6px; }
.bks-footer__brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.bks-footer__logo { background: #ffffff; padding: 8px 12px; border-radius: 4px; }
.bks-footer__logo .custom-logo { max-height: 60px; width: auto; }
.bks-footer__cols { display: flex; flex-wrap: wrap; gap: 20px 40px; font-size: 15px; }
.bks-footer__sub { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.bks-social { display: flex; gap: 10px; }
.bks-social a { width: 44px; height: 44px; border-radius: 50%; background: #3a3e47; color: #ffffff; display: flex; align-items: center; justify-content: center; }
.bks-footer__copy { background: var(--bks-soft); padding: 10px 16px; text-align: center; font-size: 13px; color: var(--bks-ink-2); }

/* Tablet and phone */
@media (max-width: 900px) {
	.bks-nav__toggle { display: flex; }
	.bks-nav__wrap { display: none; padding-bottom: 8px; }
	.bks-nav__wrap.is-open { display: block; }
	.bks-menu { flex-direction: column; align-items: stretch; }
	.bks-menu .sub-menu, .bks-menu .children { position: static; display: block; border: 0; box-shadow: none; padding-left: 16px; max-height: none; }
	.bks-brand { align-items: flex-start; }
	.bks-brand__name { font-size: 28px; }
	.bks-tool { padding: 0 10px; }
	.bks-article__title { font-size: 28px; }
	.bks-pagehead h1 { font-size: 28px; }
	.bks-content { font-size: 18px; }
	.bks-search { flex: 1 1 200px; }
	.bks-search input { flex: 1 1 auto; width: auto; min-width: 0; }
}
@media (max-width: 480px) {
	.bks-tool { font-size: 14px; }
	.bks-big__title { font-size: 18px; }
	.bks-item__media { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
