* {
  padding: 0;
  margin: 0;
}

body {
  background-color: #ffffff;
  color: #000000;
  overflow-x: hidden; 
}
.halaman1 {
  height: 60vh;
  width: 100%;
  position: absolute;
  z-index: 0;
  background-color: #f0f0f0;
  font-family: 'Montserrat', sans-serif;
  background-image: url('ALLCAS.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;
}

.logodivisi {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60vh;
  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.5rem + 2vw, 4rem);
  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;
}

.bawahan {
  font-size: clamp(0.875rem, 0.776rem + 0.395vw, 1.25rem);
  font-family: "Montserrat", sans-serif;
  margin-top: 0;
  width: clamp(22rem, 12rem + 40vw, 100rem);
  text-align: justify;
  text-indent: 40px;
}

.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, .logoamsablack {
  height: auto;
  width: clamp(3.125rem, 2.632rem + 1.974vw, 5rem);
  margin-left: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
}

.logoamsablack {
  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, .header.scrolled .amsa, .header.scrolled .fa-bars {
  color: #001d51;
}

.header.scrolled .logoamsawhite { display: none; }
.header.scrolled .logoamsablack { display: block; }

.header.scrolled .menu li a:hover {
  color: #fff;
  background-color: #001d51;
  border-radius: 5px;
}

.menu-pcdisplay {
  list-style: none;
  margin: 0 clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem) 0 auto;
  padding: 0;
  display: flex;
  background-color: none;
  font-size: clamp(0.75rem, 0.558rem + 0.769vw, 1.25rem);
  font-weight: 550;
}

.menu-pcdisplay > li { position: relative; }
.CO-mobile { margin-top: 10px; }

.menu-pcdisplay > li > a {
  color: white;
  text-decoration: none;
  padding: clamp(0.75rem, 0.654rem + 0.385vw, 1rem) 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);
}

/* Mobile Menu Bar */
.bar-mobile-display {
  position: fixed;
  top: 0;
  right: 0;
  height: auto;
  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; }

.halaman3, .halaman4 {
  height: auto;
  width: auto;
  margin-bottom: clamp(1.5rem, 1.2rem + 1.5vw, 2.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(1rem, 0.8rem + 1vw, 2rem); 
}

.cardbaris1, .mindi1, .mindi2, .mindi3, .mindi4 {
  display: flex;
  height: auto;
  align-items: center;
  justify-content: center;
}

.mindi2, .mindi3, .mindi4 {
  margin-bottom: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
}


.cardbaris11, .mindi11, .mindi12, .mindi21, .mindi22, .mindi31, .mindi32, .mindi41, .mindi42 {
  width: clamp(20rem, 16.711rem + 13.158vw, 32.5rem);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  overflow: hidden;
  background: #fff;
}

.cardbaris11 {
  height: clamp(15rem, 12.533rem + 9.868vw, 24.375rem);
  margin: 0 auto clamp(0.5rem, 0.3rem + 0.5vw, 1rem) auto;
}

.mindi11, .mindi12, .mindi21, .mindi22, .mindi31, .mindi32, .mindi41, .mindi42 {
  height: max-content; 
}

.mindi11, .mindi21, .mindi31, .mindi41 {
  margin: 0 clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem) 0 0;
}
.mindi12, .mindi22, .mindi32, .mindi42 {
  margin: 0 0 0 clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem);
}
.mindi11, .mindi12 { margin-top: 0; margin-bottom: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem); }
.mindi21, .mindi22, .mindi31, .mindi32, .mindi41, .mindi42 { margin-bottom: 0; margin-top: clamp(0.938rem, 0.691rem + 0.987vw, 1.875rem); }

.cardbaris11 img, .mindi11 img, .mindi12 img, .mindi21 img, .mindi22 img, .mindi31 img, .mindi32 img, .mindi41 img, .mindi42 img {
  width: 100%;
  height: clamp(7.5rem, 6.184rem + 5.263vw, 12.5rem);
  object-fit: cover;
  display: block;
}

.caption0, .namamindi {
  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;
}

.namamindi {
  padding: 20px 0 20px 0px;
}

.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;
}

.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); 
}

@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) {
  .deskripsidivisiplusfoto, .cardbaris1, .mindi1, .mindi2, .mindi3, .mindi4 {
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hide-menu-pcdisplay { display: none; }
  .halaman1, .logodivisi, .finance { height: 30vh; }
  
  .namadivisi {
    font-size: clamp(2rem, 2rem + 1.5vw, 4rem);
    font-family: "Alex brush", cursive;
    font-weight: 300;
    color: #001d51;
    text-align: center;
    margin: 0;
  }
  
  .bawahan {
    font-size: clamp(0.875rem, 0.776rem + 0.395vw, 1.25rem);
    font-family: "Montserrat", sans-serif;
    margin-top: 0; 
    text-align: justify;
    text-indent: 40px;
    width: clamp(18.75rem, 9.704rem + 36.184vw, 53.125rem); 
  }
  
  .header .opt { display: block; align-items: center; justify-content: center; margin: 0; }
  
  .mindi11, .mindi12, .mindi21, .mindi22, .mindi31, .mindi32, .mindi41 {
    margin: 0 0 40px 0;
  }
  .mindi42 { margin: 0; }
}