/**
 * Fixed Courses Page CSS
 *
 * @format
 */

:root {
	--primary: #0b5394; /* blue */
	--secondary: #ff7f11; /* orange */
	--accent: #1f6fb2; /* blue accent */
	--success: #48bb78;
	--danger: #e53e3e;
	--info: #3182ce;
	--light: #f8f9fa;
	--dark: #2d3748;
	--text: #4a5568;
	--text-light: #718096;
	--border: #e2e8f0;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
	--gradient-primary: linear-gradient(
		135deg,
		var(--primary) 0%,
		var(--accent) 100%
	);
	--gradient-gold: linear-gradient(135deg, var(--secondary) 0%, #ffab4d 100%);
}

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.courses-page {
	overflow-x: hidden;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Ensure cards are visible by default */
.stream-card,
.exam-card,
.subject-card,
.integration-card {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}

/* Enhanced Hero Section */
.page-hero.courses-hero {
	min-height: 70vh;
	display: flex;
	align-items: center;
	position: relative;
	background: var(--gradient-primary);
	overflow: hidden;
	padding: 120px 0 80px;
}

.page-hero.courses-hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(
			circle at 20% 80%,
			rgba(212, 175, 55, 0.1) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 20%,
			rgba(255, 255, 255, 0.05) 0%,
			transparent 50%
		);
}

.hero-content {
	position: relative;
	z-index: 10;
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 20px;
}

.hero-title {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 800;
	margin-bottom: 1.5rem;
	color: white;
	line-height: 1.2;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
	font-size: clamp(1.1rem, 2vw, 1.5rem);
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 3rem;
	line-height: 1.6;
	font-weight: 300;
}

.hero-buttons {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* Enhanced Floating Shapes */
.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.floating-shape {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	animation: float 6s ease-in-out infinite;
}

.shape-1 {
	width: 120px;
	height: 120px;
	top: 20%;
	left: 10%;
	animation-delay: 0s;
}

.shape-2 {
	width: 80px;
	height: 80px;
	bottom: 10%;
	right: 15%;
	animation-delay: 2s;
}

.shape-3 {
	width: 60px;
	height: 60px;
	top: 40%;
	right: 20%;
	animation-delay: 4s;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-20px);
	}
}

/* Enhanced Streams Section */
.streams-section {
	padding: 100px 0;
	background: var(--light);
	position: relative;
}

.section-header {
	text-align: center;
	margin-bottom: 60px;
	position: relative;
	z-index: 2;
}

.section-tag {
	display: inline-block;
	background: var(--gradient-gold);
	color: white;
	padding: 8px 20px;
	border-radius: 25px;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: var(--shadow);
}

.section-title {
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--primary);
	margin-bottom: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.section-header p {
	font-size: 1.2rem;
	color: var(--text-light);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

.streams-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 30px;
	position: relative;
	z-index: 2;
}

/* Fixed Stream Cards */
.stream-card {
	background: white;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.2);
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.stream-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.1) 0%,
		transparent 50%
	);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.stream-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-lg);
}

.stream-card:hover::before {
	opacity: 1;
}

.card-glow {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(
		circle at center,
		rgba(212, 175, 55, 0.15) 0%,
		transparent 70%
	);
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 1;
}

.stream-card:hover .card-glow {
	opacity: 1;
}

.stream-header {
	padding: 30px 25px 25px;
	text-align: center;
	background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
	position: relative;
	z-index: 2;
	border-bottom: 1px solid var(--border);
}

.stream-icon {
	font-size: 3.5rem;
	margin-bottom: 20px;
	display: inline-block;
	padding: 20px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: var(--shadow);
	transition: transform 0.3s ease;
}

.stream-card:hover .stream-icon {
	transform: scale(1.1);
}

.pcmb-card .stream-icon {
	color: var(--success);
	background: linear-gradient(
		135deg,
		rgba(72, 187, 120, 0.1) 0%,
		rgba(255, 255, 255, 0.9) 100%
	);
}

.pcmc-card .stream-icon {
	color: var(--info);
	background: linear-gradient(
		135deg,
		rgba(49, 130, 206, 0.1) 0%,
		rgba(255, 255, 255, 0.9) 100%
	);
}

