/* ======================================
	 Modern Styles with Dark/Light Mode
	 ====================================== */

:root {
	/* Light Theme Colors */
	--primary-color: #28a745;
	--primary-dark: #218838;
	--secondary-color: #6c757d;
	--accent-color: #fd7e14;
	--text-color: #333333;
	--text-muted: #6c757d;
	--bg-color: #ffffff;
	--bg-secondary: #f8f9fa;
	--bg-tertiary: #f1f3f5;
	--border-color: #dee2e6;
	--shadow-color: rgba(0, 0, 0, 0.1);
	--shadow-dark: rgba(0, 0, 0, 0.15);
	--success-color: #28a745;
	--info-color: #17a2b8;
	--warning-color: #ffc107;
	--danger-color: #dc3545;

	/* Common Variables */
	--border-radius: 8px;
	--transition-speed: 0.3s;
	--header-height: 70px;
	--shrunk-header-height: 60px;
	--box-shadow: 0 4px 6px var(--shadow-color);
	--box-shadow-hover: 0 8px 15px var(--shadow-dark);
}

/* Dark Theme Variables */
.dark-mode {
	--primary-color: #2db84a;
	--primary-dark: #26a540;
	--secondary-color: #adb5bd;
	--accent-color: #fd9843;
	--text-color: #e9ecef;
	--text-muted: #adb5bd;
	--bg-color: #121212;
	--bg-secondary: #1e1e1e;
	--bg-tertiary: #2d2d2d;
	--border-color: #343a40;
	--shadow-color: rgba(0, 0, 0, 0.3);
	--shadow-dark: rgba(0, 0, 0, 0.4);
}

/* ======================================
	 Base Styles
	 ====================================== */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Poppins', sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	transition: background-color var(--transition-speed), color var(--transition-speed);
	line-height: 1.5;
	padding-top: var(--header-height);
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color var(--transition-speed);
}

a:hover {
	color: var(--primary-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-weight: 600;
	margin-bottom: 1rem;
}

.text-muted {
	color: var(--text-muted) !important;
}

/* Buttons */
.btn {
	padding: 0.5rem 1rem;
	border-radius: var(--border-radius);
	font-weight: 500;
	transition: all var(--transition-speed);
	border: 1px solid transparent;
}

.btn-primary {
	background-color: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
	background-color: var(--primary-dark);
	border-color: var(--primary-dark);
}

.btn-outline-primary {
	background-color: transparent;
	color: var(--primary-color);
	border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
	background-color: var(--primary-color);
	color: white;
}

/* Forms */
.form-control, .input-group-text {
	border-radius: var(--border-radius);
	border: 1px solid var(--border-color);
	background-color: var(--bg-color);
	color: var(--text-color);
	padding: 0.5rem 0.75rem;
	transition: all var(--transition-speed);
}

.form-control:focus {
	box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
	border-color: var(--primary-color);
}

.input-group-text {
	background-color: var(--bg-tertiary);
}

.dark-mode .form-control, .dark-mode .input-group-text {
	background-color: var(--bg-secondary);
	border-color: var(--border-color);
}

.form-check-input:checked {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.form-text {
	color: var(--text-muted);
	font-size: 0.875rem;
}

/* ======================================
	 Header & Navigation
	 ====================================== */
.main-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1030;
	background-color: var(--bg-color);
	box-shadow: 0 2px 10px var(--shadow-color);
	transition: all var(--transition-speed);
}

.navbar {
	height: var(--header-height);
	transition: all var(--transition-speed);
	padding: 0.5rem 1rem;
}

.navbar-brand {
	padding: 0;
	margin-right: 1.5rem;
	display: flex;
	align-items: center;
}

.logo-container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition-speed);
}

.navbar-brand img {
	max-height: 40px;
	transition: all var(--transition-speed);
}

/* Logo handling for different modes */
.logo-light {
	display: block;
}

.logo-dark {
	display: none;
}

/* In dark mode */
.dark-mode .logo-container {
	background-color: rgba(255, 255, 255, 0.9);
	padding: 5px 8px;
	border-radius: var(--border-radius);
}

/* If you have a separate dark mode logo */
.dark-mode .logo-light {
	display: none;
}

.dark-mode .logo-dark {
	display: block;
}

/* Remove this rule if you have a proper dark mode logo */
/* This makes the light logo visible with a white background */
.dark-mode .logo-dark {
	display: none;
}

.navbar-toggler {
	border: none;
	color: var(--text-color);
	padding: 0.25rem 0.5rem;
	font-size: 1.25rem;
}

.navbar-toggler:focus {
	box-shadow: none;
}

/* Navigation Links */
.navbar-nav {
	margin-left: 1rem;
}

.nav-item {
	margin: 0 0.2rem;
}

