/* Decorative Backgrounds */
main-header::before {
  content: "";
  position: fixed; /* tetap di layar */
  top: 0;
  left: 0;
  width: 200px;   /* sesuaikan */
  height: 200px;  /* sesuaikan */
  background: url("../img/deco1.png") no-repeat top left;
  background-size: contain;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
  
}

body::after {
  content: "";
  position: fixed; /* tetap di layar */
  bottom: 0;
  right: 0;
  width: 8%;   /* sesuaikan */
  height: 8%;  /* sesuaikan */
  background: url("../img/deco3.png") no-repeat bottom right;
  background-size: contain;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.footer {
  position: relative;
  background: url("../img/deco_footer.png") no-repeat bottom center;
  background-size: cover; /* biar gambar memenuhi lebar */
 /* background-color: #f8f9fa;  warna bg fallback kalau gambar tidak load */
  z-index: 1;
}



.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit; /* ambil background dari parent */
  z-index: -1; /* letakkan di belakang konten footer */
}

.card {
  position: relative; /* wajib supaya z-index aktif */
  z-index: 10;        /* lebih tinggi dari body::after */
}
.container {
  position: relative; /* wajib supaya z-index aktif */
  z-index: 10;        /* lebih tinggi dari body::after */
}

body {
  font-family: NewScience;
  position: relative;
  background: url("../img/background1a.png") ;
  z-index: 1;
}

body.about {
  font-family: NewScience;
  position: relative;
  background: url("../img/background.png") ;
  z-index: 1;
}
/* Khusus halaman events */
body.events {
  font-family: NewScience;
  position: relative;
  background: url("../img/background1.png");
  z-index: 1;
}

/* Tag <b> pakai font Bold */
body.events b {
  font-family: 'NewScienceBold';
}

/* === Topbar === */
.topbar {
  background: #f2f2f2;
}
.logo-sm {
  height: 60px;
  width: auto;
}
.social-sm {
  height: 26px;
  width: auto;
}
.search-icon {
  font-size: 20px;
  text-decoration: none;
  color: #111;
}

/* === Main header area === */

.main-header {
  /*background: #f2f2f2;
  border-bottom: 1px solid #e2e2e2;*/
  background: url("../img/garisgaris.png") no-repeat center center;
  background-size: cover; /* supaya garis2 meluas penuh */
  /* background: #1332a3; */
   background: linear-gradient(
    to right,
    #1332a3 70%,
    #2e86de 85%,
    #1e56d9 100%
  );
  /* border-bottom: 1px solid #e2e2e2; */
  position: relative;
  z-index: 2;
  padding-top: 10px;   /* jarak atas */
  padding-bottom: 10px; /* jarak bawah */
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-brand .logo-lg {
  margin: 20px 20px 20px 0;
  height: 100px;
  border-radius: 10px; 
  width: auto;
}

.header-brand .event-title {
  flex: 1;
}
.header-brand .event-title h2 {
  
  font-weight: bold;
  margin: 0;
  color: #ffffff;
}
.header-brand .event-title p {
  font-size: 1rem;
  margin: 0;
  /*color: #555;*/
  color: #ffffff;
}

/* Navbar */
.navbar {
  padding: 0;
}
.navbar .nav-link {
  color: #ffffff;
  padding: .5rem 1rem;
}
.navbar .nav-link:hover {
  color: #f6ff00;
}

/* Search form in navbar */
.navbar .form-control {
  max-width: 160px;
  font-size: 0.9rem;
}
.navbar .btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
}

/* Timeline 
.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 2px solid #333;
  margin: 40px 0;
  padding-top: 20px;
}
.timeline-item {
  text-align: center;
  position: relative;
  flex: 1;
}
.timeline-item .date {
  color:#ffffff;
  background: #1332a3;
  display: inline-block;
  padding: 10px 15px;
  border-radius: 4px;
  font-weight: bold;
  position: relative;
  top: -35px;
}
.timeline-pin {
  display:inline-block;
  background:#fff;
  border:2px solid #e5e7eb;
  border-radius:.75rem;
  padding:.35rem .8rem;
  min-width:110px;
  box-shadow:0 6px 14px rgba(0,0,0,.06)
}
.timeline-item .date0 {
  color:#ffffff;
  background: #1332a3;
  display: inline-block;
  padding: 10px 15px;
  border-radius: 4px;
  font-weight: bold;
  position: relative;
  top: -35px;
}
.timeline-item .event-card {
  margin-top: 20px;
}
.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -2px;
  right: 0;
  width: 100%;
  border-top: 2px solid transparent;
}
*/
.speaker-card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  z-index: 10;

  /* supaya semua sama tinggi */
  display: flex;
  flex-direction: column;
  align-items: center;   /* biar isi tetap rata tengah horizontal */
  text-align: center;
  height: 100%;
}