.stream-header h3 {
	font-size: 2.2rem;
	color: var(--primary);
	margin-bottom: 10px;
	font-weight: 700;
}

.stream-subtitle {
	color: var(--text-light);
	font-size: 1.1rem;
	font-weight: 500;
}

.stream-content {
	padding: 25px;
	position: relative;
	z-index: 2;
}

.stream-features h4,
.competitive-exams h4 {
	color: var(--primary);
	margin-bottom: 20px;
	font-size: 1.3rem;
	font-weight: 600;
}

.stream-features ul {
	list-style: none;
	margin-bottom: 30px;
}

.stream-features li {
	padding: 12px 0;
	border-bottom: 1px solid rgba(226, 232, 240, 0.8);
	display: flex;
	align-items: center;
	gap: 12px;
	transition: all 0.3s ease;
}

.stream-features li:hover {
	transform: translateX(5px);
}

.stream-features li i {
	color: var(--secondary);
	width: 16px;
	font-size: 0.9rem;
}

.exam-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
}

.exam-tag {
	background: var(--gradient-primary);
	color: white;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
}

.exam-tag:hover {
	transform: translateY(-2px);
}

.stream-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid var(--border);
}

.stat {
	text-align: center;
	padding: 15px;
	background: rgba(248, 249, 250, 0.8);
	border-radius: 12px;
	transition: all 0.3s ease;
}

.stat:hover {
	background: var(--gradient-gold);
	transform: translateY(-5px);
}

.stat:hover .stat-number,
.stat:hover .stat-label {
	color: white;
}

.stat-number {
	font-size: 2rem;
	font-weight: 800;
	color: var(--secondary);
	margin-bottom: 5px;
	transition: color 0.3s ease;
}

.stat-label {
	font-size: 0.9rem;
	color: var(--text-light);
	font-weight: 500;
	transition: color 0.3s ease;
}

.btn-stream {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	background: var(--gradient-gold);
	color: white;
	padding: 16px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	margin-top: 20px;
	position: relative;
	overflow: hidden;
	z-index: 2;
	border: none;
	cursor: pointer;
}

.btn-stream:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.btn-stream i {
	transition: transform 0.3s ease;
}

.btn-stream:hover i {
	transform: translateX(5px);
}

/* Fixed Exam Cards */
.exams-section {
	padding: 100px 0;
	background: white;
	position: relative;
}

.exams-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 25px;
	position: relative;
	z-index: 2;
}

.exam-card {
	background: white;
	border-radius: 20px;
	padding: 30px 25px;
	box-shadow: var(--shadow);
	transition: all 0.4s ease;
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.2);
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.exam-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
}

.neet-card::before {
	background: var(--danger);
}

.jee-card::before {
	background: var(--info);
}

.cet-card::before {
	background: var(--success);
}

.exam-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-lg);
}

.exam-glow {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(
		circle at center,
		rgba(212, 175, 55, 0.1) 0%,
		transparent 70%
	);
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 1;
}

.exam-card:hover .exam-glow {
	opacity: 1;
}

.exam-icon {
	font-size: 3.5rem;
	margin-bottom: 25px;
	display: inline-block;
	padding: 20px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: var(--shadow);
	transition: transform 0.3s ease;
}

.exam-card:hover .exam-icon {
	transform: scale(1.1);
}

.neet-card .exam-icon {
	color: var(--danger);
	background: linear-gradient(
		135deg,
		rgba(229, 62, 62, 0.1) 0%,
		rgba(255, 255, 255, 0.9) 100%
	);
}

.jee-card .exam-icon {
	color: var(--info);
	background: linear-gradient(
		135deg,
		rgba(49, 130, 206, 0.1) 0%,
		rgba(255, 255, 255, 0.9) 100%
	);
}

.cet-card .exam-icon {
	color: var(--success);
	background: linear-gradient(
		135deg,
		rgba(72, 187, 120, 0.1) 0%,
		rgba(255, 255, 255, 0.9) 100%
	);
}

