/********** JWSA Premium Template CSS **********/

:root {
  --primary: #e5919a;
  --primary-dark: #c96f7d;
  --primary-soft: #fff1f3;

  --secondary: #c9a24a;

  --dark: #111827;
  --dark-soft: #1f2937;

  --text: #334155;
  --muted: #64748b;

  --light: #f7f8fb;
  --white: #ffffff;
  --border: #e5e7eb;

  --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 26px 70px rgba(15, 23, 42, 0.14);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Heebo", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: var(--light);
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.7;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: 0.25s ease;
}

a:hover {
  color: var(--primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark);
  font-weight: 800;
  letter-spacing: 0.03em;
}

p {
  color: var(--muted);
}

img {
  max-width: 100%;
}

/********** Utility **********/

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

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

.bg-light {
  background-color: var(--light) !important;
}

.fw-medium {
  font-weight: 600 !important;
}

.fw-semi-bold {
  font-weight: 700 !important;
}

.rounded-premium {
  border-radius: var(--radius-lg);
}

.shadow-premium {
  box-shadow: var(--shadow-md);
}

/********** Spinner **********/

#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

.spinner-border.text-primary {
  color: var(--primary) !important;
}

/********** Buttons **********/

.btn {
  font-family: "Nunito", "Yu Gothic", sans-serif;
  font-weight: 800;
  border-radius: 999px;
  padding: 11px 24px;
  transition: 0.25s ease;
  border: 1px solid transparent;
  box-shadow: none;
}

.btn:focus,
.btn:active {
  box-shadow: none !important;
}

.btn-primary,
.btn.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(229, 145, 154, 0.24);
}

.btn-primary:hover,
.btn.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(229, 145, 154, 0.32);
}

.btn-secondary,
.btn.btn-secondary {
  background: var(--dark);
  border-color: var(--dark);
  color: #ffffff !important;
}

.btn-secondary:hover,
.btn.btn-secondary:hover {
  background: var(--dark-soft);
  border-color: var(--dark-soft);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-light,
.btn.btn-light {
  background: #ffffff;
  border-color: var(--border);
  color: var(--dark) !important;
  box-shadow: var(--shadow-sm);
}

.btn-light:hover,
.btn.btn-light:hover {
  background: var(--primary-soft);
  border-color: #f4c6ce;
  color: var(--primary-dark) !important;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn a {
  color: inherit;
  text-decoration: none;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 14px;
}

/********** Back To Top **********/

.back-to-top {
  position: fixed;
  display: none;
  right: 32px;
  bottom: 32px;
  z-index: 99;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(229, 145, 154, 0.36);
}

.back-to-top:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-4px);
}

/********** Navbar **********/

.navbar {
  min-height: 78px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06) !important;
  z-index: 1030;
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
  min-height: 78px;
}

.navbar-brand img {
  transition: 0.25s ease;
}

.navbar-brand:hover img {
  transform: scale(1.04);
}

.navbar-light .navbar-nav .nav-link {
  margin-right: 0;
  padding: 29px 15px;
  color: var(--dark) !important;
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
  outline: none;
  position: relative;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary-dark) !important;
}

.navbar-light .navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 999px;
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
  font-size: 12px;
}

.navbar-toggler {
  border: 1px solid var(--border) !important;
  border-radius: 12px;
  padding: 8px 10px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  color: var(--primary);
}

.navbar-light.sticky-top {
  top: 0;
  transition: 0.35s ease;
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block !important;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.25s ease;
    pointer-events: none;
  }

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

.navbar .dropdown-menu {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  padding: 8px;
  min-width: 210px;
}

.navbar .dropdown-menu .dropdown-item {
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s ease;
}

.navbar .dropdown-menu .dropdown-item:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.navbar .dropdown-menu .dropdown-item:active,
.navbar .dropdown-menu .dropdown-item.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav {
    border-top: 1px solid var(--border);
    padding-top: 12px;
  }

  .navbar-light .navbar-nav .nav-link {
    padding: 12px 20px;
    border-radius: 12px;
  }

  .navbar-light .navbar-nav .nav-link.active::after {
    display: none;
  }

  .navbar-light .navbar-nav .nav-link:hover,
  .navbar-light .navbar-nav .nav-link.active {
    background: var(--primary-soft);
  }

  .navbar .dropdown-menu {
    box-shadow: none;
    border-radius: 14px;
    margin: 4px 20px 12px;
  }
}

