@charset "UTF-8";

/* Header Styles for Department of Statistics Website */

* {
	box-sizing: border-box;
}

/* Modern Purple Header Container */
.header-container {
	width: 100%;
	background: linear-gradient(135deg, #6f42c1 0%, #8B5FBF 50%, #6f42c1 100%);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	position: relative;
	overflow: hidden;
	margin-bottom: 0;
}

.header-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%, rgba(255, 255, 255, 0.1)),
		linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%, rgba(255, 255, 255, 0.1));
	background-size: 60px 60px;
	background-position: 0 0, 30px 30px;
	opacity: 0.3;
}

.header-content {
	max-width: 1600px;
	margin: 0 auto;
	padding: 30px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	position: relative;
	z-index: 1;
}

.logo-left {
	width: 140px;
	height: 140px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.logo-left img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.dept-title {
	text-align: center;
	flex: 1;
	padding: 0 20px;
}

.dept-title h1 {
	font-size: 48px;
	margin: 0 0 15px 0;
	font-weight: 700;
	letter-spacing: 3px;
	color: #ffffff;
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
	font-family: 'Georgia', 'Times New Roman', serif;
	position: relative;
	display: inline-block;
}

.dept-title h1::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	height: 3px;
	background: linear-gradient(90deg, transparent, #FFD700, transparent);
}

.dept-title h2 {
	font-size: 20px;
	margin: 0;
	font-weight: 500;
	letter-spacing: 1.5px;
	color: #ffffff;
	font-family: 'Georgia', 'Times New Roman', serif;
	font-style: italic;
}

.dept-title .separator {
	margin: 0 10px;
	color: #FFD700;
	font-weight: bold;
}

.logo-right {
	width: 220px;
	height: auto;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	padding: 10px;
}

.logo-right img {
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)) brightness(1.4) saturate(1.3);
	/* Enhanced filters to make purple text and details more visible against purple background */
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
	display: none;
	background: #6f42c1;
	color: white;
	border: none;
	padding: 12px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 24px;
	font-weight: bold;
	box-shadow: 0 3px 10px rgba(111, 66, 193, 0.4);
	transition: all 0.3s ease;
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 100;
}

.mobile-menu-toggle:hover {
	background: #5a34a0;
	transform: scale(1.05);
}

/* Modern Navigation Container */
.nav-container {
	width: 100%;
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
	margin-bottom: 50px;
	border-top: 4px solid #FF9933;
	border-bottom: 4px solid #6f42c1;
}

.nav-wrapper {
	max-width: 1600px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: stretch;
	min-height: 60px;
}

.nav-item {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
	border-right: 2px solid #e0e0e0;
	transition: all 0.3s ease;
	position: relative;
	min-height: 60px;
}

.nav-item:last-child {
	border-right: none;
}

.nav-item>a {
	color: #1a1a1a;
	font-weight: bold;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 18px 15px;
	transition: all 0.3s ease;
	font-family: 'Times New Roman', serif;
	letter-spacing: 0.5px;
}

.nav-item>a b {
	color: #1a1a1a;
	font-size: 18px;
	transition: color 0.3s ease;
}

/* Hover effect for nav items without dropdowns */
.nav-item:not(.nav-dropdown):hover {
	background: linear-gradient(135deg, #6f42c1 0%, #8B5FBF 100%);
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(111, 66, 193, 0.3);
}

.nav-item:not(.nav-dropdown):hover a,
.nav-item:not(.nav-dropdown):hover b {
	color: white !important;
}

/* Dropdown specific styling */
.nav-dropdown {
	padding: 0;
	position: relative;
}

.nav-dropdown #navMenu {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: stretch;
	justify-content: center;
}

.nav-dropdown #navMenu>ul {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: stretch;
	justify-content: center;
}

.nav-dropdown #navMenu>ul>li {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	position: relative;
	display: flex;
	align-items: stretch;
	justify-content: center;
}

.nav-dropdown #navMenu>ul>li>a {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 15px;
	color: #1a1a1a;
	font-weight: bold;
	font-size: 18px;
	text-decoration: none;
	transition: all 0.3s ease;
	font-family: 'Times New Roman', serif;
	letter-spacing: 0.5px;
	background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.nav-dropdown #navMenu>ul>li>a b {
	color: #1a1a1a;
	font-size: 18px;
	transition: color 0.3s ease;
}