.speaker-card .photo {
  /* background: #ffffff;
  border: solid 2px #ddd;*/
  height: 200px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.speaker-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.speaker-card h4 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 0; /* biar tidak ada gap aneh */
}

.speaker-card p {
  font-size: 0.9rem;
  margin: 0;
}


.speaker-card h5,h4{
  font-family: 'NewScienceSemibold';
  
}
.text-justify {
  text-align: justify;
}
/* Sponsor logos */
.sponsor-platinum {
  background: #ffffff;
  box-shadow:0 6px 14px rgba(0,0,0,.06);
  width: 250px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.sponsor-logo {
  background: #ffffff;
  box-shadow:0 6px 14px rgba(0,0,0,.06);
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

/* === ABOUT PAGE STYLES ===
.about {
  padding: 50px 20px;
} */

.about-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  margin-top: 30px;
}

.about-header .logo-box {
  flex: 0 0 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border-radius: 6px;
  text-align: center;
}

.about-header .about-text {
  flex: 1;
}

.about-header h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.about-header p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.video-row {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}

.video-box {
  background: #dedede;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: bold;
  color: #333;
}

/* === EVENT SECTION === */
.event {
  padding: 50px 20px;
  /* border-top: 2px solid #eee; */
}

.event h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.event .container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.event-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-item {
  display: flex;
  align-items: center;
  background: #ffd9a9;
  padding: 15px;
  border-radius: 8px;
  gap: 15px;
}

.event-item-annualmeeting {
  display: flex;
  align-items: center;
  background: #dedede;
  padding: 15px;
  border-radius: 8px;
  gap: 15px;
}

.event-item .icon {
  background: #fff;
  border: 2px solid #000000;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  text-align: center;
}

.event-item-annualmeeting .icon-register {
  background: #fff;
  border: 2px  solid #999;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  text-align: center;
}

.event-item .event-text h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.event-item .event-text p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  color: #444;
}

.event-side {
  flex: 0 0 250px;
  text-align: center;
}

.event-side h3 {
  margin-bottom: 20px;
}

.event-side .btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 25px;
  margin-bottom: 15px;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

.event-side .btn.learn {
  background: #d1c4f7;
}

.event-side .btn.register {
  background: #c5c6ff;
}

/* === BKK PII SECTION === */
.bkkpii {
  padding: 50px 20px;
  /* border-top: 2px solid #eee; */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bkkpii .bkk-text {
  flex: 1;
}

.bkkpii h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.bkkpii p {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.bkkpii .logo-box {
  flex: 0 0 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: left;
  font-weight: bold;
  border-radius: 6px;
  text-align: center;
}

/* === EVENTS PAGE STYLES === 
.events {
  /* background: #fafafa; 
  background: #fafafa;
}*/

.events h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 40px;
}

.event-block {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.event-block h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #222;
}

.event-block h5 {
  font-size: 1.1rem;
  margin: 15px 0 10px;
  font-weight: bold;
  color: #333;
}

.event-block h6 {
  font-size: 1rem;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #444;
}

.event-block p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
  color: #444;
}

.doc-links {
  margin: 15px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.doc-links a {
  background: #f0f4ff;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: #2b4cc9;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background 0.2s ease;
}

.doc-links a:hover {
  background: #dce6ff;
}

.event-block ul {
  padding-left: 18px;
  margin: 0;
  font-family: NewScience;
  color: #444;
}

.event-block ul li {
  margin-bottom: 6px;
}

.event-block ul li a {
  color: #0066cc;
  text-decoration: none;
}

.event-block ul li a:hover {
  text-decoration: underline;
}

.event-cover img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
}

