/* Basic reset and variables */
:root {
	--brand: #e60000;
	--dark: #333;
	--muted: #666;
	--bg: #fff;
	--max-width: 1200px;
	--header-height: 70px;
	font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
	box-sizing: border-box
}

html,
body {
	height: 100%;
	margin: 0;
	background: var(--bg);
	color: var(--dark);
	font-size: 16px
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 16px
}

/* Header */
.header {
	background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
	border-bottom: 3px solid #e60000;
	padding: 10px 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	height: var(--header-height);
	display: flex;
	align-items: center;
}

.header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 16px;
}

.logo {
	display: flex;
	flex-direction: column;
}

.logo h1 {
	margin: 0;
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.logo p {
	margin: 2px 0 0 0;
	color: #f0f0f0;
	font-size: 12px;
	letter-spacing: 0.3px;
}

/* Main Navigation */
.main-nav {
	display: flex;
	align-items: center;
}

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
	align-items: center;
}

.main-nav a {
	color: #f0f0f0;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	padding: 10px 16px;
	border-radius: 4px;
	position: relative;
	overflow: hidden;
	font-size: 15px;
	white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.main-nav a.active {
	background: #e60000;
	color: #fff;
	box-shadow: 0 2px 6px rgba(230, 0, 0, 0.3);
}


/* Mobile menu toggle */
.menu-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
	padding: 6px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
}

.menu-toggle span {
	width: 22px;
	height: 2px;
	background: #fff;
	margin: 3px 0;
	transition: 0.3s;
	border-radius: 1px;
}

.menu-toggle:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* Live Update Banner */
.live-banner {
	background: #fff5f5;
	border: 1px solid #ffd6d6;
	padding: 8px 0;
}

.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: 24px;
	height: 24px;
}

.live-indicator span {
	font-weight: 600;
	color: #e60000;
	font-size: 14px;
}

.scrolling-text {
	flex: 1;
	color: #333;
	font-weight: 500;
	font-size: 14px;
	min-width: 0;
}

/* Quick Links Bar */
.quick-links {
	background: #f8f9fa;
	padding: 10px 0;
	border-top: 1px solid #e9ecef;
	border-bottom: 1px solid #e9ecef;
}

.quick-links .container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 16px;
}

.quick-link-item {
	margin: 0;
}

.quick-link-item a {
	background: #fff;
	padding: 8px 14px;
	border-radius: 30px;
	text-decoration: none;
	color: #333;
	border: 1px solid #e1e5e9;
	font-size: 13px;
	transition: all 0.25s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	font-weight: 500;
}

.quick-link-item a:hover {
	background: #e60000;
	color: #fff;
	border-color: #e60000;
	box-shadow: 0 2px 6px rgba(230, 0, 0, 0.2);
	transform: translateY(-1px);
}

.quick-link-item a i {
	margin-right: 6px;
	font-size: 14px;
}

/* Main Content */
.main-content {
	padding: 20px 0;
}

.content-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.content-section {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title {
	background: #e60000;
	color: #fff;
	margin: 0;
	padding: 12px 15px;
	font-size: 18px;
	border-radius: 4px 4px 0 0;
}

.content-list {
	padding: 10px;
}

.content-item {
	padding: 10px;
	border-bottom: 1px dashed #eee;
}

.content-item:last-child {
	border-bottom: none;
}

.content-item a {
	color: #333;
	text-decoration: none;
	display: block;
	font-weight: 500;
	margin-bottom: 5px;
}

.content-item a:hover {
	color: #e60000;
}

.content-item .date {
	color: #666;
	font-size: 13px;
}

.view-more {
	text-align: center;
	padding: 10px;
}

.view-more-btn {
	background: #e60000;
	color: #fff;
	padding: 8px 20px;
	text-decoration: none;
	border-radius: 4px;
	display: inline-block;
	font-weight: 500;
}

.view-more-btn:hover {
	background: #cc0000;
}

/* View All Section */
.view-all-section {
	text-align: center;
	margin: 20px 0;
}

.view-all-btn {
	background: #333;
	color: #fff;
	padding: 12px 25px;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.view-all-btn:hover {
	background: #e60000;
}

/* Service Portals Section */
.service-portals {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	padding: 40px 0;
	margin: 40px 0;
	border-top: 2px solid #e60000;
	border-bottom: 2px solid #e60000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-portals .section-title {
	text-align: center;
	background: linear-gradient(135deg, #e60000 0%, #b30000 100%);
	color: #fff;
	margin: 0 auto 30px;
	padding: 15px 25px;
	font-size: 24px;
	max-width: 350px;
	border-radius: 50px;
	box-shadow: 0 4px 8px rgba(230, 0, 0, 0.2);
}

.portals-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.portal-card {
	background: #fff;
	border: 2px solid #f0f0f0;
	border-radius: 12px;
	padding: 25px;
	text-align: center;
	text-decoration: none;
	color: #333;
	transition: all 0.4s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	position: relative;
	overflow: hidden;
	animation: fadeInUp 0.6s ease forwards;
	opacity: 0;
	transform: translateY(20px);
}

.portal-card:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: #e60000;
	transform: scaleX(0);
	transition: transform 0.4s ease;
}

.portal-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	border-color: #e60000;
}

.portal-card:hover:before {
	transform: scaleX(1);
}

.portal-card i {
	font-size: 28px;
	color: #e60000;
	transition: all 0.3s ease;
}

.portal-card:hover i {
	transform: scale(1.2);
	color: #b30000;
}

.portal-card span {
	font-weight: 600;
	font-size: 15px;
	transition: all 0.3s ease;
}

.portal-card:hover span {
	color: #e60000;
}

@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 15px;
	margin: 0 5px;
	text-decoration: none;
	color: #333;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
}

