/* ======================== */
/* 🎨 THEME COLORS 🎨 */
/* ======================== */
:root {
	--primary-color: #f39c12;
	--primary-dark: #e67e22;
	--primary-light: #fef5e7;

	--heading-color: #111111;
	--text-color: #555555;
	--text-light: #666666;
	--text-low-gray: #949494;

	--white-color: #ffffff;
	--light-gray-bg: #f9f9f9;
	--border-color: #eeeeee;

	--card-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 5px 15px rgba(0, 0, 0, 0.08);
	--card-hover-shadow: 0 6px 8px rgba(0, 0, 0, 0.06), 0 8px 25px rgba(0, 0, 0, 0.1);

	--primary-light-bg: #f0f4ff;
	--success-color: #28a745;
	--warning-color: #f39c12;
}

/* ======================== */
/* GLOBAL STYLES */
/* ======================== */
html {
	font-size: 100%;
	scroll-behavior: smooth;
}

/* width */

body {
	font-family: 'Noto Sans', 'Noto Sans Tamil', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	margin: 0;
	padding: 0;
	background-color: var(--white-color);
	color: var(--text-color);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

main {
	padding-top: 120px;
}

a {
	text-decoration: none;
	color: inherit;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
}

section {
	padding: 60px 0;
	overflow: hidden;
}

.section-title {
	text-align: center;
	font-size: 1.7rem;
	margin: 0 0 10px 0;
	color: var(--heading-color);
}

.section-title-container {
	text-align: center;
	margin-bottom: 40px;
}

.title-divider {
	max-width: 140px;
}

.loader-layer {
	--size: 220px;
	--duration: 2.6s;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0f1724;
	margin: 0;
	font-family: "Noto Sans Tamil", "Latha", serif;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 99999999;
}
.text-danger{
	color: red !important;
}
.loader {
	width: var(--size);
	height: var(--size);
	position: relative;
}

svg {
	width: 100%;
	height: 100%;
	display: block;
	overflow: visible;
}

.glyph {
	fill: none;
	stroke: #ffd166;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1200;
	stroke-dashoffset: 1200;
	animation: draw var(--duration) ease forwards;
	animation-delay: 0s;
}

.glyph-fill {
	fill: #ffd166;
	opacity: 0;
	animation: fillIn 0.4s ease forwards;
	animation-delay: calc(var(--duration) - 0.15s);
}

.pen {
	r: 7;
	fill: #ffffff;
	stroke: #1f2937;
	stroke-width: 2;
	transform-origin: center;
	animation: penMove var(--duration) linear forwards;
}

.pen-glow {
	r: 14;
	fill: rgba(255, 209, 102, 0.14);
	opacity: 0.9;
	animation: penMove var(--duration) linear forwards;
}

@keyframes draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes fillIn {
	to {
		opacity: 1;
	}
}

@keyframes penMove {
	0% {
		transform: translate(-46%, 35%) scale(1);
		opacity: 1;
	}

	35% {
		transform: translate(-10%, 0%) scale(1);
	}

	65% {
		transform: translate(12%, -6%) scale(1);
	}

	100% {
		transform: translate(46%, -12%) scale(0.95);
		opacity: 0.9;
	}
}

.caption {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	color: #cbd5e1;
	font-size: 14px;
	letter-spacing: 0.4px;
	font-weight: 500;
	text-align: center;
}

.loader-layer.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}


/* PRELOADER */
.preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #ffffff;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
	visibility: visible;
	opacity: 1;
}