.event-content {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.event-media {
  flex: 1;
}

.event-slideshow {
  flex: 1;
  min-width: 280px;
}

.slideshow-img {
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
}

.doc-links {
  margin: 15px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.doc-links a {
  background: #f0f4ff;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: #2b4cc9;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background 0.2s ease;
}

.doc-links a:hover {
  background: #dce6ff;
}

/* Terapkan untuk semua judul artikel */
h1, h2, h3 {
  font-family: 'ArgentumSans';
}

/*=== FONTS ===*/
@font-face {
  font-family: 'ArgentumSans';
  src: url('../fonts/ArgentumSans-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}
/* New Science Regular */
@font-face {
  font-family: 'NewScience';
  src: url('../fonts/fonnts.com-New_Science_Regular.otf') format('opentype');
  font-weight: 600; /* Semibold biasanya di 600 */
  font-style: normal;
}

/* New Science Semibold */
@font-face {
  font-family: 'NewScienceSemibold';
  src: url('../fonts/fonnts.com-New_Science_SemiBold.otf') format('opentype');
  font-weight: 500; /* Semibold biasanya di 600 */
  font-style: normal;
}

@font-face {
  font-family: 'NewScienceBold';
  src: url('../fonts/fonnts.com-New_Science_Bold.otf') format('opentype');
  font-weight: normal; /* bisa juga bold */
  font-style: normal;
}

/* === Responsive tweaks === */
@media (max-width: 991.98px) {
  .main-header .d-flex {
    flex-direction: row;
    align-items: flex-start;
  }

  .header-brand {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .header-brand .logo-lg {
    height: 80px;
    margin-bottom: 8px;
  }

  .header-brand .event-title h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  .header-brand .event-title p {
    font-size: 0.85rem;
  }

  .navbar {
    flex: 1;
    justify-content: flex-end !important;
    margin-top: 0;
  }
  .navbar-collapse {
    justify-content: flex-end;
    text-align: right;
  }
  .navbar .form-control {
    max-width: 120px;
  }
}

@media (max-width: 767.98px) {
  .event-block {
    padding: 20px;
  }
  .doc-links {
    flex-direction: column;
    gap: 10px;
  }
  .slideshow-img {
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  .header-brand {
    align-items: center;
    text-align: center;
  }
  .header-brand .event-title h1 {
    font-size: 1.2rem;
  }
  .header-brand .event-title p {
    font-size: 0.8rem;
  }

  .navbar-collapse {
    justify-content: center;
    text-align: center;
  }
  .navbar .form-control {
    max-width: 100%;
  }
}

.event-media ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  padding-left: 20px;
}
.event-media ul li {
  margin: 0;
}

/* --- RESPONSIVE HEADER FIX --- */

/* Default desktop: tetap pakai bootstrap */
@media (max-width: 991px) {
  /* Topbar search & burger jadi satu baris */
  .topbar .col-auto.text-end {
    display: none; /* hide default search */
  }

  .mobile-search-burger {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
  }

  .mobile-search-burger form {
    flex-grow: 1;
    display: flex;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    max-width: 100%;
  }

  .mobile-search-burger input {
    border: none;
    padding: 6px 10px;
    outline: none;
    flex: 1;
    width: 100%;
  }

  .mobile-search-burger button[type="submit"] {
    background: #007bff;
    border: none;
    color: #fff;
    padding: 6px 12px;
  }

  /* Navbar overlay mode */
  .navbar-collapse.collapse {
    display: none !important;
  }
  .navbar-collapse.show {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5px;              /* dari 60px jadi 20px */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;               /* sebelumnya 100%, ganti auto */
    background: #1332a3;
    z-index: 9999;
    overflow-y: auto;
  }
.navbar-collapse.show ul.navbar-nav {
    margin-top: 5px;  /* jarak dari atas */
    width: 100%;
}
.navbar-collapse.show .nav-link {
    font-size: 20px;
    margin: 10px 0;
    width: 100%;
    height: 100%;
}
.navbar-collapse.show .navbar-nav .nav-item {
    margin: 0;                  /* hilangkan margin */
}
/* Efek stripped: selang-seling warna background 
.navbar-collapse.show .navbar-nav .nav-item:nth-child(odd) .nav-link {
    background-color: #7d7c7c;  
}

.navbar-collapse.show .navbar-nav .nav-item:nth-child(even) .nav-link {
    background-color: #ffffff;  
}*/

/* Efek hover */
.navbar-collapse.show .navbar-nav .nav-link:hover {
   /* background: linear-gradient(90deg, #007bff, #00c6ff); */
    background: linear-gradient(135deg, #1332a3, #1e56d9);
    color: #fff !important;
}

}
.agenda-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.agenda-container {
  display: flex;
  gap: 40px;
  /* border: 1px solid #ddd; */
  border-radius: 8px;
  padding: 20px;
  background: rgba(255,255,255,0.5); /* efek transparan hanya di container */
}


/* Kolom kiri - vertikal middle */
.agenda-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* center vertical */
}

/* Kolom kanan */
.agenda-display {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Foto besar */
#main-photo {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

#main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;;
}

/* Overlay judul + deskripsi - kiri atas */
#main-photo .overlay-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: left;         /* teks rata kiri */
  color: #fff;
  padding: 15px;            /* jarak teks dari kiri & atas */
  background: rgba(0,0,0,0.5);  /* semi transparan, bisa disesuaikan */
  border-radius: 8px;
  box-sizing: border-box;   /* agar padding tidak melebihi area */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* teks di atas */
}

#main-photo .overlay-info h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

#main-photo .overlay-info p {
  margin: 0;
  font-size: 14px;
}

/* Caption di bawah */
#main-photo .caption {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  width: 100%;
  padding: 10px;
  font-size: 18px;
}

/* Thumbnail */
.thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.thumbnails img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s, border 0.2s;
}

.thumbnails img:hover {
  transform: scale(1.05);
  border: 2px solid #007bff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #main-photo .caption {
    display: none; /* sembunyikan caption di mobile */
  }

  .agenda-container {
    flex-direction: column; /* stack kolom di mobile */
  }

  .agenda-info {
    justify-content: flex-start; /* vertikal top di mobile */
    margin-bottom: 5px;
  }
}