.nav-link {
	color: var(--text-color);
	font-weight: 500;
	padding: 0.5rem 0.75rem !important;
	border-radius: var(--border-radius);
	transition: all var(--transition-speed);
	font-size: 0.9rem;
	display: flex;
	align-items: center;
}

.nav-link:hover, .nav-link.active {
	color: var(--primary-color);
}

.nav-icon {
	margin-right: 0.3rem;
	font-size: 0.9em;
}

.dropdown-icon {
	margin-right: 0.5rem;
	width: 16px;
	text-align: center;
}

/* Register Link Special Styling */
.nav-link.register-link {
	background-color: var(--primary-color);
	color: white !important;
	padding: 0.5rem 1rem !important;
	margin: 0 0.5rem;
	font-weight: 600;
}

.nav-link.register-link:hover {
	background-color: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--box-shadow);
}

/* Impersonation Notice */
.nav-link.impersonating {
	color: var(--danger-color) !important;
	font-weight: 600;
}

/* Dropdown Menus */
.dropdown-menu {
	border-radius: var(--border-radius);
	border: 1px solid var(--border-color);
	background-color: var(--bg-color);
	padding: 0.5rem 0;
	margin-top: 0.5rem;
	box-shadow: var(--box-shadow);
	min-width: 220px;
}

.dropdown-item {
	color: var(--text-color);
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
	transition: all var(--transition-speed);
	display: flex;
	align-items: center;
}

.dropdown-item:hover, .dropdown-item:focus {
	background-color: var(--bg-tertiary);
	color: var(--primary-color);
}

.menu-item-green {
	color: var(--success-color) !important;
	font-weight: 600;
}

.menu-item-red {
	color: var(--danger-color) !important;
	font-weight: 600;
}

.dropdown-header {
	color: var(--text-muted);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 0.5rem 1rem;
	margin-top: 0.5rem;
	border-bottom: 1px solid var(--border-color);
	font-weight: 600;
}

/* Right Side of Navbar */
.navbar-right {
	display: flex;
	align-items: center;
}

/* User Dropdown */
.user-dropdown .dropdown-toggle {
	display: flex;
	align-items: center;
	color: var(--text-color);
	padding: 0.375rem 0.75rem;
	font-weight: 500;
}

.user-dropdown .dropdown-toggle:after {
	margin-left: 0.5rem;
}

.user-dropdown .user-name {
	margin-left: 0.5rem;
}

/* Auth Buttons */
.auth-buttons {
	display: flex;
	align-items: center;
}

.btn-login, .btn-signup {
	margin-left: 0.5rem;
	display: flex;
	align-items: center;
	border-radius: var(--border-radius);
	font-weight: 500;
	transition: all var(--transition-speed);
}

.btn-login {
	background-color: transparent;
	color: var(--text-color);
	border: 1px solid var(--border-color);
}

.btn-login:hover {
	background-color: var(--bg-tertiary);
	color: var(--primary-color);
}

.btn-signup {
	background-color: var(--primary-color);
	color: white;
}

.btn-signup:hover {
	background-color: var(--primary-dark);
	transform: translateY(-1px);
	box-shadow: var(--box-shadow);
}

.btn-login i, .btn-signup i {
	margin-right: 0.3rem;
}

/* Navbar Shrink Effect */
.navbar-shrink {
	height: var(--shrunk-header-height);
	box-shadow: 0 2px 10px var(--shadow-color);
}

.navbar-shrink .navbar-brand img {
	max-height: 35px;
}

/* ======================================
	 Notification System
	 ====================================== */
.notification-bell {
	position: relative;
	margin-right: 1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	color: var(--text-color);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	transition: all var(--transition-speed);
}

.notification-bell:hover {
	background-color: var(--bg-tertiary);
	color: var(--primary-color);
}

.notification-badge {
	position: absolute;
	top: 5px;
	right: 5px;
	background-color: var(--danger-color);
	color: white;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	font-size: 0.7rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mail-icon {
	position: relative;
	margin-right: 1rem;
	display: flex;
	align-items: center;
}

.mail-icon a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--text-color);
	font-size: 1.25rem;
	transition: all var(--transition-speed);
}

.mail-icon a:hover {
	background-color: var(--bg-tertiary);
	color: var(--primary-color);
}

.mail-icon .mail-badge {
	position: absolute;
	top: 5px;
	right: 5px;
	background-color: var(--primary-color);
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.mail-icon a.has-unread {
	color: var(--primary-color);
}

.notification-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	width: 320px;
	background-color: var(--bg-color);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	z-index: 1000;
	overflow: hidden;
	margin-top: 0.5rem;
	border: 1px solid var(--border-color);
}

.notification-header {
	padding: 0.75rem 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--border-color);
}

.notification-header h6 {
	margin: 0;
	font-weight: 600;
}