.loader-spinner {
	width: 50px;
	height: 50px;
	border: 5px solid var(--primary-light);
	border-top-color: var(--primary-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

body.loaded .preloader {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.logo_img {
	width: 60px;
	height: 60px;
}

/* ======================== */
/* 🌟 FIXED HEADER STYLING 🌟 */
/* ======================== */
header {
	position: fixed;
	/* Fix the entire header block */
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
}
.mobile-logout{
	display: none;
}
main {
	/* Dynamic padding will be added by JS to prevent overlap */
	background-color: #F9F9F9;
}

.nav-info {
	background-color: var(--primary-dark);
	color: var(--white-color);
	padding: 8px 0;
	text-align: center;
}

.nav-info h5 {
	color: var(--white-color);
	margin: 0;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.5px;
}

.nav-info h5 i {
	margin-right: 8px;
	opacity: 0.8;
}

.navbar {
	background-color: var(--white-color);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.navbar .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	width:95%;
	max-width: 100%;
}

.navbar-logo {
	margin: 0;
	font-weight: 800;
}

.navbar-links {
	list-style: none;
	display: flex;
	gap: 30px;
	margin: 0;
	padding: 0;
}

.navbar-links a {
	text-decoration: none;
	color: var(--heading-color);
	font-weight: 500;
	font-size: 1rem;
	transition: color 0.3s;
	position: relative;
	padding-bottom: 5px;
}

.navbar-links a::after {
	/*content: '';*/
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--primary-color);
	transform: scaleX(0);
	transform-origin: bottom right;
	transition: transform 0.3s ease-out;
}

.navbar-links a:hover::after,
.navbar-links .active::after {
	transform: scaleX(1);
	transform-origin: bottom left;
}

.navbar-links a:hover,
.navbar-links .active {
	color: var(--primary-color) !important;
}

.navbar-auth {
	display: flex;
	align-items: center;
	gap: 20px;
}

.navbar-auth i {
	font-size: 1.4rem;
	cursor: pointer;
	color: var(--heading-color);
	transition: color 0.3s ease;
}

.navbar-auth i:hover {
	color: var(--primary-color);
}

.mobile-menu-icon {
	display: none;
}

.mobile-menu-header {
	display: none;
}

/* ======================== */
/* 🌟 HERO SECTION WITH SCROLLER 🌟 */
/* ======================== */
.hero-section {
	padding: 80px 0 120px 0;
	/* Increased bottom padding for scroller */
	position: relative;
	color: var(--white-color);
	background-image: linear-gradient(rgba(17, 17, 17, 0.6), rgba(17, 17, 17, 0.6)), url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?q=80&w=2070&auto=format&fit=crop');
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.hero-container {
	display: flex;
	align-items: center;
	gap: 40px;
	position: relative;
	z-index: 1;
	padding-top: 40px;
}

.hero-text {
	flex: 1;
}

.hero-subtitle {
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.1rem;
}

.hero-text h1 {
	font-size: 2.8rem;
	font-weight: 700;
	color: var(--white-color);
	margin: 10px 0 20px 0;
	line-height: 1.3;
}

.hero-text h1 span {
	color: var(--primary-color);
}

.hero-description {
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 30px;
	max-width: 500px;
}

.hero-text .btn-primary {
	padding: 15px 35px;
	font-size: 1.1rem;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.hero-text .btn-primary .fas {
	transition: transform 0.3s ease;
}

.hero-text .btn-primary:hover .fas {
	transform: translateX(5px);
}

.hero-image-area {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero-image-placeholder img {
	max-width: 100%;
	height: auto;
}

@keyframes scroll-horizontal {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}

	/* This is the key */
}

.stats-track {
	animation: scroll-horizontal 30s linear infinite;
}

.hero-stats-scroller {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 20px 0;
	background: rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.hero-stats-scroller:hover .stats-track {
	animation-play-state: paused;
}

.navbar-links i{
	 visibility: hidden;
}

.stats-track {
	display: flex;
	width: max-content;
	/* Critical for layout */
	animation: scroll-horizontal 30s linear infinite;
}

.stat-card {
	display: flex;
	align-items: center;
	gap: 15px;
	color: var(--white-color);
	margin: 0 40px;
	/* Spacing between cards */
	flex-shrink: 0;
}

.stat-card i {
	font-size: 2rem;
	color: var(--primary-color);
}

.stat-card strong {
	font-size: 1.5rem;
	display: block;
}

.stat-card span {
	font-size: 0.9rem;
	opacity: 0.8;
}

/* ======================== */
/* OTHER SECTIONS (ORIGINAL STYLES) */
/* ======================== */

.btn-primary {
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 15px 30px;
	text-decoration: none;
	font-weight: 700;
	border-radius: 8px;
	display: inline-block;
	transition: all 0.3s;
	border: none;
	cursor: pointer;
	font-size: 1.1rem;
}

.btn-primary:hover {
	background-color: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.btn-secondary {
	background-color: var(--white-color);
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
	padding: 12px 25px;
	text-decoration: none;
	font-weight: 700;
	border-radius: 8px;
	display: inline-block;
	transition: all 0.3s;
}

.btn-secondary:hover {
	background-color: var(--primary-color);
	color: var(--white-color);
	transform: translateY(-2px);
}

.btn-outline {
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	padding: 10px 20px;
	text-decoration: none;
	font-weight: 500;
	border-radius: 8px;
	transition: all 0.3s;
}

.btn-outline:hover {
	background-color: var(--primary-color);
	color: var(--white-color);
	transform: translateY(-2px);
}

.mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1001;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

body.mobile-menu-active {
	overflow: hidden;
}

body.mobile-menu-active .mobile-menu-overlay {
	display: block;
	opacity: 1;
}

body.mobile-menu-active .navbar-links {
	transform: translateX(0);
}

.categories-section {
	background-color: var(--white-color);
}

.categories-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.category-card {
	background-color: var(--primary-light);
	border: 1px solid var(--primary-light);
	text-align: center;
	border-radius: 12px;
	padding: 25px;
	display: flex;
	align-items: center;
	gap: 15px;
	font-weight: 500;
	font-size: 1.1rem;
	transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.category-card i {
	font-size: 1.5rem;
	padding: 10px;
	border-radius: 8px;
	color: white;
	width: 30px;
	text-align: center;
}

.icon-group1 {
	background-color: #e74c3c;
}

.icon-group2 {
	background-color: #3498db;
}

.icon-group4 {
	background-color: #9b59b6;
}

.icon-tamil {
	background-color: #f39c12;
}

.icon-maths {
	background-color: #8e44ad;
}

.icon-history {
	background-color: #1abc9c;
}

.icon-science {
	background-color: #e67e22;
}

.icon-current {
	background-color: #2980b9;
}

/* ================================== */
/* 🚀 IMPROVED NOTIFICATIONS SECTION 🚀 */
/* ================================== */

.notifications-section {
	background-color: var(--light-gray-bg);
}

.notification-slider {
	padding-bottom: 50px;
	/* Space for pagination */
	position: relative;
}

.notification-item {
	display: flex;
	flex-direction: column;
	background-color: var(--white-color);
	border-radius: 12px;
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
	height: 100%;
	/* Ensure all slides are same height */
	overflow: hidden;
}

.notification-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
	z-index: 2;
}

.notification-item-header {
	/* New wrapper for top part */
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 20px 25px;
	border-bottom: 1px solid var(--border-color);
}

.notification-exam .exam-icon {
	font-size: 1.5rem;
	color: white;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	flex-shrink: 0;
	text-align: center !important;
}

.notification-icon {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	text-align: center !important;
	margin-bottom: 10px;
}

.notification-exam {
	width: 100%;
	text-align: center;
}

.notification-exam h4 {
	margin: 0 0 5px 0;
	font-size: 1.2rem;
	color: var(--heading-color);
}

.notification-exam span {
	font-size: 0.9rem;
	color: var(--text-light);
}

.notification-item-body {
	/* New wrapper for middle part */
	padding: 20px 25px;
	text-align: center;
	flex-grow: 1;
	/* Pushes footer to bottom */
}

.notification-dates p {
	margin: 0 0 10px 0;
	/* Stack dates vertically */
	font-size: 0.95rem;
}

.notification-dates p:last-child {
	margin-bottom: 0;
}

.notification-dates p strong {
	color: var(--heading-color);
}

.notification-item-footer {
	/* New wrapper for button */
	padding: 0 25px 25px 25px;
}

.notification-link .btn-secondary {
	width: 100%;
	/* Make button full width */
	text-align: center;
	box-sizing: border-box;
	/* Include padding in width */
}

/* Swiper Controls Styling */
.notification-slider .swiper-pagination-bullet-active {
	background: var(--primary-color);
}

/* Removed .swiper-button-next, .swiper-button-prev styles */

/* ================================== */
/* END OF IMPROVED SECTION */
/* ================================== */


.courses-section {
	background-color: var(--primary-light);
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 40px;
}

.section-header .section-title {
	margin: 0 0 10px 0;
	text-align: left;
}

.header-title-wrapper {
	flex-grow: 1;
}

.courses-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

.course-card {
	border: 1px solid var(--border-color);
	border-radius: 12px;
	background-color: var(--white-color);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
	transition: transform 0.3s, box-shadow 0.3s;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.course-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.course-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 185px;
}

.category-name {
	font-size: 1.2rem;
	font-weight: 600;
	color: white;
	text-align: center;
}

.course-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.4s ease;
}

.course-card:hover .course-image img {
	transform: scale(1.05);
}

.course-image .course-tag {
	position: absolute;
	top: 15px;
	left: 15px;
	background-color: var(--primary-dark);
	color: white;
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 0.9rem;
	font-weight: 600;
}

.course-content {
	padding: 15px 20px;
	flex-grow: 1;
}

.course-content h4 {
	margin: 0 0 15px 0;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 3.2em;
}

.course-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: var(--text-light);
}

.course-price-free {
	font-weight: 700;
	color: #27ae60;
	font-size: 16px;
}

.course-price-sale {
	font-weight: 700;
	color: #e74c3c;
	font-size: 16px;
}

.course-price-original {
	text-decoration: line-through;
	color: #999;
	margin-left: 5px;
}

.course-footer {
	padding: 15px 20px;
	border-top: 1px solid var(--border-color);
}

.course-footer a {
	text-decoration: none;
	color: var(--heading-color);
	font-weight: 500;
	transition: color 0.3s;
	font-size: 13px;
}

.course-footer a:hover {
	color: var(--primary-color);
}

.course-footer a i {
	margin-left: 5px;
}

.testimonials-section {
	background-color: var(--light-gray-bg);
}

.testimonial-card {
	background-color: var(--white-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
	height: 100%;
	box-sizing: border-box;
}

.testimonial-stars {
	color: var(--primary-color);
	margin-bottom: 15px;
	font-size: 1.1rem;
}

.testimonial-text {
	font-size: 1rem;
	font-style: italic;
	color: var(--text-color);
	line-height: 1.7;
	margin-bottom: 25px;
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: 15px;
}

.testimonial-author img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
}

.author-info strong {
	display: block;
	font-size: 1rem;
	color: var(--heading-color);
}

.author-info span {
	font-size: 0.9rem;
	color: #777;
}

@keyframes scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

.scroller-container {
	max-width: 1400px;
	margin: 0 auto;
	overflow: hidden;
	-webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
	mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
	padding: 20px 0;
}

.scroller-track {
	display: flex;
	gap: 1.5rem;
	width: max-content;
	animation: scroll 30s linear infinite;
}

.scroller-container:hover .scroller-track {
	animation-play-state: paused;
}

.testimonial-card-item {
	width: 380px;
	flex-shrink: 0;
}

.faq-section {
	background-color: var(--primary-light);
}

.faq-container {
	max-width: 800px;
	margin: 0 auto;
}

.faq-item {
	background-color: var(--white-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	margin-bottom: 20px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	overflow: hidden;
}

.faq-item:last-child {
	margin-bottom: 0;
}

.faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 25px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.faq-question:hover h4 {
	color: var(--primary-dark);
}

.faq-question h4 {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--heading-color);
	transition: color 0.3s ease;
}

.faq-question i {
	font-size: 1.1rem;
	color: var(--primary-color);
	background-color: var(--primary-light);
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-left: 20px;
	transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding 0.4s ease-out;
	padding: 0 25px;
	color: var(--text-light);
}

.faq-answer p {
	margin: 0;
	line-height: 1.7;
}

.faq-item.active {
	border-color: var(--primary-color);
	box-shadow: 0 6px 20px rgba(243, 156, 18, 0.1);
}

.faq-item.active .faq-question h4 {
	color: var(--primary-dark);
}

.faq-item.active .faq-question i {
	transform: rotate(135deg);
	background-color: var(--primary-color);
	color: var(--white-color);
}

.faq-item.active .faq-answer {
	max-height: 200px;
	padding-bottom: 25px;
}

.contact-section {
	background-color: var(--white-color);
}

.contact-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	padding: 50px;
	border-radius: 12px;
}

.contact-info h3 {
	font-size: 1.75rem;
	margin-top: 0;
	margin-bottom: 15px;
	color: var(--heading-color);
}

.contact-info p {
	font-size: 1rem;
	color: var(--text-light);
	line-height: 1.7;
	margin-bottom: 30px;
}

.contact-info-item {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
	font-size: 1rem;
	font-weight: 500;
}

.contact-info-item i {
	color: var(--primary-color);
	font-size: 1.3rem;
	width: 25px;
	text-align: center;
}

.map-placeholder {
	width: 100%;
	height: 200px;
	background-color: #e0e0e0;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 30px;
}

.contact-form .form-group {
	margin-bottom: 20px;
}

.contact-form label {
	display: block;
	font-weight: 500;
	color: #333;
	margin-bottom: 8px;
	font-size: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	padding: 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 1rem;
	font-family: inherit;
	box-sizing: border-box;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
}

.contact-form textarea {
	min-height: 120px;
	resize: vertical;
}

.contact-form .btn-primary {
	width: 100%;
}

.footer-section {
	background-color: #1a1a1a;
	color: #aaa;
	padding-top: 60px;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	padding-bottom: 40px;
}

.footer-col h4,
.footer-logo {
	color: var(--white-color);
	font-size: 1.2rem;
	margin-top: 0;
	margin-bottom: 20px;
}

.footer-col p {
	line-height: 1.7;
	font-size: 1rem;
}

.footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-col ul li {
	margin-bottom: 12px;
}

.footer-col ul a {
	text-decoration: none;
	color: #aaa;
	transition: color 0.3s;
	font-size: 1rem;
}

.footer-col ul a:hover {
	color: var(--primary-color);
}

.footer-socials {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.footer-socials a {
	color: var(--white-color);
	background-color: #333;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	border-radius: 50%;
	transition: background-color 0.3s;
}

.footer-socials a:hover {
	background-color: var(--primary-color);
}

.footer-subscribe-form {
	display: flex;
	margin-top: 20px;
}

.footer-subscribe-form input {
	flex-grow: 1;
	border: none;
	padding: 12px;
	border-radius: 5px 0 0 5px;
	background-color: #333;
	color: var(--white-color);
	font-size: 1rem;
}

.footer-subscribe-form button {
	border: none;
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 0 15px;
	border-radius: 0 5px 5px 0;
	cursor: pointer;
	font-size: 1.1rem;
}

.footer-bottom {
	border-top: 1px solid #333;
	padding: 20px 0;
	text-align: center;
	font-size: 0.9rem;
}

.required-label {
	color: red;
	font-weight: bolder;
	padding: 0 3px;
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
	.navbar-links {
		gap: 20px;
		font-size: 1rem;
	}

	.hero-text h1 {
		font-size: 2.75rem;
	}

	.categories-grid,
	.courses-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.contact-container {
		grid-template-columns: 1fr;
		padding: 40px;
	}

	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero-image-area img {
		max-width: 400px;
	}
}

@media (max-width: 768px) {
	section {
		padding: 40px 0;
	}
	.navbar-links a {
	   font-weight: normal;
	}
	.mobile-logout{
		display: block;
	}
	.navbar-links i{
	    visibility: visible;
	    padding: 0 10px;
	}

	.course-content h4 {
	margin: 20px 0 15px 0;
	
}

	.section-title {
		font-size: 2rem;
	}

	.mobile-menu-icon {
		display: block;
		font-size: 27px !Important;
	}

	.navbar-links {
		display: flex;
		flex-direction: column;
		position: fixed;
		left: 0;
		top: 0;
		height: 100vh;
		width: 280px;
		max-width: 80%;
		background-color: var(--white-color);
		z-index: 1002;
		padding: 0;
		gap: 0;
		transform: translateX(-100%);
		transition: transform 0.3s ease-in-out;
		box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
	}

	.navbar-links li {
		width: 100%;
	}

	.navbar-links a {
		display: block;
		padding: 15px 20px;
		font-size: 1.1rem;
		color: var(--heading-color);
	}

	.navbar-links a::after {
		display: none;
	}

	.navbar-links a:hover {
		background-color: var(--primary-light);
		color: var(--primary-dark);
	}

	.mobile-menu-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 15px 20px;
		border-bottom: 1px solid var(--border-color);
	}

	.mobile-menu-logo {
		font-size: 1.3rem;
		color: var(--primary-color);
		margin: auto;
		font-weight: 700;
	}

	.mobile-menu-close {
		font-size: 1.5rem;
		color: #555;
		cursor: pointer;
	}

	.hero-section {
		padding-top: 60px;
		padding-bottom: 100px;
	}

	.hero-container,
	.section-header {
		flex-direction: column;
		text-align: center;
		margin-bottom: 20px;
	}

	.hero-text h1 {
		font-size: 2.5rem;
	}

	.hero-description {
		margin-left: auto;
		margin-right: auto;
	}

	.hero-image-area {
		display: none;
	}

	/* Hide image on mobile to save space */
	.courses-grid,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.section-header {
		gap: 20px;
	}

	.section-header .section-title {
		text-align: center;
	}

	.contact-container {
		padding: 20px;
	}

	.footer-col {
		text-align: center;
	}

	.footer-socials {
		justify-content: center;
	}

	.category-card {
		flex-direction: column;
	}

	.testimonial-card-item {
		width: 320px;
	}

	.scroller-track {
		animation-duration: 25s;
	}

	.stats-track {
		animation-duration: 20s;
	}

	/* Speed up scroller on mobile */
	.stat-card {
		margin: 0 20px;
	}

	.mobile-view-none {
		display: none;
	}

	.hero-text .btn-primary {
		padding: 15px 20px;
		font-size: 0.8rem;
	}

	.stat-card strong {
		font-size: 1rem;
	}

	.course-card {
		width: 95%;
		margin-left: 2.5%;
	}


	/* Removed media query for .swiper-button-next/prev */
}

@media (max-width: 480px) {
	.container {
		width: 92%;
	}

.navbar-auth {
	
	gap: 0px;
}
.contact-info h3 {
   font-size: 1.1rem;
    
}

	.hero-text h1 {
		font-size: 1.5rem;
		line-height: 1.3;
	}

	.hero-description {
		font-size: 1rem;
	}

	.section-title {
		font-size: 1.3rem;
	}

	.btn-primary {
		padding: 12px 24px;
		font-size: 1rem;
	}

	.notification-item-header {
		padding: 15px;
	}

	.notification-item-body {
		padding: 15px;
	}

	.notification-item-footer {
		padding: 0 15px 15px 15px;
	}

	.faq-question h4 {
		font-size: 1rem;
	}
}


/* ======================== */
/* (For exam.html page only) */
/* ======================== */

.exam-filter-container {
	max-width: 600px;
	margin: 0 auto 40px auto;
	/* Center the search bar and add space below */
}

.search-bar-wrapper {
	position: relative;
	width: 100%;
}

.search-bar-wrapper .search-icon {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 15px;
	color: var(--text-light);
	/* Use theme color */
	font-size: 1.1rem;
	z-index: 2;
}

.search-bar-wrapper input[type="text"] {
	/* Borrow styles from .contact-form input for consistency */
	width: 100%;
	padding: 14px 14px 14px 45px;
	/* Add 45px left padding for the icon */
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 1rem;
	font-family: inherit;
	box-sizing: border-box;
	/* Important for padding and width */
	transition: all 0.3s ease;
}

.search-bar-wrapper input[type="text"]::placeholder {
	color: var(--text-light);
	opacity: 1;
}

.search-bar-wrapper input[type="text"]:focus {
	/* Borrow styles from .contact-form input:focus */
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
}


/* test style */


.test-section {
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.test-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 25px;
	border-radius: 12px;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.test-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 20px;
	margin-bottom: 25px;
	flex-wrap: wrap;
	/* For mobile */
}

.test-header h2 {
	font-size: 1.5rem;
	color: var(--primary-color);
	margin: 0;
}

#question-counter {
	font-size: 0.9rem;
	color: #888;
	margin-top: 10px;
	width: 100%;
	text-align: right;
}

.question-item {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f0f0f0;
}

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

.question-text {
	font-size: 1.1rem;
	font-weight: 500;
	margin-bottom: 20px;
	line-height: 1.6;
}

.question-text span {
	font-weight: 700;
	margin-right: 10px;
}

.options-list {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.options-list li label {
	display: block;
	padding: 15px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	padding-left: 50px;
}

.options-list li label:hover {
	border-color: var(--primary-color);
	background-color: #f8f9fa;
}

.options-list li input[type="radio"] {
	display: none;
}

.options-list li label::before {
	content: '';
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border: 2px solid #ced4da;
	border-radius: 50%;
	background: #fff;
}

.options-list li input[type="radio"]:checked+label {
	background-color: #eaf5ff;
	border-color: var(--primary-color);
	font-weight: 500;
}

.options-list li input[type="radio"]:checked+label::before {
	border-color: var(--primary-color);
	background-color: var(--primary-color);
	border-width: 3px;
}

.pagination-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

.pagination-btn,
.submit-btn {
	padding: 12px 25px;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.pagination-btn {
	background-color: #fff;
	color: var(--primary-color);
	border: 1px solid var(--primary-color);
}

.pagination-btn:hover {
	background-color: var(--primary-color);
	color: #fff;
}

.pagination-btn:disabled {
	background-color: #e9ecef;
	border-color: #ced4da;
	color: #6c757d;
	cursor: not-allowed;
}

.submit-btn {
	background-color: #28a745;
	color: #fff;
	border: 1px solid #28a745;
}

.submit-btn:hover {
	background-color: #218838;
}

#fixed-timer {
	position: fixed;
	bottom: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	background-color: #ffffff;
	padding: 10px 15px;
	/* Adjusted padding */
	border-radius: 50px;
	border: 1px solid #e0e0e0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	z-index: 1001;
}

/* UPDATED STYLES FOR TIMER SETUP */
#timer-setup {
	display: flex;
	align-items: center;
	gap: 10px;
}

.timer-btn {
	padding: 8px 15px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 500;
	font-size: 0.9rem;
	transition: background-color 0.3s ease;
}

#start-test-btn {
	background-color: #28a745;
	/* Green start button */
	color: #fff;
}

#start-test-btn:hover {
	background-color: #218838;
}

