/* Basic reset and variables */
:root {
	--bg-primary: #f8fafc;
	--bg-card: #ffffff;
	--text-primary: #0f172a;
	--text-muted: #475569;
	--border-color: #e2e8f0;
	--header-bg: rgba(255, 255, 255, 0.85);
	--header-text: #1e293b;
	--header-text-hover: #4f46e5;
	--header-text-muted: #64748b;
	--dropdown-bg: #ffffff;
	--dropdown-item-hover: #f1f5f9;
	
	--brand-primary: #4f46e5;
	--brand-hover: #3730a3;
	--brand-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
	--brand-glow: rgba(79, 70, 229, 0.08);
	--card-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
	
	--max-width: 1200px;
	--header-height: 75px;
	font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.dark-theme {
	--bg-primary: #080c14;
	--bg-card: #111827;
	--text-primary: #f8fafc;
	--text-muted: #94a3b8;
	--border-color: #1f2937;
	--header-bg: rgba(17, 24, 39, 0.85);
	--header-text: #e2e8f0;
	--header-text-hover: #818cf8;
	--header-text-muted: #94a3b8;
	--dropdown-bg: #111827;
	--dropdown-item-hover: #1f2937;
	--brand-primary: #818cf8;
	--brand-hover: #6366f1;
	--brand-gradient: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);
	--brand-glow: rgba(129, 140, 248, 0.2);
	--card-shadow: 0 10px 35px -10px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.15);
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
	background: var(--bg-primary);
	color: var(--text-primary);
	font-size: 16px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* Header with Glassmorphism */
.header {
	background: var(--header-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border-color);
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	height: var(--header-height);
	display: flex;
	align-items: center;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.logo a {
	text-decoration: none;
	display: flex;
	flex-direction: column;
}

.logo h1 {
	margin: 0;
	color: var(--header-text);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.5px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Outfit', sans-serif;
	transition: color 0.3s ease;
}

.logo h1 i {
	color: var(--brand-primary);
	filter: drop-shadow(0 2px 8px var(--brand-glow));
	transition: color 0.3s ease;
}

.logo p {
	margin: 2px 0 0 0;
	color: var(--header-text-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2px;
	transition: color 0.3s ease;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

/* Main Navigation */
.main-nav {
	display: flex;
	align-items: center;
}

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 6px;
	align-items: center;
}

.main-nav .nav-link {
	color: var(--header-text);
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s ease;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14.5px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.main-nav .nav-link:hover {
	color: var(--header-text-hover);
	background: var(--dropdown-item-hover);
}

.main-nav .dropdown {
	position: relative;
}

.main-nav .dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(15px);
	min-width: 240px;
	background: var(--dropdown-bg);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	padding: 8px 0;
	z-index: 1010;
	flex-direction: column;
	border: 1px solid var(--border-color);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav .dropdown-menu::before {
	content: '';
	position: absolute;
	top: -20px;
	left: 0;
	right: 0;
	height: 20px;
	background: transparent;
}

body.dark-theme .main-nav .dropdown-menu {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.main-nav .dropdown:hover .dropdown-menu {
	display: flex;
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-50%) translateY(8px);
}

.main-nav .dropdown-menu li {
	width: 100%;
}

.main-nav .dropdown-menu a {
	padding: 9px 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text-primary);
	font-size: 13.5px;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
	border-radius: 0;
}

.main-nav .dropdown-menu a i {
	width: 16px;
	text-align: center;
	color: var(--brand-primary);
	font-size: 13px;
}

.main-nav .dropdown-menu a:hover {
	background: var(--dropdown-item-hover);
	color: var(--header-text-hover);
	padding-left: 24px;
}

/* Global Theme Switcher button styling in header */
.header-theme-toggle {
	background: transparent;
	border: 1px solid var(--border-color);
	color: var(--header-text);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.25s ease;
}

.header-theme-toggle:hover {
	border-color: var(--brand-primary);
	color: var(--brand-primary);
	background: var(--dropdown-item-hover);
	transform: scale(1.05);
}

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 24px;
	height: 18px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 10010;
}

.menu-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--header-text);
	transition: all 0.3s ease;
	border-radius: 1px;
}