.mark-read-btn {
	background: none;
	border: none;
	color: var(--primary-color);
	font-size: 0.8rem;
	cursor: pointer;
}

.notification-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 300px;
	overflow-y: auto;
}

.notification-list li {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--border-color);
	font-size: 0.9rem;
	transition: background-color var(--transition-speed);
}

.notification-list li:last-child {
	border-bottom: none;
}

.notification-list li:hover {
	background-color: var(--bg-tertiary);
}

.notification-list li.unread {
	background-color: rgba(40, 167, 69, 0.1);
	font-weight: 500;
}

.notification-list li.unread:hover {
	background-color: rgba(40, 167, 69, 0.15);
}

.notification-list li a {
	color: var(--text-color);
	display: block;
}

.notification-list li.no-notifications {
	text-align: center;
	color: var(--text-muted);
}

.notification-footer {
	padding: 0.75rem 1rem;
	text-align: center;
	border-top: 1px solid var(--border-color);
}

.notification-footer a {
	color: var(--primary-color);
	font-size: 0.85rem;
}

/* ======================================
	 Calendar Icon
	 ====================================== */
.calendar-icon {
	position: relative;
	margin-right: 1rem;
}

.calendar-icon a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--text-color);
	font-size: 1.25rem;
	transition: all var(--transition-speed);
}

.calendar-icon a:hover {
	background-color: var(--bg-tertiary);
	color: var(--primary-color);
}

.calendar-icon.has-events a {
	color: var(--primary-color);
}

/* ======================================
	 Theme Toggle Switch
	 ====================================== */
.theme-switch-wrapper {
	display: flex;
	align-items: center;
	margin-right: 1rem;
}

.theme-switch {
	display: inline-block;
	position: relative;
	width: 50px;
	height: 24px;
}

.theme-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--bg-tertiary);
	transition: .4s;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 5px;
}

.slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .4s;
	z-index: 1;
}

.slider.round {
	border-radius: 34px;
}

.slider.round:before {
	border-radius: 50%;
}

input:checked + .slider {
	background-color: var(--primary-color);
}

input:checked + .slider:before {
	transform: translateX(26px);
}

.light-icon, .dark-icon {
	color: var(--text-color);
	font-size: 0.8rem;
	z-index: 0;
}

.light-icon {
	color: var(--warning-color);
}

.dark-icon {
	color: #6c757d;
}

/* ======================================
	 Cookie Consent
	 ====================================== */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 90%;
	max-width: 600px;
	background-color: var(--bg-color);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow-hover);
	z-index: 9999;
	border: 1px solid var(--border-color);
	animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
	from {
		transform: translate(-50%, 100%);
		opacity: 0;
	}
	to {
		transform: translate(-50%, 0);
		opacity: 1;
	}
}

.cookie-container {
	padding: 1.5rem;
}

.cookie-content {
	display: flex;
	gap: 1rem;
}

.cookie-mascot {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.mascot-img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 0.5rem;
}

.mascot-name {
	font-size: 0.8rem;
	color: var(--text-muted);
}

.cookie-message {
	flex-grow: 1;
}

.cookie-message p {
	margin-bottom: 1rem;
	font-family: 'Comic Neue', cursive;
	font-size: 1rem;
}

.cookie-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.btn-accept, .btn-decline {
	padding: 0.5rem 1rem;
	border-radius: var(--border-radius);
	font-weight: 500;
	cursor: pointer;
	border: none;
	transition: all var(--transition-speed);
}

.btn-accept {
	background-color: var(--primary-color);
	color: white;
}

.btn-accept:hover {
	background-color: var(--primary-dark);
}

.btn-decline {
	background-color: var(--secondary-color);
	color: white;
}

.btn-decline:hover {
	background-color: #5a6268;
}

.privacy-link {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.85rem;
}

/* ======================================
	 Modals
	 ====================================== */
.modal-content {
	border-radius: var(--border-radius);
	border: 1px solid var(--border-color);
	background-color: var(--bg-color);
	overflow: hidden;
}

.modal-header {
	border-bottom: 1px solid var(--border-color);
	background-color: var(--bg-tertiary);
	padding: 1rem 1.5rem;
}

.modal-body {
	padding: 1.5rem;
}

.modal-footer {
	border-top: 1px solid var(--border-color);
	padding: 1rem 1.5rem;
	background-color: var(--bg-tertiary);
}

/* Login/Register Form Specific */
.privacy-terms {
	font-size: 0.85rem;
	color: var(--text-muted);
}

/* ======================================
	 Calendar Modal
	 ====================================== */
#calendarModal .modal-dialog {
	max-width: 800px;
}

#calendarModal .modal-body {
	padding: 1.5rem;
}

#calendar {
	height: 600px;
}