/* NEW Styles for Timer Option Buttons */
#timer-options-group {
	display: flex;
	background-color: #f0f0f0;
	border-radius: 6px;
	border: 1px solid #ddd;
	overflow: hidden;
	/* To get rounded corners on the group */
}

.timer-option-btn {
	padding: 8px 12px;
	border: none;
	background-color: transparent;
	cursor: pointer;
	font-size: 0.9rem;
	color: #555;
	font-weight: 500;
	transition: all 0.2s ease;
	border-left: 1px solid #ddd;
	/* Separator */
}

.timer-option-btn:first-child {
	border-left: none;
	/* No separator for the first button */
}

.timer-option-btn:hover {
	background-color: #e9e9e9;
}

.timer-option-btn.active {
	background-color: var(--primary-color, #007bff);
	/* Use CSS var with fallback */
	color: #fff;
}

/* STYLES FOR RUNNING TIMER */
#timer-running {
	display: none;
	/* Hidden by default */
	align-items: center;
	font-size: 1.2rem;
	font-weight: 700;
	color: #333;
}

#timer-running i {
	color: #f39c12;
	margin-right: 12px;
	font-size: 1.3rem;
}

/* SweetAlert Custom Styles */
.swal2-html-container {
	text-align: left !important;
	padding: 0 1.5em;
}

