/* =======================================================
    1. Mengubah Ukuran Logo dan Header
    ======================================================= */
/* Targetkan logo di dalam header */
#header .logo img {
  max-height: 160px !important;
  /* Mengubah tinggi logo menjadi lebih kecil */
  width: auto !important;
  object-fit: contain !important;
}

/* Targetkan area header untuk memperkecil ruangnya */
#header {
  min-height: 80px !important;
  /* Mengubah tinggi header menjadi lebih kecil */
  padding: 10px !important;
  /* Mengurangi padding agar lebih ringkas */
}

/* =======================================================
      2. Menghilangkan Animasi dan Efek Scroll
      ======================================================= */
/* Targetkan header saat kelas .fixed aktif untuk menghilangkan efek pengecilan */
#header.fixed {
  min-height: 80px !important;
  padding: 10px !important;
}

/* Hilangkan efek pengecilan pada logo saat di-scroll */
#header.fixed .logo img {
  max-height: 60px !important;
}

/* =======================================================
      3. Membuat Background Header dan Navigasi Menjadi Solid
      ======================================================= */
/* Jadikan header solid sejak awal */
#header {
  background-color: white !important;
  /* Ganti dengan warna yang kamu inginkan */
}

/* Pastikan header tetap solid saat di-scroll */
#header.fixed {
  background-color: white !important;
}

/* Ubah warna teks link di navigasi agar terbaca jelas */
#header .navbar-nav li a {
  color: #1e5391 !important;
}

/* Ubah warna link saat kursor di atasnya (hover) */
#header .navbar-nav li a:hover,
#header .navbar-nav li a:focus {
  color: #1e5391 !important;
}

.text-danger {
  color: #1e5391 !important;
}

.btn-danger {
  background-color: #1e5391 !important;
}

/* Mengubah warna tombol navbar toggler */
.navbar-toggler {
  color: #1e5391 !important;
  /* Ganti dengan warna yang lebih gelap, misalnya abu-abu tua */
}

/* Mengubah warna ikon garis di dalam tombol toggler */
.navbar-toggler-icon {
  filter: invert(0.5) !important;
  /* Invert warna ikon menjadi gelap */
}

/* Mengubah warna tombol toggler saat dalam keadaan "active" atau "focus" */
.navbar-toggler:active,
.navbar-toggler:focus {
  color: #000000 !important;
  /* Warna hitam saat aktif */
}

#template {
  background-color: white;
  color: #0062bc;
}

#template:hover {
  background-color: white;
}

.hero-section .iphone-wrap {
  display: flex !important;
  justify-content: center !important;
  /* center horizontal */
  align-items: center !important;
  /* center vertical */
  min-height: 15rem !important;
  /* tinggi area cover */
  padding-top: 4rem !important;
  /* jarak dari header */
}

.hero-section .phone-2 {
  display: block !important;
  margin: 15rem auto 2rem auto !important;
  /* atas 15rem, kanan auto, bawah 2rem, kiri auto */
  max-width: 25rem !important;
  /* sekitar 400px */
  height: auto !important;
}

body {
  padding-top: 5rem !important;
  /* kasih jarak global dari header */
}

/* Responsif di tablet (<= 768px) */
@media (max-width: 768px) {
  .hero-section .phone-2 {
    margin: 8rem auto 2rem auto !important;
    /* jarak atas lebih kecil */
    max-width: 18rem !important;
    /* perkecil ukuran cover */
  }
}

/* Responsif di HP kecil (<= 480px) */
@media (max-width: 480px) {
  .hero-section .phone-2 {
    margin: 5rem auto 1.5rem auto !important;
    max-width: 14rem !important;
    /* cover lebih kecil biar muat */
  }
}

/* Biar teks footer rata kiri */

/* Logo asosiasi lebih kecil di desktop */
.footer .img-thumbnail {
  max-width: 140px;
  height: auto;
}

/* Logo sedikit lebih besar di HP */
@media (max-width: 768px) {
  .footer .img-thumbnail {
    max-width: 180px;
  }
}

.editorial-section {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  color: white;
  margin-bottom: 50px;
  font-size: 2.8rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.category-title {
  margin: 50px 0 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.3);
  font-size: 2rem;
  font-weight: 600;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: row;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.editor-in-chief {
  border-left: 8px solid #0062bc;
  background: linear-gradient(to right, white, #f0f7ff);
}

.editor,
.support-staff,
.reviewer {
  border-left: 8px solid #1e5391;
}

.profile-img-container {
  width: 180px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(to bottom, #f8faff, #e6f0ff);
}

.profile-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #0062bc;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.editor-in-chief .profile-img {
  border: 4px solid #0062bc;
  box-shadow: 0 5px 20px rgba(0, 98, 188, 0.3);
}

.card-content {
  padding: 20px 20px 20px 0;
  flex-grow: 1;
}

.name {
  font-size: 1.3rem;
  font-weight: 500;
  color: #1e5391;
  margin-bottom: 10px;
  line-height: 1.3;
}

.editor-in-chief .name {
  color: #0062bc;
  font-size: 1.5rem;
}

.affiliation {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.4;
}

.email {
  font-size: 0.9rem;
  color: #0062bc;
  margin-bottom: 18px;
  word-break: break-word;
  font-weight: 500;
}

.index-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.index-link {
  display: inline-flex;
  align-items: center;
  background-color: #e6f0ff;
  color: #1e5391;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.3s;
  font-weight: 500;
}

.index-link:hover {
  background-color: #0062bc;
  color: white;
  transform: translateY(-2px);
}

.index-link i {
  margin-right: 5px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .cards-container {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: 1fr;
  }

  .card {
    flex-direction: column;
    height: auto;
    text-align: center;
  }

  .profile-img-container {
    width: 100%;
    height: 180px;
    padding: 20px;
  }

  .profile-img {
    width: 120px;
    height: 120px;
  }

  .card-content {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 20px 10px;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  .category-title {
    font-size: 1.6rem;
    margin: 30px 0 20px;
  }

  .profile-img {
    width: 100px;
    height: 100px;
  }

  .name {
    font-size: 1.2rem;
  }

  .editor-in-chief .name {
    font-size: 1.3rem;
  }
}

/* Archives: satu issue per baris, cover di kiri, judul di kanan */
.page_issue_archive .issues_archive > li {
  flex: 1 1 100%;
}

.page_issue_archive .obj_issue_summary::after {
  content: "";
  display: table;
  clear: both;
}

.obj_issue_summary .cover {
  float: left;
  width: 160px;
}

.obj_issue_summary .cover img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
}

/* Badge ISSN mengikuti bidang putih logo indexing lain (266x97, kartu di dalamnya) */
a.issn-index-badge {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 266 / 97;
  line-height: 0;
  background: transparent;
}

a.issn-index-badge::before {
  content: "";
  position: absolute;
  left: 2%;
  top: 12%;
  width: 95%;
  height: 68%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #dfe0e3;
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
}

a.issn-index-badge img {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 40%;
  height: auto;
  transform: translate(-50%, -50%);
  display: block;
}