.exam-content {
	position: relative;
	z-index: 2;
}

.exam-content h3 {
	font-size: 1.8rem;
	color: var(--primary);
	margin-bottom: 15px;
	font-weight: 700;
}

.exam-content p {
	color: var(--text-light);
	margin-bottom: 25px;
	line-height: 1.6;
	font-size: 1.05rem;
}

.exam-features {
	display: grid;
	gap: 15px;
}

.feature {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.feature:hover {
	background: rgba(248, 249, 250, 0.8);
	transform: translateX(5px);
}

.feature i {
	color: var(--secondary);
	font-size: 0.9rem;
	width: 16px;
}

.feature span {
	color: var(--text);
	font-weight: 500;
}

.exam-stats {
	display: flex;
	justify-content: space-around;
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid var(--border);
	position: relative;
	z-index: 2;
}

.exam-stat {
	text-align: center;
	padding: 15px;
	background: rgba(248, 249, 250, 0.8);
	border-radius: 12px;
	transition: all 0.3s ease;
	flex: 1;
	margin: 0 5px;
}

.exam-stat:hover {
	background: var(--gradient-primary);
	transform: translateY(-5px);
}

.exam-stat:hover .stat-value,
.exam-stat:hover .stat-name {
	color: white;
}

.stat-value {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--secondary);
	margin-bottom: 5px;
	transition: color 0.3s ease;
}

.stat-name {
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--text-light);
	transition: color 0.3s ease;
}

/* Fixed Curriculum Section */
.curriculum-section {
	padding: 100px 0;
	background: var(--light);
	position: relative;
}

.curriculum-tabs {
	position: relative;
	z-index: 2;
}

.tab-buttons {
	display: flex;
	justify-content: center;
	margin-bottom: 50px;
	flex-wrap: wrap;
	gap: 15px;
}

.tab-button {
	display: flex;
	align-items: center;
	gap: 12px;
	background: white;
	border: 2px solid var(--border);
	padding: 18px 30px;
	border-radius: 15px;
	font-weight: 600;
	color: var(--text);
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: var(--shadow);
}

.tab-button.active {
	background: var(--gradient-gold);
	border-color: var(--secondary);
	color: white;
	transform: translateY(-5px);
}

.tab-button:hover:not(.active) {
	border-color: var(--secondary);
	color: var(--secondary);
	transform: translateY(-3px);
}

.tab-button i {
	font-size: 1.3rem;
}

.tab-content {
	background: white;
	border-radius: 20px;
	padding: 40px;
	box-shadow: var(--shadow);
}

.tab-pane {
	display: none;
}

.tab-pane.active {
	display: block;
}

.curriculum-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
}

