* {
  padding: 0;
  margin: 0;
  box-sizing: border-box; /* Tambahkan ini agar padding tidak menambah lebar/tinggi elemen */
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  overflow-x: hidden; /* Mencegah layar geser kanan-kiri secara tidak sengaja */
}

.webkit-scrollbar {
  display: none;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/*ini buat header yah, awalnya di sini*/
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  position: fixed;
  top: 0;   /* PASTIKAN INI ADA agar menempel di paling atas */
  left: 0;  /* PASTIKAN INI ADA agar menempel di paling kiri */
  right: 0; /* Menjamin lebar memenuhi dari ujung ke ujung */
  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); /*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*/

.halaman1 {
    height: 40vh; 
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; 
    background-color: transparent;
    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));
}

.header-title {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;      
    color: #001d51;               
    font-family: 'Alex Brush', cursive;
    text-align: center;
    line-height: 1.4;
    font-size: clamp(2.8rem, 5vw, 2.5rem);
    padding-top: clamp(6rem, 12vw + 1rem, 15rem);
    margin: 0 0 clamp(-2rem, -4vw + 1rem, -4rem) 0; 
}

.header-subtitle {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: transparent;
    color: #555;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important; 
    font-size: clamp(0.98rem, 1.3vw, 1.2rem) !important; /* Ukuran agak gede dikit */
    line-height: 1.5;
    padding: 0 20px;
    margin: 0.8rem auto 1.2rem auto !important; 
    max-width: 850px;
    position: relative;
    z-index: 5;

}

.header-title h1,
.header-title {
    font-weight: 600 !important; 
}


.header-subtitle h2 {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    font-weight: 400 !important; /* Tidak bold */
    margin: 0;
    padding: 0;
}


@media (min-width: 320px) and (max-width: 767px) {
  .header-title {
    padding-top: 0 !important;      
    margin-top: 110px !important;   
    margin-bottom: 0.3rem !important;
    font-size: clamp(2.8rem, 9.5vw, 3.8rem) !important; 
    font-weight: 700 !important; /* Bold di mobile */
    position: relative !important;
    z-index: 5 !important;
  }

  .header-subtitle {
    display: block !important;       
    padding: 0 20px !important;
    margin-top: 0.6rem !important;
    margin-bottom: 1rem !important;   
    font-size: clamp(0.9rem, 3.8vw, 1.05rem) !important;
    font-weight: 400 !important; /* Tidak bold di mobile */
    position: relative !important;
    z-index: 5 !important;
  }
}

/* Jika pakai container events/achievement, hilangkan margin & padding atasnya */
.container, 
.events-page-wrapper, 
.events-main-container,
.halaman2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}



.events-page-wrapper {
  padding-top: clamp(5.625rem, 5.132rem + 1.974vw, 7.5rem);
  padding-bottom: clamp(3rem, 5vw, 6rem);
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  min-height: 80vh;
}

/* Header link highlight saat aktif di halaman events */
.menu-pcdisplay li a.active-nav {
  color: #001d51;
  background-color: #ffffff;
  border-radius: 5px;
  font-weight: 700;
}

/* Styling Banner Utama Halaman Events */
.events-main-banner {
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.events-main-banner .alex {
  font-size: clamp(2.2rem, 1.8rem + 2vw, 3.8rem) !important;
}

/* Container Utama */
.events-main-container {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}

/* Teks Intro Ringkas */
.events-intro-text {
  text-align: center;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem);
  color: #555555;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Layout Grid Kartu Events */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  align-items: stretch;
}

/* Wrapper Link Kartu */
.event-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Desain Kartu Event */
.event-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 29, 81, 0.08);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.event-card-link:hover .event-card {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 29, 81, 0.15);
}

/* Container Gambar / Poster */
.event-img-container {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
  background-color: #f8f9fa;
}

.event-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card-link:hover .event-img-container img {
  transform: scale(1.05);
}

