:root {
	--bs-body-color: #2d3748;
	/* Modern dark gray-blue (better readability than pure black) */
	--bs-body-color-rgb: 45, 55, 72;
	--bs-heading-color: var(--bs-secondary);
	/* Your blue color for headings */
	--bs-text-muted: #718096;
	/* Lighter gray for secondary text */
	/* Primary Color (Red) */
	--bs-primary: #e41e34;
	--bs-primary-rgb: 228, 30, 52;
	--bs-primary-bg-subtle: #fbe8eb;
	--bs-primary-text-emphasis: #b9182a;
	--bs-primary-border-subtle: #f6c1c8;
	 --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #fbe8eb;
  --bs-btn-disabled-border-color: #fbe8eb;

	/* Secondary Color (Blue - Academic) */
	--bs-secondary: #2a5f8a;
	--bs-secondary-rgb: 42, 95, 138;
	--bs-secondary-bg-subtle: #e8f0f7;
	--bs-secondary-text-emphasis: #1e4a6d;
	--bs-secondary-border-subtle: #c7d8e8;

	/* Component-specific variables */
	--bs-link-color: var(--bs-secondary);
	--bs-link-hover-color: var(--bs-primary);
	--bs-nav-pills-link-active-bg: var(--bs-primary);
	--bs-pagination-active-bg: var(--bs-primary);
	--bs-pagination-active-border-color: var(--bs-primary);
	--bs-form-valid-border-color: var(--bs-primary);
	--bs-form-valid-color: var(--bs-primary);
	--bs-progress-bar-bg: var(--bs-primary);

	/* Typography */
	--bs-font-sans-serif: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--bs-font-monospace: 'Roboto Mono', SFMono-Regular, Menlo, monospace;
	--bs-body-font-family: var(--bs-font-sans-serif);
}

/* Modern Font Import (Place in <head>) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Mono&display=swap');

/* Layout */

body {
	font-family: var(--bs-body-font-family);
	font-size: 15px;
	background-color: #f8f9fa;
	color: var(--bs-body-color);
	line-height: 1.6;
	/* Optimal for readability */
	-webkit-font-smoothing: antialiased;
	/* Smoother text rendering */
}

/* Text Utilities */
.text-body {
	color: var(--bs-body-color) !important;
}

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

/* Headings with Academic Feel */
h1,
h2,
h3,
h4,
h5,
h6 {
	letter-spacing: -0.025em;
	color: var(--bs-secondary);
}

h1 {
	font-size: 2.25rem;
	font-weight: 700;
}

h2 {
	border-bottom: 1px solid var(--bs-secondary-border-subtle);
	padding-bottom: 0.5rem;
	margin-bottom: 1.5rem;
}

/* Buttons */

.btn-primary {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--bs-primary);
	--bs-btn-border-color: var(--bs-primary);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #c61a2e;
	--bs-btn-hover-border-color: #b9182a;
	--bs-btn-active-bg: #b9182a;
	--bs-btn-active-border-color: #a71626;
	--bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-secondary {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--bs-secondary);
	--bs-btn-border-color: var(--bs-secondary);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #1e4a6d;
	--bs-btn-hover-border-color: #183a58;
	--bs-btn-active-bg: #183a58;
	--bs-btn-active-border-color: #122b43;
}

/* Outline Buttons */
.btn-outline-primary {
	--bs-btn-color: var(--bs-primary);
	--bs-btn-border-color: var(--bs-primary);
	--bs-btn-bg: transparent;
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--bs-primary);
	--bs-btn-hover-border-color: var(--bs-primary);
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: var(--bs-primary);
	--bs-btn-active-border-color: var(--bs-primary);
}

.btn-outline-secondary {
	--bs-btn-color: var(--bs-secondary);
	--bs-btn-border-color: var(--bs-secondary);
	--bs-btn-bg: transparent;
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--bs-secondary);
	--bs-btn-hover-border-color: var(--bs-secondary);
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: var(--bs-secondary);
	--bs-btn-active-border-color: var(--bs-secondary);
}

/* Cards (Directory Items) */
.card {
	border-radius: 8px;
	border: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
	background-color: var(--bs-secondary-bg-subtle);
	color: var(--bs-secondary);
	font-weight: 500;
}

/* Navigation */

.nav-link.active {
	color: var(--bs-primary) !important;
	position: relative;
}

.nav-link.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--bs-primary);
}

/* Badges (Categories/Tags) */
.badge {
	font-weight: 500;
	padding: 0.35em 0.65em;
	border-radius: 4px;
}

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

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

ol,
ul {
	padding-left: 0;
}

ol li,
ul li {
	list-style: none;
}

