/* =================================== */
/* 1. GAYA GLOBAL & DASAR      */
/* =================================== */
body {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background-color: #121212;
  color: #f1f1f1;
  text-align: center;
  margin: 0;
  padding: 0;
}

main {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

header {
  padding: 20px;
  background-color: #1e1e1e;
  box-shadow: 0px 4px 10px rgba(255, 165, 0, 0.2);
  margin: 30px 0;
}

#community-name {
  font-size: 36px;
  font-weight: 700;
  color: #f39c12;
  margin-bottom: 10px;
}

h2 {
  text-align: center;
  color: #f39c12;
}

p,
ul {
  font-size: 18px;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 15px 25px;
  background: #f39c12;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  transition: background 0.3s;
}

.btn:hover {
  background: #d48806;
}

.footer {
  background-color: #1a1a1a;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  border-top: 1px solid #f39c1280;
  color: #888;
}

/* =================================== */
/* 2. HALAMAN UTAMA & KOMUNITAS    */
/* =================================== */

/* Search Box */
#search {
  padding: 12px;
  width: 80%;
  max-width: 400px;
  margin-top: 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}

/* Community List (Horizontal Scroll) */
.community-container-wrapper {
  overflow-x: auto; /* Scroll ke kanan jika konten lebih panjang */
  white-space: nowrap;
  padding: 20px;
}

.community-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.community {
  background: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0px 4px 10px rgba(255, 165, 0, 0.2);
  width: 300px;
  flex: 0 0 auto; /* Supaya tetap dalam satu baris saat scrolling */
}

.community:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 20px rgba(255, 165, 0, 0.3);
}

.community-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}


/* =================================== */
/* 3. HALAMAN DETAIL           */
/* =================================== */

.community-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background: #1e1e1e;
  border-radius: 15px;
  box-shadow: 0px 4px 15px rgba(255, 165, 0, 0.2);
  text-align: center;
}

.detail-logo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 20px auto;
  box-shadow: 0px 4px 15px rgba(255, 165, 0, 0.3);
}

/* Deskripsi Komunitas */
#community-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #ddd;
  max-width: 700px;
  margin: 0 auto 20px;
  text-align: justify;
  text-justify: inter-word;
  padding: 0 20px;
}

/* Tombol Link Komunitas */
#community-link {
  font-size: 20px;
  font-weight: 500;
  padding: 14px 28px;
  background: #f39c12;
  color: white;
  border-radius: 8px;
  display: inline-block;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0px 4px 10px rgba(255, 165, 0, 0.3);
}

#community-link:hover {
  background: #d48806;
  transform: scale(1.05);
}

/* Kontainer Info Tambahan (Deskripsi, Visi Misi, dll) */
.description,
.vision-mission,
.benefits {
  text-align: justify;
  padding: 20px;
  background: #222;
  border-radius: 10px;
  margin: 20px 0;
}

/* Visi & Misi Section */
.vision-mission {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.vm-box {
  flex: 1;
  background: #333;
  padding: 15px;
  border-radius: 10px;
}

/* Owner/Founder Section */
.owner-section {
  margin-top: 40px;
  padding: 20px;
  background: #222;
  border-radius: 10px;
  text-align: center;
}

.owner-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #f39c12;
}

.owner-container {
  display: flex;
  justify-content: center; /* Diubah ke center untuk fleksibilitas */
  align-items: flex-start; /* Agar align dari atas */
  gap: 40px;
  flex-wrap: wrap; /* Agar bisa wrap di mobile */
  max-width: 700px;
  margin: 0 auto;
}

.owner {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 45%; /* Sedikit lebih kecil agar ada ruang */
  min-width: 250px; /* Lebar minimum */
  box-shadow: 0px 4px 10px rgba(255, 165, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.owner:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 20px rgba(255, 165, 0, 0.3);
}

.owner-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
  border: 3px solid #f39c12;
}

.owner-name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #fff;
}

.owner-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
  color: #bbb;
}


/* =================================== */
/* 4. HALAMAN EDUKASI          */
/* =================================== */
.edu-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.edu-card {
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.2);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
}

.edu-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.edu-card h3 {
  font-size: 20px;
  color: #f39c12;
  margin-bottom: 10px;
}

.edu-card p {
  font-size: 15px;
  color: #ccc;
  margin-bottom: 15px;
}

/* Styling List pada Edukasi */
.edu-content ul {
  background: #1a1a1a;
  border-left: 4px solid #f39c12;
  border-radius: 8px;
  padding: 20px 25px;
  margin: 20px 0;
  list-style-type: none;
}

.edu-content ul li {
  font-size: 16px;
  color: #ddd;
  margin-bottom: 12px;
  text-align: justify;
  text-justify: inter-word;
  position: relative;
  padding-left: 28px;
}

.edu-content ul li::before {
  content: "🔸";
  position: absolute;
  left: 0;
  color: #f39c12;
}