/********** Header Carousel **********/

.header-carousel .owl-carousel-item {
  position: relative;
  height: 92vh;
  min-height: 680px;
  overflow: hidden;
}

.header-carousel .owl-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.04);
}

.header-carousel p {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.9;
}

.header-carousel .owl-nav {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
  margin: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  font-size: 20px;
  transition: 0.25s ease;
  backdrop-filter: blur(10px);
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.header-carousel .owl-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.header-carousel .owl-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: 0.25s ease;
}

.header-carousel .owl-dot.active {
  width: 32px;
  background: var(--primary);
}

@media (max-width: 1300px) {
  .header-carousel .owl-carousel-item {
    min-height: 620px;
  }
}

@media (max-width: 768px) {
  .header-carousel .owl-carousel-item {
    min-height: 560px;
    height: 560px;
  }

  .header-carousel h1 {
    font-size: 32px;
    line-height: 1.45;
  }

  .header-carousel p {
    font-size: 15px;
    line-height: 1.8;
  }

  .header-carousel .owl-nav {
    display: none;
  }
}

@media (max-width: 430px) {
  .header-carousel .owl-carousel-item {
    min-height: 540px;
    height: 540px;
  }

  .header-carousel h1 {
    font-size: 28px;
    line-height: 1.45;
  }

  .header-carousel p {
    font-size: 14px;
    line-height: 1.75;
  }
}

/********** Page Header **********/

.page-header {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.84), rgba(17, 24, 39, 0.58)),
    url("/img/carousel-1.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 110px 0;
}

.page-header-inner {
  background: rgba(17, 24, 39, 0.62);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb-item a {
  color: #ffffff;
}

.breadcrumb-item.active {
  color: #ffd9de;
}

/********** Section Title **********/

.section-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark) !important;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent !important;
  z-index: 1;
}

.section-title::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--primary-dark);
  position: static;
}

.section-title::after {
  display: none;
}

.section-title.text-start::before {
  width: 34px;
  left: auto;
}

/********** Service **********/

.service-item {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: 0.28s ease;
  overflow: hidden;
  position: relative;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.service-item i {
  color: var(--primary-dark);
  transition: 0.25s ease;
}

.service-item:hover {
  margin-top: 0;
  transform: translateY(-8px);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.service-item:hover i {
  transform: scale(1.06);
}

.service-item * {
  transition: all 0.25s ease;
}

.service-item:hover * {
  color: inherit !important;
}

.service-item:hover i {
  color: var(--primary-dark) !important;
}

/********** Categories & Courses **********/

.course-item {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: 0.28s ease;
}

.course-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.course-item img {
  width: 100%;
  height: 210px;
  border-radius: 0;
  object-fit: cover;
  transition: 0.4s ease;
}

.course-item:hover img {
  transform: scale(1.06);
  margin-top: 0;
}

.category .content {
  cursor: pointer;
  transition: 0.28s ease;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.category .content:hover {
  background-color: #ffffff;
  color: inherit;
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.category .content h5 a {
  text-decoration: none;
  color: var(--dark);
  transition: 0.25s ease;
}

.category .content:hover h5 a {
  color: var(--primary-dark) !important;
}

.category img {
  width: 52px;
  height: 52px;
}

.category img {
  transition: 0.35s ease;
}

.category a:hover img {
  transform: scale(1.08);
  margin-top: 0;
}

/********** Team **********/

.team-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: 0.28s ease;
}

.team-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.team-item img {
  transition: 0.4s ease;
}

.team-item:hover img {
  transform: scale(1.06);
}

/********** Testimonial **********/

.testimonial-carousel::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to right,
    rgba(247, 248, 251, 1) 0%,
    rgba(247, 248, 251, 0) 100%
  );
  z-index: 1;
}

.testimonial-carousel::after {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(
    to left,
    rgba(247, 248, 251, 1) 0%,
    rgba(247, 248, 251, 0) 100%
  );
  z-index: 1;
}

@media (min-width: 768px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 160px;
  }
}

