* {
  padding: 0;
  margin: 0;
}

.halaman1 {
  height: 100vh;
  width: 100%;
  position: absolute;
  z-index: 0;
  background-color: none;
  font-family: 'Montserrat', sans-serif;
  background-image: url('bg.png');
  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)
  );
}

/*ini buat header yah, awalnya di sini*/
.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); /*set to min 400px max 1920px*/
}

.logoamsawhite {
    height: auto;
    width: clamp(3.125rem, 2.632rem + 1.974vw, 5rem); /*set to min 400px max 1440px*/
    margin-left: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem); /*set to min 400px max 1920px*/
}

.logoamsablack {
    height: auto;
    width: clamp(3.125rem, 2.632rem + 1.974vw, 5rem); /*set to min 400px max 1440px*/
    margin-left: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem); /*set to min 400px max 1920px*/
    display: none;
}

.amsa {
    color: #ffff;
    font-size: clamp(1.125rem, 0.768rem + 0.952vw, 1.625rem); /*set to min 400px max 1440px*/
    margin-right: 0;
    margin-left: clamp(0.938rem, 0.337rem + 2.404vw, 2.5rem); /*set to min 400px max 1440px*/
    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); /*set to min 400px max 1440px*/
}

.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); /*set to min 400px max 1440px*/
  font-weight: 550;
  margin-right: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem); /*set to min 400px max 1920px*/
  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); /*set to min 400px max 1440px*/
  padding-bottom: clamp(0.75rem, 0.654rem + 0.385vw, 1rem); /*set to min 400px max 1440px*/
  padding-left: clamp(0.5rem, 0.404rem + 0.385vw, 0.75rem); /*set to min 400px max 1440px*/
  padding-right: clamp(0.5rem, 0.404rem + 0.385vw, 0.75rem); /*set to min 400px max 1440px*/
  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;
}

/* Ini dropdown, hanya akan aktif kalau ada <ul class="drop"> di dalam <li> */
.drop-down {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.3s ease;
  position: absolute;
  top: 100%;
  left: 0;
  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; 
}

/* Hanya aktifkan dropdown untuk li yang punya .drop */
.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); /*set to min 400px max 1024px*/
  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); /*set to min 400px max 1024px*/
  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; /* atau auto kalau mau bebas */
  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;
}

/*dropdown buat tampilan mobile*/


/*akhiran headernya di sini bos*/

.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); /*set to min 400px max 1920px*/ /*jangan diutak-atik*/
  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); /*set to min 400px max 1440px*/
  margin-bottom: clamp(1.563rem, 0.24rem + 5.288vw, 5rem); /*set to min 400px max 1440px*/
}

.namadivisi {
  font-size: clamp(1.5rem, 1.072rem + 1.711vw, 3.125rem); /*set to min 400px max 1920px*/
  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); /*set to min 400px max 1920px*/
}

.deskripsidivisi {
  margin: 0;
}

.fotoeb {
  width: clamp(18.75rem, 16.283rem + 9.868vw, 28.125rem); /*set to min 400px max 1920px*/
}

.bawahan {
  font-size: clamp(0.875rem, 0.776rem + 0.395vw, 1.25rem); /*set to min 400px max 1440px*/
  font-family: "Montserrat", sans-serif;
  margin-top: 0; /*set to min 400px max 1440px*/
  width: clamp(18.75rem, 9.704rem + 36.184vw, 53.125rem); /*set to min 400px max 1440px*/
  text-align: justify;
  text-indent: 40px;
}

.halaman3 {
  height: auto;
  width: auto;
  margin-bottom: clamp(3.125rem, 2.404rem + 2.885vw, 5rem); /*set to min 400px max 1440px*/
}

.activities {
  height: clamp(4.375rem, 3.553rem + 3.289vw, 7.5rem); /*set to min 400px max 1920px*/
  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); /*set to min 400px max 1920px*/
  margin-bottom: clamp(2.5rem, 1.842rem + 2.632vw, 5rem); /*set to min 400px max 1920px*/
}

.cardbaris1 {
  display: flex;
  height: auto;
  align-items: center;
  justify-content: center;
}

.cardbaris11 {
  width: clamp(20rem, 16.711rem + 13.158vw, 32.5rem); /*set to min 400px max 1920px*/
  height: clamp(15rem, 12.533rem + 9.868vw, 24.375rem); /*set to min 400px max 1920px*/
  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); /*set to min 400px max 1920px*/
  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); /*set to min 400px max 1920px*/
  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.625rem, 0.526rem + 0.395vw, 1rem); /*set to min 400px max 1440px*/
  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); /*set to min 400px max 1920px*/
  height: clamp(15rem, 12.533rem + 9.868vw, 24.375rem); /*set to min 400px max 1920px*/
  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); /*set to min 400px max 1920px*/
  object-fit: cover;
  display: block;
}

.cardbaris2 {
  display: flex;
  height: auto;
  align-items: center;
  justify-content: center;
}
  
.cardbaris21 {
  width: clamp(20rem, 16.711rem + 13.158vw, 32.5rem); /*set to min 400px max 1920px*/
  height: clamp(15rem, 12.533rem + 9.868vw, 24.375rem); /*set to min 400px max 1920px*/
  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: 0;
}

.cardbaris21 img {
  width: 100%;
  height: clamp(7.5rem, 6.184rem + 5.263vw, 12.5rem); /*set to min 400px max 1920px*/
  object-fit: cover;
  display: block;
}

.bottom {
  margin-top: clamp(3.125rem, 2.404rem + 2.885vw, 5rem); /*set to min 400px max 1440px*/;
  height: clamp(5rem, 3.317rem + 6.731vw, 9.375rem); /*set to min 400px max 1440px*/
  background-color: #001d51;
  width: 100%;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.logoamsawhitebottom {
  height: clamp(3.125rem, 1.442rem + 6.731vw, 7.5rem); /*set to min 400px max 1440px*/
}

.saundip {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.fa-bars {
  color: #fff;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); /*set to min 400px max 1200px*/
  margin-right: clamp(0.938rem, 0.337rem + 2.404vw, 2.5rem);
  z-index: 9999;
}

.fa-xmark {
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); /*set to min 400px max 1200px*/
}


@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{
  background-color: #fff;
  width: 100%;
}

.sidebar a{
  background-color: #fff;
  width: 100%;
}

.sidebar li a{
  background-color: #fff;
  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); /*set to min 400px max 1920px*/
  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 {
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
  }

.cardbaris2 {
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
  }

.cardbaris11 {
  margin: 0 0 40px 0;
}

.cardbaris12 {
  margin: 0 0 40px 0;
}

.cardbaris21 {
  margin: 0 0 40px 0;
}

}

