/* =====================
   MABBI COLOR PALETTE
   Primary : #1565C0 (biru)
   Accent  : #F57C00 (oranye)
   Dark    : #0D2D6B
   Light   : #E3F0FB
======================== */

/* =====================
   RESET & BASE
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  background: #fff;
}

/* =====================
   NAVBAR
======================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: #fff;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1565C0;
  letter-spacing: 1px;
}

.brand-red {
  color: #1565C0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-links a.active,
.nav-links a:hover {
  color: #1565C0;
}

.btn-search {
  background: #1565C0;
  color: #fff;
  border: none;
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s;
  border-radius: 3px;
}

.btn-search:hover {
  background: #0D47A1;
}

/* =====================
   HERO SECTION
======================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 520px;
  background: url('member-peneliti.jpg') center center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 45, 107, 0.75) 0%,
    rgba(21, 101, 192, 0.55) 60%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 72px;
  color: #fff;
  max-width: 680px;
}

.hero-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #F57C00;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}

.hero-content p {
  font-size: 0.97rem;
  color: #cce0f8;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: #F57C00;
  color: #fff;
  border: none;
  padding: 13px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #E65100;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 11px 26px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: #fff;
  color: #1565C0;
}

/* =====================
   FEATURES SECTION
======================== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 36px 20px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  border-right: 1px solid #e3edf8;
  transition: transform 0.2s;
}

.feature-card:last-child {
  border-right: none;
}

.feature-card i {
  font-size: 2.2rem;
  color: #1565C0;
}

.feature-card.pink {
  background: #FFF3E0;
  color: #555;
}

.feature-card.pink i {
  color: #F57C00;
}

.feature-card.light {
  background: #E3F0FB;
}

.feature-card:hover {
  transform: translateY(-4px);
}

/* =====================
   ABOUT SECTION
======================== */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 72px 72px;
  background: #f5f8fd;
  align-items: center;
}

.about-text h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0D2D6B;
  margin-bottom: 18px;
  line-height: 1.3;
}

.about-text p {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-support {
  color: #0D2D6B !important;
  font-size: 0.95rem !important;
  margin-top: 8px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-card {
  background: #fff;
  border-left: 5px solid #F57C00;
  padding: 28px 32px;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(21,101,192,0.1);
}

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  color: #1565C0;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
}

/* =====================
   AUTHOR SECTION
======================== */
.author-section {
  padding: 64px 72px 80px;
  text-align: center;
  background: #fff;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.line {
  display: inline-block;
  width: 48px;
  height: 2px;
  background: #F57C00;
}

.label-red {
  font-size: 0.78rem;
  font-weight: 700;
  color: #F57C00;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.author-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0D2D6B;
  margin-bottom: 28px;
}

.search-bar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 40px;
}

.btn-search-author {
  background: #1565C0;
  color: #fff;
  border: none;
  padding: 11px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 3px;
  transition: background 0.2s;
}

.btn-search-author:hover {
  background: #0D47A1;
}

/* =====================
   AUTHOR GRID
======================== */
.author-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 24px;
}

.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #E3F0FB;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-socials {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.author-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #1565C0;
  color: #fff;
  border-radius: 3px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
}

.author-socials a:hover {
  background: #F57C00;
}

.author-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0D2D6B;
  margin-top: 4px;
}

.author-card p {
  font-size: 0.82rem;
  color: #777;
}

.badge {
  background: #E3F0FB;
  color: #1565C0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* quote di bawah nama */
.author-quote {
  font-size: 0.78rem;
  color: #888;
  font-style: italic;
  text-align: center;
  line-height: 1.5;
  max-width: 160px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =====================
   FOOTER
======================== */
.footer {
  background: #0D2D6B;
  color: #90b8e8;
  text-align: center;
  padding: 22px;
  font-size: 0.85rem;
}

/* =====================
   MODAL CARI ANGGOTA
======================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 45, 107, 0.5);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 6px;
  padding: 48px 48px 40px;
  width: 100%;
  max-width: 780px;
  position: relative;
  box-shadow: 0 8px 40px rgba(13,45,107,0.2);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #888;
  cursor: pointer;
  font-weight: 700;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #1565C0;
}

.modal-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0D2D6B;
  margin-bottom: 32px;
}

.modal-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.modal-field label {
  display: block;
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 6px;
  font-weight: 500;
}

.select-wrapper {
  position: relative;
  background: #f2f2f2;
  border-radius: 3px;
  padding: 10px 14px 8px;
  cursor: pointer;
}

.select-hint {
  display: block;
  font-size: 0.72rem;
  color: #aaa;
  line-height: 1;
  margin-bottom: 2px;
}

.select-wrapper select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.input-wrapper {
  background: #fff;
  border: 1.5px solid #90b8e8;
  border-radius: 3px;
  padding: 10px 14px;
}

.input-wrapper input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: #333;
  background: transparent;
}

.input-wrapper input::placeholder {
  color: #bbb;
  font-size: 0.85rem;
}

.modal-action {
  display: flex;
  justify-content: center;
}

.modal-search-btn {
  padding: 13px 40px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 3px;
}

/* author card hidden when filtered out */
.author-card.hidden {
  display: none;
}

/* =====================
   RESPONSIVE
======================== */
@media (max-width: 1024px) {
  .author-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 20px;
    gap: 10px;
  }

  .nav-links {
    gap: 16px;
  }

  .hero-content {
    padding: 0 24px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .about-section {
    grid-template-columns: 1fr;
    padding: 48px 20px;
    gap: 32px;
  }

  .author-section {
    padding: 48px 20px 60px;
  }

  .author-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .modal-box {
    padding: 32px 20px 28px;
    margin: 16px;
  }
  .modal-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .author-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 12px;
  }

  .author-avatar {
    width: 110px;
    height: 110px;
  }
}