.results-p {
	margin: 10px 0;
	font-size: 1.1rem;
}

.results-h3 {
	color: #28a745;
	margin-top: 15px;
}

@media (max-width: 768px) {
	.test-container {
		padding: 15px;
	}

	.test-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}

	.test-header h2 {
		font-size: 1.2rem;
	}

	.pagination-controls {
		flex-direction: column;
		gap: 15px;
	}

	.pagination-btn,
	.submit-btn {
		width: 100%;
	}

	.test-section {
		width: 90%;
		margin-left: 5%;
	}

	#fixed-timer {
		bottom: 10px;
		right: 10px;
		padding: 8px 10px;
		/* Adjusted mobile padding */
	}

	.timer-btn {
		font-size: 0.8rem;
		padding: 6px 10px;
	}

	#timer-setup {
		gap: 8px;
	}

	.timer-option-btn {
		padding: 6px 10px;
		font-size: 0.8rem;
	}

	#timer-running {
		font-size: 1rem;
	}

	#timer-running i {
		font-size: 1.1rem;
	}
}

/* book css */

.books-section {
	padding-bottom: 80px;
	background-color: #f8f9fa;
}

.page-header {
	text-align: center;
	margin-bottom: 50px;
}

.page-title {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin: 0 0 10px 0;
}