/* FullCalendar Theme Adjustments */
.fc-theme-standard {
	--fc-border-color: var(--border-color);
	--fc-button-bg-color: var(--primary-color);
	--fc-button-border-color: var(--primary-color);
	--fc-button-hover-bg-color: var(--primary-dark);
	--fc-button-hover-border-color: var(--primary-dark);
	--fc-button-active-bg-color: var(--primary-dark);
	--fc-button-active-border-color: var(--primary-dark);
}

.fc .fc-button-primary {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.fc .fc-button-primary:hover {
	background-color: var(--primary-dark);
	border-color: var(--primary-dark);
}

.fc-daygrid-day.fc-day-today {
	background-color: rgba(40, 167, 69, 0.1) !important;
}

/* Dark mode adjustments for calendar */
.dark-mode .fc-theme-standard .fc-scrollgrid,
.dark-mode .fc-theme-standard .fc-list {
	border-color: var(--border-color);
}

.dark-mode .fc-theme-standard td, 
.dark-mode .fc-theme-standard th {
	border-color: var(--border-color);
}

.dark-mode .fc-col-header-cell {
	background-color: var(--bg-tertiary);
}

.dark-mode .fc-list-day-cushion {
	background-color: var(--bg-tertiary) !important;
}

.dark-mode .fc-list-event:hover td {
	background-color: var(--bg-tertiary) !important;
}

/* ======================================
	 Responsive Adjustments
	 ====================================== */
@media (max-width: 1200px) {
	.navbar-brand img {
		max-height: 35px;
	}

	.nav-link {
		padding: 0.4rem 0.6rem !important;
		font-size: 0.85rem;
	}

	.nav-icon {
		margin-right: 0.2rem;
	}
}

@media (max-width: 991px) {
	.navbar-brand img {
		max-height: 32px;
	}

	.navbar-collapse {
		background-color: var(--bg-color);
		border-radius: var(--border-radius);
		box-shadow: var(--box-shadow);
		border: 1px solid var(--border-color);
		padding: 1rem;
		margin-top: 0.5rem;
	}

	.navbar-nav {
		margin-left: 0;
	}

	.nav-item {
		margin: 0;
	}

	.nav-link {
		padding: 0.5rem 0.75rem !important;
		border-radius: var(--border-radius);
	}

	.navbar-right {
		margin-top: 1rem;
		padding-top: 1rem;
		border-top: 1px solid var(--border-color);
		justify-content: center;
		flex-wrap: wrap;
	}

	.theme-switch-wrapper,
	.notification-bell,
	.mail-icon,
	.calendar-icon {
		margin: 0 0.5rem;
	}

	.user-dropdown {
		margin-top: 0.5rem;
		width: 100%;
	}

	.user-dropdown .dropdown-toggle {
		width: 100%;
		justify-content: center;
	}

	.auth-buttons {
		width: 100%;
		justify-content: center;
		margin-top: 0.5rem;
	}

	.btn-login, .btn-signup {
		width: 45%;
		justify-content: center;
	}

	.notification-dropdown {
		position: fixed;
		top: auto;
		bottom: 20px;
		left: 50%;
		transform: translateX(-50%);
		width: 90%;
		max-width: 350px;
	}
}

@media (max-width: 576px) {
	:root {
		--header-height: 60px;
		--shrunk-header-height: 50px;
	}

	.navbar-brand img {
		max-height: 30px;
	}

	.cookie-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.mascot-img {
		width: 60px;
		height: 60px;
	}

	.cookie-actions {
		justify-content: center;
	}

	.modal-dialog {
		margin: 0.5rem;
	}

	.notification-bell,
	.mail-icon,
	.calendar-icon {
		width: 36px;
		height: 36px;
	}

	#calendarModal .modal-dialog {
		margin: 0.5rem;
		max-width: calc(100% - 1rem);
	}

	#calendar {
		height: 500px;
	}
}

/* ======================================
	 Animation Utilities
	 ====================================== */
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.fade-in {
	animation: fadeIn 0.3s ease-in forwards;
}