.menu-toggle:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* Live Update Banner */
.live-banner {
	background: rgba(239, 68, 68, 0.05);
	border-bottom: 1px solid rgba(239, 68, 68, 0.1);
	padding: 10px 0;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.live-banner .container {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.live-indicator {
	display: flex;
	align-items: center;
	margin-right: 12px;
	flex-shrink: 0;
}

.live-indicator img {
	margin-right: 6px;
	width: 20px;
	height: 20px;
}

.live-indicator span {
	font-weight: 700;
	color: var(--brand-primary);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.scrolling-text {
	flex: 1;
	color: var(--text-primary);
	font-weight: 500;
	font-size: 13.5px;
	min-width: 0;
}

/* Quick Links Bar */
.quick-links {
	background: var(--bg-primary);
	padding: 12px 0;
	border-bottom: 1px solid var(--border-color);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.quick-links .container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 20px;
}

.quick-link-item {
	margin: 0;
}

.quick-link-item a {
	background: var(--bg-card);
	padding: 8px 18px;
	border-radius: 30px;
	text-decoration: none;
	color: var(--text-primary);
	border: 1px solid var(--border-color);
	font-size: 13px;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
	font-weight: 600;
}

body.dark-theme .quick-link-item a {
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.quick-link-item a:hover {
	background: var(--brand-primary);
	color: #fff;
	border-color: var(--brand-primary);
	box-shadow: 0 4px 12px var(--brand-glow);
	transform: translateY(-2px);
}

.quick-link-item a i {
	margin-right: 6px;
	font-size: 13px;
}

/* Main Content */
.main-content {
	padding: 30px 0;
}

.content-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.content-section {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
	overflow: hidden;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark-theme .content-section {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.section-title {
	background: var(--brand-gradient);
	color: #fff;
	margin: 0;
	padding: 14px 20px;
	font-size: 17px;
	font-weight: 700;
	font-family: 'Outfit', sans-serif;
	border-radius: 0;
}

.content-list {
	padding: 15px;
}

.content-item {
	padding: 12px;
	border-bottom: 1px dashed var(--border-color);
	transition: border-color 0.3s ease;
}

.content-item:last-child {
	border-bottom: none;
}

.content-item a {
	color: var(--text-primary);
	text-decoration: none;
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
	transition: color 0.2s ease;
}

.content-item a:hover {
	color: var(--brand-primary);
}

.content-item .date {
	color: var(--text-muted);
	font-size: 12px;
	font-weight: 500;
}

.view-more {
	text-align: center;
	padding: 15px;
	border-top: 1px dashed var(--border-color);
}

.view-more-btn {
	background: var(--brand-gradient);
	color: #fff;
	padding: 8px 24px;
	text-decoration: none;
	border-radius: 20px;
	display: inline-block;
	font-weight: 600;
	font-size: 13px;
	box-shadow: 0 4px 10px var(--brand-glow);
	transition: all 0.25s ease;
}

.view-more-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 15px var(--brand-glow);
}

/* View All Section */
.view-all-section {
	text-align: center;
	margin: 30px 0;
}

.view-all-btn {
	background: var(--bg-card);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
	padding: 12px 30px;
	text-decoration: none;
	border-radius: 30px;
	font-weight: 600;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.25s ease;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

body.dark-theme .view-all-btn {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.view-all-btn:hover {
	background: var(--brand-primary);
	color: #fff;
	border-color: var(--brand-primary);
	box-shadow: 0 4px 15px var(--brand-glow);
	transform: translateY(-2px);
}

/* Service Portals Section */
.service-portals {
	background: var(--bg-primary);
	padding: 60px 0;
	margin: 50px 0;
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
	transition: all 0.3s ease;
}

.service-portals .section-title {
	text-align: center;
	background: var(--brand-gradient);
	color: #fff;
	margin: 0 auto 40px;
	padding: 12px 30px;
	font-size: 20px;
	max-width: 360px;
	border-radius: 50px;
	box-shadow: 0 4px 15px var(--brand-glow);
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
}

.portals-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.portal-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 30px 20px;
	text-align: center;
	text-decoration: none;
	color: var(--text-primary);
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
	position: relative;
	overflow: hidden;
	opacity: 0;
	transform: translateY(20px);
	animation: fadeInUp 0.6s ease forwards;
}


.portal-card:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: var(--brand-primary);
	transform: scaleX(0);
	transition: transform 0.4s ease;
}

.portal-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	border-color: var(--brand-primary);
}

body.dark-theme .portal-card:hover {
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.portal-card:hover:before {
	transform: scaleX(1);
}

.portal-card i {
	font-size: 28px;
	color: var(--brand-primary);
	transition: all 0.3s ease;
}

.portal-card:hover i {
	transform: scale(1.15);
}

.portal-card span {
	font-weight: 650;
	font-size: 15px;
	transition: all 0.3s ease;
}

.portal-card:hover span {
	color: var(--brand-primary);
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px)
	}

	to {
		opacity: 1;
		transform: translateY(0)
	}
}

/* Pagination */
.pagination {
	text-align: center;
	padding: 20px 0;
}

.page-btn {
	display: inline-block;
	padding: 8px 18px;
	margin: 0 4px;
	text-decoration: none;
	color: var(--text-primary);
	border: 1px solid var(--border-color);
	border-radius: 30px;
	background: var(--bg-card);
	font-weight: 600;
	font-size: 13.5px;
	transition: all 0.2s ease;
}

.page-btn:hover {
	background: var(--brand-primary);
	color: #fff;
	border-color: var(--brand-primary);
}

.page-btn.active {
	background: var(--brand-primary);
	color: #fff;
	border-color: var(--brand-primary);
	box-shadow: 0 2px 8px var(--brand-glow);
}

.page-btn.next-btn,
.page-btn.prev-btn {
	font-weight: 700;
}


/* Modern Footer */
.footer {
	background: #111827;
	color: #f3f4f6;
	padding: 80px 0 40px;
	margin-top: 60px;
	position: relative;
	overflow: hidden;
}

.footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--brand-gradient);
}

.footer-content {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
	gap: 40px;
	margin-bottom: 60px;
}

.footer-section h3 {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 25px;
	position: relative;
	padding-bottom: 12px;
}

.footer-section h3::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 3px;
	background: var(--brand-primary);
	border-radius: 2px;
}