.subject-card {
	background: rgba(248, 249, 250, 0.8);
	padding: 30px;
	border-radius: 15px;
	text-align: center;
	transition: all 0.3s ease;
	border: 1px solid transparent;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.subject-card:hover {
	background: white;
	transform: translateY(-5px);
	box-shadow: var(--shadow);
	border-color: var(--secondary);
}

.subject-icon {
	font-size: 2.5rem;
	color: var(--secondary);
	margin-bottom: 20px;
	display: inline-block;
	padding: 15px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: var(--shadow);
	transition: all 0.3s ease;
}

.subject-card:hover .subject-icon {
	transform: scale(1.1);
	background: var(--gradient-gold);
	color: white;
}

.subject-card h4 {
	color: var(--primary);
	margin-bottom: 20px;
	font-size: 1.4rem;
	font-weight: 700;
}

.subject-card ul {
	list-style: none;
	text-align: left;
}

.subject-card li {
	padding: 10px 0;
	border-bottom: 1px solid rgba(226, 232, 240, 0.8);
	position: relative;
	padding-left: 20px;
	transition: all 0.3s ease;
}

.subject-card li:hover {
	transform: translateX(5px);
	color: var(--secondary);
}

.subject-card li:before {
	content: "•";
	position: absolute;
	left: 0;
	color: var(--secondary);
	font-weight: bold;
	font-size: 1.2rem;
}

.integration-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.integration-card {
	background: rgba(248, 249, 250, 0.8);
	padding: 30px;
	border-radius: 15px;
	transition: all 0.3s ease;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.integration-card:hover {
	background: white;
	transform: translateY(-5px);
	box-shadow: var(--shadow);
}

.integration-card h4 {
	color: var(--primary);
	margin-bottom: 20px;
	font-size: 1.3rem;
	font-weight: 700;
}

.schedule {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.schedule-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	background: white;
	border-radius: 10px;
	transition: all 0.3s ease;
}

.schedule-item:hover {
	transform: translateX(5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.time {
	font-weight: 600;
	color: var(--primary);
	font-size: 0.9rem;
}

.activity {
	color: var(--text);
	text-align: right;
	font-weight: 500;
}

.integration-card ul {
	list-style: none;
}

.integration-card li {
	padding: 12px 0;
	border-bottom: 1px solid rgba(226, 232, 240, 0.8);
	position: relative;
	padding-left: 25px;
	transition: all 0.3s ease;
}

.integration-card li:hover {
	transform: translateX(5px);
	color: var(--secondary);
}

.integration-card li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--secondary);
	font-weight: bold;
}

/* Enhanced CTA Section */
.cta-section {
	padding: 100px 0;
	background: var(--gradient-primary);
	position: relative;
	overflow: hidden;
}

.cta-content {
	text-align: center;
	position: relative;
	z-index: 2;
}

.cta-content h2 {
	font-size: clamp(2rem, 4vw, 3rem);
	color: white;
	margin-bottom: 1.5rem;
	font-weight: 700;
}

.cta-content p {
	font-size: 1.3rem;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 3rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

.cta-buttons {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

/* Enhanced Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 32px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	border: none;
	cursor: pointer;
}

.btn-primary {
	background: var(--gradient-gold);
	color: white;
	box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.btn-outline {
	background: transparent;
	color: white;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
	background: white;
	color: var(--primary);
	border-color: white;
	transform: translateY(-3px);
}

.btn i {
	transition: transform 0.3s ease;
}

.btn:hover i {
	transform: translateX(5px);
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	color: white;
	z-index: 10;
}

.scroll-indicator span {
	display: block;
	margin-bottom: 12px;
	font-size: 0.9rem;
	opacity: 0.8;
	animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
	0%,
	100% {
		opacity: 0.5;
	}
	50% {
		opacity: 1;
	}
}

.scroll-arrow {
	width: 2px;
	height: 30px;
	background: white;
	margin: 0 auto;
	position: relative;
	animation: bounce 2s infinite;
}

.scroll-arrow::after {
	content: "";
	position: absolute;
	bottom: -8px;
	left: -4px;
	width: 10px;
	height: 10px;
	border-right: 2px solid white;
	border-bottom: 2px solid white;
	transform: rotate(45deg);
}

@keyframes bounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-5px);
	}
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
	.streams-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.exams-grid {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.curriculum-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.page-hero.courses-hero {
		min-height: 80vh;
		padding: 100px 0 60px;
	}

	.hero-buttons {
		flex-direction: column;
		align-items: center;
	}

	.tab-buttons {
		flex-direction: column;
		align-items: center;
	}

	.tab-button {
		width: 100%;
		max-width: 300px;
		justify-content: center;
	}

	.exam-stats {
		flex-direction: column;
		gap: 15px;
	}

	.schedule-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.activity {
		text-align: left;
	}

	.cta-buttons {
		flex-direction: column;
		align-items: center;
	}
}

@media (max-width: 480px) {
	.streams-grid {
		grid-template-columns: 1fr;
	}

	.exams-grid {
		grid-template-columns: 1fr;
	}

	.curriculum-grid {
		grid-template-columns: 1fr;
	}

	.integration-grid {
		grid-template-columns: 1fr;
	}

	.stream-stats {
		grid-template-columns: 1fr;
	}

	.tab-content {
		padding: 20px;
	}

	.section-header {
		margin-bottom: 50px;
	}
}

/* Smooth Scrolling */
html {
	scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.btn:focus,
.tab-button:focus,
.stream-card:focus {
	outline: 2px solid var(--secondary);
	outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
