/* =========================
   GLOBAL RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #1f2937;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   NAVBAR
========================= */

.header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #0f172a;
  font-size: 23px;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  color: #374151;
  font-size: 15px;
  font-weight: 600;
  transition: 0.3s ease;
}

.nav-menu a:hover {
  color: #2563eb;
}

.nav-btn {
  padding: 10px 18px;
  background: #2563eb;
  color: #ffffff !important;
  border-radius: 7px;
}

.nav-btn:hover {
  background: #1d4ed8;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 27px;
  cursor: pointer;
}

/* =========================
   HERO
========================= */

.hero {
  padding: 90px 0;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-block;
  padding: 7px 14px;
  margin-bottom: 20px;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
}

.hero-text h1 {
  color: #0f172a;
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero-text h1 span {
  display: block;
  color: #2563eb;
}

.hero-text p {
  max-width: 650px;
  margin-bottom: 30px;
  color: #64748b;
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.primary-btn,
.secondary-btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: 0.3s ease;
}

.primary-btn {
  background: #2563eb;
  color: #ffffff;
}

.primary-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.secondary-btn {
  border: 1px solid #2563eb;
  color: #2563eb;
  background: #ffffff;
}

.secondary-btn:hover {
  background: #eff6ff;
}

/* =========================
   HVAC HERO CARD
========================= */

.hero-image {
  display: flex;
  justify-content: center;
}

.hvac-card {
  width: 310px;
  min-height: 310px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 25px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.hvac-icon {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  background: #eff6ff;
  border-radius: 50%;
  font-size: 55px;
}

.hvac-card h3 {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 24px;
}

.hvac-card p {
  color: #64748b;
}

/* =========================
   SECTION HEADING
========================= */

.section-heading {
  max-width: 700px;
  margin: 0 auto 45px;
  text-align: center;
}

.section-heading span {
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-heading h2 {
  margin: 10px 0 12px;
  color: #0f172a;
  font-size: 34px;
}

.section-heading p {
  color: #64748b;
  font-size: 15px;
}

/* =========================
   FEATURES
========================= */

.features {
  padding: 85px 0;
  background: #ffffff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 28px 22px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  background: #eff6ff;
  border-radius: 12px;
  font-size: 27px;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: #111827;
  font-size: 18px;
}

.feature-card p {
  color: #64748b;
  font-size: 14px;
}

/* =========================
   CATEGORIES
========================= */

.categories {
  padding: 85px 0;
  background: #f8fafc;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.category-card {
  padding: 30px 22px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-card > div {
  font-size: 40px;
  margin-bottom: 15px;
}

.category-card h3 {
  margin-bottom: 10px;
  color: #111827;
  font-size: 18px;
}

.category-card p {
  color: #64748b;
  font-size: 14px;
}

/* =========================
   CTA
========================= */

.cta {
  padding: 75px 20px;
  background: #1d4ed8;
}

.cta-content {
  text-align: center;
}

.cta h2 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 35px;
}

.cta p {
  margin-bottom: 28px;
  color: #dbeafe;
}

.cta .primary-btn {
  background: #ffffff;
  color: #1d4ed8;
}

.cta .primary-btn:hover {
  background: #eff6ff;
}

/* =========================================
   FOOTER
========================================= */

.footer {
  background: #0b1220;
  color: #cbd5e1;
  margin-top: 0;
  padding: 65px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 45px;
  padding-bottom: 45px;
}

/* =========================
   FOOTER ABOUT
========================= */

.footer-about {
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-bottom: 17px;

  color: #ffffff;
  font-size: 23px;
  font-weight: 700;

  text-decoration: none;
}

.footer-about p {
  max-width: 350px;

  margin: 0;

  color: #94a3b8;

  font-size: 14px;
  line-height: 1.8;
}

/* =========================
   FOOTER HEADINGS
========================= */

.footer-links h3,
.footer-contact h3 {
  position: relative;

  margin: 0 0 22px;

  color: #ffffff;

  font-size: 17px;
  font-weight: 700;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: "";

  display: block;

  width: 45px;
  height: 3px;

  margin-top: 9px;

  background: #2563eb;

  border-radius: 5px;
}

/* =========================
   FOOTER LINKS
========================= */

.footer-links {
  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 13px;
}

.footer-links a {
  display: inline-block;

  color: #94a3b8;

  font-size: 14px;

  text-decoration: none;

  transition: all 0.3s ease;
}

.footer-links a::before {
  content: "› ";

  color: #3b82f6;

  font-weight: 700;
}

.footer-links a:hover {
  color: #ffffff;

  transform: translateX(5px);
}

/* =========================
   FOOTER CONTACT
========================= */

.footer-contact {
  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 13px;
}

.footer-contact p {
  margin: 0;

  color: #94a3b8;

  font-size: 14px;

  line-height: 1.6;
}

.footer-contact a {
  color: #94a3b8;

  font-size: 14px;

  text-decoration: none;

  transition: all 0.3s ease;
}

.footer-contact a:hover {
  color: #ffffff;

  transform: translateX(5px);
}

/* =========================
   FOOTER BOTTOM
========================= */

.footer-bottom {
  min-height: 70px;

  padding: 20px 0;

  border-top: 1px solid #1e293b;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;
}

.footer-bottom p {
  margin: 0;

  color: #64748b;

  font-size: 13px;
}

.footer-bottom-links {
  display: flex;

  align-items: center;

  gap: 14px;
}

.footer-bottom-links a {
  color: #64748b;

  font-size: 13px;

  text-decoration: none;

  transition: 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

.footer-bottom-links span {
  color: #334155;

  font-size: 13px;
}

/* =========================================
   CART NAVIGATION
========================================= */

.cart-link {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}

.cart-count {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #ffffff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* =========================================
   GLOBAL NAVBAR FIX
========================================= */

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.navbar .logo {
  flex-shrink: 0;
  white-space: nowrap;
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 28px;
  margin-left: auto;
}

.navbar .nav-menu a {
  white-space: nowrap;
}

/* =========================================
   MOBILE NAVBAR
========================================= */

@media (max-width: 768px) {
  .navbar .nav-container {
    flex-wrap: wrap;
  }

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

/* =========================================
   PROFESSIONAL FOOTER
========================================= */

.footer {
  background: #0b1220;
  color: #ffffff;
  margin-top: 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-top: 55px;
  padding-bottom: 45px;
}

.footer-brand h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 22px;
}

.footer-brand h3 span {
  color: #60a5fa;
}

.footer-brand p {
  max-width: 480px;
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-links h4 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 15px;
}

.footer-links a {
  margin-bottom: 11px;
  color: #94a3b8;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 18px 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

/* =========================================
   FOOTER RESPONSIVE
========================================= */

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* =========================================
   DARK MODE
========================================= */

body.dark-mode {
  background: #0f172a;
  color: #e5e7eb;
}

body.dark-mode .navbar {
  background: #111827;
  border-bottom-color: #1f2937;
}

body.dark-mode .nav-menu a {
  color: #e5e7eb;
}

body.dark-mode .nav-menu a:hover {
  color: #60a5fa;
}

body.dark-mode .theme-toggle {
  background: #1f2937;
  color: #facc15;
  border-color: #374151;
}

body.dark-mode .footer {
  background: #080f1d;
  color: #cbd5e1;
}

body.dark-mode .footer h3,
body.dark-mode .footer p,
body.dark-mode .footer a {
  color: #cbd5e1;
}

body.dark-mode .footer a:hover {
  color: #60a5fa;
}

/* COMMON CARDS */

body.dark-mode .course-card,
body.dark-mode .ebook-card,
body.dark-mode .dashboard-card,
body.dark-mode .profile-card,
body.dark-mode .certificate-card {
  background: #111827;
  border-color: #1f2937;
  color: #e5e7eb;
}

body.dark-mode .course-card h3,
body.dark-mode .ebook-card h3,
body.dark-mode .dashboard-card h3,
body.dark-mode .profile-card h3 {
  color: #f8fafc;
}

/* COMMON TEXT */

body.dark-mode p {
  color: #cbd5e1;
}

/* FORM ELEMENTS */

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #111827;
  color: #f8fafc;
  border-color: #374151;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #94a3b8;
}

/* BUTTON */

.theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #dbeafe;
  border-radius: 50%;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 17px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

/* =========================================
   DARK MODE - COURSES PAGE COMPLETE FIX
========================================= */

body.dark-mode {
  background: #0f172a !important;
  color: #e5e7eb !important;
}

/* MAIN PAGE BACKGROUND */

body.dark-mode main {
  background: #0f172a !important;
}

body.dark-mode section {
  background-color: #0f172a;
}

/* HERO / PAGE HEADER */

body.dark-mode .hero,
body.dark-mode .page-hero,
body.dark-mode .courses-hero,
body.dark-mode .courses-header {
  background: #0f172a !important;
  color: #f8fafc !important;
}

body.dark-mode .hero h1,
body.dark-mode .page-hero h1,
body.dark-mode .courses-hero h1,
body.dark-mode .courses-header h1 {
  color: #f8fafc !important;
}

body.dark-mode .hero p,
body.dark-mode .page-hero p,
body.dark-mode .courses-hero p,
body.dark-mode .courses-header p {
  color: #cbd5e1 !important;
}

/* ALL HEADINGS */

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #f8fafc;
}

/* NORMAL TEXT */

body.dark-mode p,
body.dark-mode span,
body.dark-mode label {
  color: #cbd5e1;
}

/* LOGO */

body.dark-mode .logo {
  color: #ffffff !important;
}

body.dark-mode .logo span {
  color: #60a5fa !important;
}

/* NAVBAR */

body.dark-mode .navbar {
  background: #111827 !important;
  border-bottom-color: #1f2937 !important;
}

body.dark-mode .nav-menu a {
  color: #f8fafc !important;
}

body.dark-mode .nav-menu a:hover {
  color: #60a5fa !important;
}

/* SEARCH AREA */

body.dark-mode .search-section,
body.dark-mode .courses-section,
body.dark-mode .course-section {
  background: #0f172a !important;
}

/* SEARCH INPUT */

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #111827 !important;
  color: #f8fafc !important;
  border-color: #374151 !important;
}

body.dark-mode input::placeholder {
  color: #94a3b8 !important;
}

/* FILTER BUTTONS */

body.dark-mode .filter-btn {
  background: #111827;
  color: #cbd5e1;
  border-color: #374151;
}

body.dark-mode .filter-btn:hover {
  background: #1e3a8a;
  color: #ffffff;
}

body.dark-mode .filter-btn.active {
  background: #2563eb;
  color: #ffffff;
}

/* COURSE CARDS */

body.dark-mode .course-card {
  background: #111827 !important;
  border-color: #334155 !important;
}

body.dark-mode .course-card h3 {
  color: #f8fafc !important;
}

body.dark-mode .course-card p {
  color: #cbd5e1 !important;
}

body.dark-mode .course-card span {
  color: #cbd5e1;
}

body.dark-mode .course-price strong {
  color: #ffffff !important;
}

body.dark-mode .course-price del {
  color: #94a3b8 !important;
}

/* COURSE CARD IMAGE / TOP */

body.dark-mode .course-image,
body.dark-mode .course-thumbnail {
  background: #1e293b !important;
}

/* FOOTER */

body.dark-mode .footer {
  background: #080f1d !important;
  color: #cbd5e1 !important;
  border-top-color: #1f2937 !important;
}

body.dark-mode .footer h3 {
  color: #ffffff !important;
}

body.dark-mode .footer p,
body.dark-mode .footer a {
  color: #94a3b8 !important;
}

body.dark-mode .footer a:hover {
  color: #60a5fa !important;
}

/* =========================================
   DARK MODE NAVBAR FULL WIDTH FIX
========================================= */

body.dark-mode .navbar {
  width: 100% !important;
  background: #111827 !important;
  border-bottom: 1px solid #1f2937 !important;
}

body.dark-mode .nav-container {
  background: #111827 !important;
}

body.dark-mode .logo {
  color: #ffffff !important;
}

body.dark-mode .logo span {
  color: #60a5fa !important;
}

body.dark-mode .nav-menu a {
  color: #f8fafc !important;
}

body.dark-mode .nav-menu a:hover {
  color: #60a5fa !important;
}

body.dark-mode .cart-link {
  color: #f8fafc !important;
}

body.dark-mode .menu-toggle {
  color: #ffffff !important;
  background: transparent !important;
}

body.dark-mode .theme-toggle {
  background: #1f2937 !important;
  color: #facc15 !important;
  border-color: #374151 !important;
}

/* =========================================
   DARK MODE - HVAC HERO CARD
========================================= */

body.dark-mode .hvac-card {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

body.dark-mode .hvac-card h3 {
  color: #ffffff !important;
}

body.dark-mode .hvac-card p {
  color: #cbd5e1 !important;
}

body.dark-mode .hvac-icon {
  color: #38bdf8 !important;
}

/* =========================================
   DARK MODE - FEATURE CARDS
========================================= */

body.dark-mode .feature-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .feature-card h3 {
  color: #ffffff !important;
}

body.dark-mode .feature-card p {
  color: #cbd5e1 !important;
}

body.dark-mode .feature-card .feature-icon {
  background: #334155 !important;
}

body.dark-mode .feature-card .feature-icon {
  color: #ffffff !important;
}

/* =========================================
   DARK MODE - HVAC CATEGORY CARDS
========================================= */

body.dark-mode .category-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .category-card h3 {
  color: #ffffff !important;
}

body.dark-mode .category-card p {
  color: #cbd5e1 !important;
}

body.dark-mode .category-card > div {
  color: #ffffff !important;
}

/* =========================================
   DARK MODE - HOME NAVBAR FINAL
========================================= */

body.dark-mode .header {
  background: #111827 !important;
  border-bottom: 1px solid #1f2937 !important;
}

body.dark-mode .header .navbar {
  background: transparent !important;
}

body.dark-mode .header .logo {
  color: #ffffff !important;
}

body.dark-mode .header .nav-menu a {
  color: #f8fafc !important;
}

body.dark-mode .header .nav-menu a:hover {
  color: #60a5fa !important;
}

body.dark-mode .header .theme-toggle {
  background: #1f2937 !important;
  color: #facc15 !important;
  border-color: #374151 !important;
}

/* =========================================
   DARK MODE - MOBILE NAVBAR
========================================= */

@media (max-width: 768px) {
  body.dark-mode .header .nav-menu {
    background: #111827 !important;
    border-color: #374151 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
  }

  body.dark-mode .header .nav-menu a {
    color: #f8fafc !important;
    background: transparent !important;
  }

  body.dark-mode .header .nav-menu a:hover {
    color: #60a5fa !important;
    background: #1e293b !important;
  }

  body.dark-mode .header .nav-menu .theme-toggle {
    background: #1e293b !important;
    color: #facc15 !important;
    border-color: #374151 !important;
  }

  body.dark-mode .header .menu-toggle {
    background: #111827 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
  }
}

/* =========================================
   DARK MODE - MOBILE NAV BUTTON FIX
========================================= */

@media (max-width: 768px) {
  /* DARK MODE BUTTON */

  body.dark-mode .header .nav-menu .theme-toggle {
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 8px 32px !important;
    align-self: flex-start !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    background: #1e293b !important;
    color: #facc15 !important;
    border: 1px solid #475569 !important;
    border-radius: 50% !important;

    font-size: 18px !important;
  }

  /* GET STARTED BUTTON */

  body.dark-mode .header .nav-menu .nav-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: calc(100% - 32px) !important;
    min-height: 48px !important;

    margin: 8px 16px 16px !important;
    padding: 12px 20px !important;

    background: #2563eb !important;
    color: #ffffff !important;

    border: 1px solid #2563eb !important;
    border-radius: 8px !important;

    font-size: 15px !important;
    font-weight: 700 !important;

    box-sizing: border-box !important;
  }

  body.dark-mode .header .nav-menu .nav-btn:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
  }
}

/* =========================================
   MOBILE THEME BUTTON POSITION - ALL MODES
========================================= */

@media (max-width: 768px) {
  .header .nav-menu .theme-toggle {
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;

    margin: 8px 32px !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    align-self: flex-start !important;
    flex: 0 0 auto !important;

    border-radius: 50% !important;
    font-size: 18px !important;
  }
}
/* ================================
   DARK MODE - COURSE CATEGORY BADGES
================================ */

body.dark-mode .course-card .course-category,
body.dark-mode .course-card .category,
body.dark-mode .course-card .badge {
  background: #334155 !important;
  color: #e2e8f0 !important;
  border-color: #475569 !important;
}


/* Dark Mode - Courses Hero Badge */

body.dark-mode .courses-badge {
    background: #dbeafe !important;
    color: #2563eb !important;
    border-color: #bfdbfe !important;
}

/* Course price and button spacing */

.course-card .course-price {
    margin-right: 8px !important;
}

.course-card .course-btn {
    margin-left: 0 !important;
    margin-top: 6px !important;
}

.feature-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card:hover {
    text-decoration: none;
}

/* ===============================
   CLICKABLE FEATURE CARDS
================================ */

.feature-grid .feature-card {
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    text-decoration: none !important;
    color: inherit !important;
}

.feature-grid .feature-card:hover {
    text-decoration: none !important;
}

/* Dark mode - Hero badge text */

body.dark-mode .hero-badge {
    color: #60a5fa !important;
}

/* =========================================
   CERTIFICATE PAGE - MOBILE NAVBAR FIX
========================================= */

@media (max-width: 768px) {

  .navbar .nav-container {
    position: relative;
    flex-wrap: nowrap !important;
    width: 90%;
    min-height: 60px;
  }

  .navbar .menu-toggle {
    display: block !important;
    margin-left: auto;
    padding: 6px 10px;
    border: none;
    background: transparent;
    color: #111827;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }

  .navbar .nav-menu {
    display: none !important;
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0 !important;
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    z-index: 9999;
  }

  .navbar .nav-menu.active {
    display: flex !important;
  }

  .navbar .nav-menu a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    white-space: nowrap;
  }

  .navbar .nav-menu .theme-toggle {
    align-self: flex-start;
    margin: 8px 12px !important;
  }
}

/* =========================================
   FINAL MOBILE NAVBAR FIX
========================================= */

@media (max-width: 768px) {

  .navbar .nav-container {
    position: relative;
    flex-wrap: nowrap !important;
    width: 90%;
    min-height: 60px;
  }

  .navbar .logo {
    flex-shrink: 0;
  }

  .navbar .menu-toggle {
    display: block !important;
    margin-left: auto;
    padding: 6px 10px;
    border: none;
    background: transparent;
    color: #111827;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }

  .navbar .nav-menu {
    display: none !important;
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0 !important;
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    z-index: 9999;
  }

  .navbar .nav-menu.active {
    display: flex !important;
  }

  .navbar .nav-menu a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    white-space: nowrap;
    font-size: 15px;
    color: #374151;
    box-sizing: border-box;
  }

  .navbar .nav-menu a:hover {
    background: #eff6ff;
    color: #2563eb;
    border-radius: 6px;
  }
}
/* FINAL MOBILE NAVBAR TEXT COLOR FIX */

@media (max-width: 768px) {

  .navbar .nav-menu a,
  .dark-mode .navbar .nav-menu a,
  .dark-mode .header .nav-menu a {
    color: #374151 !important;
  }

  .navbar .nav-menu a:hover,
  .dark-mode .navbar .nav-menu a:hover,
  .dark-mode .header .nav-menu a:hover {
    color: #2563eb !important;
    background: #eff6ff !important;
  }

}
/* Desktop Navbar Logo and Menu Spacing Fix */
@media (min-width: 851px) {
  .navbar > .logo {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    margin-right: 16px;
  }

  .navbar > .nav-menu {
    gap: 12px !important;
    min-width: 0;
  }
}

/* =========================================
   PREMIUM HVAC TRAINING CARD ANIMATION
========================================= */

.hvac-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease,
              border-color 0.4s ease;
  animation: hvacCardFloat 5s ease-in-out infinite;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.hvac-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -100%;
  width: 65%;
  height: 220%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.10),
    rgba(255, 255, 255, 0.20),
    transparent
  );
  transform: rotate(25deg);
  animation: hvacShimmer 6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.hvac-icon {
  position: relative;
  animation: hvacSnowflake 12s linear infinite,
             hvacIconFloat 3s ease-in-out infinite;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.18);
  transition: box-shadow 0.4s ease;
}