.page-subtitle {
	font-size: 1.1rem;
	color: #555;
	max-width: 600px;
	margin: 0 auto;
}

.books-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* --- Tab Navigation --- */
.tabs-nav-wrapper {
	position: sticky;
	top: 80px;
	/* Adjust based on your header's height */
	background-color: #f8f9fa;
	z-index: 100;
	padding: 10px 0;
	margin-bottom: 30px;
}
.tabs-nav-custom{
	display: flex;
	overflow-x: scroll;
	text-wrap: nowrap;
}
.tabs-nav-custom::-webkit-scrollbar{
	width: 0;
}
.tabs-nav {
	display: flex;
	justify-content: center;
	/*background-color: #fff;*/
	border-radius: 10px;
	padding: 5px;
	/*box-shadow: var(--card-shadow);*/
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tabs-nav::-webkit-scrollbar {
	display: none;
}

.tab-btn {
	flex-shrink: 0;
	padding: 12px 25px;
	cursor: pointer;
	background: none;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 500;
	color: #555;
	transition: all 0.3s ease;
}

.tab-btn.active {
	background-color: var(--primary-color);
	color: #fff;
	font-weight: 700;
}

/* --- Tab Content --- */
.tab-content {
	display: none;
	animation: fadeIn 0.5s ease;
}

.tab-content.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.standard-title {
	font-size: 1.8rem;
	color: #333;
	margin-bottom: 25px;
	padding-bottom: 10px;
}

.books-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 25px;
}

/* --- Book Card Style --- */
.book-card {
	background-color: #fff;
	border-radius: 12px;
	box-shadow: var(--card-shadow);
	overflow: hidden;
	transition: all 0.3s ease;
}

.book-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--card-hover-shadow);
}

.book-card-header {
	padding: 15px 20px;
	border-bottom: 1px dotted lightgray;
	color: var(--text-light);
	/* background-color: var(--primary-light); */
}

.book-card-header h3 {
	margin: 0;
	font-size: 1.1rem;
}

.download-links {
	padding: 20px;
}

.download-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
}

.download-item:not(:last-child) {
	border-bottom: 1px solid #f0f0f0;
}

.download-item span {
	font-weight: 500;
	color: var(--text-low-gray);
}

.download-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 15px;
	border: 2px solid #e0e0e0;
	background-color: transparent;
	color: var(--text-low-gray);
	border-radius: 15px;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
}

.download-btn:hover {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	color: #fff;
}

@media (max-width: 768px) {
	.tabs-nav-wrapper {
		top: 70px;
	}

	.tabs-nav {
		justify-content: flex-start;
	}

	.standard-title {
		font-size: 1.5rem;
	}
}

/* --- Custom Properties for new UI --- */

.info-section {
	padding-bottom: 80px;
	background-color: #f8f9fa;
	/* Light grey background for the whole section */
}

/* --- New Page Header --- */
.page-header {
	padding: 50px 20px;
	text-align: center;
	margin-bottom: 50px;
	border-bottom: 1px solid #dde5f8;
	background-color: #fff;
}

.page-title {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin: 0 0 10px 0;
}

.page-subtitle {
	font-size: 1.1rem;
	color: #555;
	max-width: 600px;
	margin: 0 auto;
}

.info-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* --- Modern Tab Styles --- */
.tabs-nav {
	display: flex;
	/* background-color: #e9ecef; */
	/*background-color: #fff;*/
	border-radius: 10px;
	padding: 5px;
	margin-bottom: -1px;
	/* To connect with the content area */
}

.tab-btn {
	flex: 1;
	padding: 15px;
	cursor: pointer;
	background: none;
	border: none;
	border-radius: 8px;
	font-size: 1.1rem;
	font-weight: 500;
	color: #555;
	transition: all 0.3s ease;
}

.tab-btn:hover {
	background-color: var(--primary-light);
}