@media (min-width: 992px) {
  .testimonial-carousel::before,
  .testimonial-carousel::after {
    width: 260px;
  }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
  transition: 0.35s ease;
}

.testimonial-carousel .owl-item .testimonial-text {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--shadow-sm);
}

.testimonial-carousel .owl-item.center .testimonial-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  box-shadow: var(--shadow-md);
}

.testimonial-carousel .owl-item.center .testimonial-text * {
  color: #ffffff !important;
}

.testimonial-carousel .owl-dots {
  margin-top: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 10px;
  height: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  transition: 0.25s ease;
}

.testimonial-carousel .owl-dot.active {
  width: 30px;
  border-radius: 999px;
  background: var(--primary);
  border-color: var(--primary);
}

/********** Footer **********/

.footer {
  background: var(--dark) !important;
}

.footer .btn.btn-social {
  margin-right: 6px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: normal;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: 0.25s ease;
  background: rgba(255, 255, 255, 0.06);
}

.footer .btn.btn-social:hover {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  text-align: left;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  transition: 0.25s ease;
  background: transparent;
  border: none;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
  color: var(--primary);
}

.footer .btn.btn-link:hover {
  color: #ffffff;
  letter-spacing: 0;
  padding-left: 5px;
  box-shadow: none;
}

.footer .copyright {
  padding: 25px 0;
  font-size: 14px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .copyright a {
  color: #cbd5e1;
}

.footer .copyright a:hover {
  color: var(--primary);
}

.footer .footer-menu a {
  margin-right: 15px;
  padding-right: 15px;
  color: #cbd5e1;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.footer .footer-menu a:hover {
  color: var(--primary);
}

.footer .footer-menu a:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}

/********** Training Nav Style **********/

.training-nav-wrapper {
  overflow-x: auto;
  padding-bottom: 4px;
}

.training-nav-wrapper::-webkit-scrollbar {
  height: 6px;
}

.training-nav-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.training-nav {
  gap: 10px;
}

.training-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  border-radius: 999px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: 0.2s ease;
  white-space: nowrap;
}

.training-nav .nav-link .material-icons-outlined {
  font-size: 20px;
}

.training-nav .nav-link.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: #f4c6ce;
}

.training-nav .nav-link.active .material-icons-outlined {
  color: var(--primary-dark);
}

.training-nav .nav-link:hover {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

/********** Mobile Optimization **********/

@media (max-width: 576px) {
  .training-nav .nav-text {
    display: none;
  }

  .training-nav .nav-link {
    padding: 10px 12px;
    justify-content: center;
  }
}

/********** Password Browser Icon Hide **********/

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
}

/********** Flow / Step **********/

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  margin: auto;
  box-shadow: 0 12px 24px rgba(229, 145, 154, 0.28);
}

.row .shadow-sm {
  transition: 0.28s ease;
  border-radius: var(--radius-lg);
}

.row .shadow-sm:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md) !important;
}

/********** Form Polish **********/

.form-control,
.form-select {
  border-radius: 14px;
  border: 1px solid #dbe2ea;
  padding: 12px 15px;
  color: var(--text);
  transition: 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(229, 145, 154, 0.12);
}

.form-label {
  color: var(--dark);
  font-weight: 800;
  margin-bottom: 8px;
}

/********** Card Polish **********/

.card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
}

/********** Table Polish **********/

.table {
  color: var(--text);
}

.table thead th {
  background: #f8fafc;
  color: var(--dark);
  font-weight: 800;
  border-bottom: 1px solid var(--border);
}

.table td,
.table th {
  vertical-align: middle;
}

/********** Accordion Polish **********/

.accordion-item {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
}

.accordion-button {
  font-weight: 800;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/********** Responsive Fine Tuning **********/

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .container-xxl,
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .btn {
    padding: 10px 20px;
  }

  .back-to-top {
    right: 20px;
    bottom: 20px;
  }
}