/* Tombol Khusus Whitepaper */
.btn-whitepaper {
  display: inline-block;
  background: linear-gradient(135deg, #000000, #f39c12);
  color: #000000;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #f8f7f4;
  border-radius: 8px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 12px rgb(255, 166, 0);
  transition: all 0.3s ease;
}

.btn-whitepaper:hover {
  background: #35ff02;
  color: #000000;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}


/* =================================== */
/* 5. HALAMAN BERITA          */
/* =================================== */
.news-header {
  background: #1e1e1e;
  text-align: center;
  padding: 50px 20px 30px;
  border-bottom: 2px solid #f39c12;
}

.news-header h1 {
  font-size: 40px;
  color: #f39c12;
  margin-bottom: 10px;
}

.news-header p {
  font-size: 18px;
  color: #ccc;
}

.hero-banner {
  background: url('img/crypto-banner.jpg') center/cover no-repeat;
  height: 250px;
  position: relative;
  margin-bottom: 30px;
}

.hero-banner .overlay {
  background: rgba(0, 0, 0, 0.6);
  height: 100%;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-banner h2 {
  font-size: 28px;
  margin: 0;
}

.news-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  padding: 0 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card {
  background: #1c1c1c;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card h3 {
  font-size: 18px;
  color: #f39c12;
  margin: 16px;
}

.news-card p {
  font-size: 14px;
  color: #ccc;
  margin: 0 16px 16px;
  text-align: justify;
}

.news-card a {
  background-color: #f39c12;
  color: #121212;
  margin: 0 16px 20px;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
  transition: background-color 0.3s, color 0.3s;
}

.news-card a:hover {
  background-color: #d48806;
  color: #fff;
}


/* =================================== */
/* 6. BAGIAN SOSIAL MEDIA       */
/* =================================== */
.social-section {
  text-align: center;
  margin: 60px 0 40px;
}

.social-section h2, .social-section h3 {
  font-size: 1.6rem;
  color: #ffcc00;
  margin-bottom: 10px;
}

.social-section p {
  color: #ccc;
  font-size: 14px;
}

.social-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.social-icons a img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
  filter: grayscale(0%) drop-shadow(0 0 10px #ffcc00);
}


/* =================================== */
/* 7. RESPONSIVE (MOBILE)        */
/* =================================== */
/* ================================================= */
/* 7. RESPONSIVE (MOBILE) - VERSI PERBAIKAN        */
/* ================================================= */
@media (max-width: 768px) {
  
  /* Mencegah scroll horizontal yang tidak diinginkan */
  body, html {
    overflow-x: hidden;
  }

  /* --- Penyesuaian Spasi & Padding Global --- */
  main,
  .news-header,
  .community-detail,
  .owner-section,
  .edu-container,
  .news-grid {
    padding-left: 15px;
    padding-right: 15px;
  }

  header {
    margin: 20px 0; /* Kurangi margin vertikal */
  }

  /* --- Perbaikan Ukuran Font & Hirarki --- */
  #community-name {
    font-size: 26px; /* Lebih proporsional */
  }
  
  .news-header h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  p, li, .detail-info {
    font-size: 16px; /* Sedikit lebih kecil agar tidak padat */
  }

  #community-desc {
    font-size: 16px;
  }

  #community-link {
    font-size: 16px;
    padding: 12px 20px;
  }


  /* --- Perbaikan Perataan Teks (SANGAT PENTING) --- */
  /* Ubah semua teks justify menjadi rata kiri agar mudah dibaca di mobile */
  #community-desc,
  .owner-desc,
  .news-card p,
  .edu-content ul li {
    text-align: left; 
  }

  /* --- Perbaikan Layout & Susunan Elemen --- */
  
  /* Visi & Misi dibuat menumpuk ke bawah */
  .vision-mission {
    flex-direction: column;
    gap: 15px;
  }

  /* Kartu Owner dibuat menumpuk dan memenuhi layar */
  .owner-container {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .owner {
    width: 100%; /* Memenuhi lebar kontainer induk */
    max-width: 380px;
  }

  /* Paksa grid berita menjadi 1 kolom penuh */
  .news-grid {
    grid-template-columns: 1fr;
  }

  .community-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .detail-logo {
    width: 140px;
    height: 140px;
  }

  .social-icons a img {
    width: 45px;
    height: 45px;
  }
}

.community-info {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.detail-logo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0 auto 20px;
}

.owner-section {
  margin: 30px 0;
}

.owner-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.owner {
  text-align: center;
  max-width: 300px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #f9f9f9;
}

.owner-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px;
}

.social-icons {
  text-align: center;
  margin: 20px 0;
}

.social-icons a {
  margin: 0 10px;
  display: inline-block;
}

.btn {
  display: block;
  width: 200px;
  margin: 30px auto;
  padding: 15px 20px;
  background: #007bff;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}