/* Hover effect for top-level dropdown items */
.nav-dropdown #navMenu>ul>li:hover>a {
	background: linear-gradient(135deg, #6f42c1 0%, #8B5FBF 100%);
	color: white !important;
}

.nav-dropdown #navMenu>ul>li:hover>a b {
	color: white !important;
}

/* First-level dropdown menu */
.nav-dropdown #navMenu ul li ul.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	border: 2px solid #6f42c1;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
	margin: 0;
	padding: 8px 0;
	list-style: none;
}

/* Show dropdown on hover */
.nav-dropdown #navMenu>ul>li:hover>ul.dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* First-level dropdown items */
.nav-dropdown #navMenu ul.dropdown-menu>li {
	margin: 0;
	padding: 0;
	list-style: none;
	position: relative;
}

.nav-dropdown #navMenu ul.dropdown-menu>li>a {
	display: block;
	padding: 12px 20px;
	color: #1a1a1a !important;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: all 0.3s ease;
	background: #ffffff;
	border-bottom: 1px solid #f0f0f0;
	font-family: 'Times New Roman', serif;
}

.nav-dropdown #navMenu ul.dropdown-menu>li:last-child>a {
	border-bottom: none;
}

.nav-dropdown #navMenu ul.dropdown-menu>li>a:hover {
	background: linear-gradient(135deg, #8B5FBF 0%, #a478d1 100%);
	color: white !important;
	padding-left: 25px;
}

/* Second-level dropdown (submenu) */
.nav-dropdown #navMenu ul.dropdown-menu li ul.dropdown-submenu {
	position: absolute;
	top: -8px;
	left: calc(100% - 10px);
	margin-left: 0;
	min-width: 220px;
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	border: 2px solid #6f42c1;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-10px);
	transition: all 0.3s ease;
	z-index: 1010;
	padding: 8px 0;
	list-style: none;
	pointer-events: none;
}

/* Show second-level dropdown only when parent li is hovered */
.nav-dropdown #navMenu ul.dropdown-menu li.has-submenu:hover>ul.dropdown-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	pointer-events: auto;
}

/* Second-level dropdown items */
.nav-dropdown #navMenu ul.dropdown-submenu>li {
	margin: 0;
	padding: 0;
	list-style: none;
	position: relative;
}

.nav-dropdown #navMenu ul.dropdown-submenu>li>a {
	display: block;
	padding: 12px 20px;
	color: #1a1a1a !important;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: all 0.3s ease;
	background: #ffffff;
	border-bottom: 1px solid #f0f0f0;
	font-family: 'Times New Roman', serif;
}

.nav-dropdown #navMenu ul.dropdown-submenu>li>a:hover {
	background: linear-gradient(135deg, #8B5FBF 0%, #a478d1 100%);
	color: white !important;
	padding-left: 20px;
}

.nav-dropdown #navMenu ul.dropdown-submenu>li:last-child>a {
	border-bottom: none;
}

.nav-dropdown #navMenu ul.dropdown-submenu>li>a:hover {
	background: linear-gradient(135deg, #8B5FBF 0%, #a478d1 100%);
	color: white !important;
	padding-left: 25px;
}

/* Arrow indicator for items with submenu */
.nav-dropdown #navMenu ul.dropdown-menu li.has-submenu>a::after {
	content: '▶';
	float: right;
	margin-left: 10px;
	font-size: 12px;
	transition: transform 0.3s ease;
}

.nav-dropdown #navMenu ul.dropdown-menu li.has-submenu:hover>a::after {
	transform: translateX(3px);
}

/* Responsive Styles */
@media (max-width: 1400px) {
	.header-content {
		padding: 25px 30px;
		gap: 30px;
	}

	.logo-left {
		width: 120px;
		height: 120px;
	}

	.logo-right {
		width: 180px;
	}

	.dept-title h1 {
		font-size: 40px;
	}

	.dept-title h2 {
		font-size: 18px;
	}
}