.tab-btn.active {
	color: #fff;
	background-color: var(--primary-color);
	font-weight: 700;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* --- Tab Content Wrapper --- */
.tab-content-wrapper {
	padding: 40px;
	border-radius: 0 0 12px 12px;
}

.tab-content {
	display: none;
	animation: fadeIn 0.5s ease;
}

.tab-content.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* --- New Info Card Design --- */
.info-card {
	background-color: #fff;
	border-radius: 12px;
	padding: 25px;
	margin-bottom: 25px;
	display: flex;
	align-items: center;
	gap: 25px;
	box-shadow: var(--card-shadow);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.info-card:hover {
	box-shadow: var(--card-hover-shadow);
	transform: translateY(-5px);
}

/* Category-specific colors */
.info-card.results {
	border-left-color: var(--success-color);
}

.info-card.notifications {
	border-left-color: var(--warning-color);
}

.info-card .card-icon {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #8e44ad;
	color: #fff;
	font-size: 1.8rem;
}

.info-card.results .card-icon {
	background-color: var(--success-color);
}

.info-card.notifications .card-icon {
	background-color: #2980b9;
}

.info-card .details {
	flex-grow: 1;
}

.info-card .details h3 {
	margin: 0 0 10px 0;
	font-size: 1.3rem;
	color: #333;
}

.info-card .meta {
	display: flex;
	gap: 20px;
	color: #666;
	font-size: 0.9rem;
	flex-wrap: wrap;
}

.info-card .meta span {
	display: flex;
	align-items: center;
}

.info-card .meta i {
	margin-right: 8px;
	color: #888;
}

.info-card .actions {
	flex-shrink: 0;
}

/* --- Outline Button Style (retained) --- */
.info-btn {
	display: inline-block;
	padding: 10px 22px;
	border: 2px solid var(--primary-color);
	background-color: transparent;
	color: var(--primary-color);
	border-radius: 8px;
	text-decoration: none;
	font-weight: 500;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.info-btn:hover {
	background-color: var(--primary-color);
	color: #fff;
}

.info-btn.results {
	border-color: var(--success-color);
	color: var(--success-color);
}

.info-btn.results:hover {
	background-color: var(--success-color);
	color: #fff;
}

.info-btn.notifications {
	border-color: var(--warning-color);
	color: var(--warning-color);
}

.info-btn.notifications:hover {
	background-color: var(--warning-color);
	color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.page-title {
		font-size: 1.8rem;
	}

	.tabs-nav {
		flex-direction: column;
	}

	.tab-content-wrapper {
		padding: 20px 0;
	}

	.info-card {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.info-card .actions {
		margin-top: 15px;
		width: 100%;
	}

	.info-btn {
		width: 80%;
		text-align: center;
	}
}

/* book section */


.books-section {
	padding-bottom: 80px;
	background-color: #f8f9fa;
}

.page-header {
	text-align: center;
	margin-bottom: 50px;
}

.page-title {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin: 0 0 10px 0;
}

.page-subtitle {
	font-size: 1.1rem;
	color: #555;
	max-width: 600px;
	margin: 0 auto;
}

.books-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}
   

        /* --- Profile Dropdown CSS --- */
        .navbar-auth {
            position: relative;
            display: flex;
            align-items: center;
                padding-right: 15px;

        }

        .profile-dropdown-wrapper {
            position: relative;
            display: inline-block;
            margin-right: 15px;
        }

        .profile-icon {
            cursor: pointer;
            font-size: 1.5rem; /* Adjust size as needed */
            color: #333;
            transition: color 0.3s;
        }
        
        .profile-icon img{
           width: 35px;
           border-radius: 50%;
           border: 1px solid Slightgray;
        }

       
        .profile-dropdown-menu {
            display: none; /* Hidden by default */
            position: absolute;
            top: 140%; 
            right: -10px;
            width: 220px;
            background: #ffffff;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            padding: 8px 0;
            z-index: 1000;
            border: 1px solid #f0f0f0;
        }

        .profile-dropdown-menu.active {
            display: block;
            animation: fadeInDown 0.3s ease;
        }

        .dropdown-header {
            padding: 12px 20px;
            font-size: 14px;
            font-weight: 600;
            color: #0b1220;
            border-bottom: 1px solid #eee;
            background-color: #f9f9f9;
            border-radius: 8px 8px 0 0;
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            color: #444;
            text-decoration: none;
            font-size: 14px;
            font-family: 'Noto Sans Tamil', sans-serif;
            transition: all 0.2s;
        }

        .dropdown-item i {
            margin-right: 12px;
            width: 18px;
            text-align: center;
            color: #777;
            font-size: 20px;
        }

        .dropdown-item:hover {
            background-color: #f0f4ff;
            color: #0056b3;
            padding-left: 25px; /* Slight slide effect */
        }

        .dropdown-item:hover i {
            color: #0056b3;
        }

        .dropdown-item.text-danger:hover {
            background-color: #fff5f5;
            color: #dc3545;
        }
        
        .dropdown-item.text-danger:hover i {
            color: #dc3545;
        }

        /* Triangle pointer for dropdown */
        .profile-dropdown-menu::before {
            content: '';
            position: absolute;
            top: -6px;
            right: 15px;
            width: 12px;
            height: 12px;
            background: white;
            transform: rotate(45deg);
            border-top: 1px solid #f0f0f0;
            border-left: 1px solid #f0f0f0;
        }

        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
    
/* --- Tab Navigation --- */
.tabs-nav-wrapper {
	position: sticky;
	top: 80px;
	/* Adjust based on your header's height */
	background-color: #f8f9fa;
	z-index: 100;
	padding: 10px 0;
	margin-bottom: 30px;
}

.tabs-nav {
	display: flex;
	justify-content: center;
	/*background-color: #fff;*/
	border-radius: 10px;
	padding: 5px;
	/*box-shadow: var(--card-shadow);*/
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tabs-nav::-webkit-scrollbar {
	display: none;
}

/* Hide scrollbar */

.tab-btn {
	flex-shrink: 0;
	padding: 12px 25px;
	cursor: pointer;
	background: none;
	/*border: none;*/
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 500;
	color: #84994F;
	transition: all 0.3s ease;
	border: 1px solid #D7C097;
}

.tab-btn.active {
	background-color: #84994F;
	color: #fff;
	font-weight: 700;
}

/* --- Tab Content --- */
.tab-content {
	display: none;
	animation: fadeIn 0.5s ease;
}

.tab-content.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.standard-title {
	font-size: 1.5rem;
	color: #333;
	margin-bottom: 25px;
	padding-bottom: 10px;
}

.books-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 25px;
}

/* --- Book Card Style --- */
.book-card {
	background-color: #fff;
	border-radius: 12px;
	box-shadow: var(--card-shadow);
	overflow: hidden;
	transition: all 0.3s ease;
}

.book-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--card-hover-shadow);
}


.book-card-header h3 {
	margin: 0;
	font-size: 1.1rem;
}

.download-links {
	padding: 20px;
}

.download-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
}

.download-item:not(:last-child) {
	border-bottom: 1px solid #f0f0f0;
}


.download-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 15px;
	/*border: 2px solid #e0e0e0;*/
	background-color: var(--success-color);
	color: #fff;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
}


@media (max-width: 768px) {
	.tabs-nav-wrapper {
		top: 70px;
	}

	.tabs-nav {
		justify-content: flex-start;
	}

	.standard-title {
		font-size: 1.3rem;
	}
}


.info-section {
	padding-bottom: 80px;
	background-color: #f8f9fa;
	/* Light grey background for the whole section */
}

/* --- New Page Header --- */
.page-header {
	padding: 50px 20px;
	text-align: center;
	margin-bottom: 50px;
	border-bottom: 1px solid #dde5f8;
	background-color: #fff;
}

.page-title {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin: 0 0 10px 0;
}

.page-subtitle {
	font-size: 1.1rem;
	color: #555;
	max-width: 600px;
	margin: 0 auto;
}

.info-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* --- Modern Tab Styles --- */

.tab-btn {
	flex: 1;
	padding: 15px;
	cursor: pointer;
	background: none;
	/*border: none;*/
	border-radius: 8px;
	font-size: 1.1rem;
	font-weight: 500;
	/*color: #555;*/
	color: #84994F;
	transition: all 0.3s ease;
	border: 1px solid #84994F;
	margin-right:25px;
	text-wrap: nowrap;
}


/* --- Tab Content Wrapper --- */
.tab-content-wrapper {
	padding: 40px;
	border-radius: 0 0 12px 12px;
}

.tab-content {
	display: none;
	animation: fadeIn 0.5s ease;
}

.tab-content.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* --- New Info Card Design --- */
.info-card {
	background-color: #fff;
	border-radius: 12px;
	padding: 25px;
	margin-bottom: 25px;
	display: flex;
	align-items: center;
	gap: 25px;
	box-shadow: var(--card-shadow);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.info-card:hover {
	box-shadow: var(--card-hover-shadow);
	transform: translateY(-5px);
}

/* Category-specific colors */
.info-card.results {
	border-left-color: var(--success-color);
}

.info-card.notifications {
	border-left-color: var(--warning-color);
}

.info-card .card-icon {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--primary-color);
	color: #fff;
	font-size: 1.8rem;
}

