/*
 * Kaler News redesign overrides.
 * Loaded after main.css so the news-portal layout wins.
 */

:root {
	--red: #d71920;
	--red-dark: #b31217;
	--container: 1496px;
	--font: 'SolaimanLipi', 'Noto Sans Bengali', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
	font-family: var(--font);
}

.container {
	max-width: var(--container);
	padding: 0 20px;
}

/* Top bar */
.topbar {
	background: var(--red);
	color: #fff;
	font-size: 14px;
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 38px;
}

.topbar-date {
	font-weight: 600;
	letter-spacing: .1px;
}

.topbar-right {
	display: flex;
	align-items: center;
	gap: 14px;
}

.topbar-links {
	display: flex;
	align-items: center;
}

.topbar-links a {
	padding: 0 12px;
	border-left: 1px solid rgba(255, 255, 255, .3);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.topbar-links a:first-child {
	border-left: 0;
}

.topbar-links a:hover {
	color: #ffe0e0;
}

.social-mini {
	gap: 2px;
}

.social-mini a {
	width: 26px;
	height: 26px;
	color: #fff;
}

.social-mini a:hover {
	background: rgba(0, 0, 0, .16);
	color: #fff;
}

.social-mini .icon {
	width: 14px;
	height: 14px;
}

/* Header */
.site-header {
	background: #fff;
	border-bottom: 1px solid #e5e5e5;
}

.header-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	min-height: 92px;
}

.brand img,
.brand .custom-logo {
	width: auto;
	max-height: 68px;
}

.header-datetime {
	display: flex;
	align-items: center;
	justify-self: center;
	gap: 12px;
	color: #222;
}

.header-calendar {
	display: inline-flex;
	color: var(--red);
}

.header-calendar .icon {
	width: 30px;
	height: 30px;
}

.header-datetime > div > strong {
	display: block;
	color: #222;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.header-datetime > div > span {
	display: block;
	color: #666;
	font-size: 13px;
	line-height: 1.4;
}

.header-search {
	justify-self: end;
	width: 340px;
}

.header-search .search-form {
	width: 100%;
	max-width: none;
	height: 42px;
	margin: 0;
	border: 1px solid #ddd;
	border-radius: 0;
	background: #fff;
}

.header-search .search-form input[type="search"] {
	padding: 0 12px;
	font-size: 14px;
}

.header-search .search-form button {
	padding: 0 16px;
	border-radius: 0;
	background: var(--red);
}

.header-search .search-form button:hover {
	background: var(--red-dark);
}

/* Main navigation */
.main-nav {
	position: sticky;
	top: 0;
	z-index: 30;
	background: var(--red);
	border: 0;
	box-shadow: none;
}

.admin-bar .main-nav {
	top: 32px;
}

.nav-inner {
	display: flex;
	align-items: center;
	min-height: 46px;
	padding: 0 20px;
	overflow: visible;
}

.nav-scroll {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.nav-scroll::-webkit-scrollbar {
	display: none;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: 0;
	white-space: nowrap;
}

.nav-list li {
	position: relative;
}

.nav-list a {
	display: block;
	padding: 12px 13px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.nav-list a::after {
	display: none;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current-category-ancestor > a {
	background: rgba(0, 0, 0, .14);
	color: #fff;
}

.nav-home a {
	display: flex;
	align-items: center;
	padding: 12px 14px;
}

.nav-home .icon {
	width: 18px;
	height: 18px;
}

.nav-mobile-home {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: #fff;
}

.nav-mobile-home .icon {
	width: 19px;
	height: 19px;
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 46px;
	margin-left: 8px;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, .25);
	border-radius: 0;
	background: transparent;
	color: #fff;
}

.menu-toggle:hover {
	background: rgba(0, 0, 0, .14);
	color: #fff;
}

.menu-toggle .icon {
	width: 21px;
	height: 21px;
}

.nav-drawer {
	display: none;
	background: #fff;
	box-shadow: 0 14px 26px rgba(0, 0, 0, .14);
}

.main-nav.is-open .nav-drawer {
	display: block;
}

.nav-drawer-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0;
	padding: 10px 0;
	list-style: none;
}

.nav-drawer-list a {
	display: block;
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
	color: #222;
	font-size: 14px;
	font-weight: 600;
}

.nav-drawer-list a:hover {
	color: var(--red);
}

/* Submenus */
.nav-scroll:has(.menu-item-has-children:hover),
.nav-scroll:has(.menu-item-has-children:focus-within) {
	overflow: visible;
}

.nav-list > li {
	position: relative;
}

.nav-list .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 100;
	min-width: 220px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.nav-list .sub-menu li {
	position: relative;
	white-space: normal;
}

.nav-list .sub-menu a {
	display: block;
	padding: 9px 14px;
	color: #222;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	white-space: normal;
}

.nav-list .sub-menu a:hover,
.nav-list .sub-menu li:hover > a {
	background: #f7f7f7;
	color: var(--red);
}

.nav-list .sub-menu .sub-menu {
	top: 0;
	left: 100%;
	min-width: 200px;
	max-height: 420px;
	overflow-y: auto;
}

.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
	display: block;
}

