/* =========================================================
   YSGC SHARED NAVBAR
   ========================================================= */

.ysgc-navbar,
.ysgc-navbar * {
  box-sizing: border-box;
}

.ysgc-navbar {
  position: sticky;
  top: 0;
  z-index: 9999;

  width: 100%;

  background: #ffffff;

  border-bottom: 1px solid rgba(6, 45, 92, 0.08);
}

.ysgc-navbar-inner {
  width: min(1500px, 94%);

  min-height: 88px;

  margin: 0 auto;

  display: flex;
  align-items: center;

  gap: 24px;
}

/* =========================================================
   BRAND
   ========================================================= */

.ysgc-brand {
  flex: 0 0 auto;

  display: flex;
  align-items: center;

  gap: 11px;

  color: #062d5c;

  text-decoration: none;
}

.ysgc-brand:hover {
  color: #062d5c;
}

/* LOGO ASLI */

.ysgc-brand-logo {
  width: 58px;
  height: 58px;

  flex: 0 0 58px;

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

  overflow: hidden;

  border-radius: 50%;

  background: #ffffff;
}

.ysgc-brand-logo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
}

/* BRAND TEXT */

.ysgc-brand-text {
  display: flex;
  flex-direction: column;

  line-height: 1.04;

  white-space: nowrap;
}

.ysgc-brand-text small {
  margin-bottom: 3px;

  color: #062d5c;

  font-size: 8px;
  font-weight: 700;

  letter-spacing: 1px;
}

.ysgc-brand-text strong {
  color: #062d5c;

  font-size: 14px;
  font-weight: 800;

  line-height: 1.07;
}

/* =========================================================
   DESKTOP MENU
   ========================================================= */

.ysgc-menu {
  flex: 1;

  display: flex;
  justify-content: flex-end;
}

.ysgc-menu-list {
  list-style: none;

  display: flex;
  align-items: center;

  gap: 3px;

  margin: 0;
  padding: 0;
}

.ysgc-menu-list > li {
  position: relative;

  margin: 0;
  padding: 0;
}

.ysgc-link {
  position: relative;

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

  min-height: 44px;

  padding: 10px 9px;

  border: 0;

  background: transparent;

  color: #111111;

  font-family: inherit;

  /* sebelumnya 11px */
  font-size: 13px;

  font-weight: 600;

  line-height: 1;

  white-space: nowrap;

  text-decoration: none;

  cursor: pointer;

  transition: color 0.25s ease;
}

.ysgc-link:hover,
.ysgc-link.active {
  color: #062d5c;
}

/* ACTIVE LINE */

.ysgc-link::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 3px;

  width: 0;
  height: 3px;

  border-radius: 20px;

  background: #f8bd19;

  transform: translateX(-50%);

  transition: width 0.25s ease;
}

.ysgc-link:hover::after,
.ysgc-link.active::after {
  width: 25px;
}

/* =========================================================
   MEDIA
   ========================================================= */

.ysgc-media-toggle {
  gap: 5px;
}

.ysgc-media-toggle i {
  font-size: 10px;

  transition: transform 0.25s ease;
}

.ysgc-media-item.open .ysgc-media-toggle i {
  transform: rotate(180deg);
}

