html {
  scroll-behavior: smooth;
}

body {
  background: #f5f5f7;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sub-header {
  background: #111827;
  color: rgba(255, 255, 255, 0.88);
}

.sub-header a {
  color: rgba(255, 255, 255, 0.88) !important;
}

.menubar {
  position: sticky;
  top: 0;
  z-index: 1010;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.navbar {
  min-height: 72px;
}

.navbar-brand.logo img {
  max-height: 42px;
  width: auto;
}

.navbarHover,
.menu_pro_tgl_bg,
.dropdown-menu,
.offcanvas,
.cookieConsentContainer {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14) !important;
}

.navbarHover a,
.user-dropdown-menu-item a,
.btn-toggle-list,
.btn-toggle {
  border-radius: 12px !important;
}

.navbarHover a:hover,
.btn-toggle-list:hover,
.btn-toggle:hover,
.user-dropdown-menu-item a:hover {
  background: rgba(0, 113, 227, 0.08) !important;
  color: #0071e3 !important;
}

.header-search,
.search-option .form-control,
.mobile-search,
.lattest-news .form-control {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.08) !important;
}

.h-1-banner {
  background: radial-gradient(circle at 20% 20%, rgba(0, 113, 227, 0.16), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}

.h-3-banner-text h1,
.title-one .title,
.h-3-expert-instructor-heading h1,
.h-2-courses h1 {
  color: #1d1d1f !important;
  letter-spacing: 0;
}

.h-3-banner-text h1 span {
  color: #0071e3 !important;
}

.h-3-banner-text p,
.Etop_right p,
.course-item-one .content .info,
.footer p {
  color: #515154 !important;
}

.submit-cls,
.logIn-btn,
.signUp-btn,
.right-menubar > a,
.lattest-news .form-arrow {
  border-radius: 999px !important;
  border: 0 !important;
  background: #0071e3 !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.24) !important;
}

.right-menubar > a,
.logIn-btn,
.signUp-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 84px;
  width: auto !important;
  height: auto !important;
  padding: 0 18px !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.navbar .right-menubar > a.mx-3 {
  width: auto !important;
  min-width: 84px !important;
  height: 40px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
}

.submit-cls:hover,
.logIn-btn:hover,
.signUp-btn:hover,
.right-menubar > a:hover,
.lattest-news .form-arrow:hover {
  background: #005bb5 !important;
  transform: translateY(-1px);
}

.h-3-bannar-card,
.course-item-one,
.h3-banner-card-1,
.footer {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.08) !important;
}

.course-item-one {
  overflow: hidden;
}

.course-item-one:hover,
.h3-banner-card-1:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12) !important;
}

.course-item-one .content .title {
  color: #1d1d1f !important;
  letter-spacing: 0;
}

.footer {
  margin: 48px auto 24px;
  background: #111827 !important;
  color: rgba(255, 255, 255, 0.80) !important;
}

.footer h1,
.footer a {
  color: #ffffff !important;
}

.footer a:hover {
  color: #8ec5ff !important;
}

.wa-float {
  bottom: calc(20px + env(safe-area-inset-bottom)) !important;
  right: 20px !important;
}

.wa-float .wa-btn {
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.28) !important;
}

@media (max-width: 767px) {
  .sub-header {
    display: none;
  }

  .menubar {
    top: 0;
  }

  .navbar {
    min-height: 64px;
  }

  .h-1-banner {
    margin-top: 0 !important;
    padding-top: 28px !important;
  }

  .h-3-banner-text h1 {
    font-size: 34px !important;
    line-height: 1.08 !important;
  }

  .search-option form {
    display: grid !important;
    gap: 10px;
  }

  .search-option .form-control,
  .submit-cls {
    width: 100% !important;
    min-height: 48px;
  }

  .h-3-bannar-card,
  .h3-banner-card-1,
  .course-item-one,
  .footer {
    border-radius: 18px !important;
  }

  .footer .col-4 {
    width: 100%;
  }

  .wa-float {
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    right: 14px !important;
  }

  .wa-float .wa-btn {
    width: 48px !important;
    height: 48px !important;
  }
}

/* Explicit auth controls prevent the legacy icon-button dimensions leaking in. */
.menubar .right-menubar a.cx-auth-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 88px !important;
  height: 44px !important;
  padding: 0 18px !important;
  margin: 0 4px !important;
  border-radius: 22px !important;
  font-size: 14px;
  line-height: 1.2 !important;
  white-space: nowrap;
}
.cookieConsentContainer {
  box-sizing: border-box;
  position: fixed !important;
  left: 16px !important;
  right: auto !important;
  bottom: 16px !important;
  width: min(360px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  background: #fff !important;
  color: #1d1d1f !important;
  opacity: 1 !important;
  padding: 20px !important;
  z-index: 1050;
}
.cookieConsentContainer p, .cookieConsentContainer a { color: #1d1d1f !important; }
.cookieConsentContainer .cookieButton a { background: #0071e3 !important; color: #fff !important; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #0071e3;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .cookieConsentContainer { bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, .course-item-one, .h3-banner-card-1 { transition: none !important; transform: none !important; }
}
@media (max-width: 767px) {
  .search-option form .submit-cls {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 !important;
  }
  .search-option form .form-control { padding: 12px 18px !important; }
}
.h-3-bannar-card > .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.h-3-bannar-card > .row > .sidebar-arrow { width: auto; margin: 0; }
.h-3-bannar-card .sidebar-arrow::after { display: none; }
.h-3-bannar-card .h3-banner-card-1 { height: 100%; padding: 16px; align-items: flex-start; }
@media (max-width: 575px) {
  .h-3-bannar-card > .row { grid-template-columns: 1fr; }
}