.arrow-list ul li::before {
	content: "\f138";
	/* Unicode for bi-arrow-right */
	font-family: "bootstrap-icons" !important;
	font-weight: normal;
	display: inline-block;
	margin-right: 8px;
	font-size: 1rem;
	color: #e41e34;
	/* Customize as needed */
}

/* Search Box */
.search-box {
	border: 2px solid var(--bs-secondary-border-subtle);
	border-radius: 50px;
	padding: 0.5rem 1.25rem;
}

.search-box:focus {
	border-color: var(--bs-primary);
	box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.15);
}

.form-check-input:checked {
	background-color: #2a5f8a;
	border-color: #2a5f8a;
}

/* Header Styles */
.site-header {
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	z-index: 1200;
	position: sticky;
	top: 0;
}

.site-header.scrolled {
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar {
	padding: 1rem 0;
	display: flex;
	align-items: center;
}

.header-logo,
.mobile-logo {
	height: 48px;
	width: auto;
	transition: all 0.3s ease;
}

/* Desktop Navigation */
.desktop-navigation {
	flex-grow: 1;
	margin-left: 2rem;
}

.desktop-navigation .navbar-nav {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.desktop-navigation .nav-item {
	position: relative;
	margin-right: 1rem;
}

.nav-link {
	display: flex;
	align-items: center;
	padding: 0.5rem 1rem;
	color: #2d3748;
	font-weight: 500;
	transition: all 0.2s ease;
	text-decoration: none;
}

.nav-link:hover {
	color: #4a5568;
}

.nav-icon {
	margin-right: 0.5rem;
	font-size: 1.1rem;
}

/* Dropdown Menu */
.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	padding: 0.5rem 0;
	margin: 0;
	background: #fff;
	border: none;
	border-radius: 0.5rem;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
	z-index: 1000;
	display: block !important;
}

.nav-item.dropdown:hover .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-item {
	padding: 0.5rem;
	font-size: small;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	text-decoration: none;
	font-weight: 500;
}

.dropdown-item:hover {
	background: #f7fafc;
	color: #1a202c;
}

/* Header Actions */
.header-actions {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.search-container {
	position: relative;
	margin-right: 1rem;
	width: 220px;
}

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

.search-input {
	width: 100%;
	padding: 0.5rem 1rem;
	padding-right: 2.5rem;
	border: 1px solid #e2e8f0;
	border-radius: 2rem;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.search-input:focus {
	outline: none;
	border-color: #cbd5e0;
	box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.search-button {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	padding: 0 1rem;
	background: transparent;
	border: none;
	color: #718096;
	cursor: pointer;
}

.account-dropdown {
	position: relative;
}

.account-button {
	display: flex;
	align-items: center;
	padding: 0.5rem 1rem;
	background: transparent;
	border: 1px solid #e2e8f0;
	border-radius: 2rem;
	color: #2d3748;
	font-weight: 500;
	transition: all 0.2s ease;
	cursor: pointer;
}

.account-button:hover {
	background: #f7fafc;
	border-color: #cbd5e0;
}

.account-dropdown:hover .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}


.account-dropdown .dropdown-menu {
	margin-top: 0.5rem;
	right: 0;
	left: auto;
}

.account-dropdown:hover .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}


.dropdown-menu:hover {
	opacity: 1 !important;
	visibility: visible !important;
}

.hamburger {
	padding: 0.5rem;
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 999;
	display: none;
}

.hamburger-box {
	width: 24px;
	height: 24px;
	display: inline-block;
	position: relative;
}

.hamburger-inner {
	width: 100%;
	height: 2px;
	background: #2d3748;
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	transition: background-color 0.2s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
	content: "";
	width: 100%;
	height: 2px;
	background: #2d3748;
	position: absolute;
	left: 0;
	transition: transform 0.2s ease;
}

.hamburger-inner::before {
	top: -6px;
}

.hamburger-inner::after {
	top: 6px;
}

/* Mobile Menu */
.mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 999;
}

.mobile-menu-overlay.active {
	opacity: 1;
	visibility: visible;
}

.mobile-menu {
	position: fixed;
	top: 0;
	right: -100%;
	width: 90%;
	max-width: 400px;
	height: 100%;
	background: #fff;
	box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	z-index: 1000;
	overflow-y: auto;
}

.mobile-menu.active {
	right: 0;
}

.mobile-menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	border-bottom: 1px solid #edf2f7;
}

.mobile-menu-close {
	background: transparent;
	border: none;
	font-size: 1.5rem;
	color: #718096;
	cursor: pointer;
}

.mobile-menu-content {
	padding: 1.5rem;
}

.mobile-search-form {
	position: relative;
	margin-bottom: 1.5rem;
}

.mobile-search-input {
	width: 100%;
	padding: 0.75rem 1rem;
	padding-right: 3rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	font-size: 1rem;
	box-sizing: border-box;
}