@media (max-width: 1200px) {
	.header-content {
		gap: 25px;
		padding: 20px 25px;
	}

	.logo-left {
		width: 100px;
		height: 100px;
	}

	.logo-right {
		width: 160px;
	}

	.dept-title h1 {
		font-size: 36px;
		letter-spacing: 2px;
	}

	.dept-title h2 {
		font-size: 16px;
	}

	.nav-item>a,
	.nav-dropdown #navMenu>ul>li>a {
		font-size: 16px;
		padding: 16px 12px;
	}

	.nav-item>a b,
	.nav-dropdown #navMenu>ul>li>a b {
		font-size: 16px;
	}
}

@media (max-width: 900px) {
	.header-content {
		gap: 20px;
	}

	.logo-left {
		width: 90px;
		height: 90px;
	}

	.logo-right {
		width: 140px;
	}

	.dept-title h1 {
		font-size: 30px;
		letter-spacing: 1.5px;
	}

	.dept-title h2 {
		font-size: 14px;
	}

	.nav-item>a,
	.nav-dropdown #navMenu>ul>li>a {
		font-size: 15px;
		padding: 15px 10px;
	}

	.nav-item>a b,
	.nav-dropdown #navMenu>ul>li>a b {
		font-size: 15px;
	}
}

@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: block;
	}

	.header-content {
		flex-direction: column;
		text-align: center;
		padding: 60px 20px 25px 20px;
		gap: 20px;
	}

	.logo-left {
		width: 100px;
		height: 100px;
	}

	.logo-right {
		width: 150px;
	}

	.dept-title {
		padding: 0;
	}

	.dept-title h1 {
		font-size: 26px;
		letter-spacing: 1px;
		margin-bottom: 12px;
	}

	.dept-title h2 {
		font-size: 13px;
		letter-spacing: 0.5px;
	}

	/* Responsive table layout for tablets and mobile */
	table[width="1200"] {
		width: 100% !important;
		max-width: 100%;
		padding: 0 15px;
	}

	table[width="1200"] th {
		width: 100% !important;
		display: block;
		rowspan: auto;
		margin-bottom: 20px;
	}

	table[width="1200"] tr {
		display: block;
	}

	table[width="1200"] th[width="900"] {
		width: 100% !important;
	}

	table[width="1200"] th[width="319"] {
		width: 100% !important;
	}

	/* Responsive scrollable lists */
	#quicklinks-list,
	#news-update-list,
	#links-list {
		max-height: 300px;
		overflow-y: scroll;
	}

	/* Reduce font sizes in tables */
	table[width="1200"] th p {
		font-size: 14px;
	}

	table[width="1200"] th li {
		font-size: 13px;
	}

	.nav-container {
		display: none;
		margin-bottom: 30px;
	}

	.nav-container.mobile-active {
		display: block;
	}

	.nav-wrapper {
		flex-direction: column;
	}

	.nav-item {
		border-right: none;
		border-bottom: 2px solid #e0e0e0;
		min-height: auto;
	}

	.nav-item:last-child {
		border-bottom: none;
	}

	.nav-item>a,
	.nav-dropdown #navMenu>ul>li>a {
		font-size: 17px;
		padding: 16px 15px;
	}

	.nav-item>a b,
	.nav-dropdown #navMenu>ul>li>a b {
		font-size: 17px;
	}

	/* Mobile dropdown adjustments */
	.nav-dropdown #navMenu ul li ul.dropdown-menu {
		position: relative;
		top: 0;
		left: 0;
		width: 100%;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		border-top: 1px solid #e0e0e0;
		border-radius: 0;
		padding: 0;
		margin-top: 0;
	}

	.nav-dropdown #navMenu ul.dropdown-menu>li>a {
		padding: 14px 30px;
		font-size: 16px;
		background: #f8f9fa;
	}

	.nav-dropdown #navMenu ul.dropdown-menu li ul.dropdown-submenu {
		position: relative;
		top: 0;
		left: 0;
		margin-left: 0;
		width: 100%;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		border-top: 1px solid #e0e0e0;
		border-radius: 0;
		padding: 0;
	}

	.nav-dropdown #navMenu ul.dropdown-submenu>li>a {
		padding: 14px 45px;
		font-size: 15px;
		background: #f0f0f0;
	}

	.nav-dropdown #navMenu ul.dropdown-menu li.has-submenu>a::after {
		content: '▼';
	}

	/* Hide dropdowns by default on mobile */
	.nav-dropdown #navMenu ul li ul.dropdown-menu {
		display: none;
	}

	.nav-dropdown #navMenu>ul>li:hover>ul.dropdown-menu {
		display: block;
	}

	.nav-dropdown #navMenu ul.dropdown-menu li ul.dropdown-submenu {
		display: none;
	}

	.nav-dropdown #navMenu ul.dropdown-menu li.has-submenu:hover>ul.dropdown-submenu {
		display: block;
	}
}