@keyframes slideDown {
	from {
		transform: translateY(-20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.slide-down {
	animation: slideDown 0.3s ease-out forwards;
}

/* ======================================
	 Homepage Styles
	 ====================================== */

/* General Homepage Section Styles */
.hero-section,
.countdown-section,
.overview-section,
.how-it-works-section,
.prize-section,
.timeline-section,
.scenario-section,
.faq-section,
.cta-section {
	padding: 5rem 0;
	margin: 0;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

/* Container padding and spacing */
.container {
	max-width: 1200px;
	padding: 0 2rem;
	margin: 0 auto;
}

/* Section spacing and headers */
.section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.section-header h2 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	position: relative;
	display: inline-block;
	padding-bottom: 0.5rem;
}

.section-header h2:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background-color: var(--primary-color);
}

.section-header p {
	font-size: 1.2rem;
	color: var(--text-muted);
	max-width: 700px;
	margin: 0 auto;
}

/* Hero Section Styles */
.hero-section {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: white;
	padding: 5rem 0;
	background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
	background-size: 600% 600%;
	animation: gradientBG 15s ease infinite;
}

.hero-content {
	max-width: 800px;
	padding: 0 2rem;
	z-index: 2;
}

.hero-text h1 {
	font-size: 4rem;
	font-weight: 800;
	margin-bottom: 1.5rem;
	font-family: 'Merienda', cursive;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	color: white;
}

.hero-text .tagline {
	font-size: 1.5rem;
	margin-bottom: 2.5rem;
	color: white;
}

.hero-buttons {
	margin-top: 2rem;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.hero-buttons .btn {
	margin: 0.5rem;
	padding: 0.75rem 2rem;
	font-size: 1.1rem;
	border-radius: 50px;
}

/* Card styles for feature sections */
.feature-cards {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -1rem;
}

.feature-cards [class*="col-"] {
	padding: 1rem;
}

.feature-card {
	background-color: var(--card-bg);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	padding: 2rem;
	height: 100%;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background-color: rgba(40, 167, 69, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
}

.dark-mode .card-icon {
	background-color: rgba(45, 184, 74, 0.2);
}

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

.feature-card h3 {
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.feature-card p {
	color: var(--text-muted);
	margin-bottom: 0;
}

/* Countdown Section */
.countdown-section {
	background-color: var(--bg-secondary);
}

.countdown-container {
	background-color: var(--card-bg);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	padding: 2rem;
	margin: 2rem auto;
}

.custom-countdown {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin: 1rem 0;
}

.time-block {
	text-align: center;
	padding: 0.5rem;
	width: calc(25% - 1rem);
}

.time-circle {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: var(--primary-color);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.time-circle .number {
	font-size: 2.5rem;
	font-weight: 700;
}

.time-label {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-color);
	text-transform: uppercase;
}

.contest-details {
	background-color: var(--card-bg);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	padding: 2rem;
	height: 100%;
}

.contest-details h3 {
	text-align: center;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--border-color);
}

.detail-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1.5rem;
}

.detail-item i {
	font-size: 1.5rem;
	color: var(--primary-color);
	margin-right: 1rem;
	margin-top: 0.25rem;
}

.detail-item h4 {
	margin-bottom: 0.5rem;
	font-size: 1.2rem;
}

.detail-item p {
	margin-bottom: 0;
	color: var(--text-muted);
}

.highlight {
	color: var(--primary-color);
	font-weight: 700;
}

/* How It Works Section */
.how-it-works-section {
	background-color: var(--bg-secondary);
}

.process-flow {
	position: relative;
	max-width: 800px;
	margin: 3rem auto;
	padding-left: 2rem;
}

.process-flow:before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 20px;
	width: 3px;
	background-color: var(--primary-color);
}

.process-step {
	position: relative;
	padding-left: 3rem;
	margin-bottom: 3rem;
}

.step-number {
	position: absolute;
	left: 0;
	top: 0;
	width: 40px;
	height: 40px;
	background-color: var(--primary-color);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	z-index: 1;
}

.step-content {
	background-color: var(--card-bg);
	border-radius: var(--border-radius);
	padding: 1.5rem;
	box-shadow: var(--box-shadow);
}

.step-content h3 {
	color: var(--primary-color);
	margin-bottom: 0.5rem;
}

.step-content p {
	margin-bottom: 0;
	color: var(--text-muted);
}

/* Prize Section */
.prize-section .row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -1rem;
}

.prize-section [class*="col-"] {
	padding: 1rem;
}

.prize-category {
	background-color: var(--card-bg);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	padding: 2rem;
	height: 100%;
}

.prize-category h3 {
	text-align: center;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--border-color);
}

.prize-item, .bonus-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px dashed var(--border-color);
}

.prize-position, .bonus-for {
	display: flex;
	align-items: center;
	font-weight: 600;
}

.prize-position i, .bonus-for i {
	margin-right: 0.5rem;
	font-size: 1.5rem;
}

.prize-position .gold {
	color: #FFD700;
}

.prize-position .silver {
	color: #C0C0C0;
}

.prize-position .bronze {
	color: #CD7F32;
}

.prize-amount, .bonus-amount {
	font-weight: 700;
	color: var(--primary-color);
	font-size: 1.25rem;
}

.team-bonus-intro {
	text-align: center;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--border-color);
}

.team-potential {
	text-align: center;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-color);
}

.team-potential p {
	color: var(--primary-color);
	font-weight: 600;
	margin-bottom: 0;
}

/* Timeline Section */
.timeline-section {
	background-color: var(--bg-secondary);
}

