:root {
	--primary-blue: #3b82f6; /* Accent color */
	--background-dark: #18181b; /* Deep background (zinc-900) */
	--card-dark: #27272a; /* Card background (zinc-800) */
}
/* Apply custom dark background and text color to body */
body {
	background-color: var(--background-dark) !important;
	color: white !important;
	/* Updated to use a standard system font stack */
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
	min-height: 100vh;
}
/* Custom dark card background */
.bg-card-dark { background-color: var(--card-dark) !important; }
/* Custom blue text color */
.text-primary-blue { color: var(--primary-blue) !important; }

.navbar-nav .nav-link, 
.footer a {
	transition: color 0.3s ease;
}
/* Style for primary-blue hover effect, used on main nav and footer links */
.text-primary-blue-hover:hover {
	color: var(--primary-blue) !important;
}
.text-primary-white-hover:hover {
	color: white !important;
}
/* Custom primary button styling */
.btn-primary-custom {
	background-color: var(--primary-blue);
	border-color: var(--primary-blue);
	color: var(--background-dark);
	padding: 10px 32px;
	border-radius: 50rem; /* pill shape */
	font-weight: 500;
	box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5), 0 2px 4px -2px rgba(59, 130, 246, 0.5);
	transition: transform 0.2s, background-color 0.2s;
}
.btn-primary-custom:hover {
	background-color: #2563eb; /* A darker shade of blue */
	border-color: #2563eb;
	transform: scale(1.02);
	color: var(--background-dark);
}
/* Header sticky styling */
.navbar.sticky-top {
	background-color: rgba(24, 24, 27, 0.95) !important; /* Semi-transparent dark header */
	backdrop-filter: blur(5px);
	border-bottom: 1px solid #4a4a4f !important;
}
/* Custom scrollbar styling */
body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { background: #1f2937; }
body::-webkit-scrollbar-thumb { background: var(--primary-blue); border-radius: 10px; }
/* Carousel height control */
.carousel-item-custom-height {
	height: 60vh; 
	max-height: 75vh;
}
@media (min-width: 576px) {
	 .carousel-item-custom-height { height: 75vh; }
}

.nav-pills .nav-link {
	background-color: var(--card-dark);
	color: white;
	border-radius: 0.5rem; /* rounded corners */
	border: 1px solid transparent;
	transition: all 0.3s ease;
	flex-grow: 0; 
}
.nav-pills .nav-link:hover:not(.active) {
	background-color: #3f3f46; /* A slightly lighter hover */
	color: white;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
	color: var(--background-dark);
	background-color: var(--primary-blue);
	font-weight: 600;
	border-color: var(--primary-blue);
}
.nav-pills .nav-link.active h4,
.nav-pills .nav-link.active span.fw-semibold { /* Updated to target both h4 (desktop) and span (mobile) */
	color: var(--background-dark) !important;
}
.nav-pills .nav-link h4,
.nav-pills .nav-link span.fw-semibold { /* Updated to target both h4 (desktop) and span (mobile) */
	color: white; /* Default text color for titles */
	transition: color 0.3s ease;
}

.nav-pills .nav-link i {
	font-size: 1.5rem; /* Standardizing icon size */
	width: 1.5rem; /* Standard width for mobile icon */
	height: 1.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
@media (min-width: 992px) {
	.nav-pills .nav-link i {
		width: 2rem; /* Restore width on desktop */
	}
}
.nav-pills .nav-link.active i {
	color: var(--background-dark) !important; /* Icon color when active */
}

.nav-link:hover {
	color: var(--primary-blue); 
}

.social-links {
	gap: 20px; /* Space between icons */
	margin-top: 10px;
}

.social-icon {
	color: var(--primary-blue); 
	font-size: 28px; 
	transition: color 0.3s;
}

.social-icon:hover {
	color: var(--primary); 
}

.carousel-caption {
	top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

.text-google-yellow { color: #fcc419; }
.spinner-border {
	color: var(--primary-blue) !important;
}

.tab-content {
    min-height: 385px; /* Adjust this value if content ever looks squished */
}

/* -------------------------------------- */
/* UTILITY / BACK TO TOP                  */
/* -------------------------------------- */

#backToTop {
	display: none; 
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 9999;
	font-size: 18px;
	border: none;
	outline: none;
	background-color: var(--primary-blue);
	color: white;
	cursor: pointer;
	padding: 15px;
	border-radius: 50%;
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
	transition: background-color 0.3s, transform 0.3s;
	width: 50px;
	height: 50px;
	/* Use flex to perfectly center the icon */
	display: flex; 
	align-items: center;
	justify-content: center;
}

#backToTop:hover {
	background-color: var(--primary-hover);
	transform: translateY(-5px);
}

#backToTop i {
	margin: 0;
	line-height: 20px;
}