* {
  padding: 0;
  margin: 0;
}

.halaman1 {
  height: 100vh;
  width: 100%;
  position: absolute;
  z-index: 0;
  background-color: #f0f0f0;
  font-family: 'Montserrat', sans-serif;
  background-image: url('ALL.PNP.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(    
    rgb(0 0 0 / 1),
    rgb(0 0 0 / 0.8) 70%,
    rgb( 0 0 0 / 0)
  );
  mask-image: linear-gradient(
    rgb(0 0 0 / 1),
    rgb(0 0 0 / 0.8) 70%,
    rgb( 0 0 0 / 0)
  );
}

::-webkit-scrollbar {
  display: none;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  position: fixed;
  width: 100%;
  transition: all 0.3s ease;
  z-index: 99;
  height: clamp(5.625rem, 5.132rem + 1.974vw, 7.5rem);
}

.logoamsawhite {
  height: auto;
  width: clamp(3.125rem, 2.632rem + 1.974vw, 5rem);
  margin-left: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
}

.logoamsablack {
  height: auto;
  width: clamp(3.125rem, 2.632rem + 1.974vw, 5rem);
  margin-left: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
  display: none;
}

.amsa {
  color: #ffff;
  font-size: clamp(1.125rem, 0.768rem + 0.952vw, 1.625rem);
  margin-right: 0;
  margin-left: clamp(0.938rem, 0.337rem + 2.404vw, 2.5rem);
  font-weight: 600;
}

.universitasdiponegoro {
  font-size: clamp(0.938rem, 0.817rem + 0.481vw, 1.25rem);
  font-weight: 350;
}

.header.scrolled {
  background-color: white;
  color: black;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: clamp(5rem, 4.519rem + 1.923vw, 6.25rem);
}

.header.scrolled a {
  color: #001d51;
}

.header.scrolled .logoamsawhite {
  display: none;
}

.header.scrolled .logoamsablack {
  display: block;
}

.header.scrolled .amsa {
  color: #001d51;
}

.header.scrolled .menu li a:hover {
  color: #fff;
  background-color: #001d51;
  border-radius: 5px;
}

.header.scrolled .fa-bars {
  color: #001d51;
}

.menu-pcdisplay {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  background-color: none;
  font-size: clamp(0.75rem, 0.558rem + 0.769vw, 1.25rem);
  font-weight: 550;
  margin-right: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
  margin-left: auto;
}

.menu-pcdisplay > li {
  position: relative;
}

.CO-mobile {
  margin-top: 10px;
}

.menu-pcdisplay > li > a {
  color: white;
  text-decoration: none;
  padding-top: clamp(0.75rem, 0.654rem + 0.385vw, 1rem);
  padding-bottom: clamp(0.75rem, 0.654rem + 0.385vw, 1rem);
  padding-left: clamp(0.5rem, 0.404rem + 0.385vw, 0.75rem);
  padding-right: clamp(0.5rem, 0.404rem + 0.385vw, 0.75rem);
  display: block;
  transition: background-color 0.3s ease;
}

.menu-pcdisplay li a:hover {
  color: #001d51;
  background-color: #fff;
  border-radius: 5px;
}

.fa-caret-down {
  margin-left: 10px;
}

.drop-down {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.3s ease;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #ccc;
  min-width: 300px;
  z-index: 99;
  font-size: 1rem;
}

.drop-down li a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: black;
}

.drop-down li a:hover {
  background-color: #f0f0f0; 
}

.menu-pcdisplay > li:hover > .drop-down {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bar-mobile-display {
  position: fixed;
  top: 0;
  right: 0;
  height: auto;
  width: clamp(15.625rem, 5.609rem + 40.064vw, 31.25rem);
  z-index: 999;
  background-color: #fff;
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  list-style: none;
  text-decoration: none;
  display: none;
  flex-direction: column;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 0.558rem + 0.769vw, 1.25rem);
  color: #001d51;
  margin-top: clamp(4.688rem, 4.207rem + 1.923vw, 5.938rem);
  width: 100%;
}

.bar-mobile-display li {
  padding: 10px 16px;
  background-color: #fff;
}

.bar-mobile-display li:hover {
  background-color: #ffffff; 
  cursor: pointer;
}