.hvac-card:hover {
  transform: translateY(-12px) scale(1.025);
  border-color: #38bdf8 !important;
  box-shadow:
    0 25px 55px rgba(14, 165, 233, 0.20),
    0 0 25px rgba(56, 189, 248, 0.15);
  animation-play-state: paused;
}

.hvac-card:hover .hvac-icon {
  box-shadow:
    0 0 25px rgba(56, 189, 248, 0.45),
    0 0 55px rgba(56, 189, 248, 0.20);
}

.hvac-card h3,
.hvac-card p,
.hvac-icon {
  z-index: 1;
}

@keyframes hvacCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes hvacIconFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes hvacSnowflake {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes hvacShimmer {
  0%, 15% { left: -100%; }
  65%, 100% { left: 150%; }
}

@media (prefers-reduced-motion: reduce) {
  .hvac-card,
  .hvac-card::before,
  .hvac-icon {
    animation: none !important;
  }

  .hvac-card,
  .hvac-icon {
    transition: none !important;
  }
}


/* =========================================
   HVAC PREMIUM 3D HOME PAGE EXPERIENCE
========================================= */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  perspective: 1200px;
  background:
    radial-gradient(ellipse at 80% 35%, rgba(56,189,248,.13), transparent 38%),
    radial-gradient(ellipse at 15% 85%, rgba(37,99,235,.10), transparent 40%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(2px);
}

.hero::before {
  width: 260px;
  height: 260px;
  top: 8%;
  right: 8%;
  background: radial-gradient(circle, rgba(56,189,248,.15), transparent 70%);
  animation: heroOrbOne 9s ease-in-out infinite;
}

.hero::after {
  width: 200px;
  height: 200px;
  bottom: 5%;
  left: 5%;
  background: radial-gradient(circle, rgba(37,99,235,.13), transparent 70%);
  animation: heroOrbTwo 11s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-text {
  animation: heroTextEntrance 1s ease-out both;
}

.hero-badge {
  animation: heroBadgeGlow 4s ease-in-out infinite;
}

.hero-text h1 {
  animation: heroHeadingEntrance 1.1s ease-out both;
}

.hero-text > p {
  animation: heroTextEntrance 1.3s ease-out both;
}

.hero-buttons {
  animation: heroTextEntrance 1.5s ease-out both;
}

.hvac-card {
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}

.hvac-icon {
  transform: translateZ(35px);
  transform-style: preserve-3d;
}

.hvac-card h3 {
  transform: translateZ(22px);
}

.hvac-card p {
  transform: translateZ(15px);
}

.hero-buttons a {
  transition: transform .3s ease, box-shadow .3s ease;
}

.hero-buttons a:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(37,99,235,.22);
}

@keyframes heroOrbOne {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-45px,35px) scale(1.2); }
}