.modal-backdrop.show {
  opacity: 0.8; /* atur transparansi backdrop */
  background-color: #000; /* warna hitam */
  z-index: 1; /* pastikan di belakang modal */
}




/*Banner CSS*/
.banner{
  /* background-image: url(../img/background/1a.jpg);*/
   background: linear-gradient(
    to right,
    #1332a3 70%,
    #2e86de 85%,
    #1e56d9 100%
  ); 

  
  background-repeat: no-repeat;
  background-size:cover;
  background-position: 0% 10%;
}

.inner-banner{ padding-top: 0px;}


.countdown-inner span{
  color: #E91E63A1;
}

.banner-image{
  background-image: url(../img/background/1a.jpg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center ;
}

.banner-button .btn2:hover{
  background-color: #ff5e00;
  color:#fff;
  border-color: #e91e63;
  transition:all 0.5s ease-in-out;
}

.wave{
  left: 0;
  line-height: 0;
  bottom: -1px;
}

.wave .elementor-shape-fill{
  width: 100%;
  height: 100%;
  background: url("../img/background.png") ;
  fill: #f4f4f4;
  transform-origin: center;
  transform: rotateY(0deg);
}


.wave svg{
  width: calc(100% + 1.3px);
  left: 50%;
  transform: translateX(-50%);
} 

.timeline-line {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #fdcc0d;
  z-index: 1;
}
.timeline-item {
  position: relative;
  width: 180px;
  margin-bottom: 40px;
}
.timeline-dot {
  width: 20px;
  height: 20px;
  background: #0d6efd;
  border-radius: 50%;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.timeline-item .card {
  margin-top: 40px;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .d-flex.flex-wrap.justify-content-between {
    flex-direction: column;
    align-items: center;
  }
  .timeline-line {
    top: auto;
    left: 50%;
    width: 2px;
    height: 100%;
  }
  .timeline-dot {
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
  }
  .timeline-item {
    width: 100%;
    margin-left: 0;
    margin-bottom: 60px;
  }
  .timeline-item .card {
    margin-top: 20px;
  }
}
/*  Slideshow CSS 
  #mainImage {
      max-width: 70%;
      height: auto;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    .thumb {
      width: 100px;
      height: auto;
      cursor: pointer;
      border: 2px solid transparent;
      border-radius: 6px;
      transition: 0.3s;
    }
    .thumb:hover { border: 2px solid #007bff; transform: scale(1.05); }
    .thumb.active { border: 2px solid #007bff; }*/

.loader {
  border: 2px solid #f3f3f3; /* Light grey */
  border-top: 2px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-right: 6px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}