.mobile-search-button {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	padding: 0 1rem;
	background: transparent;
	border: none;
	color: #718096;
	cursor: pointer;
}

.mobile-nav {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
}

.mobile-nav-item {
	margin-bottom: 0.5rem;
}

.mobile-nav-link {
	display: flex;
	align-items: center;
	padding: 0.75rem 1rem;
	color: #2d3748;
	font-weight: 500;
	border-radius: 0.5rem;
	transition: all 0.2s ease;
	text-decoration: none;
}

.mobile-nav-link:hover {
	background: #f7fafc;
	color: #1a202c;
}

.dropdown-arrow {
	margin-left: auto;
	transition: transform 0.2s ease;
}

.mobile-dropdown-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.mobile-nav-item.dropdown.active .mobile-dropdown-menu {
	max-height: 500px;
}

.mobile-nav-item.dropdown.active .dropdown-arrow {
	transform: rotate(180deg);
}

.mobile-dropdown-item {
	display: flex;
	align-items: center;
	padding: 0.75rem 1rem;
	padding-left: 2.5rem;
	color: #4a5568;
	font-size: 0.95rem;
	transition: all 0.2s ease;
	text-decoration: none;
}

.mobile-dropdown-item:hover {
	background: #f7fafc;
	color: #1a202c;
}

.mobile-account {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.mobile-account-button {
	display: flex;
	align-items: center;
	padding: 0.75rem 1rem;
	background: #f7fafc;
	border-radius: 0.5rem;
	color: #2d3748;
	font-weight: 500;
	transition: all 0.2s ease;
	text-decoration: none;
}

.mobile-account-button:hover {
	background: #edf2f7;
}

/* Responsive Adjustments */
@media (min-width: 992px) {

	.mobile-menu,
	.mobile-menu-overlay {
		display: none;
	}
}

@media (max-width: 991.98px) {

	.desktop-navigation,
	.header-actions {
		display: none;
	}

	.hamburger {
		display: block;
	}
}

/* Banner Styles */
/* Bootstrap 5 Slide Carousel - Custom Styles */
.banner-container {
  max-width: 1500px;
  margin: 0 auto;
}

/* Carousel Base Styles */
.carousel.slide {
  overflow: hidden;
}

.carousel-inner {
  width: 100%;
}

/* Slide Animation Fixes for BS5 */
.carousel-item {
  display: none;
  width: 100%;
  margin-right: -100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
  display: block;
}

/* BS5 Slide Transition Behavior */
.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
  transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
  transform: translateX(-100%);
}

/* Image Styles */
.carousel-item img {
  aspect-ratio: 5/2;
  object-fit: cover;
  width: 100%;
  background-color: #f5f5f5;
}

/* Overlay Styles */
.carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.3);
}

/* Gradient Overlays */
@media (min-width: 768px) {
  .carousel-item::after {
    background-image: linear-gradient(
      to right, 
      rgba(0, 0, 0, 0.5) 0%, 
      rgba(0, 0, 0, 0.3) 30%, 
      transparent 70%
    );
  }
}

@media (max-width: 767.98px) {
  .carousel-item::after {
    background-image: linear-gradient(
      to bottom, 
      transparent 40%, 
      rgba(0, 0, 0, 0.5) 100%
    );
  }
}

/* Custom Indicators */
.carousel-indicators-custom {
  z-index: 2;
  gap: 0.5rem;
}
/* Base indicator style */
.indicator-btn {
  opacity: 0.7;
  transition: all 0.3s ease;
  border-radius: 0;
	border:none;
  color: white;
  background: transparent;
}

/* Mobile (circular) style */
.indicator-btn.rounded-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255,255,255,0.4);
}

/* Desktop (text) style */
.indicator-btn {
  border-bottom: 4px solid rgba(255,255,255,0.4);
}

/* Active states */
.indicator-btn.active {
  opacity: 1;color:#fff;
}
.indicator-btn:hover{
	color:#fff;border-bottom: 4px solid rgba(255,255,255);
}
.indicator-btn.active {  
  border-bottom: 4px solid white;
}

.indicator-btn.active.d-md-inline-flex {
  border-bottom-color: white;
  border-bottom-width: 5px;
}
/* Progress Bar */
.carousel-progress {
  height: 3px;
  width: 0%;
  background-color: rgba(255, 255, 255, 0.8);
  transition: width linear;
}

/* Responsive Height Adjustments */
@media (min-width: 1200px) {
  .carousel-item img {
    height: 600px;
  }
}

@media (max-width: 1199.98px) {
  .carousel-item img {
    height: 50vh;
    min-height: 350px;
  }
}

@media (max-width: 767.98px) {
  .carousel-item img {
    height: 40vh;
    min-height: 250px;
  }
}