.timeline {
	position: relative;
	max-width: 800px;
	margin: 3rem auto;
	padding-left: 2.5rem;
}

.timeline:before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 120px;
	width: 3px;
	background-color: var(--primary-color);
}

.timeline-item {
	position: relative;
	padding-left: 8rem;
	margin-bottom: 2rem;
}

.timeline-dot {
	position: absolute;
	left: 115px;
	top: 15px;
	width: 12px;
	height: 12px;
	background-color: var(--primary-color);
	border-radius: 50%;
	z-index: 1;
}

.timeline-date {
	position: absolute;
	left: 0;
	top: 8px;
	width: 100px;
	text-align: right;
	font-weight: 600;
	color: var(--primary-color);
}

.timeline-content {
	background-color: var(--card-bg);
	border-radius: var(--border-radius);
	padding: 1.5rem;
	box-shadow: var(--box-shadow);
}

.timeline-content h4 {
	margin-bottom: 0.5rem;
}

.timeline-content p {
	margin-bottom: 0;
	color: var(--text-muted);
}

/* Example Scenario Section */
.scenario-example {
	max-width: 900px;
	margin: 3rem auto;
}

.example-card {
	background-color: var(--card-bg);
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	overflow: hidden;
}

.example-header {
	background-color: var(--primary-color);
	color: white;
	padding: 1.5rem;
	text-align: center;
}

.example-header h3 {
	margin: 0;
	color: white;
}

.example-content {
	padding: 2rem;
}

.team-illustration {
	margin-bottom: 2rem;
	text-align: center;
}

.team-name {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: var(--primary-color);
}

.team-members {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin: 2rem 0;
}

.member {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1rem;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	width: 120px;
	transition: all var(--transition-speed);
}

.member i.fa-user-circle {
	font-size: 2.5rem;
	color: var(--text-muted);
	margin-bottom: 0.5rem;
}

.member span {
	text-align: center;
	font-size: 0.9rem;
}

.member.winner {
	background-color: rgba(255, 215, 0, 0.1);
	border-color: rgba(255, 215, 0, 0.3);
}

.member.second-winner {
	background-color: rgba(192, 192, 192, 0.1);
	border-color: rgba(192, 192, 192, 0.3);
}

.dark-mode .member.winner {
	background-color: rgba(255, 215, 0, 0.15);
}

.dark-mode .member.second-winner {
	background-color: rgba(192, 192, 192, 0.15);
}

.rewards-breakdown {
	background-color: var(--bg-secondary);
	border-radius: var(--border-radius);
	padding: 1.5rem;
}

.reward-item {
	margin-bottom: 1rem;
}

.reward-item h4 {
	margin-bottom: 0.5rem;
}

.reward-item p {
	margin-bottom: 0;
	color: var(--text-muted);
}

.reward-total {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-color);
}

.reward-total h4 {
	color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
	background-color: var(--bg-secondary);
}

.faq-section .row {
	margin: 0 -1rem;
}

.faq-section [class*="col-"] {
	padding: 1rem;
}

.accordion-item {
	margin-bottom: 1rem;
	border: none;
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: var(--box-shadow);
}

.accordion-button {
	padding: 1.25rem;
	font-weight: 600;
	background-color: var(--card-bg);
	color: var(--text-color);
}

.accordion-button:not(.collapsed) {
	color: var(--primary-color);
	background-color: rgba(40, 167, 69, 0.1);
}

.dark-mode .accordion-button:not(.collapsed) {
	background-color: rgba(40, 167, 69, 0.2);
}

.accordion-button:focus {
	box-shadow: none;
	border-color: var(--primary-color);
}

.accordion-body {
	padding: 1.5rem;
	background-color: var(--card-bg);
	color: var(--text-muted);
}

/* CTA Section */
.cta-section {
	background-color: var(--primary-color);
	color: white;
	text-align: center;
}

.cta-content {
	max-width: 800px;
	margin: 0 auto;
	padding: 1rem;
}

.cta-content h2 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	color: white;
}

.cta-content p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2rem;
}

.cta-buttons .btn {
	margin: 0.5rem;
	padding: 0.75rem 2rem;
	font-size: 1.1rem;
	border-radius: 50px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
	.hero-text h1 {
		font-size: 3rem;
	}

	.timeline:before {
		left: 15px;
	}

	.timeline-item {
		padding-left: 2.5rem;
	}

	.timeline-dot {
		left: 11px;
	}

	.timeline-date {
		position: relative;
		left: 0;
		top: 0;
		width: auto;
		text-align: left;
		margin-bottom: 0.5rem;
	}

	.section-header h2 {
		font-size: 2rem;
	}
}