.page-btn:hover {
	background: #e60000;
	color: #fff;
}

.page-btn.active {
	background: #e60000;
	color: #fff;
	border-color: #e60000;
}

.page-btn.next-btn,
.page-btn.prev-btn {
	font-weight: bold;
}

/* Footer */
.footer {
	background: #333;
	color: #fff;
	padding: 30px 0;
	margin-top: 30px;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 20px;
}

.footer-section h3 {
	color: #fff;
	margin-top: 0;
}

.footer-section p,
.footer-section a {
	color: #ccc;
	text-decoration: none;
}

.footer-section a:hover {
	color: #fff;
}

.footer-section ul {
	list-style: none;
	padding: 0;
}

.footer-section li {
	margin: 8px 0;
}

.social-links {
	display: flex;
	gap: 10px;
}

.social-links a {
	color: #fff;
	background: #555;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

.social-links a:hover {
	background: #e60000;
}

.footer-bottom {
	text-align: center;
	border-top: 1px solid #555;
	padding-top: 20px;
	color: #aaa;
}

/* 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: 8px 0;
		height: auto;
		min-height: 60px;
	}

	.header .container {
		flex-direction: row;
		align-items: center;
	}

	.logo h1 {
		font-size: 22px;
	}

	.logo p {
		font-size: 11px;
	}

	.menu-toggle {
		display: flex;
	}

	.main-nav {
		width: 100%;
		position: absolute;
		top: 100%;
		left: 0;
		background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
		box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
		border-radius: 0 0 8px 8px;
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: all 0.3s ease;
		z-index: 99;
	}

	.main-nav.active {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.main-nav ul {
		flex-direction: column;
		gap: 0;
		margin: 0;
		padding: 10px 0;
	}

	.main-nav li {
		width: 100%;
		text-align: center;
	}

	.main-nav a {
		display: block;
		padding: 14px 20px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		font-size: 16px;
		text-align: center;
	}

	.main-nav a:last-child {
		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;
}


/* Ensure the link inside dropdown trigger behaves like others */
.main-nav .dropdown>a {
	display: flex;
	align-items: center;
	gap: 5px;
}

.main-nav .dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #1a1a2e;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	border-radius: 0 0 4px 4px;
	padding: 8px 0;
	z-index: 1000;
	flex-direction: column;
	gap: 0;
	border-top: 2px solid #e60000;
	margin-top: 10px;
	/* Offset to clear the header padding */
}

/* Connect the hover area */
.main-nav .dropdown:hover .dropdown-menu {
	display: flex;
}

.main-nav .dropdown-menu li {
	width: 100%;
	margin: 0;
}

.main-nav .dropdown-menu a {
	padding: 10px 20px;
	display: block;
	white-space: nowrap;
	border-radius: 0;
	color: #f0f0f0;
	font-size: 14px;
	text-align: left;
	background: transparent;
	box-shadow: none;
	border: none;
}

.main-nav .dropdown-menu a:hover {
	background: #e60000;
	color: white;
	transform: none;
	/* Reset main nav hover translate */
}

/* Mobile specific overrides */
@media (max-width: 768px) {
	.main-nav .dropdown {
		flex-direction: column;
		align-items: stretch;
	}

	.main-nav .dropdown-menu {
		position: static;
		background: rgba(0, 0, 0, 0.2);
		box-shadow: none;
		border-top: none;
		display: none;
		margin-top: 0;
		width: 100%;
	}

	/* Show dropdown on hover/focus/active state for mobile click simulation */
	.main-nav .dropdown:hover .dropdown-menu,
	.main-nav .dropdown:focus-within .dropdown-menu {
		display: flex;
	}

	.main-nav .dropdown-menu a {
		padding-left: 30px;
		text-align: center;
		/* keep native style */
		border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	}
}