/* ========== search-form ========== */
@media (min-width: 992px) {
	.search-form-container {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
	}
}

/* Exclude centering for mobile screens */
@media (max-width: 991.98px) {
	.search-form-container {
		padding-top: 30px;
		padding-bottom: 30px;
	}
}

/* Course Categories Grid */
#courseGrid .card {
	transition: 0.6s ease-in-out;
}

#courseGrid .card:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Custom CSS for course cards */
#courseGrid .course-card {
	transition: all 0.3s ease;
	border-radius: 0.5rem;
}

#courseGrid .course-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

#courseGrid .card-img-container {
	overflow: hidden;
	background-color: #f8f9fa;
	/* Fallback background */
}

#courseGrid .card-img-container .img-zoom {
	transition: transform 0.5s ease;
	object-fit: cover;
	aspect-ratio: 5/3;
	width: 100%;
	height: 100%;
}

#courseGrid .course-card:hover .img-zoom {
	transform: scale(1.05);
}

/* Card layout */
#courseGrid .card-body {
	display: flex;
	flex-direction: column;
}

#courseGrid.card-title {
	flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
	#courseGrid {
		row-cols-md: 2 !important;
	}
}

@media (max-width: 575.98px) {
	#courseGrid {
		row-cols-1 !important;
	}

	#courseGrid .filter-buttons {
		justify-content: flex-start !important;
	}
}

.course-featured-image {
	max-height: 450px;
	overflow: hidden;
}

.course-sidebar {
	border-radius: 12px;
}

.icon-wrapper {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.course-section {
	transition: transform 0.3s ease;
}

.course-section a {
	color: var(--bs-primary);
}

.course-section:hover {
	transform: translateY(-5px);
}

.hover-shadow {
	transition: all 0.3s ease;
}

.hover-shadow:hover {
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stretched-link::after {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	content: "";
}

.transition-all {
	transition: all 0.3s ease;
}

/* Footer Styles Start */
footer {
	border-top: 1px solid #e0e7f1;
	font-size: small;
}

footer ul li a {
	font-size: small;
}

.footer-area a:hover {
	color: #e41e34 !important;
	font-size: small;
}

.social-icons a {
	display: inline-block;
	width: 36px;
	height: 36px;
	line-height: 36px;
	text-align: center;
	background-color: rgba(228, 30, 52, 0.1);
	border-radius: 50%;
	transition: all 0.3s ease;
	font-size: small;
}

.social-icons a:hover {
	background-color: rgba(228, 30, 52, 0.2);
	transform: translateY(-3px);
}

.footer-copyright {
	font-size: 0.9rem;
}

div.tnp-subscription,
form.tnp-subscription,
form.tnp-profile {
	margin: 0 !important;
}

.tnp-subscription input[type=submit] {
	background-color: var(--bs-primary) !important;
	border-radius: var(--bs-border-radius-sm);
}

.tnp-subscription input[type=email] {

	background: #fff !important;
	border: 1px solid #e0e7f1 !important;
	border-radius: var(--bs-border-radius-sm);
}

.tnp-subscription input[type=email]:focus {
	outline: none;
	border-color: #cbd5e0;
	box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
	border: none;

}

/* Footer Styles End */


/* Autocomplete Styles */
.autocomplete-results {
    position: absolute;
    width: calc(100% - 2px);
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 .375rem .375rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    z-index: 1000;
    display: none;
    margin-left: 1px;
}

.autocomplete-item {
    padding: .75rem 1.25rem;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: all .2s ease;
}

.autocomplete-item:hover, .autocomplete-item:focus {
    background-color: #f8f9fa;
}

.autocomplete-item a {
    display: block;
    color: #212529;
    text-decoration: none;
}

.autocomplete-item .course-title {
    font-weight: 600;
    margin-bottom: .25rem;
}

.autocomplete-item .institute-name {
    font-size: .875rem;
    color: #6c757d;
}

.autocomplete-item .course-category {
    display: inline-block;
    font-size: .75rem;
    background: #e9ecef;
    padding: .2rem .4rem;
    border-radius: .25rem;
    margin-top: .25rem;
}

.autocomplete-loading {
    padding: .75rem 1.25rem;
    color: #6c757d;
    font-size: .875rem;
    text-align: center;
}

.autocomplete-no-results {
    padding: .75rem 1.25rem;
    color: #6c757d;
    font-size: .875rem;
    text-align: center;
}

/* Search Results Page */
.search-results-container {
    padding: 2rem 0;
}

.course-search-card {
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}

.course-search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.course-thumbnail {
    height: 180px;
    object-fit: cover;
}

.course-badge {
    font-size: 0.8rem;
}

.search-results-count {
    font-size: 1.1rem;
    color: #6c757d;
}