.bar-mobile-display a {
  text-decoration: none;
  color: #001d51;
  font-weight: 500;
}

.has-dropdown {
  margin: 0;
}

.drop-menu-mobile {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  padding-left: 0;
  list-style: none;
  width: 100%;
  display: none;
}

.drop-menu-mobile.show {
  max-height: 700px;
  opacity: 1;
  width: 100%;
  display: block;
}

.opt {
  display: none;
  margin: 0;
}

.fa-chevron-down {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.rotate {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.logodivisi {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
}

.divisi {
  height: clamp(15.625rem, 13.98rem + 6.579vw, 21.875rem);
  width: auto;
  position: relative;
  z-index: 50;
}

.halaman2 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: clamp(1.563rem, 0.24rem + 5.288vw, 5rem);
  margin-bottom: clamp(1.563rem, 0.24rem + 5.288vw, 5rem);
}

.namadivisi {
  font-size: clamp(1.5rem, 1.072rem + 1.711vw, 3.125rem);
  font-family: "Alex brush", cursive;
  font-weight: 300;
  color: #001d51;
  text-align: left;
}

.deskripsidivisiplusfoto {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0rem, -0.658rem + 2.632vw, 2.5rem);
}

.deskripsidivisi {
  margin: 0;
}

.fotoeb {
  width: clamp(18.75rem, 16.283rem + 9.868vw, 28.125rem);
}

.bawahan {
  font-size: clamp(0.875rem, 0.776rem + 0.395vw, 1.25rem);
  font-family: "Montserrat", sans-serif;
  margin-top: 0;
  width: clamp(18.75rem, 9.704rem + 36.184vw, 53.125rem);
  text-align: justify;
  text-indent: 40px;
}

.halaman3 {
  height: auto;
  width: auto;
  margin-bottom: clamp(3.125rem, 2.404rem + 2.885vw, 5rem);
}

.activities {
  height: clamp(4.375rem, 3.553rem + 3.289vw, 7.5rem);
  color: #fff;
  background-color: #001d51;
  font-family: "Alex Brush";
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.875rem, 1.546rem + 1.316vw, 3.125rem);
  margin-bottom: clamp(2.5rem, 1.842rem + 2.632vw, 5rem);
}

/* Cards Baris 1 */
.cardbaris1 {
  display: flex;
  height: auto;
  align-items: center;
  justify-content: center;
}

.cardbaris11 {
  width: clamp(20rem, 16.711rem + 13.158vw, 32.5rem);
  height: clamp(15rem, 12.533rem + 9.868vw, 24.375rem);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  overflow: hidden;
  background: #fff;
  margin-top: 0;
  margin-bottom: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
  margin-right: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
  margin-left: 0;
}

.cardbaris11 img {
  width: 100%;
  height: clamp(7.5rem, 6.184rem + 5.263vw, 12.5rem);
  object-fit: cover;
  display: block;
}

