/* KarniTimes Responsive Styles & Mobile Navigation */

/* Offcanvas Mobile Menu Drawer */
.kt-offcanvas-menu {
	position: fixed;
	top: 0;
	left: -300px;
	width: 300px;
	height: 100vh;
	background: #111111;
	color: #ffffff;
	z-index: 99999;
	transition: left 0.3s ease;
	overflow-y: auto;
	padding: 20px;
}

.kt-offcanvas-menu.active {
	left: 0;
}

.kt-offcanvas-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.6);
	z-index: 99998;
	display: none;
}

.kt-offcanvas-overlay.active {
	display: block;
}

.kt-offcanvas-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #333;
	padding-bottom: 15px;
	margin-bottom: 20px;
}

.kt-offcanvas-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
}

.kt-offcanvas-nav {
	list-style: none;
}

.kt-offcanvas-nav li a {
	display: block;
	padding: 12px 0;
	color: #ddd;
	font-size: 16px;
	font-weight: 600;
	border-bottom: 1px solid #222;
}

/* Fixed Bottom Mobile Navigation Bar */
.kt-bottom-mobile-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 58px;
	background: #ffffff;
	border-top: 1px solid #e0e0e0;
	z-index: 9999;
	box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.kt-mobile-bar-nav {
	display: flex;
	align-items: center;
	justify-content: space-around;
	height: 100%;
	padding: 0 4px;
}

.kt-mobile-bar-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #444444;
	font-size: 11px;
	font-weight: 500;
	text-decoration: none;
	flex: 1;
	gap: 2px;
}

.kt-mobile-bar-item span {
	line-height: 1;
}

.kt-bar-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 24px;
}

.kt-icon-home svg {
	stroke: #C8102E;
}

.kt-mobile-bar-item.active {
	color: #111111;
	font-weight: 600;
}

/* ==========================================================================
   DESKTOP HERO GRID STYLING
   ========================================================================== */
.kt-hero-three-col-grid {
	display: grid;
	grid-template-columns: 50% calc(25% - 10px) calc(25% - 10px);
	gap: 15px;
	align-items: start;
}

.kt-hero-main-card {
	min-height: 380px;
}

.kt-hero-img-el {
	height: 380px;
}

.kt-hero-main-title {
	font-size: 22px;
}

.kt-hero-main-subtitle {
	font-size: 13px;
}

.kt-hero-middle-card {
	height: 380px;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OVERRIDES
   ========================================================================== */
@media (max-width: 992px) {
	/* Universal Mobile Padding Lock for Homepage & Containers */
	.kt-container {
		padding-left: 12px !important;
		padding-right: 12px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.site-main {
		overflow-x: hidden !important;
		width: 100% !important;
	}

	.kt-bottom-mobile-bar {
		display: block;
	}

	body {
		padding-bottom: 58px; /* Space for bottom mobile nav */
	}

	/* Hero Section 3-Column Grid Mobile Stacking & Compact Card */
	.kt-hero-three-col-grid {
		grid-template-columns: 1fr !important;
		gap: 15px !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	.kt-hero-main-card {
		min-height: 200px !important;
		height: 200px !important;
		border-radius: 6px !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	.kt-hero-img-el {
		height: 200px !important;
		width: 100% !important;
	}

	.kt-hero-main-overlay {
		padding: 10px !important;
	}

	.kt-hero-main-title {
		font-size: 14px !important;
		line-height: 1.3 !important;
		margin-bottom: 2px !important;
		word-break: break-word !important;
		display: -webkit-box !important;
		-webkit-line-clamp: 2 !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
	}

	.kt-hero-main-subtitle {
		display: none !important;
	}

	.kt-hero-slider-prev,
	.kt-hero-slider-next {
		width: 28px !important;
		height: 28px !important;
		font-size: 14px !important;
	}

	.kt-hero-dots {
		bottom: 8px !important;
		right: 10px !important;
	}

	.kt-hero-middle-card {
		height: auto !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	.kt-weather-card {
		width: 100% !important;
		box-sizing: border-box !important;
	}

	/* Grid Columns Stack vertically on mobile */
	.kt-row {
		flex-direction: column !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: 100% !important;
	}

	.kt-col, 
	.kt-col-1, .kt-col-2, .kt-col-3, .kt-col-4, 
	.kt-col-5, .kt-col-6, .kt-col-7, .kt-col-8, 
	.kt-col-9, .kt-col-10, .kt-col-11, .kt-col-12 {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		box-sizing: border-box !important;
	}

	/* Single Post Mobile Typography & Spacing Optimization */
	.single .kt-container,
	.page .kt-container {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	.entry-title {
		font-size: 20px !important;
		line-height: 1.4 !important;
		word-wrap: break-word !important;
		word-break: break-word !important;
		margin-top: 8px !important;
		margin-bottom: 12px !important;
	}

	.kt-single-article {
		padding: 12px 10px !important;
		margin-bottom: 20px !important;
	}

	.kt-breadcrumbs {
		font-size: 12px !important;
		white-space: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px !important;
		margin-bottom: 10px !important;
	}

	.kt-weather-box-widget {
		width: 100% !important;
		max-width: 100% !important;
		margin-top: 15px !important;
		margin-bottom: 20px !important;
		box-sizing: border-box !important;
	}

	.kt-quick-grid-wrap {
		grid-template-columns: repeat(3, 1fr);
		width: 100% !important;
		box-sizing: border-box !important;
	}

	.kt-cat-grid-container {
		grid-template-columns: repeat(2, 1fr);
		width: 100% !important;
		box-sizing: border-box !important;
	}

	.kt-header-actions {
		display: none;
	}

	.kt-mobile-nav-trigger {
		display: block;
	}

	.kt-nav-menu {
		display: none;
	}
}

@media (max-width: 576px) {
	.kt-quick-grid-wrap {
		grid-template-columns: repeat(2, 1fr);
	}

	.kt-cat-grid-container {
		grid-template-columns: 1fr;
	}

	.kt-newsletter-bar {
		flex-direction: column;
		text-align: center;
	}

	.kt-newsletter-input {
		width: 100%;
	}
}
