/* CSS Variables for Color Palette */
:root {
  --primary: #3a1ed8;
  --secondary: #523dc5;
  --accent: #dbcd7d;
  --light: #f8f9fa;
  --dark: #212529;
  --shadow: rgba(58, 30, 216, 0.15);
}

/* =======================================================
    1. Mengubah Ukuran Logo dan Header
    ======================================================= */
/* Targetkan logo di dalam header */
#header .logo img {
  max-height: 200px !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: rgb(58, 30, 216) !important;
}

/* Ubah warna link saat kursor di atasnya (hover) */
#header .navbar-nav li a:hover,
#header .navbar-nav li a:focus {
  color: #523dc5 !important;
}

/* Mengubah warna tombol navbar toggler */
.navbar-toggler {
  color: rgb(58, 30, 216) !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 */
}

.title a {
  color: rgb(58, 30, 216) !important;
}

.btn-primary {
  background-color: rgb(58, 30, 216) !important;
}

.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;
  }
}

/* ===== FOOTER STYLING ===== */
.footer {
  background: linear-gradient(135deg, var(--neutral-light), #e0e0e0);
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 0 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid #ccc;
}

.footer-col h6 {
  color: var(--primary-dark);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: solid 2px #3a1ed8;
  display: inline-block;
}

.footer-col .sub-editorial p {
  color: var(--neutral-dark);
  margin-bottom: 10px;
  line-height: 1.6;
  border-bottom: solid 2px rgb(58, 30, 216);
  display: inline-block;
}

.footer-col small {
  color: var(--neutral-dark);
  line-height: 1.5;
  display: block;
  margin-bottom: 10px;
}

.footer-license {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.footer-license a {
  transition: transform 0.3s ease;
}

.footer-license a:hover {
  transform: translateY(-3px);
}

.footer-license img {
  height: 45px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 25px 0;
}

.footer-logos a {
  transition: transform 0.3s ease;
}

.footer-logos a:hover {
  transform: translateY(-3px);
}

.footer-logos img {
  height: 35px;
  width: auto;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.copyright {
  margin-top: 20px;
  color: var(--neutral-dark);
  font-size: 0.9rem;
}

.copyright a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
}

.copyright a:hover {
  text-decoration: underline;
}

/* ===== FOOTER CENTERED ===== */
.footer {
  background: linear-gradient(135deg, var(--neutral-light), #e0e0e0);
  text-align: center;
  padding: 40px 0 20px;
}

.footer .container {
  width: 100%;
  /* agak ketengah */
  margin: 0 auto;
  align-items: center;
}

/* Footer content grid */
.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
  text-align: left;
}

/* License & logos */
.footer-license,
.footer-logos {
  justify-content: center;
}



/* Section Container */
.editorial-team {
  max-width: 1100px;
  margin: 0 auto 50px;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px var(--shadow);
}


/* Category Titles */
.category-title {
  color: var(--secondary);
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
}

.category-title i {
  margin-right: 10px;
  color: var(--primary);
}

/* Cards Layout */
.team-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Card Styles */
.card {
  display: flex;
  flex-direction: row;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 5px solid var(--primary);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px var(--shadow);
}

/* Editor-in-Chief Special Styling */
.editor-in-chief {
  border-left: 5px solid var(--accent);
  box-shadow: 0 5px 20px rgba(219, 205, 125, 0.3);
}

.editor-in-chief:hover {
  box-shadow: 0 15px 30px rgba(219, 205, 125, 0.4);
}

/* Profile Image Section */
.card-img-container {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--secondary);
}

.card-img {
  width: 140px;
  height: 140px;
  border-radius: 4px;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.editor-in-chief .card-img {
  border: 4px solid var();
}

/* Card Content */
.card-content {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-name {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.editor-in-chief .card-name {
  color: #b89e2a;
}

.card-title {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.card-department {
  color: var(--dark);
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-email {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.card-email i {
  margin-right: 8px;
  font-size: 0.9rem;
}

/* Social Links */
.card-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 50px;
  border-radius: 4px;
  background: var(--light);
  color: var(--primary);
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .card {
    flex-direction: column;
  }

  .card-img-container {
    flex: 0 0 auto;
    padding: 25px 20px 10px;
  }

  .card-img {
    width: 140px;
    height: 140px;
  }

  .card-content {
    padding: 20px;
    text-align: center;
  }

  .card-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    padding: 20px 10px;
  }

  .editorial-team {
    padding: 20px 15px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .category-title {
    font-size: 1.4rem;
  }

  .card-name {
    font-size: 1.2rem;
  }
}