* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background: linear-gradient(135deg, #4a5aa8 0%, #5a3d7a 100%);
	color: #333;
	min-height: 100vh;
	line-height: 1.6;
	overflow-x: hidden;
}

/* Desktop Navigation Menu - Only visible on desktop */
.desktop-nav {
	display: none;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 70px;
}

.nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.5rem;
	font-weight: 700;
	color: #3a4a8e;
	text-decoration: none;
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 30px;
	align-items: center;
}

.nav-links a {
	text-decoration: none;
	color: #333;
	font-weight: 500;
	padding: 8px 16px;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.nav-links a:hover {
	background: rgba(58, 74, 142, 0.1);
	color: #3a4a8e;
}

.nav-cta {
	background: linear-gradient(135deg, #3a4a8e, #4a2d5e);
	color: white !important;
	padding: 12px 24px !important;
	border-radius: 25px;
	box-shadow: 0 4px 15px rgba(58, 74, 142, 0.3);
	transition: all 0.3s ease;
}

.nav-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(58, 74, 142, 0.4);
	background: linear-gradient(135deg, #4a2d5e, #3a4a8e);
}

.app-container {
	max-width: 414px;
	margin: 0 auto;
	background: #f8f9ff;
	min-height: 100vh;
	position: relative;
	box-shadow: 0 0 30px rgba(0,0,0,0.2);
}

.header {
	background: linear-gradient(135deg, #3a4a8e 0%, #4a2d5e 100%);
	color: white;
	padding: 30px 20px 30px;
	text-align: center;
	position: relative;
	overflow: hidden;
	text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
	animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); opacity: 0.3; }
	50% { transform: scale(1.1); opacity: 0.1; }
}

.header h1 {
	font-size: 2.2rem;
	font-weight: 700;
	margin-bottom: 8px;
	position: relative;
	z-index: 2;
	text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.header p {
	font-size: 1rem;
	opacity: 0.95;
	position: relative;
	z-index: 2;
	text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.search-bar {
	padding: 15px 20px;
	background: white;
	margin: 20px 20px 0px;
	border-radius: 15px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	position: relative;
}

.search-input {
	width: 100%;
	padding: 12px 20px 12px 45px;
	border: 2px solid #e9ecef;
	border-radius: 25px;
	font-size: 1rem;
	outline: none;
	transition: all 0.3s ease;
}

.search-input:focus {
	border-color: #3a4a8e;
	box-shadow: 0 0 0 3px rgba(58, 74, 142, 0.15);
}

.search-icon {
	position: absolute;
	left: 35px;
	top: 50%;
	transform: translateY(-50%);
	color: #adb5bd;
	font-size: 1.1rem;
}

.categories-container {
	padding: 20px;
	background: #f8f9ff;
}

.category-section {
	margin-bottom: 25px;
	animation: slideInUp 0.6s ease-out;
}

.category-section:nth-child(odd) { animation-delay: 0.1s; }
.category-section:nth-child(even) { animation-delay: 0.2s; }

.category-header {
	background: linear-gradient(135deg, #2e7bd4 0%, #0080cc 100%);
	color: white;
	padding: 15px 20px;
	border-radius: 15px 15px 0 0;
	font-weight: 600;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.category-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
	transition: left 0.6s;
}

.category-header:hover::before {
	left: 100%;
}

.category-header:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(46, 123, 212, 0.4);
}

.category-header.aptitude { background: linear-gradient(135deg, #d63031, #c0392b); }
.category-header.english { background: linear-gradient(135deg, #00b894, #2d8a70); }
.category-header.reasoning { background: linear-gradient(135deg, #0984e3, #6c5ce7); }
.category-header.di { background: linear-gradient(135deg, #e84393, #d63031); }
.category-header.gk { background: linear-gradient(135deg, #2e7bd4, #0080cc); }
.category-header.current-affairs { background: linear-gradient(135deg, #00b894, #00cec9); }
.category-header.interview { background: linear-gradient(135deg, #e17055, #fdcb6e); }
.category-header.engineering { background: linear-gradient(135deg, #74b9ff, #fd79a8); }
.category-header.computer { background: linear-gradient(135deg, #fd79a8, #e84393); }
.category-header.programming { background: linear-gradient(135deg, #3a4a8e, #4a2d5e); }
.category-header.subject { background: linear-gradient(135deg, #e17055, #d63031); }
.category-header.ask-question { background: linear-gradient(135deg, #00b894, #fdcb6e); }

.toggle-icon {
	margin-left: auto;
	transition: transform 0.3s ease;
	font-size: 1.2rem;
}

.toggle-icon.rotated {
	transform: rotate(180deg);
}

.questions-list {
	background: white;
	border-radius: 0 0 15px 15px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.4s ease;
}

.questions-list.show {
	max-height: 2000px;
}

.question-item {
	padding: 18px 20px;
	border-bottom: 1px solid #f0f0f0;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
}

.question-item:last-child {
	border-bottom: none;
}

.question-item:hover {
	background: linear-gradient(90deg, #f8f9ff, #e8f4fd);
	transform: translateX(5px);
}

.question-item:active {
	transform: translateX(8px) scale(0.98);
	background: linear-gradient(90deg, #e8f4fd, #d1ecf1);
}

.question-text {
	font-weight: 500;
	color: #2c3e50;
	margin-bottom: 8px;
	font-size: 0.95rem;
	line-height: 1.4;
}

.question-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.8rem;
	color: #7f8c8d;
}

.difficulty {
	padding: 4px 12px;
	border-radius: 20px;
	font-weight: 500;
	font-size: 0.75rem;
}

.difficulty.easy { background: #d4edda; color: #155724; }
.difficulty.medium { background: #fff3cd; color: #856404; }
.difficulty.hard { background: #f8d7da; color: #721c24; }

.question-number {
	font-weight: 600;
	color: #667eea;
}

.read-more-btn {
	padding: 15px 20px;
	background: linear-gradient(135deg, #3a4a8e, #4a2d5e);
	color: white;
	border: none;
	border-radius: 0 0 15px 15px;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	position: relative;
	overflow: hidden;
	text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.read-more-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
	transition: left 0.6s;
}

.read-more-btn:hover::before {
	left: 100%;
}

.read-more-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(58, 74, 142, 0.4);
}

.read-more-btn:active {
	transform: translateY(0) scale(0.98);
}

.floating-stats {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: linear-gradient(135deg, #3a4a8e, #4a2d5e);
	color: white;
	padding: 12px 16px;
	border-radius: 25px;
	box-shadow: 0 8px 25px rgba(58, 74, 142, 0.4);
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	z-index: 1000;
	animation: bounce 2s infinite;
	text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
	40% { transform: translateY(-10px); }
	60% { transform: translateY(-5px); }
}

.no-results, .search-results-header, .search-loading {
	padding: 15px 20px;
	margin-bottom: 20px;
	border-radius: 15px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	position: relative;
}

.empty-state {
	text-align: center;
	padding: 40px 20px;
	color: #6c757d;
}

.empty-state i {
	font-size: 3rem;
	margin-bottom: 15px;
	opacity: 0.5;
}

@keyframes slideInUp {
	from {
		transform: translateY(30px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.ripple {
	position: relative;
	overflow: hidden;
}

.ripple::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255,255,255,0.2);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
	width: 300px;
	height: 300px;
}

/* Enhanced styles for professional GK section */
.gk-category-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	transition: all 0.3s ease;
	cursor: pointer;           
	margin-bottom: 8px;
}

.gk-category-item:hover {
	background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
	border-color: #2196f3;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.gk-category-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #2196f3, #1976d2);
	color: white;
	border-radius: 8px;
	font-size: 18px;
	flex-shrink: 0;
}

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

.gk-category-name {
	font-size: 16px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gk-category-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 13px;
	color: #6c757d;
}

.question-count {
	display: flex;
	align-items: center;
	gap: 4px;
	font-weight: 500;
}

.question-count i {
	font-size: 12px;
}

.category-badge {
	background: linear-gradient(135deg, #28a745, #20c997);
	color: white;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.gk-chevron {
	color: #6c757d;
	transition: all 0.3s ease;
}

.gk-category-item:hover .gk-chevron {
	color: #2196f3;
	transform: translateX(4px);
}

/* Animation for category items */
@keyframes slideInCategory {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.gk-category-item {
	animation: slideInCategory 0.4s ease-out;
}

/* Add to home.css */
.question-item[onclick*="category.php"] {
	border-left: 4px solid #1e90ff;
}

.question-item[onclick*="category.php"] .question-text {
	font-weight: bold;
	color: #1e3a8a;
}

.question-item[onclick*="category.php"] .category {
	background: #dbeafe;
	color: #1d4ed8;
	padding: 2px 8px;
	border-radius: 4px;
}

/* ===== DESKTOP RESPONSIVE STYLES (768px and above) ===== */
@media (min-width: 768px) {
	/* Show desktop navigation */
	.desktop-nav {
		display: block;
	}
	
	/* Adjust body background for larger screens */
	body {
		background: linear-gradient(135deg, #4a5aa8 0%, #5a3d7a 100%);
		background-attachment: fixed;
	}
	
	/* Container adjustments for desktop */
	.app-container {
		max-width: 1200px;
		margin: 0 auto;
		background: transparent;
		box-shadow: none;
		min-height: calc(100vh - 70px); /* Account for nav height */
	}
	
	/* Header adjustments for desktop */
	.header {
		margin: 20px 20px 0;
		border-radius: 20px;
		background: linear-gradient(135deg, #3a4a8e 0%, #4a2d5e 100%);
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	}
	
	/* Search bar for desktop */
	.search-bar {
		margin: 20px 20px 0;
		border-radius: 20px;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	}
	
	/* Two-column layout for categories */
	.categories-container {
		padding: 20px;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 25px;
		align-items: start;
	}
	
	/* Ensure sections stretch properly */
	.category-section {
		margin-bottom: 0;
		height: fit-content;
	}
	
	/* Enhanced shadows and styling for desktop */
	.questions-list {
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	}
	
	/* Floating stats repositioning */
	.floating-stats {
		bottom: 30px;
		right: 30px;
		padding: 15px 20px;
		font-size: 1rem;
	}
	
	/* Enhanced hover effects for desktop */
	.category-header:hover {
		transform: translateY(-3px);
		box-shadow: 0 12px 35px rgba(46, 123, 212, 0.4);
	}
	
	.question-item:hover {
		transform: translateX(8px);
	}
	
	.gk-category-item:hover {
		transform: translateY(-3px);
		box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
	}
	
	/* Better typography for desktop */
	.header h1 {
		font-size: 2.5rem;
	}
	
	.header p {
		font-size: 1.1rem;
	}
	
	.category-header {
		font-size: 1.2rem;
		padding: 18px 24px;
	}
	
	.question-text {
		font-size: 1rem;
	}
	
	.gk-category-name {
		font-size: 17px;
	}
}

/* ===== LARGE DESKTOP STYLES (1200px and above) ===== */
@media (min-width: 1200px) {
	/* Three-column layout for very large screens */
	.categories-container {
    	grid-template-columns: 1fr 1fr 1fr;
    	gap: 30px;
    	margin: 30px 30px 0;
    	padding: 20px 25px;
    	border-radius: 20px;
	}
	
	/* Container max-width increase */
	.app-container {
		max-width: 1400px;
	}
	
	/* Larger header for big screens */
	.header {
		margin: 30px 30px 0;
		padding: 40px 30px 40px;
	}
	
	.header h1 {
		font-size: 3rem;
	}
	
	.header p {
		font-size: 1.2rem;
	}
	
	/* Enhanced search bar */
	.search-bar {
		margin: 30px 30px 0;
		padding: 20px 25px;
	}
	
	.search-input {
		padding: 15px 25px 15px 50px;
		font-size: 1.1rem;
	}
	
	.search-icon {
		left: 45px;
		font-size: 1.2rem;
	}
}

/* ===== TABLET STYLES (768px to 1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
	/* Two-column layout maintained */
	.categories-container {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
		padding: 25px;
	}
	
	/* Adjust spacing for tablets */
	.header {
		margin: 15px 15px 0;
		padding: 35px 25px 35px;
	}
	
	.search-bar {
		margin: 15px 15px 0;
	}
}

/* ===== MOBILE OPTIMIZATIONS (up to 767px) ===== */
@media (max-width: 767px) {
	/* Hide desktop navigation */
	.desktop-nav {
		display: none;
	}
	
	/* Single column layout */
	.categories-container {
		display: block;
		padding: 15px;
	}
	
	.category-section {
		margin-bottom: 25px;
	}
	
	.app-container {
		max-width: 100%;
	}
	
	.header {
		padding: 50px 15px 25px;
		margin: 0;
		border-radius: 0;
	}
	
	.header h1 {
		font-size: 1.8rem;
	}
	
	.category-header {
		padding: 12px 16px;
		font-size: 1rem;
	}
	
	.question-item {
		padding: 15px 16px;
	}
	
	.search-bar {
		margin: 15px 15px 0;
		padding: 12px 16px;
		border-radius: 15px;
	}
	
	.gk-category-item {
		padding: 10px 14px;
	}
	
	.gk-category-name {
		font-size: 15px;
	}
}

/* ===== VERY SMALL MOBILE (480px and below) ===== */
@media (max-width: 480px) {
	.header h1 {
		font-size: 1.6rem;
	}
	
	.header p {
		font-size: 0.9rem;
	}
	
	.category-header {
		padding: 10px 14px;
		font-size: 0.95rem;
	}
	
	.question-item {
		padding: 12px 14px;
	}
	
	.question-text {
		font-size: 0.9rem;
	}
	
	.floating-stats {
		bottom: 15px;
		right: 15px;
		padding: 10px 14px;
		font-size: 0.85rem;
	}
	
	.gk-category-icon {
		width: 35px;
		height: 35px;
		font-size: 16px;
	}
	
	.gk-category-name {
		font-size: 14px;
	}
	
	.gk-category-meta {
		font-size: 12px;
	}
}

/* ===== ACCESSIBILITY AND PERFORMANCE ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.category-header {
		border: 2px solid currentColor;
	}
	
	.question-item {
		border: 1px solid #333;
	}
	
	.gk-category-item {
		border: 1px solid #333;
	}
}

/* Dark mode support (if browser supports it) */
@media (prefers-color-scheme: dark) {
	.desktop-nav {
		background: rgba(30, 30, 30, 0.95);
		border-bottom-color: rgba(255, 255, 255, 0.1);
	}
	
	.nav-links a {
		color: #e0e0e0;
	}
	
	.nav-links a:hover {
		background: rgba(255, 255, 255, 0.1);
		color: #fff;
	}
}

/* Enhanced styles for professional GK section */
.gk-category-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	transition: all 0.3s ease;
	cursor: pointer;           
	margin-bottom: 8px;
}

.gk-category-item:hover {
	background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
	border-color: #2196f3;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.gk-category-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #2196f3, #1976d2);
	color: white;
	border-radius: 8px;
	font-size: 18px;
	flex-shrink: 0;
}

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

.gk-category-name {
	font-size: 16px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gk-category-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 13px;
	color: #6c757d;
}

.question-count {
	display: flex;
	align-items: center;
	gap: 4px;
	font-weight: 500;
}

.question-count i {
	font-size: 12px;
}

.category-badge {
	background: linear-gradient(135deg, #28a745, #20c997);
	color: white;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.gk-chevron {
	color: #6c757d;
	transition: all 0.3s ease;
}

.gk-category-item:hover .gk-chevron {
	color: #2196f3;
	transform: translateX(4px);
}

/* Animation for category items */
@keyframes slideInCategory {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.gk-category-item {
	animation: slideInCategory 0.4s ease-out;
}

/* Minimum items guarantee indicator */
.section-guarantee {
	font-size: 12px;
	color: #28a745;
	font-weight: 500;
	margin-left: 8px;
}
/* Search Results Header - positioned between search bar and categories */
.search-results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 30px 30px 0;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    animation: slideInDown 0.4s ease-out;
}

.search-results-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-results-header h3 i {
    font-size: 18px;
    opacity: 0.9;
}

.search-results-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

/* Animation for search results header */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-results-header {
        margin: 15px 15px;
        padding: 16px;
        border-radius: 12px;
    }
    
    .search-results-header h3 {
        font-size: 18px;
    }
    
    .search-results-header p {
        font-size: 13px;
    }
}

/* Update the no-results styling to work with the new structure */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 20px 0;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results h3 {
    margin: 0 0 8px 0;
    color: #495057;
    font-weight: 600;
}

.no-results p {
    margin: 0;
    font-size: 14px;
}