@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

:root {
  --primary-blue: #1a4981;
  --secondary-blue: #2545a7;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --white: #ffffff;
  --accent: #eab308;
  --card-gap: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--primary-blue);
  color: var(--text-dark);
  overflow-x: hidden;

  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  min-width: 0;
}

.jurusan-sticky-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #1e3a8a !important;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.jurusan-nav-pill {
  background: white;
  border-radius: 50px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  gap: 20px;
}

.jurusan-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.jurusan-nav-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.jurusan-nav-brand-text h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-blue);
  margin: 0;
  line-height: 1.2;
}

.jurusan-nav-brand-text p {
  font-size: 11px;
  color: var(--text-gray);
  margin: 0;
}

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

.jurusan-nav-menu a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: 20px;
  transition: 0.3s;
}

.jurusan-nav-menu a:hover,
.jurusan-nav-menu a.active {
  background: var(--primary-blue);
  color: white;
}

.jurusan-nav-search {
  background: #f1f5f9;
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 180px;
  border: 1px solid #e2e8f0;
}

.jurusan-nav-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  width: 100%;
}

.jurusan-nav-profile {
  width: 38px;
  height: 38px;
  background: var(--primary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.jurusan-nav-profile:hover {
  background: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(26, 73, 129, 0.25);
}

.navbar {
  display: none;
}

.hero-section {
  margin-top: 0;
  background: var(--primary-blue);
  color: white;
  position: relative;
  padding: 40px 5% 80px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 500px;
  overflow: hidden;
}

.bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: float 6s infinite ease-in-out;
}

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

.hero-content {
  width: 50%;
  z-index: 2;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 24px;
  font-style: italic;
  margin-bottom: 24px;
  font-weight: 300;
}

.hero-desc {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.9;
  max-width: 90%;
}

.hero-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 24px;
}

.hero-image-box {
  width: 45%;
  z-index: 2;
}

.hero-image-box img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  display: block;
}

.wave-bottom {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  z-index: 1;
}

.jurusan-section {
  position: relative;
  padding: 60px 5% 80px 5%;
  max-width: 1400px;
  margin: 0 auto;
  scroll-margin-top: 100px;
}

.section-header-wrap {
  margin-bottom: 32px;
}