@keyframes heroOrbTwo {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(35px,-35px) scale(1.15); }
}

@keyframes heroTextEntrance {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroHeadingEntrance {
  from { opacity: 0; transform: translateY(35px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroBadgeGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(37,99,235,0); }
  50% { box-shadow: 0 0 22px rgba(37,99,235,.18); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .hero-text,
  .hero-badge,
  .hero-text h1,
  .hero-text > p,
  .hero-buttons {
    animation: none !important;
  }
}


/* =========================================
   LIVE COURSE PURCHASE NOTIFICATION
========================================= */

.purchase-notification {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: 18px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);
  z-index: 99999;
  font-family: inherit;
  animation: purchaseNotificationIn 0.45s ease both;
}

.purchase-notification-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 23px;
  cursor: pointer;
  line-height: 1;
}

.purchase-notification-close:hover {
  color: #ef4444;
}

.purchase-notification-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 18px;
  margin-bottom: 16px;
}

.purchase-notification-header strong {
  font-size: 13px;
  color: #0f172a;
}

.purchase-notification-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-weight: 700;
}

.purchase-notification-time {
  margin-left: auto;
  color: #94a3b8;
  font-size: 11px;
  white-space: nowrap;
}

.purchase-notification-body {
  display: flex;
  align-items: center;
  gap: 13px;
}

