body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #f4f4f9, #e8eaf6);
  color: #333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Navbar Styling */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  background-color: rgba(38, 17, 113, 0.8);
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  margin: 20px auto;
  width: 90%;
  left: 50%;
  transform: translateX(-50%);
  position: fixed;
  z-index: 9999;
  gap: 20px; /* Tambahkan gap untuk jarak antar item */
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px; /* Supaya logo dan teks Universitas Bali Internasional ada jaraknya */
}
.navbar-logo img {
  width: 60px;
  height: 50px;
  margin-right: 10px;
}

.navbar-logo span {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar-nav {
  display: flex;
  gap: 20px;
}

.navbar-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-align: center;
  font-family: "segoe ui", monospace;
  font-size: 1rem;
  text-transform: capitalize;
}

.navbar-nav a:hover {
  background-color: #fff;
  color: #261171;
}

/* Dropdown Styling */
.navbar-nav .dropdown {
  position: relative;
}

.navbar-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1000;
  min-width: 200px;
}

.navbar-nav .dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s ease;
}

.navbar-nav .dropdown-menu a:hover {
  background-color: #f4f4f4;
}

/* Display dropdown menu on hover */
.navbar-nav .dropdown:hover .dropdown-menu {
  display: block;
}

/* Navbar Extra (Hamburger Menu) Styling */
.navbar-extra {
  display: flex;
  align-items: center;
  gap: 10px;
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 999;
}

.navbar-extra a {
  text-decoration: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-extra a:hover {
  background-color: #fff;
  color: #261171;
}

#hamburger-menu i {
  width: 24px;
  height: 24px;
}

/* Nav Section Styling */
.nav {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 15px 0;
  margin: 30px auto;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 999;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: #261171;
  font-family: "Segoe UI", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu a:hover {
  color: #ffffff;
  background: #261171;
  transform: translateY(-2px);
}

/* Active State */
.nav-menu a.active {
  background: #3b1b94;
  color: white;
}

/* Underline Animation */
.nav-menu li::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #00d9d9;
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.nav-menu li:hover::after {
  width: 70%;
}

/* Responsive Styling */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .navbar-nav .dropdown-menu {
    position: static;
    box-shadow: none;
  }
}

/* Nav Section Styling */
.nav {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 15px 0;
  margin: 30px auto;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 999;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: #261171;
  font-family: "Segoe UI", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu a:hover {
  color: #ffffff;
  background: #261171;
  transform: translateY(-2px);
}

/* Active State */
.nav-menu a.active {
  background: #3b1b94;
  color: white;
}

/* Underline Animation */
.nav-menu li::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #00d9d9;
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.nav-menu li:hover::after {
  width: 70%;
}

/* Responsive Styling */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .navbar-nav .dropdown-menu {
    position: static;
    box-shadow: none;
  }
}

/* Dropdown Styling */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  top: 100%;
  left: 0;
  z-index: 1000;
  min-width: 200px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dropdown-menu li {
  position: relative;
}

.dropdown-menu a {
  color: #261171;
  padding: 12px 20px;
  display: block;
  text-decoration: none;
  font-family: "Segoe UI", sans-serif;
  transition: background-color 0.3s ease;
}

/* Divider Line */
.dropdown-menu li:not(:last-child) {
  border-bottom: 1px solid #ddd;
}

/* Show Dropdown on Hover */
.dropdown:hover > .dropdown-menu {
  display: block;
}

/* Optional: Nested dropdown support */
.dropdown-menu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("../Image/Psikologi.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgba(237, 248, 250) 1%,
    rgba(237, 248, 250, 0) 10%
  );
}

/* Container Styling */
.container {
  display: flex;
  line-height: 1.8;
  gap: 20px;
  text-align: justify;
  align-items: center; /* membuat foto do tengah */
  justify-content: space-between;
  padding: 40px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  max-width: 1200px;
  width: 90%;
  position: relative;
}

.left-section h3,
.left-section h5 {
  color: #261171;
}