.ysgc-dropdown {
  position: absolute;

  top: calc(100% + 7px);
  left: 50%;

  min-width: 160px;

  list-style: none;

  margin: 0;
  padding: 7px;

  background: #ffffff;

  border: 1px solid #e7ebef;
  border-radius: 11px;

  box-shadow: 0 15px 40px rgba(3, 38, 80, 0.12);

  opacity: 0;
  visibility: hidden;

  transform: translate(-50%, -5px);

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.ysgc-media-item.open .ysgc-dropdown {
  opacity: 1;
  visibility: visible;

  transform: translate(-50%, 0);
}

.ysgc-dropdown li {
  margin: 0;
  padding: 0;
}

.ysgc-dropdown a {
  display: block;

  padding: 9px 11px;

  border-radius: 7px;

  color: #062d5c;

  font-size: 12px;
  font-weight: 500;

  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.ysgc-dropdown a:hover,
.ysgc-dropdown a.active {
  background: #062d5c;

  color: #ffffff;
}

/* =========================================================
   DONATION
   ========================================================= */

.ysgc-donation-item {
  margin-left: 7px !important;
}

.ysgc-donation {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 16px;

  border-radius: 999px;

  background: #f8bd19;

  color: #062d5c;

  font-size: 12px;
  font-weight: 700;

  line-height: 1;

  white-space: nowrap;

  text-decoration: none;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.ysgc-donation:hover {
  background: #ffc928;

  color: #062d5c;

  transform: translateY(-2px);

  box-shadow: 0 8px 20px rgba(248, 189, 25, 0.25);
}

/* =========================================================
   HAMBURGER
   ========================================================= */

.ysgc-menu-toggle {
  display: none;

  width: 40px;
  height: 40px;

  flex: 0 0 40px;

  padding: 0;

  border: 0;
  border-radius: 10px;

  background: #f5f7f9;

  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 5px;

  cursor: pointer;
}

.ysgc-menu-toggle span {
  display: block;

  width: 18px;
  height: 2px;

  border-radius: 10px;

  background: #062d5c;

  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
}

.ysgc-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.ysgc-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.ysgc-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   LAPTOP
   ========================================================= */

@media (max-width: 1350px) and (min-width: 1101px) {
  .ysgc-navbar-inner {
    width: 96%;

    gap: 11px;
  }

  .ysgc-brand-logo {
    width: 52px;
    height: 52px;

    flex-basis: 52px;
  }

  .ysgc-brand-text strong {
    font-size: 12px;
  }

  .ysgc-brand-text small {
    font-size: 7px;
  }

  .ysgc-link {
    padding-left: 6px;
    padding-right: 6px;

    /* sebelumnya 10px */
    font-size: 11.5px;
  }

  .ysgc-donation {
    padding: 10px 12px;

    font-size: 10.5px;
  }
}

/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .ysgc-navbar {
    width: 100%;
  }

  .ysgc-navbar-inner {
    width: 100%;
    max-width: none;

    min-height: 70px;

    margin: 0;

    padding: 0 16px;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    align-items: center;
    justify-content: space-between;

    gap: 0;
  }

  /* LOGO */

  .ysgc-brand {
    flex: 0 1 auto;

    width: auto;

    display: flex;
    align-items: center;

    padding: 10px 0;
  }

  .ysgc-brand-logo {
    width: 45px;
    height: 45px;

    flex: 0 0 45px;
  }

  .ysgc-brand-text small {
    margin-bottom: 2px;

    font-size: 5.5px;
  }

  .ysgc-brand-text strong {
    font-size: 9px;
  }

  /* HAMBURGER */

  .ysgc-menu-toggle {
    display: flex;

    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    margin-left: auto;
  }

  /* MENU */

  .ysgc-menu {
    flex: 0 0 100%;

    width: 100%;
    min-width: 100%;
    max-width: 100%;

    display: block;

    max-height: 0;

    margin: 0;
    padding: 0;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    transition:
      max-height 0.4s ease,
      opacity 0.25s ease,
      visibility 0.4s;
  }

  .ysgc-menu.open {
    max-height: 700px;

    opacity: 1;
    visibility: visible;
  }

  /* MENU LIST */

  .ysgc-menu-list {
    width: 100%;
    min-width: 100%;

    display: flex;
    flex-direction: column;

    align-items: stretch;
    justify-content: flex-start;

    gap: 0;

    margin: 0;

    padding: 7px 0 16px;

    border-top: 1px solid #edf0f3;
  }

  .ysgc-menu-list > li {
    width: 100%;

    margin: 0;
    padding: 0;
  }

  /* LINKS */

  .ysgc-link {
    width: 100%;

    min-height: 0;

    display: flex;

    align-items: center;
    justify-content: flex-start;

    margin: 0;

    padding: 9px 3px;

    font-size: 10.5px;
    font-weight: 500;

    text-align: left;
  }

  .ysgc-link.active {
    color: #062d5c;

    font-weight: 700;
  }

  .ysgc-link::after {
    display: none;
  }

  /* MEDIA */

  .ysgc-media-toggle {
    justify-content: flex-start;

    gap: 7px;
  }

  .ysgc-dropdown {
    position: static;

    width: 100%;
    min-width: 0;

    max-height: 0;

    margin: 0;

    padding: 0 0 0 13px;

    overflow: hidden;

    border: 0;
    border-left: 2px solid transparent;

    border-radius: 0;

    background: transparent;

    box-shadow: none;

    opacity: 1;
    visibility: visible;

    transform: none;

    transition:
      max-height 0.3s ease,
      padding 0.3s ease,
      border-color 0.3s ease;
  }

  .ysgc-media-item.open .ysgc-dropdown {
    max-height: 160px;

    padding-top: 3px;
    padding-bottom: 4px;

    border-left-color: #f8bd19;

    transform: none;
  }

  .ysgc-dropdown a {
    padding: 7px 9px;

    font-size: 9.5px;
  }

  /* DONATION */

  .ysgc-donation-item {
    width: 100%;

    margin: 7px 0 0 !important;
  }

  .ysgc-donation {
    width: fit-content;

    padding: 9px 14px;

    font-size: 9.5px;
  }
}

/* =========================================================
   PHONE
   ========================================================= */

@media (max-width: 576px) {
  .ysgc-navbar-inner {
    min-height: 68px;

    padding-left: 14px;
    padding-right: 14px;
  }

  .ysgc-brand-logo {
    width: 43px;
    height: 43px;

    flex-basis: 43px;
  }

  .ysgc-brand-text small {
    font-size: 5px;
  }

  .ysgc-brand-text strong {
    font-size: 8.5px;
  }

  .ysgc-menu-toggle {
    width: 38px;
    height: 38px;

    flex-basis: 38px;
  }

  .ysgc-menu-toggle span {
    width: 17px;
  }

  .ysgc-menu-list {
    padding-top: 6px;
    padding-bottom: 14px;
  }

  .ysgc-link {
    padding: 8px 2px;

    font-size: 10px;
  }
}