@media (max-width: 480px) {
	.header-content {
		padding: 55px 15px 20px 15px;
	}

	.logo-left {
		width: 80px;
		height: 80px;
	}

	.logo-right {
		width: 120px;
	}

	.dept-title h1 {
		font-size: 22px;
	}

	.dept-title h2 {
		font-size: 11px;
	}

	.mobile-menu-toggle {
		padding: 10px 16px;
		font-size: 20px;
	}

	/* Responsive table layout for mobile */
	table[width="1200"] {
		width: 100% !important;
		max-width: 100%;
	}

	table[width="1200"] th {
		width: 100% !important;
		display: block;
		rowspan: auto;
	}

	table[width="1200"] tr {
		display: block;
		margin-bottom: 20px;
	}

	table[width="1200"] th[width="900"] {
		width: 100% !important;
	}

	table[width="1200"] th[width="319"] {
		width: 100% !important;
	}

	/* Responsive scrollable lists on mobile */
	#quicklinks-list,
	#news-update-list,
	#links-list {
		height: auto !important;
		overflow-y: visible !important;
		max-height: 300px;
		overflow-y: scroll;
	}

	/* Reduce font sizes in content tables */
	table[width="1200"] th p {
		font-size: 13px;
	}

	table[width="1200"] th li a {
		font-size: 12px;
	}
}

/* ========== FOOTER STYLES ========== */

.footer-container {
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	background: linear-gradient(135deg, #6f42c1 0%, #8B5FBF 50%, #6f42c1 100%);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
	position: relative;
	overflow: hidden;
	margin-top: 50px;
	margin-right: 0;
	margin-bottom: 0;
}

.footer-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%, rgba(255, 255, 255, 0.1)),
		linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%, rgba(255, 255, 255, 0.1));
	background-size: 60px 60px;
	background-position: 0 0, 30px 30px;
	opacity: 0.3;
}

.footer-content {
	width: 100%;
	padding: 40px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 20px;
	position: relative;
	z-index: 1;
	text-align: center;
	box-sizing: border-box;
}

.footer-section {
	width: 100%;
	text-align: center;
	position: relative;
	max-width: 1200px;
}

.footer-text {
	margin: 0;
	padding: 0;
	color: #ffffff;
	font-weight: 500;
	font-size: 14px;
	line-height: 1.6;
	font-family: 'Georgia', 'Times New Roman', serif;
	letter-spacing: 1px;
}

.footer-copyright .footer-text {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1.2px;
}

.footer-updates .footer-text {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 1px;
}

.footer-credits .footer-text {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 1px;
}

/* Footer separator - hidden for vertical layout */
.footer-section::after {
	display: none;
}

/* ========== FOOTER RESPONSIVE STYLES ========== */

@media (max-width: 1200px) {
	.footer-content {
		padding: 35px 30px;
		gap: 18px;
	}

	.footer-text {
		font-size: 13px;
	}
}

@media (max-width: 900px) {
	.footer-content {
		padding: 30px 25px;
		gap: 16px;
	}

	.footer-text {
		font-size: 13px;
	}

	.footer-copyright .footer-text {
		font-size: 14px;
	}
}

@media (max-width: 768px) {
	.footer-container {
		margin-top: 30px;
	}

	.footer-content {
		padding: 25px 20px;
		gap: 15px;
	}

	.footer-text {
		font-size: 12px;
	}

	.footer-copyright .footer-text {
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.footer-container {
		margin-top: 20px;
	}

	.footer-content {
		padding: 20px 15px;
		gap: 12px;
	}

	.footer-text {
		font-size: 11px;
	}

	.footer-copyright .footer-text {
		font-size: 12px;
	}
}