.info-card.results .card-icon {
	background-color: var(--success-color);
}

.info-card.notifications .card-icon {
	background-color: var(--warning-color);
}

.info-card .details {
	flex-grow: 1;
}

.info-card .details h3 {
	margin: 0 0 10px 0;
	font-size: 1.3rem;
	color: #333;
}

.info-card .meta {
	display: flex;
	gap: 20px;
	color: #666;
	font-size: 0.9rem;
	flex-wrap: wrap;
}

.info-card .meta span {
	display: flex;
	align-items: center;
}

.info-card .meta i {
	margin-right: 8px;
	color: #888;
}

.info-card .actions {
	flex-shrink: 0;
}

/* --- Outline Button Style (retained) --- */
.info-btn {
	display: inline-block;
	padding: 10px 22px;
	border: 2px solid var(--primary-color);
	background-color: transparent;
	color: var(--primary-color);
	border-radius: 8px;
	text-decoration: none;
	font-weight: 500;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.info-btn:hover {
	background-color: var(--primary-color);
	color: #fff;
}

.info-btn.results {
	border-color: var(--success-color);
	color: var(--success-color);
}

.info-btn.results:hover {
	background-color: var(--success-color);
	color: #fff;
}

.info-btn.notifications {
	border-color: var(--warning-color);
	color: var(--warning-color);
}

.info-btn.notifications:hover {
	background-color: var(--warning-color);
	color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.page-title {
		font-size: 1.8rem;
	}

	.tabs-nav {
	    display: flex;
		flex-direction: row;
		
	}

	.tab-content-wrapper {
		padding: 20px 0;
	}

	.info-card {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.info-card .actions {
		margin-top: 15px;
		width: 100%;
	}

	.info-btn {
		width: 80%;
		text-align: center;
	}
}


.planner-section {
	padding-bottom: 80px;
	background-color: #f8f9fa;
}

.page-header {
	text-align: center;
	margin-bottom: 50px;
}

.page-title {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin: 0 0 10px 0;
}

.page-subtitle {
	font-size: 1.1rem;
	color: #555;
	max-width: 600px;
	margin: 0 auto;
}

.planner-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

.tool-card {
	background-color: #fff !important;
	border-radius: 16px;
	padding: 25px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-title {
	font-size: 1.6rem;
	color: #333;
	margin-top: 0;
	margin-bottom: 25px;
	display: flex;
	align-items: center;
}

.card-title i {
	margin-right: 15px;
	color: var(--primary-color);
}

/* --- Study Planner Styles --- */
.progress-bar-container {
	margin-bottom: 20px;
}

.progress-bar {
	width: 100%;
	height: 20px;
	background-color: #e9ecef;
	border-radius: 10px;
	overflow: hidden;
}

.progress-bar-fill {
	width: 0%;
	/* Initially 0 */
	height: 100%;
	background-color: var(--success-color);
	transition: width 0.5s ease-in-out;
	text-align: center;
	color: white;
	font-weight: bold;
	font-size: 0.8rem;
	line-height: 20px;
}

.planner-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}

.day-column h4 {
	font-size: 1.2rem;
	padding-bottom: 10px;
	border-bottom: 2px solid #f0f0f0;
	margin-bottom: 15px;
}

.task-item {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.task-item input[type="checkbox"] {
	margin-right: 12px;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.task-item label {
	font-size: 1rem;
	color: #555;
}

.task-item input[type="checkbox"]:checked+label {
	text-decoration: line-through;
	color: red;
}

/* --- Tracker, History, and Tools Grid --- */
.tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

/* Tracker Stat Cards */
.tracker-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.tracker-item {
	display: flex;
	align-items: center;
	padding: 20px;
	border-radius: 10px;
	background-color: var(--primary-light-bg);
}

.tracker-item .icon {
	font-size: 2rem;
	margin-right: 20px;
	color: var(--primary-color);
}

.tracker-item .info h5 {
	margin: 0 0 5px 0;
	font-size: 1rem;
	color: #555;
}

.tracker-item .info p {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: #333;
}

/* Test History Table */
.table-history {
	width: 100%;
	height: 400px;
	overflow-x: auto;
}

.table-history::-webkit-scrollbar {
	width: 0;
}

.history-table {
	width: 100%;
	border-collapse: collapse;
}

.history-table th,
.history-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #f0f0f0;
}

.history-table th {
	font-weight: 600;
}

.score {
	font-weight: bold;
	text-align: center !important;
}

.score.pass {
	color: var(--success-color);
}

.score.fail {
	color: #dc3545;
}

/* More Tools Links */
.more-tools-list a {
	display: flex;
	align-items: center;
	padding: 15px;
	text-decoration: none;
	color: #444;
	border-radius: 8px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.more-tools-list a:hover {
	background-color: var(--primary-light-bg);
	color: var(--primary-color);
}

.more-tools-list i {
	font-size: 1.2rem;
	margin-right: 15px;
	width: 25px;
	text-align: center;
}

@media(max-width: 768px) {
	.page-title {
		font-size: 2rem;
	}
}
 /* --- QFB: QUICK FEEDBACK SYSTEM --- */
        
      /* =========================================
   1. The Hidden Controller
   ========================================= */
#qfb-toggle {
    display: none;
}

/* =========================================
   2. The Floating Button (Pill Shape - Blue)
   ========================================= */
.qfb-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: auto; /* Auto width for text */
    height: 54px;
    padding: 0 24px;
    
    /* --- BLUE GRADIENT BACKGROUND --- */
    background: #84994F; 
    color: white;
    
    border-radius: 50px; /* Pill shape */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Blue Shadow */
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    
    cursor: pointer;
    z-index: 9999;
    /* Smooth animation for shape change */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Pulse Animation */
    animation: qfb-pulse 2s infinite;
}

.qfb-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-right: 10px; /* Space between icon and text */
    transition: 0.3s;
}

.qfb-text {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s;
    font-family: sans-serif;
	padding: 0 5px;
}

/* Hover Effect */
.qfb-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
}

/* Blue Pulse Keyframes */
@keyframes qfb-pulse {
    0% { box-shadow: 0 0 0 0 rgba(132, 153,79, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(132, 153,79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(132, 153,79, 0); }
}

/* =========================================
   3. The Overlay & Card
   ========================================= */
.qfb-overlay {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
    opacity: 0; 
    visibility: hidden; 
    transition: 0.3s;
    backdrop-filter: blur(2px);
}

.qfb-card {
    position: fixed;
    bottom: 100px; 
    right: 30px;
    width: 320px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9998;
    opacity: 0; 
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-family: sans-serif;
}

/* =========================================
   4. Toggle Logic (Open State)
   ========================================= */
   
/* Show Overlay and Card when checked */
#qfb-toggle:checked ~ .qfb-overlay { 
    opacity: 1; 
    visibility: visible; 
}

#qfb-toggle:checked ~ .qfb-card { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

/* Button transformation when Menu is OPEN */
#qfb-toggle:checked ~ .qfb-btn {
    width: 54px; /* Shrink back to circle */
    padding: 0;
    border-radius: 50%;
    background: #333; /* Dark color for 'Close' state */
    box-shadow: none;
    animation: none; /* Stop pulsing */
    transform: rotate(0deg);
}