/* Bagian Teks Kartu */
.event-card-body {
  padding: 25px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-title {
  font-size: clamp(1.15rem, 1rem + 0.4vw, 1.35rem);
  font-weight: 700;
  color: #001d51;
  text-align: center;
  margin-bottom: 12px;
}

.event-description {
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Tombol Aksi Kunjungi Website */
.event-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #001d51;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  align-self: center;
  transition: background-color 0.3s ease;
}

.event-card-link:hover .event-action-btn {
  background-color: #0f2f6b;
}


.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 (max-width: 1024px) {
    .dissapear {
        display: none !important;
    }
    .opt {
        display: block;
    }
    .sidebar li a {
        background-color: #fff;
        transition: background-color 0.3s ease;
    }
    .sidebar li a:hover {
        background-color: #ccc;
    }
}

@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .events-main-container {
    width: 92%;
    margin-top: 25px;
  }

  .event-img-container {
    height: 200px;
  }

  .event-card-body {
    padding: 20px 16px;
  }

  .event-title {
    font-size: 1.1rem;
  }

  .event-description {
    font-size: 0.85rem;
  }
}
/* ==========================================
   PERBAIKAN MOBILE (TANPA GARIS SAMPAI BERSIH)
   ========================================== */
@media (max-width: 767px) {

  /* 1. Header Mobile */
  .header {
    display: flex !important;
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 70px !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 15px !important; 
    box-sizing: border-box !important;
    z-index: 99999 !important;
    border: none !important; /* Hapus garis header jika ada */
    box-shadow: none !important;
  }

  /* Hilangkan garis shadow jika header belum di-scroll */
  .header:not(.scrolled) {
    box-shadow: none !important;
  }

  /* 2. Menu PC & Tombol Garis Tiga */
  .menu-pcdisplay {
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
    border: none !important;
  }

  .hide-menu-pcdisplay {
    display: none !important;
  }

  .opt,
  .menu-pcdisplay .opt,
  li.opt {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
    z-index: 100000 !important;
    margin-left: auto !important;
    border: none !important;
  }

  .fa-bars {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    font-size: 1.6rem !important;
    z-index: 100000 !important;
  }

  .header.scrolled .fa-bars {
    color: #001d51 !important;
  }

  /* Penataan Logo & Teks */
  .logoamsawhite, 
  .logoamsablack {
    margin-left: 0 !important;
    width: 40px !important;
  }

  .amsa {
    margin-left: 10px !important;
    margin-right: auto !important; 
    font-size: 1rem !important;
  }

  /* 3. Panel Menu Mobile (BERSIH DARI GARIS / BORDER) */
  .bar-mobile-display {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin-top: 0 !important;
    background-color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    z-index: 99990 !important;
    border: none !important; /* Hapus border panel */
  }

  /* HILANGKAN SEMUA GARIS DI ITEM MENU MOBILE */
  .bar-mobile-display li,
  .bar-mobile-display a,
  .drop-menu-mobile li {
    border: none !important; /* Membuang semua garis sekat */
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  .bar-mobile-display li {
    padding: 12px 20px !important;
  }

  /* 4. Hero Banner & Judul Events */
  .halaman1 {
    display: block !important;
    position: absolute !important; 
    height: 25vh !important;       
    width: 100% !important;
    z-index: 1 !important;
    top: 0 !important;
  }

  .header-title {
    padding-top: 0 !important;      
    margin-top: 90px !important;   
    margin-bottom: 0.3rem !important;
    font-size: clamp(2.3rem, 8vw, 3.2rem) !important; 
    position: relative !important;
    z-index: 5 !important;
  }

  .header-subtitle {
    display: block !important;       
    padding: 0 15px !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1.5rem !important;   
    text-align: center !important;
    position: relative !important;
    z-index: 5 !important;
    font-size: 0.95rem !important;
  }

  /* 5. Card Events Vertikal */
  .events-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .events-main-container {
    width: 92% !important;
    margin-top: 20px !important;
  }

  .event-img-container {
    height: 190px !important;
  }

  .event-card-body {
    padding: 18px 15px !important;
  }

  /* 6. Footer */
  .bottom {
    height: 70px !important;
    gap: 10px !important;
    border: none !important;
  }

  .logoamsawhitebottom,
  .whitebawah {
    height: 2.2rem !important;
  }
}
/* ==========================================
   PERBAIKAN UTAMA TABLET (768px - 1024px) & MOBILE (< 768px)
   ========================================== */

/* 1. KONDISI TABLET & MOBILE (layar 1024px ke bawah) */
@media (max-width: 1024px) {
  
  /* Sembunyikan menu desktop & Tampilkan tombol hamburger */
  .hide-menu-pcdisplay {
    display: none !important;
  }
  
  .opt, 
  li.opt {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
    margin-left: auto !important;
  }

  .fa-bars {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    font-size: 1.6rem !important;
  }

  .header.scrolled .fa-bars {
    color: #001d51 !important;
  }

  /* Penyesuaian Header di Tablet & Mobile */
  .header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
  }

  .logoamsawhite, 
  .logoamsablack {
    margin-left: 0 !important;
    width: 45px !important;
  }

  .amsa {
    margin-left: 10px !important;
    margin-right: auto !important; 
    font-size: 1.1rem !important;
  }

/* Styling Judul Events */
.header-title {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #001d51;               
    font-family: 'Alex Brush', cursive;
    text-align: center;
    font-size: clamp(3.5rem, 6vw, 5rem);
    margin-top: 300px !important; /* DITURUNKAN LAGI (dari 140px ke 170px) */
    position: relative !important;
    z-index: 5 !important;
}

/* Styling Subtitle (TANPA BAYANGAN) */
.header-subtitle {
    display: block !important;       
    padding: 0 10px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 5 !important;
    max-width: 850px;
}

.header-subtitle h2 {
    color: #555 !important;
    text-shadow: none !important; /* BAYANGAN DIHAPUS */
    font-size: clamp(0.95rem, 1.8vw, 1.15rem) !important;
    font-weight: 400 !important;
    line-height: 1;
}

.halaman1 {
    height: 450px !important; /* Tinggikan jadi 450px statis agar muat untuk judul & subtitle */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1 !important;
}

  /* Dropdown / Sidebar Mobile Menu */
  .bar-mobile-display {
    top: 70px !important;
    width: 100% !important;
    margin-top: 0 !important;
  }

  .bar-mobile-display li,
  .bar-mobile-display a,
  .drop-menu-mobile li {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }
}

