/* Extracted from theme style.css. Keep cascade order in functions.php. */

/* ----------------- NAV FIJO ----------------- */
.admin-bar .site-nav {
  top: 32px;
}

/* ----------------- NAV ----------------- */

.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 4.5rem;
  z-index: 100;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  background: white;
  color: black;
  padding: 0 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-direction: column;
}

.main-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;

  .nav-left {
    display: flex;
    align-items: center;
  }

  .logo {
    display: flex;
    align-items: center;
    text-decoration: none;

    img {
      height: 3rem;
      width: auto;
    }
  }

  .nav-links {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;

    .mobile-logo {
      display: none;
    }

    a.nav-link {
      color: black;
      text-decoration: none;
      font-family: var(--subtitle-font);
      font-size: 1rem;
      padding: 0.4rem 1rem;
      transition: color 0.3s;
      position: relative;

      &::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--purple-stroke);
        transition: width 0.3s ease;
      }

      &:hover {
        color: var(--purple-stroke);

        &::after {
          width: calc(100% - 2rem);
        }
      }

      &.responsive-link {
        display: none;
      }
    }

    .nav-active {
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-color: rgba(255, 255, 255, 0.5);
    }

    .nav-user-dropdown,
    .nav-dropdown {
      position: relative;

      &:hover .nav-user-btn .nav-user-arrow,
      &:hover .nav-link-dropdown .nav-user-arrow,
      .nav-user-btn[aria-expanded="true"] .nav-user-arrow,
      .nav-link-dropdown[aria-expanded="true"] .nav-user-arrow {
        transform: rotate(180deg);
      }

      .nav-user-menu {
        display: none;
        position: absolute;
        top: 120%;
        right: 0;
        background: rgb(255, 255, 255);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        list-style: none;
        min-width: 200px;
        z-index: 102;

        .dropdown-item {
          display: flex;
          align-items: center;
          justify-content: center;
          padding: 0.75rem 1.25rem;
          font-size: 0.875rem;
          background: none;
          border: none;
          border-radius: 0;
          transition: all 0.15s;
          text-decoration: none;

          &:hover {
            font-weight: 600;
          }
        }
      }

      &:hover .nav-user-menu,
      &.open .nav-user-menu {
        display: block;
      }
    }

    .nav-link-dropdown {
      background: none;
      border: none;
      cursor: pointer;
      font-family: var(--subtitle-font);
      font-size: 1rem;
      padding: 0.4rem 1rem;
      color: black;
      display: flex;
      align-items: center;
      gap: 0.25rem;
      transition: color 0.3s;

      .nav-user-arrow {
        font-size: 0.7em;
        transition: transform 0.3s;
      }

      &:hover {
        color: var(--purple-stroke);
      }
    }
  }

  .hamburger {
    display: none;
  }
}


.main-footer {
  background-color: var(--gray);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0rem;

  .footer-grid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 8vw 2.5rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-col {
    h4 {
      color: white;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      position: relative;

      &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 2rem;
        height: 2px;
        background: linear-gradient(90deg,
            var(--brand-orange),
            var(--brand-pink));
        border-radius: 2px;
      }
    }

    ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    li,
    a {
      color: rgba(255, 255, 255, 0.5);
      text-decoration: none;
      transition: color 0.2s ease;
    }

    a:hover {
      color: white;
    }

    .dual-list {
      display: flex;
      gap: 2.5rem;

      ul {
        list-style: none;
      }
    }
  }

  .footer-logo {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;

    img {
      height: 3rem;
      width: auto;
      filter: brightness(0) invert(1);
    }
  }
}

.footer-bottom {
  background-color: var(--gray);
  color: rgba(255, 255, 255, 0.7);
  padding: 1rem 0;
  text-align: center;
}

/* Teacher card: CTA on the right (flat selector — works even if nested rules above are skipped) */
.teachers-grid .teacher-card .card-footer {
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
}

.teachers-grid .teacher-card .card-footer a.btn-primary {
  margin-left: auto;
}

/* --------------------------------------------*/