.submenu-toggle {
	display: none;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
}

.nav-drawer-list .sub-menu {
	display: none;
	margin: 0;
	padding: 0 0 0 14px;
	list-style: none;
	background: #fafafa;
}

.nav-drawer-list li.is-open > .sub-menu {
	display: block;
}

.nav-drawer-list li {
	position: relative;
}

.nav-drawer-list .menu-item-has-children > a {
	padding-right: 40px;
}

.nav-drawer-list .submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 0;
	right: 0;
	width: 38px;
	height: 40px;
	color: #444;
	font-size: 18px;
	line-height: 1;
}

.nav-drawer-list .submenu-toggle:hover {
	color: var(--red);
}

.nav-drawer-list .sub-menu a {
	padding: 8px 10px;
	font-size: 13px;
	border-bottom: 1px solid #eee;
}

.nav-drawer-list .sub-menu .submenu-toggle {
	height: 36px;
}

/* Breaking ticker */
.breaking-bar {
	background: #1b1b1b;
	border: 0;
}

.breaking-inner {
	display: flex;
	align-items: center;
	gap: 0;
	min-height: 44px;
}

.breaking-label {
	flex: 0 0 auto;
	padding: 8px 16px;
	border-radius: 0;
	background: var(--red);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.ticker {
	flex: 1;
	min-width: 0;
	margin-left: 16px;
	overflow: hidden;
}

.ticker-track {
	display: flex;
	align-items: center;
	gap: 30px;
	width: max-content;
	animation: none;
	will-change: transform;
}

.ticker-track a {
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.ticker-track a:hover {
	color: #ffb3b3;
}

.ticker-dot {
	color: var(--red);
}

.ticker-controls {
	display: flex;
	align-items: center;
	margin-left: 12px;
	border-left: 1px solid #3a3a3a;
}

.ticker-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
}

.ticker-btn:hover {
	background: rgba(255, 255, 255, .08);
}

.ticker-btn.is-paused {
	color: var(--red);
}

.ticker-btn .icon {
	width: 18px;
	height: 18px;
}

/* Home layout */
.home-main {
	padding: 24px 0 40px;
}

.home-layout,
.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 24px;
	align-items: start;
}

.home-layout-below {
	margin-top: 24px;
}

.home-main-col,
.content-main,
.home-sidebar {
	min-width: 0;
}

.hero-section {
	padding: 0;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.9fr) minmax(280px, .95fr);
	gap: 16px;
	align-items: stretch;
}

.hero-center {
	min-width: 0;
}

.hero-side {
	min-width: 0;
	padding: 8px 14px;
	background: #fff;
	border: 1px solid #e5e5e5;
}

.hero-side .card-list:first-child {
	padding-top: 4px;
}

.hero-side .card-list:last-child {
	padding-bottom: 4px;
}

/* Hero card */
.card-hero {
	position: relative;
	min-height: 430px;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: #000;
	box-shadow: none;
	transform: none;
}

.card-hero:hover {
	border-color: transparent;
	box-shadow: none;
	transform: none;
}

.card-hero > .card-media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
	background: #222;
}

.card-hero .card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-hero::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, .04) 0%, rgba(0, 0, 0, .18) 38%, rgba(0, 0, 0, .9) 100%);
	content: '';
	pointer-events: none;
}

.hero-overlay {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 430px;
	padding: 26px;
	color: #fff;
}

.hero-overlay .cat-label {
	position: static;
	align-self: flex-start;
	margin-bottom: 12px;
	padding: 5px 12px;
	border-radius: 0;
	background: var(--red);
	color: #fff;
	font-size: 13px;
}

.hero-overlay .card-title {
	max-width: 95%;
	margin: 0 0 10px;
	color: #fff;
	font-size: clamp(28px, 2.8vw, 40px);
	line-height: 1.35;
}

.hero-overlay .card-title a {
	color: #fff;
}

.hero-overlay .card-title a:hover {
	color: #ffd6d6;
}

.hero-overlay .card-excerpt {
	max-width: 90%;
	margin-bottom: 12px;
	color: #eee;
	font-size: 15px;
	line-height: 1.7;
}