@media (max-width: 767px) {
	.hero-section,
	.countdown-section,
	.overview-section,
	.how-it-works-section,
	.prize-section,
	.timeline-section,
	.scenario-section,
	.faq-section,
	.cta-section {
		padding: 3rem 0;
	}

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

	.hero-text .tagline {
		font-size: 1.2rem;
	}

	.time-block {
		width: calc(50% - 1rem);
	}

	.time-circle {
		width: 80px;
		height: 80px;
	}

	.time-circle .number {
		font-size: 2rem;
	}

	.section-header h2 {
		font-size: 1.8rem;
	}

	.detail-item {
		margin-bottom: 2rem;
	}

	.member {
		width: 100px;
	}

	.prize-item, .bonus-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.prize-position, .bonus-for {
		margin-bottom: 0.5rem;
	}

	.cta-buttons {
		flex-direction: column;
		align-items: center;
	}

	.cta-buttons .btn {
		width: 100%;
		max-width: 300px;
	}
}

@media (max-width: 575px) {
	.container {
		padding: 0 1.5rem;
	}

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

	.hero-text .tagline {
		font-size: 1rem;
	}

	.detail-item {
		flex-direction: column;
	}

	.detail-item i {
		margin-bottom: 0.5rem;
		margin-right: 0;
	}

	.time-circle {
		width: 70px;
		height: 70px;
	}

	.time-circle .number {
		font-size: 1.5rem;
	}

	.step-content {
		padding: 1rem;
	}

	.process-step {
		padding-left: 2.5rem;
	}

	.member {
		width: 90px;
		padding: 0.75rem;
	}

	.member i.fa-user-circle {
		font-size: 2rem;
	}

	.member span {
		font-size: 0.8rem;
	}
}

/* Additional Utility Classes */
.shadow-sm {
	box-shadow: 0 1px 3px var(--shadow-color) !important;
}

.shadow {
	box-shadow: var(--box-shadow) !important;
}

.shadow-lg {
	box-shadow: var(--box-shadow-hover) !important;
}

.rounded {
	border-radius: var(--border-radius) !important;
}

.bg-primary {
	background-color: var(--primary-color) !important;
}

.text-primary {
	color: var(--primary-color) !important;
}

.bg-secondary {
	background-color: var(--bg-secondary) !important;
}

.text-secondary {
	color: var(--secondary-color) !important;
}
/* Dark mode tab headers fix */
body.dark-mode .nav-tabs {
		border-bottom-color: #444;
}

body.dark-mode .nav-tabs .nav-link {
		color: #aaa;
		background-color: #333;
		border-color: #444;
}

body.dark-mode .nav-tabs .nav-link:hover {
		color: #fff;
		background-color: #444;
		border-color: #555;
}

body.dark-mode .nav-tabs .nav-link.active {
		color: #fff;
		background-color: #2a2a2a;
		border-color: #444 #444 #2a2a2a;
}

/* Extra fix for tab content in dark mode */
body.dark-mode .tab-content {
		background-color: #2a2a2a;
		border-left: 1px solid #444;
		border-right: 1px solid #444;
		border-bottom: 1px solid #444;
		border-radius: 0 0 0.25rem 0.25rem;
}

/* Improve focus styles for dark mode accessibility */
body.dark-mode .nav-tabs .nav-link:focus {
		box-shadow: 0 0 0 0.2rem rgba(66, 70, 90, 0.5);
		outline: none;
}
/* Fix for card headers and titles in dark mode */
body.dark-mode .card-header {
	background-color: #333 !important;
	border-bottom-color: #444;
}

body.dark-mode .card-header h5.card-title,
body.dark-mode .card-header .card-title {
	color: #fff;
}

body.dark-mode .card-header i {
	color: #fff;
}

body.dark-mode .card-title {
	color: #fff;
}

/* Fix for section headings inside cards */
body.dark-mode .card-body h5,
body.dark-mode .card-body h6 {
	color: #fff;
}

/* Fix for form labels in dark mode */
body.dark-mode .form-label {
	color: #ddd;
}
/* Fix for feedback area text in dark mode */
body.dark-mode .card-body p,
body.dark-mode .card-body .mb-1,
body.dark-mode .card-body strong {
	color: #e0e0e0;
}

/* Fix for alert text in dark mode */
body.dark-mode .alert-info,
body.dark-mode .alert-success {
	background-color: #1a3038;
	border-color: #204b5a;
	color: #9ed4e4;
}

body.dark-mode .alert-danger {
	background-color: #3b1e1e;
	border-color: #5a2020;
	color: #e49e9e;
}

/* Fix for navigation dropdowns in dark mode */
body.dark-mode .navbar-nav .nav-link {
	color: #e0e0e0;
}

body.dark-mode .navbar-nav .nav-link:hover {
	color: #ffffff;
}