.left-section h3 {
  font-family: "poppins", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.left-section h5 {
  font-family: "poppins", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.program-label {
  background-color: #261171;
  color: white;
  font-weight: bold;
  display: inline-block;
  margin: 20px 0;
  padding: 10px 20px;
  border-radius: 5px;
}

.right-section {
  text-align: center;
}

.badge img {
  width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.left-section p {
  font-family: "poppins", sans-serif;
}
/* Career Section Styling */
.career-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #261171, #3b1b94);
  color: #ffffff;
  padding: 70px 20px;
  border-radius: 15px;
  margin: 40px auto;
  max-width: 1200px;
}

.career-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.career-left img {
  max-width: 100%;
  width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.career-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
}

.career-right h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.career-right ul {
  list-style: none;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1.8;
}

.career-right ul li {
  margin-bottom: 10px;
}

/* Footer Styling */
.footer {
  background: linear-gradient(135deg, #3a007d, #5302a7);
  color: #ffffff;
  padding: 50px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative Gradient Circles */
.footer::before,
.footer::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.footer::before {
  width: 200px;
  height: 200px;
  top: -50px;
  left: -50px;
}

.footer::after {
  width: 300px;
  height: 300px;
  bottom: -100px;
  right: -100px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  z-index: 2;
  position: relative;
}

.footer-column h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #00d9d9;
  text-transform: uppercase;
}

.footer-column p {
  font-size: 1rem;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #00d9d9;
  text-decoration: underline;
}

/* Social Icons */
.social-icons {
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 1.2rem;
  color: #ffffff;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #00d9d9;
  color: #3a007d;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 20px;
  font-size: 0.9rem;
  z-index: 2;
  position: relative;
}

.footer-bottom a {
  color: #00d9d9;
  text-decoration: none;
  font-weight: bold;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.visi-misi {
  font-family: Arial, sans-serif;
  line-height: 1.8;
  color: #333;
}

.visi-misi h3 {
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 10px;
}

.visi-misi .program-label {
  font-size: 1.5rem;
  font-weight: bold;
  color: #006699;
  margin: 20px 0;
}

.visi-misi p.justify {
  text-align: justify;
  margin-bottom: 20px;
  font-size: 1rem;
}

.visi-misi {
  font-family: Arial, sans-serif;
  line-height: 1.8;
  color: #333;
}

.visi-misi h3 {
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 10px;
}

.visi-misi .program-label {
  font-size: 1.5rem;
  font-weight: bold;
  color: #006699;
  margin: 20px 0;
}

.visi-misi p.justify {
  text-align: justify;
  margin-bottom: 20px;
  font-size: 1rem;
}

#hamburger-menu {
  display: none;
}

/* Media Queries */

/* laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}
/* Tablet */
@media (max-width: 768px) {
  html {
    font-size: 62.5%;
  }

  #hamburger-menu {
    display: inline-block;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background: #fff;
    width: 30rem;
    height: 100vh;
    transition: 0.3s;
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    color: #261171;
    display: block;
    margin: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  /* Hover effect */
  .navbar .navbar-nav a:hover {
    background: linear-gradient(135deg, #5f49d0, #261171);
    color: #fff;
    box-shadow: 0 4px 15px rgba(38, 17, 113, 0.4);
    transform: translateX(5px);
  }

  /* Optional: efek klik */
  .navbar .navbar-nav a:active {
    transform: scale(0.95);
  }
}
/* Mobile */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 768px) {
  /* Penyesuaian umum */
  html {
    font-size: 55%;
  }
  /* Penyesuaian container utama */
  .container {
    flex-direction: column-reverse; /* Gambar di atas, konten di bawah */
    padding: 20px;
    margin: 20px auto;
    gap: 30px;
  }

  .left-section,
  .right-section {
    width: 100%; /* Full width */
  }

  .badge img {
    width: 100%;
    max-width: 300px; /* Gambar tidak terlalu besar */
  }

  /* Penyesuaian bagian karir */
  .career-section {
    padding: 40px 20px;
    border-radius: 10px;
  }

  .career-container {
    flex-direction: column; /* Susun vertikal */
    gap: 30px;
  }

  .career-left img {
    width: 100%;
    max-width: 350px; /* Gambar menyesuaikan lebar */
  }

  .career-right {
    max-width: 100%; /* Full width */
  }

  .career-right h2 {
    font-size: 2rem; /* Ukuran judul lebih kecil */
  }

  /* Penyesuaian footer */
  .footer-container {
    flex-direction: column; /* Susun vertikal */
    gap: 30px;
  }

  .footer-column {
    width: 100%;
    text-align: center;
  }

  .social-icons {
    justify-content: center; /* Tengahkan ikon sosial media */
  }

  .hero {
    min-height: 50vh;
    background-size: cover;
    background-position: center;
  }
}

/* Untuk perangkat mobile sangat kecil */
@media (max-width: 450px) {
  html {
    font-size: 50%; /* Ukuran font lebih kecil lagi */
  }

  .container {
    padding: 15px; /* Padding lebih kecil */
  }

  .left-section h3 {
    font-size: 1.6rem; /* Ukuran heading lebih kecil */
  }

  .left-section h5 {
    font-size: 1rem;
  }

  .program-label {
    padding: 8px 15px;
    font-size: 1.2rem; /* Ukuran label program */
  }

  .career-right h2 {
    font-size: 1.8rem;
  }

  .career-right ul {
    font-size: 1rem; /* Ukuran teks list karir */
  }

  .hero {
    min-height: 50vh;
    background-size: cover;
    background-position: center;
  }
}