.hero-overlay .meta {
	margin-bottom: 12px;
	color: #ddd;
}

.hero-overlay .meta-date .icon {
	color: #fff;
}

.hero-read-more {
	align-self: flex-start;
	padding: 8px 18px;
	border-radius: 0;
	font-size: 14px;
}

/* Compact list cards */
.card-list {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	margin: 0;
	border: 0;
	border-bottom: 1px solid #eee;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	transform: none;
}

.card-list:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.card-list:hover {
	border-color: #eee;
	box-shadow: none;
	transform: none;
}

.card-list .card-media {
	flex: 0 0 96px;
	width: 96px;
	aspect-ratio: 4 / 3;
	border-radius: 0;
}

.card-list .card-content {
	flex: 1;
	min-width: 0;
	padding: 0;
}

.card-list .cat-text {
	display: block;
	margin-bottom: 3px;
	color: var(--red);
	font-size: 12px;
	font-weight: 700;
}

.card-list .card-title {
	margin: 0 0 5px;
	color: #1a1a1a;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
}

.card-list .card-title a {
	color: #1a1a1a;
}

.card-list .card-title a:hover {
	color: var(--red);
}

.card-list .meta {
	color: #777;
	font-size: 12px;
}

.meta-date {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.meta-date .icon {
	width: 13px;
	height: 13px;
}

/* Sidebar */
.sidebar-box {
	background: #fff;
	border: 1px solid #e5e5e5;
}

.sidebar-tabs {
	display: flex;
	border-bottom: 1px solid #e5e5e5;
}

.sidebar-tabs .tab-btn {
	flex: 1;
	padding: 13px 6px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #333;
	font-size: 15px;
	font-weight: 700;
}

.sidebar-tabs .tab-btn.active {
	color: var(--red);
}

.sidebar-tabs .tab-btn.active::after {
	height: 3px;
	background: var(--red);
}

.sidebar-box .tab-panel {
	padding: 12px 14px 4px;
}

.sidebar-box .tab-panel .card-list {
	padding: 11px 0;
}

.sidebar-more,
.popular-more {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	padding: 10px 14px 14px;
	color: var(--red);
	font-size: 13px;
	font-weight: 700;
}

.sidebar-more .icon,
.popular-more .icon {
	width: 13px;
	height: 13px;
}

.popular-box {
	margin-top: 18px;
	background: #fff;
	border: 1px solid #e5e5e5;
}

.popular-head {
	padding: 10px 14px;
	background: var(--red);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
}

.popular-list {
	margin: 0;
	padding: 6px 14px;
	list-style: none;
}

.popular-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 11px 0;
	border-bottom: 1px solid #eee;
}

.popular-list li:last-child {
	border-bottom: 0;
}

.popular-number {
	flex: 0 0 22px;
	color: var(--red);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
}

.popular-content {
	flex: 1;
	min-width: 0;
}

.popular-title {
	display: block;
	color: #1a1a1a;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
}

.popular-title:hover {
	color: var(--red);
}

.popular-cat {
	display: block;
	margin-top: 3px;
	color: #777;
	font-size: 12px;
}

.popular-thumb-link {
	flex: 0 0 88px;
	width: 88px;
}

.popular-thumb {
	width: 88px;
	height: 60px;
	object-fit: cover;
}

/* Category grid */
.category-grid-section {
	margin-top: 24px;
}

.home-layout-below .category-grid-section {
	margin-top: 0;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}

.category-block {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 12px;
	background: #fff;
	border: 1px solid #e5e5e5;
}

.category-block-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	padding-bottom: 9px;
	border-bottom: 2px solid var(--cat-color);
}

.category-block-head h3 {
	margin: 0;
	font-size: 17px;
	line-height: 1.3;
}

.category-block-head h3 a {
	color: #111;
}

.category-block-head h3 a:hover {
	color: var(--cat-color);
}

.category-block-head .cat-icon {
	display: inline-flex;
	flex: 0 0 auto;
}

.category-block-head .cat-icon svg {
	width: 22px;
	height: 22px;
}

.category-current {
	display: block;
}

.category-current-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #eee;
}

.category-current-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.category-current-title {
	margin: 8px 0 4px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
}

.category-current-title a {
	color: #111;
}

.category-current-title a:hover {
	color: var(--red);
}

.category-current .meta {
	color: #777;
	font-size: 11px;
}

.category-current .meta-date .icon {
	width: 12px;
	height: 12px;
}

.category-bullets {
	margin: 10px 0 0;
	padding: 10px 0 0;
	border-top: 1px solid #eee;
	list-style: none;
}