.section-subtitle-tag {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title-main {
  font-size: 32px;
  color: var(--white);
  font-weight: 800;
  margin-top: 6px;
}

.section-desc-sub {
  color: #e2e8f0;
  font-size: 14px;
  margin-top: 6px;
}

.jurusan-section .section-subtitle-tag {
  color: #1e3a8a;
  font-weight: 700;
}

.jurusan-section .section-title-main {
  color: #1e3a8a;
  font-weight: 800;
  margin-top: 5px;
}

.jurusan-section .section-desc-sub {
  color: #64748b;
}

.slider-outer-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.slider-track-container {
  overflow: hidden;
  width: 100%;
  padding: 20px 10px;
  touch-action: pan-y pinch-zoom;
}

.jurusan-cards-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--card-gap);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.jurusan-card {
  background: white;
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 calc((100% - 2 * var(--card-gap)) / 3);
  min-width: calc((100% - 2 * var(--card-gap)) / 3);
  overflow-wrap: anywhere;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.jurusan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.jurusan-icon-box {
  width: 100%;
  height: 160px;
  border-radius: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.jurusan-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bg-animasi {
  background: #fff4cb !important;
}
.bg-rpl {
  background: #d4e4fc !important;
}
.bg-gim {
  background: #fff4cb !important;
}
.bg-tkj {
  background: #e1f0fa !important;
}
.bg-pspt {
  background: #fde4ec !important;
}
.bg-dkv {
  background: #eae4fa !important;
}

.jurusan-card h3 {
  font-size: 18px;
  color: var(--primary-blue);
  margin-bottom: 8px;
  font-weight: 700;
}

.jurusan-divider {
  width: 32px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
  margin-bottom: 12px;
}

.jurusan-card p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-lihat-jurusan {
  display: inline-block;
  background-color: var(--primary-blue);
  color: white !important;
  padding: 10px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(26, 73, 129, 0.2);
  -webkit-tap-highlight-color: transparent;
}

.btn-lihat-jurusan:hover {
  background-color: var(--secondary-blue);
  transform: translateY(-2px);
}

.btn-lihat-jurusan:active {
  transform: scale(0.97);
}

.slider-arrow {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(26, 73, 129, 0.3);
  transition: 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.slider-arrow:hover {
  transform: scale(1.1);
  background: var(--secondary-blue);
  box-shadow: 0 7px 18px rgba(26, 73, 129, 0.35);
}

.slider-arrow:active {
  transform: scale(0.94);
}

.slider-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.arrow-prev {
  left: -10px;
}

.arrow-next {
  right: -10px;
}

.btn-lihat-jurusan:focus-visible,
.slider-arrow:focus-visible,
.jurusan-nav-profile:focus-visible,
.jurusan-nav-menu a:focus-visible {
  outline: 3px solid #eab308;
  outline-offset: 3px;
}

.footer {
  background: #162e67 !important;
  color: white;
  padding: 60px 5% 20px 5%;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 40px;
}

.footer-logo h2 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: white;
}

.footer-logo-sub {
  font-size: 11px;
  font-weight: 400;
  color: white;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 24px;
}

.footer-col h3 {
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-col .footer-links li {
  font-size: 13px;
  line-height: 1.7;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  opacity: 0.8;
  transition: 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  margin-left: 5px;
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  opacity: 0.8;
}

.footer-contact i {
  font-size: 18px;
  margin-top: 2px;
}

.qr-code {
  background: white;
  padding: 8px;
  border-radius: 8px;
  width: 100px;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  opacity: 0.8;
}

.fab-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  text-decoration: none;
  transition: 0.3s;
}

.fab-wa:hover {
  transform: scale(1.1);
}

@media (max-width: 900px) {
  :root {
    --card-gap: 14px;
  }

  .hero-section {
    min-height: 0;
    padding: 28px 4% clamp(48px, 10vw, 80px) 4%;
    gap: 4%;
  }

  .hero-content {
    width: 54%;
  }

  .hero-image-box {
    width: 42%;
  }

  .hero-title {
    font-size: clamp(22px, 5.2vw, 46px);
    margin-bottom: 10px;
  }

  .hero-line {
    width: 40px;
    height: 2px;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: clamp(10px, 2.6vw, 20px);
    margin-bottom: 12px;
  }

  .hero-desc {
    font-size: clamp(10.5px, 1.8vw, 13px);
    line-height: 1.65;
    max-width: 100%;
  }

  .hero-image-box img {
    border-radius: 14px;
    border-width: 3px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  }

  .jurusan-section {
    padding: 36px 4% 48px;
  }

  .section-header-wrap {
    margin-bottom: 14px;
  }

  .jurusan-section .section-subtitle-tag {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .jurusan-section .section-title-main {
    font-size: 26px;
  }

  .jurusan-section .section-desc-sub {
    font-size: 12px;
  }

  .slider-track-container {
    padding: 14px 6px;
  }

  .jurusan-card {
    padding: 18px 12px;
    border-radius: 18px;
  }

  .jurusan-icon-box {
    height: 100px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .jurusan-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .jurusan-divider {
    width: 26px;
    margin-bottom: 8px;
  }

  .jurusan-card p {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .btn-lihat-jurusan {
    font-size: 11px;
    padding: 7px 14px;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .footer {
    padding: 32px 5% 14px;
    margin-top: 24px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
  }

  .footer-logo {
    gap: 8px;
    margin-bottom: 8px;
  }

  .footer-logo img {
    width: 30px;
  }

  .footer-logo h2 {
    font-size: 12.5px;
  }

  .footer-logo-sub {
    font-size: 9.5px;
  }

  .footer-desc {
    font-size: 11px;
    line-height: 1.55;
    margin-bottom: 0;
  }

  .footer-col h3 {
    font-size: 11.5px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
  }

  .footer-links li {
    margin-bottom: 6px;
  }

  .footer-col .footer-links li,
  .footer-links a,
  .footer-contact {
    font-size: 11px;
    line-height: 1.45;
  }

  .footer-contact {
    gap: 6px;
    margin-bottom: 8px;
  }

  .footer-contact i {
    font-size: 13px;
  }

  .footer-links i {
    font-size: 10px;
  }

  .qr-code {
    width: 70px;
    padding: 5px;
  }

  .footer-bottom {
    padding-top: 12px;
    font-size: 10.5px;
  }
}

@media (max-width: 600px) {
  :root {
    --card-gap: 8px;
  }

  .hero-section {
    padding: 20px 4% clamp(40px, 12vw, 56px) 4%;
  }

  .hero-content {
    width: 56%;
  }

  .hero-image-box {
    width: 40%;
  }

  .hero-desc {
    font-size: 10.5px;
    line-height: 1.6;
  }

  .hero-image-box img {
    border-radius: 10px;
    border-width: 2px;
  }

  .bubble {
    max-width: 48px;
    max-height: 48px;
  }

  .jurusan-section {
    padding: 26px 3% 24px;
  }

  .jurusan-section .section-title-main {
    font-size: 20px;
  }

  .jurusan-section .section-desc-sub {
    font-size: 11px;
    line-height: 1.5;
  }

  .slider-outer-wrapper {
    margin-bottom: 40px;
  }

  .slider-track-container {
    padding: 10px 2px;
  }

  .jurusan-card {
    padding: 10px 6px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  }

  .jurusan-icon-box {
    height: 58px;
    padding: 6px;
    margin-bottom: 8px;
    border-radius: 8px;
  }

  .jurusan-card h3 {
    font-size: 9.5px;
    line-height: 1.25;
    margin-bottom: 5px;
  }

  .jurusan-divider {
    width: 18px;
    height: 2px;
    margin-bottom: 6px;
  }

  .jurusan-card p {
    font-size: 8.5px;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .btn-lihat-jurusan {
    font-size: 8.5px;
    line-height: 1.3;
    padding: 5px 6px;
    border-radius: 14px;
    box-shadow: none;
  }

  .slider-arrow {
    top: auto;
    bottom: -38px;
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .arrow-prev {
    left: calc(50% - 36px);
    right: auto;
  }

  .arrow-next {
    left: calc(50% + 6px);
    right: auto;
  }

  .footer {
    padding: 20px 16px 12px;
    margin-top: 12px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 10px;
    margin-bottom: 12px;
  }

  .footer-grid > .footer-col:first-child {
    grid-column: 1 / -1;
  }

  .footer-logo {
    gap: 8px;
    margin-bottom: 6px;
  }

  .footer-logo img {
    width: 26px;
  }

  .footer-logo h2 {
    font-size: 11px;
  }

  .footer-logo-sub {
    font-size: 9px;
  }

  .footer-desc {
    font-size: 10px;
    line-height: 1.5;
  }

  .footer-col h3 {
    font-size: 10px;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
  }

  .footer-links li {
    margin-bottom: 5px;
  }

  .footer-col .footer-links li,
  .footer-links a,
  .footer-contact {
    font-size: 10px;
    line-height: 1.4;
  }

  .footer-contact {
    gap: 5px;
    margin-bottom: 6px;
  }

  .footer-contact i {
    font-size: 12px;
    margin-top: 0;
  }

  .footer-links i {
    font-size: 9px;
  }

  .qr-code {
    width: 56px;
    padding: 3px;
    border-radius: 6px;
  }

  .footer-bottom {
    padding-top: 10px;
    font-size: 9.5px;
    line-height: 1.5;
  }

  .fab-wa {
    width: 46px;
    height: 46px;
    right: 14px;
    bottom: 14px;
    font-size: 24px;
  }
}

@media (max-width: 400px) {
  .jurusan-icon-box {
    height: 52px;
  }

  .jurusan-card h3 {
    font-size: 9px;
  }

  .jurusan-card p {
    font-size: 8px;
  }

  .btn-lihat-jurusan {
    font-size: 8px;
    padding: 5px 5px;
  }

  .footer-col .footer-links li,
  .footer-links a,
  .footer-contact {
    font-size: 9.5px;
  }
}

@media (hover: none) {
  .footer-links a:hover {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jurusan-card,
  .btn-lihat-jurusan,
  .slider-arrow,
  .jurusan-nav-profile,
  .jurusan-nav-menu a,
  .bubble,
  .jurusan-cards-track {
    animation: none !important;
    transition: none !important;
  }
}