body.dark-mode .navbar-nav .dropdown-menu {
	background-color: #2a2a2a;
	border-color: #444;
}

body.dark-mode .navbar-nav .dropdown-item {
	color: #e0e0e0;
}

body.dark-mode .navbar-nav .dropdown-item:hover,
body.dark-mode .navbar-nav .dropdown-item:focus {
	background-color: #3a3a3a;
	color: #ffffff;
}

body.dark-mode .dropdown-icon,
body.dark-mode .nav-icon {
	color: #e0e0e0;
}

/* Fix for user dropdown in dark mode */
body.dark-mode .user-dropdown .dropdown-toggle {
	color: #e0e0e0;
}

body.dark-mode .user-dropdown .dropdown-header {
	color: #aaaaaa;
}

/* Fix for all text in cards for consistency */
body.dark-mode .card {
	color: #e0e0e0;
}

/* Fix for text inputs placeholder text */
body.dark-mode .form-control::placeholder {
	color: #777;
}
/* Fix for user dropdown menu text in dark mode */
body.dark-mode .user-dropdown .dropdown-menu .dropdown-item {
	color: #e0e0e0;
}

body.dark-mode .user-dropdown .dropdown-menu .dropdown-header {
	color: #aaaaaa;
}

/* Make sure the section headers like "PROFILE" and "TOOLS" are visible */
body.dark-mode .dropdown-header {
	color: #aaaaaa !important;
}

/* Fix for any nested dropdown menus */
body.dark-mode .dropdown-menu .dropdown-menu {
	background-color: #2a2a2a;
	border-color: #444;
}

/* Ensure hover states are visible */
body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
	background-color: #3a3a3a;
	color: #ffffff;
}

/* Add a more specific selector to override any conflicting styles */
body.dark-mode header .navbar .dropdown-menu .dropdown-item {
	color: #e0e0e0;
}

body.dark-mode header .navbar .dropdown-menu .dropdown-item:hover {
	color: #ffffff;
	background-color: #3a3a3a;
}
/* Fix for notification preferences text in dark mode */
body.dark-mode .form-check-label {
	color: #e0e0e0;
}

/* Make sure list group items in dark mode have light text */
body.dark-mode .list-group-item {
	color: #e0e0e0;
}

/* Fix section headings in notification preferences */
body.dark-mode .card-header h5 {
	color: #ffffff;
}

/* Fix the switch control labels specifically */
body.dark-mode .form-check.form-switch .form-check-label {
	color: #e0e0e0;
}

/* Add some contrast for the switch background */
body.dark-mode .form-check-input {
	background-color: #555;
	border-color: #666;
}

body.dark-mode .form-check-input:checked {
	background-color: #0d6efd;
	border-color: #0d6efd;
}

/* Add some hover effects for better UX */
body.dark-mode .list-group-item:hover {
	background-color: #333;
}
/* Add this CSS to your stylesheet */

.text-logo {
	font-family: 'Exo 2', sans-serif;
	font-weight: 700;
	font-size: 1rem;
	color: #fff;
	display: flex;
	flex-direction: column;
	line-height: 1.1;
	text-align: center;
	letter-spacing: 1px;
	text-transform: uppercase;
	position: relative;
	background: none;
	padding: 5px 0;
}

.text-logo::before {
	content: attr(data-text);
	position: absolute;
	left: -2px;
	text-shadow: 1px 0 #ff2a70;
	top: 5px;
	color: #fff;
	background: none;
	overflow: hidden;
	clip: rect(0, 900px, 0, 0);
	animation: logo-noise-1 3s infinite linear alternate-reverse;
}

.text-logo::after {
	content: attr(data-text);
	position: absolute;
	left: 2px;
	text-shadow: -1px 0 #00fff9;
	top: 5px;
	color: #fff;
	background: none;
	overflow: hidden;
	clip: rect(0, 900px, 0, 0);
	animation: logo-noise-2 2s infinite linear alternate-reverse;
}

.text-logo span {
	display: block;
	width: 100%;
	position: relative;
	z-index: 1;
	background: linear-gradient(to right, #fff, #efefef);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-fill-color: transparent;
}

.text-logo span:first-child {
	font-size: 1.3em;
	font-weight: 900;
}

@keyframes logo-noise-1 {
	0%, 20%, 40%, 60%, 70%, 90% {
		clip: rect(3px, 9999px, 10px, 0);
	}
	10%, 30%, 50%, 80%, 100% {
		clip: rect(5px, 9999px, 2px, 0);
	}
}

@keyframes logo-noise-2 {
	0%, 20%, 40%, 60%, 70%, 90% {
		clip: rect(2px, 9999px, 4px, 0);
	}
	10%, 30%, 50%, 80%, 100% {
		clip: rect(6px, 9999px, 1px, 0);
	}
}


/* No hover effects needed when there's no background */