.category-bullets li {
	position: relative;
	margin-bottom: 8px;
	padding-left: 13px;
	font-size: 13px;
	line-height: 1.5;
}

.category-bullets li:last-child {
	margin-bottom: 0;
}

.category-bullets li::before {
	position: absolute;
	top: 7px;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--red);
	content: '';
}

.category-bullets a {
	color: #222;
}

.category-bullets a:hover {
	color: var(--red);
}

.category-block-more {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	margin-top: auto;
	padding-top: 10px;
	color: var(--red);
	font-size: 12px;
	font-weight: 700;
}

.category-block-more .icon {
	width: 12px;
	height: 12px;
}

.category-empty {
	margin: 0 0 10px;
	color: #777;
	font-size: 13px;
}

/* Video */
.video-section {
	margin-top: 30px;
}

.video-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.video-card {
	overflow: hidden;
	background: #111;
}

.video-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.video-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .9;
}

.video-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: rgba(0, 0, 0, .18);
}

.video-play .icon {
	width: 46px;
	height: 46px;
	padding: 11px;
	border-radius: 50%;
	background: var(--red);
}

.video-title {
	margin: 0;
	padding: 10px 12px 12px;
	font-size: 15px;
	line-height: 1.45;
}

.video-title a {
	color: #fff;
}

.video-title a:hover {
	color: #ffb3b3;
}

/* Footer */
.footer-grid {
	grid-template-columns: 1.2fr 1.8fr;
}

.footer-links {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Responsive */
@media (max-width: 1320px) {
	.home-layout,
	.content-layout {
		grid-template-columns: minmax(0, 1fr) 330px;
	}

	.category-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 1120px) {
	.home-layout,
	.content-layout {
		grid-template-columns: 1fr;
	}

	.home-sidebar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 18px;
		align-items: start;
	}

	.popular-box {
		margin-top: 0;
	}

	.hero-grid {
		grid-template-columns: minmax(0, 1.7fr) minmax(260px, .9fr);
	}

	.header-search {
		width: 280px;
	}
}

@media (max-width: 900px) {
	.topbar-links {
		display: none;
	}

	.header-inner {
		grid-template-columns: 1fr auto;
		min-height: 82px;
	}

	.header-datetime {
		display: none;
	}

	.nav-scroll {
		display: none;
	}

	.nav-inner {
		justify-content: space-between;
		min-height: 44px;
	}

	.nav-mobile-home {
		display: inline-flex;
	}

	.menu-toggle {
		margin-left: auto;
		border-left: 0;
	}

	.nav-drawer-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-side {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 18px;
	}

	.hero-side .card-list {
		padding: 12px 0;
	}

	.category-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.home-sidebar {
		grid-template-columns: 1fr;
	}

	.hero-overlay,
	.card-hero {
		min-height: 380px;
	}

	.hero-overlay .card-title {
		font-size: 30px;
	}

	.category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.video-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.topbar-inner {
		min-height: 34px;
	}

	.topbar-date {
		font-size: 12px;
	}

	.social-mini {
		display: none;
	}

	.header-inner {
		grid-template-columns: 1fr;
		gap: 12px;
		padding-top: 14px;
		padding-bottom: 14px;
	}

	.brand img,
	.brand .custom-logo {
		max-height: 48px;
	}

	.header-search {
		justify-self: stretch;
		width: 100%;
	}

	.breaking-label {
		padding: 7px 10px;
		font-size: 13px;
	}

	.ticker {
		margin-left: 10px;
	}

	.ticker-track a {
		font-size: 13px;
	}

	.ticker-btn {
		width: 34px;
		height: 34px;
	}

	.hero-side {
		grid-template-columns: 1fr;
	}

	.hero-overlay,
	.card-hero {
		min-height: 340px;
	}

	.hero-overlay {
		padding: 18px;
	}

	.hero-overlay .card-title {
		font-size: 25px;
	}

	.hero-overlay .card-excerpt {
		font-size: 14px;
	}

	.category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.category-block {
		padding: 10px;
	}

	.category-block-head h3 {
		font-size: 15px;
	}

	.category-current-title {
		font-size: 14px;
	}

	.popular-thumb-link {
		flex-basis: 76px;
		width: 76px;
	}

	.popular-thumb {
		width: 76px;
		height: 54px;
	}

	.footer-links {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 420px) {
	.container {
		padding: 0 14px;
	}

	.nav-drawer-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.category-grid,
	.video-grid {
		grid-template-columns: 1fr;
	}

	.hero-overlay .card-title {
		font-size: 22px;
	}

	.hero-overlay .card-excerpt {
		display: none;
	}
}