/* Hide text when open */
#qfb-toggle:checked ~ .qfb-btn .qfb-text {
    display: none;
    opacity: 0;
}

/* Adjust icon when open (Rotate to look like X if needed) */
#qfb-toggle:checked ~ .qfb-btn svg {
    margin-right: 0;
    transform: rotate(45deg); /* Optional: Rotates icon */
}

/* =========================================
   5. Inner Form Styles
   ========================================= */
.qfb-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    padding-right: 20px;
}

.qfb-group {
    margin-bottom: 12px;
}

.qfb-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #555;
}

.qfb-input, .qfb-txt {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.2s;
}

/* Input Focus Color - Matching Blue */
.qfb-input:focus, .qfb-txt:focus {
    border-color: #007bff; 
    outline: none;
}

.qfb-txt {
    resize: none;
    height: 80px;
}

.qfb-submit {
    width: 100%;
    background: #007bff; /* Matching Blue Button */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.qfb-submit:hover {
    background: #0056b3; /* Darker Blue on Hover */
}

/* Close Icon inside the card (Top Right) */
.qfb-close-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10000;
}

.qfb-close-icon:hover {
    color: #dc3545; /* Red on hover */
}
.text-center{
	text-align: center !important;
}
/* =========================================
   6. Responsiveness (Mobile)
   ========================================= */
@media (max-width: 480px) {
    .qfb-btn {
        padding: 0 10px;
		right: 15px;
		font-size: 13px;
    }
	 .book-title{
		display: none;
	 }
	 section.books-section{
		padding: 0;
	 }
    
    .planner-container{
		padding: 0 10px;
	}
    .qfb-btn svg {
        margin-right: 0;
		font-size: 13px;
    }
    
    /* .qfb-text {
        display: none; 
    } */

    .qfb-card {
        width: auto;
        left: 15px; 
        right: 15px; 
        bottom: 85px; /* Adjust based on button position */
    }
}
		.swal2-center-text {
    text-align: center !important;
}

.swal2-center-btn {
    display: inline-block !important;
    margin: 0 auto !important;
    padding: 8px 25px;
    color: #fff;
    border-radius: 6px;
}

.swal2-center-popup {
    text-align: center !important;
}

.swal2-container {
    z-index: 20000 !important;
}
  .exam-modal {
            position: fixed;
            inset: 0;
            display: none;
            justify-content: center;
            align-items: center;
            background-color: rgba(15, 23, 42, 0.6);
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        /* --- Trigger Button (initially hidden, shown after first open) --- */
        .reveal-container{
            display: flex;
            justify-content: end;
        }
        .test-modal-trigger-btn {
            border: none;
            font-size: 20px;
            cursor: pointer;
            align-items: center;
            gap: 8px;
            transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease, opacity 0.5s ease;
            /*opacity: 0;*/
            pointer-events: none;
        }

        .test-modal-trigger-btn span.icon {
            font-size: 20px;
        }

        .test-modal-trigger-btn.is-ready {
            opacity: 1;
            cursor: pointer;
            pointer-events: auto;
        }

       
        .test-modal-trigger-btn:active {
            transform: translateY(0);
            box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
        }

        /* --- Modal Overlay --- */
     
        .modal.is-visible {
            display: flex;
            opacity: 1;
        }

        /* --- Modal Content --- */
        .test-modal-content {
            background-color: #ffffff;
            border-radius: 18px;
            width: 92%;
            max-width: 600px;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(148, 163, 184, 0.2);
            overflow: hidden;
            transform: translateY(20px) scale(0.96);
            transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.1);
        }

        .modal.is-visible .test-modal-content {
            transform: translateY(0) scale(1);
        }

        /* --- Sticky Header --- */
        .test-modal-header {
            position: sticky;
            top: 0;
            padding: 18px 22px 12px 22px;
            background: linear-gradient(135deg, #ffffff 0%, #f9fafb 45%, #ecfdf3 100%);
            border-bottom: 1px solid #e5e7eb;
            z-index: 10;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .header-top-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .badge-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 12px;
            background-color: rgba(16, 185, 129, 0.08);
            color: #047857;
            border: 1px solid rgba(16, 185, 129, 0.3);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            font-weight: 600;
        }

        .badge-pill span.dot {
            width: 6px;
            height: 6px;
            border-radius: 999px;
            background-color: #10b981;
        }

        .test-modal-header h2 {
            margin: 0;
            font-size: 20px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            color: #111827;
        }

        .test-modal-subtitle {
            margin: 0;
            font-size: 13px;
            color: #6b7280;
        }

        /* Close button */
        .test-modal-close-btn {
            border: none;
            background: transparent;
            font-size: 26px;
            cursor: pointer;
            color: #9ca3af;
            border-radius: 999px;
            width: 32px;
            height: 32px;
        }

        .test-modal-close-btn:hover {
            background-color: rgba(148, 163, 184, 0.18);
            color: #4b5563;
        }

        /* --- Modal Body --- */
        .test-modal-body {
            padding: 16px 22px 22px 22px;
            overflow-y: auto;
        }

        /* --- Question Items --- */
        .question-item {
            background-color: #f9fafb;
            border-radius: 12px;
            padding: 12px 14px 10px 14px;
            border: 1px solid rgba(209, 213, 219, 0.8);
            margin-bottom: 12px;
            box-shadow: 0 3px 6px rgba(148, 163, 184, 0.18);
        }

        .question-item:hover {
            background-color: #ffffff;
            border-color: rgba(52, 211, 153, 0.45);
            box-shadow: 0 6px 14px rgba(148, 163, 184, 0.3);
        }

        .question-item p {
            margin: 0 0 8px 0;
            font-size: 15px;
            font-weight: 600;
            color: #111827;
        }

        .question-item-index {
            font-weight: 700;
            color: #1e7e34;
        }

        .answer {
            margin-top: 6px;
            padding: 8px 10px;
            border-radius: 8px;
            background: #ecfdf3;
            border: 1px dashed rgba(16, 185, 129, 0.6);
            font-size: 14px;
            color: #064e3b;
            display: none;
        }

        .answer.is-revealed {
            display: block;
        }

        /* Reveal Button */
        .reveal-btn {
            border: none;
            border-radius: 999px;
            padding: 10px 14px;
            font-size: 13px;
            cursor: pointer;
            background-color: #28a745;
            color: #ffffff;
            box-shadow: 0 4px 10px rgba(34, 197, 94, 0.35);
            margin-top:10px;
        }

        .reveal-btn:hover {
            background-color: #1e7e34;
        }

        .reveal-btn.hide-state {
            background-color: #dc3545;
            box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
        }

        .reveal-btn.hide-state:hover {
            background-color: #c82333;
        }