.caption0 {
  padding: 20px 0 5px 0px;
  background: white;
  text-align: center;
  font-size: clamp(0.875rem, 0.776rem + 0.395vw, 1.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
}

.caption {
  padding: 0 10px 0 10px;
  background: white;
  text-align: center;
  font-size: clamp(0.600rem, 0.500rem + 0.350vw, 1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
}

.cardbaris12 {
  width: clamp(20rem, 16.711rem + 13.158vw, 32.5rem);
  height: clamp(15rem, 12.533rem + 9.868vw, 24.375rem);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  overflow: hidden;
  background: #fff;
  margin-top: 0;
  margin-bottom: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
  margin-left: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
  margin-right: 0;
}

.cardbaris12 img {
  width: 100%;
  height: clamp(7.5rem, 6.184rem + 5.263vw, 12.5rem);
  object-fit: cover;
  display: block;
}

/* Cards Baris 2 */
.cardbaris2 {
  display: flex;
  height: auto;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
}

.cardbaris21 {
  width: clamp(20rem, 16.711rem + 13.158vw, 32.5rem);
  height: clamp(15rem, 12.533rem + 9.868vw, 24.375rem);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  overflow: hidden;
  background: #fff;
  margin-bottom: 0;
  margin-top: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
  margin-right: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
  margin-left: 0;
}

.cardbaris21 img {
  width: 100%;
  height: clamp(7.5rem, 6.184rem + 5.263vw, 12.5rem);
  object-fit: cover;
  display: block;
}

.cardbaris22 {
  width: clamp(20rem, 16.711rem + 13.158vw, 32.5rem);
  height: clamp(15rem, 12.533rem + 9.868vw, 24.375rem);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  overflow: hidden;
  background: #fff;
  margin-bottom: 0;
  margin-top: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
  margin-left: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
  margin-right: 0;
}

.cardbaris22 img {
  width: 100%;
  height: clamp(7.5rem, 6.184rem + 5.263vw, 12.5rem);
  object-fit: cover;
  display: block;
}

/* Cards Baris 3 (CARD 32 AMAN SINI) */
.cardbaris3 {
  display: flex;
  height: auto;
  align-items: center;
  justify-content: center;
}

.cardbaris31 {
  width: clamp(20rem, 16.711rem + 13.158vw, 32.5rem);
  height: clamp(15rem, 12.533rem + 9.868vw, 24.375rem);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  overflow: hidden;
  background: #fff;
  margin-bottom: 0;
  margin-top: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
  margin-right: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
  margin-left: 0;
}

.cardbaris31 img {
  width: 100%;
  height: clamp(7.5rem, 6.184rem + 5.263vw, 12.5rem);
  object-fit: cover;
  display: block;
}

.cardbaris32 {
  width: clamp(20rem, 16.711rem + 13.158vw, 32.5rem);
  height: clamp(15rem, 12.533rem + 9.868vw, 24.375rem);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  overflow: hidden;
  background: #fff;
  margin-bottom: 0;
  margin-top: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
  margin-left: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
  margin-right: 0;
}

.cardbaris32 img {
  width: 100%;
  height: clamp(7.5rem, 6.184rem + 5.263vw, 12.5rem);
  object-fit: cover;
  display: block;
}

.bottom {
  margin-top: clamp(0.3rem, 0.1rem + 1vw, 1.5rem); 
  height: clamp(60px, 4rem + 4vw, 12vh); 
  background-color: #001d51;
  width: 100%;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.logoamsawhitebottom {
  height: clamp(2.5rem, 1.5rem + 3vw, 4.375rem); 
}

.saundip {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.fa-bars {
  color: #fff;
  font-size: clamp(1.1rem, 0.8rem + 1vw, 1.8rem); 
  margin-right: clamp(0.938rem, 0.337rem + 2.404vw, 2.5rem);
  z-index: 9999;
}

.fa-xmark {
  font-size: clamp(1.1rem, 0.8rem + 1vw, 1.8rem); 
}

body {
  background-color: #ffffff;
  color: #000000;
  overflow-x: hidden; 
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .sidebar li a {
    background-color: #fff;
    transition: background-color 0.3s ease;
  }

  .sidebar li a:hover {
    background-color: #ccc;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hide-menu-pcdisplay {
    display: none;
  }

  .sidebar li,
  .sidebar a,
  .sidebar li a {
    background-color: #fff;
    width: 100%;
  }

  .sidebar li a {
    transition: background-color 0.3s ease;
  }

  .sidebar li a:hover {
    background-color: #ccc;
  }

  .header .opt {
    display: block;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  .finance {
    height: 40vh;
  }
}

@media (min-width: 320px) and (max-width: 767px) {
  * {
    padding: 0;
    margin: 0;
  }

  .deskripsidivisiplusfoto {
    display: flex;
    flex-direction: column;
  }

  .hide-menu-pcdisplay {
    display: none;
  }

  .namadivisi {
    font-size: clamp(1.875rem, 1.546rem + 1.316vw, 3.125rem);
    font-family: "Alex brush", cursive;
    font-weight: 300;
    color: #001d51;
    text-align: center;
  }

  .header .opt {
    display: block;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  .finance {
    height: 30vh;
  }

  .cardbaris1,
  .cardbaris2,
  .cardbaris3 {
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cardbaris11,
  .cardbaris12,
  .cardbaris21,
  .cardbaris22,
  .cardbaris31 {
    margin: 0 0 40px 0;
  }

  .cardbaris32 {
    margin: 0;
  }
}