/* ===== ROOT COLORS ===== */
:root {
  --primary: #0B2C4D;
  --accent: #1E6FD9;
  --light-bg: #F8FAFC;
  --text-dark: #1F2933;
}
/* MAIN NAVBAR STYLE */
html { scroll-behavior: smooth; }

body.dark-theme {
  --light-bg: #0F172A;
  --text-dark: #E5E7EB;
}


/* RESET */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
}

/* NAVBAR */
.custom-navbar {
  background: #ffffff;
  padding: 15px 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.navbar-brand span {
  color: var(--accent);
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--accent);
  left: 0;
  bottom: -4px;
  transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent);
}

.navbar .btn-primary {
  background: var(--primary);
  border: none;
}

.navbar .btn-primary:hover {
  background: var(--accent);
}


/* HERO */
.hero-section {
  background: linear-gradient(135deg, #0B2C4D, #123E6A);
  padding-top: 80px;
  /* navbar space */
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-title span {
  color: #9EC5FF;
}

.hero-text {
  margin: 20px 0 30px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.hero-image {
  border-radius: 20px;
  max-height: 380px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<Hamburger >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
@media (max-width: 991px) {
  .navbar-collapse {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin-top: 10px;
  }

  .navbar-nav .nav-link {
    color: var(--text-dark);
  }
}

/* STATS SECTION */
.stats-section {
  margin-top: -40px;
  padding-bottom: 80px;
}

.stats-wrapper {
  background: #ffffff;
  width: 85%;
  margin: auto;
  padding: 40px 20px;
  border-radius: 20px;
  display: flex;
  justify-content: space-around;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.stat-box h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-box p {
  margin-top: 8px;
  font-weight: 500;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-wrapper {
    flex-direction: column;
    gap: 25px;
    width: 95%;
  }
}

/* <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Beginner to brilliant section >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
.journey-section {
  padding: 60px 0;
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 40px;
}

.journey-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.journey-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Footer Css >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 60px 0 30px;
}

.footer h4,
.footer h5 {
  font-weight: 600;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .modal-body,
body.dark-theme .modal-header {
  background-color: #020617;
}

body.dark-theme #x1 {
  background-color: white;
}

/* <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<Courses Section >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
.courses-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.section-header {
  text-align: center;
}

.section-subtitle {
  color: #6b7280;
  max-width: 600px;
  margin: auto;
}

.course-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.course-content {
  padding: 25px;
}

.course-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
}

.course-content h4 {
  margin: 10px 0;
  font-weight: 600;
  color: #5a7b9c
}

.course-content p {
  font-size: 0.95rem;
  color: #555;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.price {
  font-weight: 700;
  color: #5a7b9c;
}

/* DARK THEME STYLES */
.theme-btn {
  border-radius: 50%;
  padding: 8px 10px;
  font-size: 1rem;
}

/* DARK MODE EXTRA FIXES */
body.dark-theme {
  background-color: #0F172A;
  color: #E5E7EB;
}

body.dark-theme .custom-navbar {
  background: #0F172A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-theme .nav-link {
  color: #E5E7EB;
}

body.dark-theme h3 {
  color: #5a7b9c;
}

body.dark-theme .section-title {
  color: #5a7b9c;
}

body.dark-theme #a1 {
  color: #5a7b9c;
}

#a1 {
  color: #031e40;
}

body.dark-theme .footer {
  background: #020617;
}

body.dark-theme .course-card,
body.dark-theme .journey-card,
body.dark-theme .stats-wrapper {
  background: #1E293B;
  color: #E5E7EB;
}

/* MOBILE NAVBAR FIX */
@media (max-width: 991px) {
  .navbar-collapse {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    margin-top: 10px;
  }

  body.dark-theme .navbar-toggler-icon {
    filter: invert(1);
    color: white;
  }

  body.dark-theme .navbar-collapse {
    background: #020617;
  }

  .navbar-nav .nav-link {
    color: var(--text-dark);
    padding: 10px 0;
  }

  body.dark-theme .navbar-nav .nav-link {
    color: #E5E7EB;
  }
}

/* Eye icon */
.password-toggle {
  position: absolute;
  right: 15px;
  top: 30px;
  cursor: pointer;
  font-size: 1.1rem;
  user-select: none;
}

/* <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Courses CSS>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
.page-header {
  background: linear-gradient(135deg, #0B2C4D, #123E6A);
  color: #fff;
  padding: 120px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-weight: 700;
}

.course-info {
  list-style: none;
  padding: 0;
  margin: 15px 0 20px;
  font-size: 0.9rem;
}

.course-info li {
  margin-bottom: 6px;
  color: #555;
}

body.dark-theme .course-info li {
  color: #CBD5F5;
}

/* <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Pricing page css>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
.pricing-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.pricing-tabs button {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 18px;
  margin: 0 6px;
  border-radius: 30px;
  font-weight: 500;
  transition: 0.3s;
}

.pricing-tabs button.active,
.pricing-tabs button:hover {
  background: var(--primary);
  color: #fff;
}

.pricing-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  height: 100%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.pricing-card h2 {
  font-weight: 700;
  color: var(--primary);
}

.plan-duration {
  color: #6b7280;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.pricing-card ul li {
  margin-bottom: 10px;
}

.pricing-card.recommended {
  border: 2px solid var(--accent);
  transform: scale(1.03);
}

.pricing-card .badge {
  background: var(--accent);
  margin-bottom: 15px;
}

/* Pricing filter */
.pricing-card {
  transition: all 0.35s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card.recommended {
  animation: popIn 0.6s ease;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* DARK MODE — PRICING PAGE FIX */
body.dark-theme .pricing-card {
  background: #1E293B;
  color: #E5E7EB;
}

body.dark-theme .pricing-card h4,
body.dark-theme .pricing-card h2,
body.dark-theme .pricing-card p,
body.dark-theme .pricing-card ul li {
  color: #E5E7EB;
}

body.dark-theme .pricing-card .plan-duration {
  color: #CBD5F5;
}

body.dark-theme .pricing-card .btn-outline-primary {
  color: #E5E7EB;
  border-color: #60A5FA;
}

body.dark-theme .pricing-card .btn-outline-primary:hover {
  background: #60A5FA;
  color: #020617;
}

body.dark-theme .pricing-tabs button {
  border-color: #60A5FA;
  color: #E5E7EB;
}

body.dark-theme .pricing-tabs button.active {
  background: #60A5FA;
  color: #020617;
}

/*.....................................Dashboard CSS...............................................*/
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: var(--primary);
  color: #fff;
  padding: 30px 20px;
}

.sidebar .logo {
  font-weight: 700;
  margin-bottom: 30px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  padding: 12px 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 6px;
}

.sidebar ul li:hover,
.sidebar ul li.active {
  background: var(--accent);
}

.sidebar ul li.logout {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.1);
}

/* MAIN */
.dashboard-content {
  flex: 1;
  padding: 40px;
  background: var(--light-bg);
}

.dash-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.dash-card h4 {
  font-size: 1rem;
  color: #555;
}

.dash-card p {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

/* PLACEHOLDER */
.dashboard-placeholder {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  color: #777;
}
body.dark-theme .dashboard-content {
  background: #06163a;
}

body.dark-theme .dash-card,
body.dark-theme .dashboard-placeholder {
  background: #518cee;
  color: #E5E7EB;
}

.progress {
  height: 8px;
  border-radius: 10px;
  background: #e5e7eb;
}

.progress-bar {
  background: var(--accent);
  border-radius: 10px;
}

body.dark-theme .progress {
  background: #334155;
}

/* .....................................Contact CSS............................................... */
.contact-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.contact-section h3 {
  font-weight: 700;
  margin-bottom: 15px;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.contact-info li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Dark mode */
body.dark-theme .contact-section {
  background: #0F172A;
}

body.dark-theme .contact-form {
  background: #1E293B;
  border: 2px solid #164382;;
}
* {
  will-change: auto;
}

.animate {
  will-change: transform, opacity;
}