/* Mengurangi space kosong bawah untuk Tablet & Mobile */
@media (max-width: 1024px) {
  
  /* Kurangi min-height & padding bawah wrapper utama */
  .events-page-wrapper {
    min-height: auto !important; /* Mencegah halaman dipaksa ditarik terlalu panjang */
    padding-bottom: 20px !important; /* Dipangkas agar mepet ke footer */
  }

  .events-main-container {
    width: 90% !important;
    margin-top: 30px !important;
    margin-bottom: 10px !important; /* Jarak bawah container dikurangi */
  }

  /* Penyesuaian margin footer */
  .bottom {
    margin-top: 20px !important; /* Jarak pas antara kartu terendah dengan footer */
  }
}

/* 2. KONDISI KHUSUS MOBILE (< 768px) */
@media (max-width: 767px) {
  .events-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .events-main-container {
    width: 90% !important;
    margin-top: 40px !important; /* Beri jarak dari subtitle */
    position: relative;
    z-index: 10;
}

  .event-img-container {
    height: 190px !important;
  }

  .event-card-body {
    padding: 18px 15px !important;
  }

  .halaman1 {
    height: 25vh !important;
  }

  .header-title {
    margin-top: 90px !important;
    font-size: clamp(2.3rem, 8vw, 3.2rem) !important;
  }

  .bottom {
    height: 70px !important;
    gap: 10px !important;
  }

  .logoamsawhitebottom {
    height: 2.2rem !important;
  }
}
@media (max-width: 767px) {

  .header-title {
    margin-top: 150px !important;
    margin-bottom: 0 !important;
    font-size: 2.5rem !important;
    line-height: 1 !important;
  }

  .header-title h1 {
    margin: 0 !important;
    font-family: 'Alex Brush', cursive !important;
    font-size: 2.5rem !important;
    line-height: 1 !important;
  }

  .header-subtitle {
    margin-top: 0 !important;
    margin-bottom: 2.5rem !important;
        width: 90% !important;

  }

.header-subtitle h2 {
  font-family: 'Montserrat', sans-serif !important;
    font-size: 0.9rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

}
@media (max-width: 767px) {
  .header-title h1 {
    font-size: 3.5rem !important;
  }
}