.purchase-notification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #eff6ff;
  font-size: 23px;
}

.purchase-notification-details {
  min-width: 0;
  font-size: 13px;
  color: #64748b;
}

.purchase-notification-details strong {
  display: block;
  margin-bottom: 3px;
  color: #0f172a;
  font-size: 14px;
}

.purchase-notification-details p {
  margin: 4px 0 0;
  color: #2563eb;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.purchase-notification-footer {
  margin-top: 15px;
  padding-top: 11px;
  border-top: 1px solid #e2e8f0;
  color: #16a34a;
  font-size: 11px;
  font-weight: 600;
}

@keyframes purchaseNotificationIn {
  from {
    opacity: 0;
    transform: translateX(-25px) translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

@media (max-width: 480px) {
  .purchase-notification {
    left: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 15px;
  }
}

body.dark-mode .purchase-notification {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}

body.dark-mode .purchase-notification-header strong,
body.dark-mode .purchase-notification-details strong {
  color: #f8fafc;
}

body.dark-mode .purchase-notification-footer {
  border-color: #334155;
}


/* HVAC Tutorial Navbar Logo */
.navbar .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar .logo img {
  display: block;
  width: 220px;
  height: 60px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 768px) {
  .navbar .logo img {
    width: 170px;
    height: 48px;
  }
}

/* Responsive Navbar Logo */
.navbar .logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.navbar .logo img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: 60px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 768px) {
  .navbar .logo img {
    width: 160px;
    height: 48px;
  }

  .navbar .nav-container {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .navbar .logo img {
    width: 125px;
    height: 42px;
  }

  .navbar .nav-container {
    gap: 6px;
  }

  .navbar .menu-toggle {
    flex-shrink: 0;
  }
}

/* Mobile Navbar Logo Fix */
@media (max-width: 480px) {
  .navbar .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .navbar .logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 55px);
  }

  .navbar .logo img {
    display: block;
    width: 155px;
    max-width: 100%;
    height: 48px;
    object-fit: contain;
    object-position: left center;
  }

  .navbar .menu-toggle {
    flex-shrink: 0;
    margin-left: auto;
  }
}



}
/* FINAL DESKTOP NAVBAR ALIGNMENT FIX */
@media (min-width: 851px) {
  .navbar .nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    flex-wrap: nowrap !important;
  }

  .navbar .nav-container > .logo {
    flex: 0 0 auto !important;
    margin-right: 20px !important;
    white-space: nowrap !important;
  }

  .navbar .nav-container > .nav-menu {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 28px !important;
    margin-left: auto !important;
    min-width: 0 !important;
  }

  .navbar .nav-menu > a {
    white-space: nowrap !important;
  }
}


/* =========================================
   FINAL MOBILE NAVBAR - DARK MODE TEXT FIX
========================================= */

@media (max-width: 768px) {

  body.dark-mode .navbar .nav-menu {
    background: #111827 !important;
    border-color: #334155 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  }

  body.dark-mode .navbar .nav-menu a {
    color: #f8fafc !important;
    background: transparent !important;
  }

  body.dark-mode .navbar .nav-menu a:hover {
    color: #60a5fa !important;
    background: #1e293b !important;
  }

  body.dark-mode .navbar .nav-menu .cart-link {
    color: #f8fafc !important;
  }

  body.dark-mode .navbar .menu-toggle {
    color: #f8fafc !important;
  }

}

