@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Color Palette - Modern Education Theme */
  --color-primary: #1E40AF;
  /* Modern Navy Blue */
  --color-primary-light: #3B82F6;
  /* Bright Blue */
  --color-primary-dark: #1e3a8a;
  /* Deep Navy */
  --color-accent: #F97316;
  /* Soft Orange Accent */
  --color-accent-hover: #EA580C;
  /* Darker Orange */

  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  /* Slate 50 */
  --color-bg-dark: #0F172A;
  /* Slate 900 */

  --color-text-main: #1E293B;
  /* Slate 800 */
  --color-text-muted: #64748B;
  /* Slate 500 */

  --color-border: #E2E8F0;
  /* Slate 200 */

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.4);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

.dropdown-item {
  padding: 0.45rem 1rem;
}

.navbar-nav a {
  font-size: 15px
}

/* Base Styles */
body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-main);
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

/* Glassmorphism Classes */
.glass-effect {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navbar */
.navbar {
  padding: 0rem 0;
  transition: all var(--transition-normal);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.navbar.sticky-top.scrolled {
  padding: 0 0;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--color-primary) !important;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.navbar-brand span {
  color: var(--color-accent);
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-main) !important;
  padding: 0.5rem 0.6rem !important;
  position: relative;
}

.navbar-expand-lg .navbar-nav {
  align-items: center;
}

.nav-link::after {
  content: '';
  display: none;
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary-light);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 70%;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.btn-primary-custom:hover {
  background-color: var(--color-primary-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-accent-custom {
  background-color: var(--color-accent);
  color: white;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.39);
}

.btn-accent-custom:hover {
  background-color: var(--color-accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 0.65rem 1.65rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-normal);
}

.btn-outline-custom:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  background: rgba(59, 130, 246, 0.15);
  top: -50px;
  right: -50px;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(249, 115, 22, 0.1);
  bottom: -100px;
  left: -100px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--color-primary-light);
  position: relative;
  display: inline-block;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 5px;
  left: 0;
  background-color: rgba(249, 115, 22, 0.2);
  z-index: -1;
  transform: rotate(-2deg);
}

.cat-img img {
  width: 60px;
  margin-bottom: 15px;
}

.hero-image-wrapper {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover {
  transform: scale(1.02);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.floating-card.top-left {
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.floating-card.bottom-right {
  bottom: 10%;
  right: -5%;
  animation-delay: 3s;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Course Cards */
.course-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--color-border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.3);
}

.course-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.course-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.course-card:hover .course-img-wrap img {
  transform: scale(1.05);
}

.course-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.course-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-category {
  color: var(--color-primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
  line-height: 1.4;
}

.course-title a {
  color: inherit;
}

.course-title a:hover {
  color: var(--color-primary-light);
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.course-meta i {
  color: var(--color-primary-light);
}

.course-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-instructor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-instructor img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.course-instructor-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-main);
}

.course-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.course-price.free {
  color: var(--color-accent);
}

/* Category Cards */
.category-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
  display: block;
  color: var(--color-text-main);
}

.breadcrumb-item+.breadcrumb-item::before {
  color: rgb(255 255 255);
}

.accordion-body h3 {
  font-size: 22px;
}

.accordion-button {
  box-shadow: none !important;
}

.accordion-button {
  background-color: var(--color-primary) !important;
  color: #fff !important;
}

.accordion-button.collapsed {
  background-color: #fff !important;
  color: #000 !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--color-primary) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Arrow icon color */
.accordion-button::after {
  filter: brightness(0) invert(1);
}

.bg-primary {
  background-color: var(--color-primary-dark) !important;
}

.accordion-button.collapsed::after {
  filter: none;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

.category-icon {
  width: 64px;
  height: 64px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--color-primary-light);
  transition: all var(--transition-normal);
}

.category-card:hover .category-icon {
  background: var(--color-primary-light);
  color: white;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.category-count {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Testimonial Cards */
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial-quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--color-bg-alt);
  opacity: 0.5;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--color-text-main);
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-info h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.testimonial-author-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Sections General */
.section-padding {
  padding: 80px 0;
}

.section-bg-alt {
  background-color: var(--color-bg-alt);
}

.section-bg-dark {
  background-color: var(--color-bg-dark);
  color: white;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-bg-dark .section-title {
  color: white;
}

.section-desc {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-bg-dark .section-desc {
  color: #94A3B8;
}

/* Forms */
.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Footer */
.footer {
  background-color: var(--color-bg-dark);
  color: #CBD5E1;
  padding: 80px 0 30px;
}

.footer-widget h4 {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  transition: color var(--transition-fast);
  transition: 300ms;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--color-primary-light);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
}

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Helper for animations */
.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Course Details Specific */
.course-header {
  background-color: var(--color-bg-dark);
  color: white;
  padding: 60px 0;
}

.course-header .breadcrumb-item a {
  color: #94A3B8;
}

.course-header .breadcrumb-item.active {
  color: white;
}

.course-sidebar-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  position: sticky;
  top: 100px;
}

.accordion-button:not(.collapsed) {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.accordion-button:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* Filters Sidebar */
.filter-widget {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.filter-widget:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.filter-widget h5 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Pagination */
.pagination .page-link {
  color: var(--color-text-main);
  border-radius: var(--radius-sm);
  margin: 0 0.25rem;
  border: 1px solid var(--color-border);
}

.pagination .page-item.active .page-link {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

._login_text {
  width: 100px;
}

.trainer-hero {
  padding: 30px 0;
}

.experience-badge {
  font-size: 12px;
  margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-expand-lg .navbar-nav {
    align-items: start;
  }

  .navbar-nav .dropdown-menu {
    box-shadow: none !important;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
  }

  /* Fixed mobile CTA spacing */
  body {
    padding-bottom: 70px;
  }

  /* Make menu toggle fixed on mobile/tablet */
  .navbar-toggler {
    position: fixed;
    right: 15px;
    top: 15px;
    z-index: 1040;
    background-color: var(--color-bg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
  }

  .navbar {
    padding: 0.6rem 0;
  }

  .section-padding {
    padding: 30px 0;
  }

  .hero-section {
    padding: 35px 0 45px;
  }
}