.footer-section p {
	color: #9ca3af;
	line-height: 1.7;
	font-size: 15px;
	margin-bottom: 20px;
}

.footer-section ul {
	list-style: none;
	padding: 0;
}

.footer-section li {
	margin-bottom: 12px;
}

.footer-section a {
	color: #9ca3af;
	text-decoration: none;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.footer-section a:hover {
	color: #fff;
	padding-left: 5px;
}

.footer-section a i {
	font-size: 14px;
	color: var(--brand-primary);
}

.social-links {
	display: flex;
	gap: 15px;
}

.social-links a {
	width: 42px;
	height: 42px;
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
	background: var(--brand-primary);
	color: #fff;
	transform: translateY(-5px);
	box-shadow: 0 10px 20px var(--brand-glow);
	border-color: var(--brand-primary);
	padding-left: 0;
	/* Override list link hover */
}

.contact-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 15px;
	color: #9ca3af;
}

.contact-item i {
	color: var(--brand-primary);
	margin-top: 4px;
}

.footer-bottom {
	text-align: center;
	padding-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #6b7280;
	font-size: 14px;
}

.footer-bottom p {
	margin: 0;
}

/* Animations */
@keyframes footerReveal {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.footer-section {
	animation: footerReveal 0.8s ease backwards;
}

.footer-section:nth-child(1) {
	animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
	animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
	animation-delay: 0.3s;
}

.footer-section:nth-child(4) {
	animation-delay: 0.4s;
}


/* Responsive */
@media (max-width:992px) {
	.content-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-content {
		grid-template-columns: repeat(2, 1fr);
	}

	.main-nav ul {
		flex-wrap: wrap;
		justify-content: center;
		gap: 3px;
	}

	.main-nav a {
		padding: 9px 14px;
		font-size: 14px;
	}

	.portals-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width:768px) {
	.header {
		padding: 0;
		height: var(--header-height);
	}

	.header .container {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.logo h1 {
		font-size: 20px;
	}

	.logo p {
		font-size: 10px;
	}

	.menu-toggle {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	.main-nav {
		width: 100%;
		position: absolute;
		top: 100%;
		left: 0;
		background: var(--bg-card);
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
		border-radius: 0 0 12px 12px;
		border: 1px solid var(--border-color);
		border-top: none;
		max-height: calc(100vh - var(--header-height) - 10px);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		z-index: 1005;
		padding: 10px 0;
	}

	.main-nav.active {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.main-nav ul {
		flex-direction: column;
		gap: 0;
		margin: 0;
		padding: 0;
		align-items: stretch;
	}

	.main-nav li {
		width: 100%;
		text-align: left;
	}

	.main-nav .nav-link {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 14px 20px;
		border-bottom: 1px solid var(--border-color);
		font-size: 15px;
		font-weight: 600;
		border-radius: 0;
	}

	.main-nav .dropdown-menu {
		position: static;
		transform: none;
		box-shadow: none;
		border: none;
		border-radius: 0;
		background: rgba(0, 0, 0, 0.02);
		padding: 0;
		width: 100%;
		display: none;
		opacity: 1;
		pointer-events: auto;
	}

	body.dark-theme .main-nav .dropdown-menu {
		background: rgba(255, 255, 255, 0.02);
	}

	/* Show dropdown menu on mobile when parent is active (toggled by click listener in JS) */
	.main-nav .dropdown.active .dropdown-menu {
		display: flex;
	}
	
	.main-nav .dropdown:hover .dropdown-menu {
		display: none;
	}
	
	.main-nav .dropdown.active:hover .dropdown-menu {
		display: flex;
	}

	.main-nav .dropdown-menu a {
		padding: 12px 30px;
		border-bottom: 1px solid var(--border-color);
	}
	
	.main-nav .dropdown-menu li:last-child a {
		border-bottom: none;
	}


	.live-banner .container {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.live-indicator {
		margin-right: 0;
		margin-bottom: 4px;
	}

	.scrolling-text {
		width: 100%;
	}

	.quick-links .container {
		flex-direction: column;
		padding: 0 16px;
		gap: 8px;
	}

	.quick-link-item {
		width: 100%;
	}

	.quick-link-item a {
		margin-bottom: 0;
		padding: 12px 16px;
		font-size: 14px;
		border-radius: 6px;
		justify-content: center;
	}

	.quick-link-item a i {
		margin-right: 8px;
	}

	.portals-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

	.portal-card {
		padding: 20px;
	}
}

@media (max-width:576px) {
	.content-grid {
		grid-template-columns: 1fr;
	}

	.footer-content {
		grid-template-columns: 1fr;
	}

	.logo h1 {
		font-size: 20px;
	}

	.logo p {
		font-size: 10px;
	}

	.main-nav a {
		padding: 12px 16px;
		font-size: 15px;
	}

	.live-banner {
		padding: 6px 0;
	}

	.live-indicator img {
		width: 20px;
		height: 20px;
	}

	.live-indicator span {
		font-size: 13px;
	}

	.scrolling-text {
		font-size: 13px;
	}

	.quick-links {
		padding: 8px 0;
	}

	.quick-link-item a {
		padding: 10px 14px;
		font-size: 13px;
	}

	.service-portals {
		padding: 30px 0;
		margin: 30px 0;
	}

	.service-portals .section-title {
		font-size: 20px;
		padding: 12px 20px;
		max-width: 280px;
	}

	.portals-grid {
		grid-template-columns: 1fr;
	}

	.portal-card {
		padding: 16px;
	}

	.portal-card i {
		font-size: 24px;
	}

	.portal-card span {
		font-size: 14px;
	}
}

/* Small utilities */
.muted {
	color: var(--muted);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* Subtle fade-in for content blocks */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(6px)
	}

	to {
		opacity: 1;
		transform: none
	}
}

.content-section {
	animation: fadeInUp .36s ease both;
}

/* Staggered animation for portal cards */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px)
	}

	to {
		opacity: 1;
		transform: translateY(0)
	}
}

/* Dropdown Menu Support */
.main-nav .dropdown {
	position: relative;
	display: flex;
	/* Ensure alignment */
	align-items: center;
}




/* -------------------------------------------------------------
   MOBILE UI & RESPONSIVE FIXES FROM AUDIT
------------------------------------------------------------- */

/* 1. Ensure all images are responsive and do not overlap containers */
img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* 2. Fix form elements overflowing */
input,
select,
textarea,
button {
	max-width: 100%;
	box-sizing: border-box;
}

/* 3. Handle ticker text vertically clipping on mobile */
.scrolling-text marquee {
	padding: 4px 0;
	min-height: 24px;
	line-height: 1.4;
}

@media (max-width: 768px) {

	/* 4. Fix table horizontal scrolling cramming UI */
	table,
	.table-container,
	.post-content table {
		display: block;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		border-collapse: collapse;
		margin-bottom: 1rem;
	}

	table th,
	table td {
		white-space: normal;
		min-width: 120px;
		word-break: break-word;
	}



	/* 6. Typography adjustments for mobile readability */
	body {
		font-size: 15px;
		line-height: 1.6;
	}

	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		line-height: 1.3;
		word-break: break-word;
		/* Prevent headings from breaking layout */
	}

	/* Fix text alignment & spacing on buttons */
	.btn,
	button,
	.quick-link-item a {
		text-align: center;
		white-space: normal;
		height: auto;
		min-height: 40px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/* -------------------------------------------------------------
   HOT UPDATES GRID (HOMEPAGE)
------------------------------------------------------------- */
.hot-updates-section {
	padding: 0 0 5px 0;
}
.hot-updates-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 3px;
	background: transparent;
}
.hot-updates-grid a.hot-update-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #ffffff !important;
	text-decoration: none !important;
	font-weight: bold;
	padding: 14px 10px;
	font-size: 16px;
	line-height: 1.25;
	transition: opacity 0.2s ease;
	font-family: Arial, sans-serif;
}
.hot-updates-grid a.hot-update-box:hover {
	opacity: 0.85;
	color: #ffffff !important;
	text-decoration: underline !important;
}

@media (max-width: 768px) {
	.hot-updates-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.hot-updates-grid a.hot-update-box {
		font-size: 14px;
		padding: 10px 5px;
	}
}