/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  /* Menyembunyikan scroll horizontal */
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f5f5;
  color: #1c1d1f;
  line-height: 1.5;
}


/* ===================================
   CONTAINER & LAYOUT
   =================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}







.banner {
  position: relative;
  width: 100%;
  /* Tinggi dinamis: 50% dari tinggi layar, tapi minimal 350px */
  height: 50vh;
  min-height: 350px;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* PENTING: Menghilangkan margin agar nempel header */
  margin-top: 0;
}

/* Gambar Latar Belakang */
.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Overlay Hitam (Agar teks terbaca & terlihat elegan) */
.banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
  z-index: 2;
}

/* Konten Teks di Dalam Banner */
.banner-content {
  position: relative;
  z-index: 3;
  /* Di atas overlay */
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.banner-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
  color: white;
}

.banner-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: #f0f0f0;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Course Title & Subtitle */
h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #1c1d1f;
  max-width: 900px;
}

.subtitle {
  font-size: 18px;
  color: #1c1d1f;
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 900px;
}

/* Instructor Section */
.instructors {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.instructor-avatars {
  display: flex;
  margin-right: 12px;
}

.instructor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -12px;
  background: #5624d0;
}

.instructor-avatar:first-child {
  margin-left: 0;
}

.instructor-text {
  font-size: 14px;
  color: #1c1d1f;
}

.instructor-text strong {
  font-weight: 600;
}

.instructor-text a {
  color: #0056d2;
  text-decoration: underline;
}

/* Call to Action Section */
.cta-section {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

.enroll-btn {
  background: #0056d2;
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.enroll-btn:hover {
  background: #004bb5;
}

.trial-text {
  font-size: 14px;
  color: #6a6f73;
}

/* Platform Badge */
.coursera-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6a6f73;
}

.coursera-plus {
  color: #0056d2;
  font-weight: 600;
}

.coursera-badge a {
  color: #0056d2;
  text-decoration: underline;
}


/* ===================================
   INFO CARDS SECTION
   =================================== */

.info-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1c1d1f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stars {
  color: #b4690e;
  font-size: 18px;
}

.rating-number {
  font-size: 18px;
  font-weight: 600;
  color: #1c1d1f;
}

.reviews-count {
  font-size: 14px;
  color: #6a6f73;
}

.info-card-desc {
  font-size: 14px;
  color: #6a6f73;
  line-height: 1.5;
}

.info-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
  border-radius: 50%;
  font-size: 10px;
  cursor: help;
}


/* ===================================
   CONTENT SECTIONS
   =================================== */

.content-section {
  background: #fff;
  padding: 64px 0;
}

.content-section h2 {
  font-size: 32px;
  font-weight: 400;
  color: #1c1d1f;
  margin-bottom: 32px;
}

/* What You'll Learn Grid */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.learn-item {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #1c1d1f;
}

.learn-item::before {
  content: '✓';
  flex-shrink: 0;
  color: #1e8e3e;
  font-weight: 700;
  font-size: 18px;
}

/* Course Includes Grid */
.includes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.include-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
}

.include-icon {
  flex-shrink: 0;
  font-size: 20px;
}


/* ===================================
   CODING EXERCISES SECTION
   =================================== */



.coding-section {
  margin: 36px 0;
  /* rapat antar section */
  position: relative;
}

.coding-box {
  position: relative;
  background: #f8f9fa;
  border-radius: 14px;
  padding: 20px 32px;
  /* jauh lebih kecil dari sebelumnya */
  overflow: visible;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.coding-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  /* kolom gambar lebih kecil */
  align-items: center;
  gap: 24px;
  /* jarak antar kolom lebih rapat */
  position: relative;
}

.coding-content h3 {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  /* lebih ringkas */
  letter-spacing: -0.3px;
}

.coding-content p {
  font-size: 15px;
  color: #5a5a5a;
  line-height: 1.5;
  margin-bottom: 10px;
}

.coding-content p strong {
  color: #1a1a1a;
  font-weight: 600;
}

.coding-content a {
  color: #0066cc;
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.coding-content a:hover {
  color: #004b99;
}

/* Wrapper gambar */
.coding-image-wrapper {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  height: 100%;
}

/* Gambar keluar sedikit */
.coding-image {
  width: 240px;
  /* lebih kecil */
  height: auto;
  position: relative;
  right: 5px;
  top: 0;
  /* tidak terlalu tinggi */
  object-fit: cover;
  transition: transform 0.3s ease;
  z-index: 10;
}

.coding-image:hover {
  transform: scale(1.02);
}

/* Responsif */
@media (max-width: 992px) {
  .coding-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .coding-box {
    padding: 28px 24px;
  }

  .coding-image {
    position: static;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }

  .coding-image-wrapper {
    justify-content: center;
  }
}





/* ===================================
   COURSE CONTENT / ACCORDION
   =================================== */

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.content-meta {
  font-size: 14px;
  color: #6a6f73;
}

.expand-btn {
  color: #0056d2;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

.expand-btn:hover {
  text-decoration: underline;
}

/* Accordion Styles */
.accordion {
  border: 1px solid #d1d7dc;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid #d1d7dc;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-head {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.accordion-head:hover {
  background: #f7f9fa;
}

.accordion-title {
  font-weight: 600;
  font-size: 16px;
  color: #1c1d1f;
  display: flex;
  align-items: center;
  gap: 12px;
}

.accordion-info {
  font-size: 14px;
  color: #6a6f73;
}

.toggle-icon {
  font-size: 14px;
  transition: transform 0.2s ease;
}

/* Accordion Body */
.accordion-body {
  display: none;
  padding: 0 24px 20px 56px;
  color: #333;
  line-height: 1.6;
}

.accordion-body.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.accordion-body li {
  list-style-type: disc;
  margin-bottom: 6px;
  margin-left: 16px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================= */
/* Bingkai mirip DigiCode Card */
/* ============================= */
.info-box {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 40px 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Headings */
.info-box h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.info-box h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 30px;
  margin-bottom: 10px;
}

/* Requirements List */
.requirements-list {
  margin-left: 20px;
  margin-bottom: 30px;
}

.requirements-list li {
  font-size: 16px;
  color: #5a5a5a;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Paragraphs */
.description-section p {
  font-size: 16px;
  color: #5a5a5a;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Show more link */
.show-more {
  color: #0056d2;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  margin-top: 10px;
}

/* Responsif */



/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 992px) {
  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .coding-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 768px) {

  /* --- CONTAINER & LAYOUT --- */
  .banner {
    height: 300px;
    /* Tinggi fix di HP */
  }

  .banner-title {
    font-size: 28px;
  }

  .banner-subtitle {
    font-size: 14px;
  }

  .container {
    padding: 0 16px;
    /* Padding kiri-kanan lebih tipis di HP */
  }

  /* --- HERO SECTION --- */
  .hero-wrapper {
    padding: 24px 0 32px;
  }

  .info-box,
  .learn-section-box {
    padding: 24px 16px !important;
    /* Padding kanan-kiri dikecilkan */
    width: 100%;
    box-sizing: border-box;
    /* Pastikan padding dihitung dalam width */
    overflow: hidden;
    /* Potong apa pun yang maksa keluar */
  }

  h1 {
    font-size: 28px;
    /* Perkecil judul */
    margin-bottom: 16px;
  }

  .subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* Tombol Daftar jadi lebar penuh (Full Width) agar mudah ditekan */
  .cta-section {
    flex-direction: column;
    align-items: stretch;
    /* Tombol melebar */
    gap: 12px;
  }

  .enroll-btn {
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 18px;
    /* Font tombol lebih besar */
  }

  .trial-text {
    text-align: center;
    font-size: 13px;
  }

  /* --- INFO CARDS (Kotak-kotak kecil) --- */
  /* Ubah dari 4 kolom menjadi 2 kolom, lalu 1 kolom di layar sangat kecil */
  .info-cards {
    grid-template-columns: 1fr 1fr;
    /* 2 Kolom di Tablet/HP Besar */
    gap: 12px;
    padding: 20px;
    margin-top: 0;
    /* Hilangkan efek tumpuk negatif biar rapi */
  }

  /* --- CONTENT SECTION (About & Learn) --- */
  .content-section {
    padding: 32px 0;
  }

  .learn-section-box {
    padding: 24px 20px;
    /* Kurangi padding box */
  }

  .learn-section-box h2 {
    font-size: 1.25rem;
  }

  /* List "Apa yang dipelajari" jadi 1 kolom */
  .learn-grid {
    /* Ubah jadi 1 kolom agar teks punya ruang penuh */
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;

    /* Pastikan tidak melebar melebihi parent */
    width: 100%;
    box-sizing: border-box;
  }

  .includes-grid {
    grid-template-columns: 1fr;
    /* Icon-icon jadi 1 kolom */
    gap: 20px;
  }

  /* --- CODING EXERCISES --- */
  .coding-box {
    padding: 24px 20px;
  }

  .coding-grid {
    grid-template-columns: 1fr;
    /* Gambar tumpuk ke bawah/atas */
    gap: 20px;
  }

  .coding-image {
    display: none;
    /* Opsi: Sembunyikan gambar di HP agar fokus ke teks, atau taruh di bawah */
    /* Jika ingin tetap ada: width: 100%; height: auto; */
  }

  /* --- COURSE STRUCTURE (Modul) --- */
  .course-structure-wrapper {
    margin-top: 30px;
  }

  .course-structure-container {
    padding: 24px 16px;
    /* Kiri-kanan lebih tipis */
    width: 100%;
    box-sizing: border-box;
  }

  /* Header Module agar tidak berantakan */
  .module-header {
    flex-direction: column;
    /* Judul di atas, status di bawah */
    align-items: flex-start;
    /* Rata kiri */
    gap: 12px;
    position: relative;
    /* Untuk konteks */
  }

  .module-left {
    width: 100%;
    align-items: flex-start;
    /* Pastikan nomor dan teks sejajar atas */
  }

  .module-info h3 {
    font-size: 15px;
    /* Sesuaikan font judul */
    line-height: 1.4;
  }

  .module-meta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* Sebar elemen ke kiri dan kanan */
    align-items: center;

    /* Geser sedikit ke kanan agar sejajar dengan teks judul (melewati nomor urut) */
    padding-left: 38px;
    box-sizing: border-box;
    padding-left: 0 !important;
    margin-top: 8px;
    /* Beri jarak sedikit dari judul modul */
  }

  .status-badge {
    font-size: 10px;
    padding: 2px 6px;
  }

  .lesson-url {
    display: block;
    /* Agar anchor tag mengisi lebar */
    width: 100%;
  }

  .lesson-list {
    padding-left: 0;
    /* Hapus indentasi desktop */
    margin-top: 16px;
    width: 100%;
  }

  /* Lesson Item di Mobile */
  .lesson-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;

    padding: 12px;
  }

  .lesson-left {
    width: 100%;
    gap: 12px;
  }

  .lesson-right {
    align-self: flex-end;
    font-size: 12px;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
  }

  .lesson-info strong {
    font-size: 14px;
    line-height: 1.4;
    display: block;
  }

  /* --- INFO BOX BAWAH (Persyaratan) --- */
  .info-box {
    padding: 24px 20px;
    margin-top: 20px;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .learn-item {
    /* Biarkan teks turun ke bawah (wrap) secara alami */
    display: flex;
    align-items: flex-start;
    /* Icon check tetap di atas */
    gap: 10px;

    font-size: 14px;
    /* Perkecil font sedikit biar muat */
    line-height: 1.5;

    /* Mencegah teks keluar jalur */
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
  }

  .learn-item::before {
    flex-shrink: 0;
    /* Icon tidak boleh menyusut */
    font-size: 16px;
    margin-top: 2px;
    /* Sejajarkan dengan baris pertama teks */
  }
}

@media (max-width: 400px) {
  .info-cards {
    grid-template-columns: 1fr;
    /* Jadi 1 kolom memanjang ke bawah */
  }

  .module-meta {
    margin-left: 0;
    /* Reset margin */
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 28px;
  }

  .coding-content h3 {
    font-size: 24px;
  }

  .content-section h2 {
    font-size: 24px;
  }
}


.learn-section-box {
  border-radius: 8px;
  padding: 32px 40px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.learn-section-box h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #1c1d1f;
}

.about-digicode {
  font-size: 1rem;
  color: #4a4a4a;
  line-height: 1.7;
  margin-bottom: 32px;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px 40px;
  margin-bottom: 32px;
}

.learn-item::before {
  content: "✓";
  color: #0056d2;
  margin-right: 8px;
}

.includes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.include-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.include-icon {
  font-size: 20px;
  flex-shrink: 0;
}








/* ============================== */
/* STRUCTURE WRAPPER — ALIGN SAME AS REQUIREMENTS BOX */
/* ============================== */
.course-structure-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  background: transparent;
}

/* Bingkai besar putih agar sejajar dengan "Persyaratan & Deskripsi" */
.course-structure-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  padding: 40px 60px;
  width: 100%;
  max-width: 1150px;
  /* <-- samakan dengan lebar info-box Persyaratan */
  box-sizing: border-box;
}

/* ============================== */
/* COURSE STRUCTURE INSIDE */
/* ============================== */
.course-structure {
  font-family: "Poppins", sans-serif;
  color: #1f2937;
  width: 100%;
}

.course-structure h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.course-structure p {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 24px;
}

/* ============================== */
/* MODULE CARD */
/* ============================== */
.module-card {
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #f1f1f1;
  padding: 16px 20px;
  margin-bottom: 18px;
  transition: all 0.2s ease;
}

.module-card:hover {
  background: #f3f4f6;
}

/* Header module */
.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.module-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.module-number {
  background: #2563eb;
  color: #fff;
  font-weight: 500;
  font-size: 12px;
  width: 26px;
  height: 26px;
  text-align: center;
  line-height: 26px;
  border-radius: 6px;
}

.module-info h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.module-info p {
  margin: 1px 0 0;
  font-size: 12px;
  color: #6b7280;
}

/* Meta kanan (status dan jumlah lesson) */
.module-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge {
  background: #111827;
  color: #fff;
  border-radius: 5px;
  font-size: 10.5px;
  padding: 3px 6px;
}

.lesson-count {
  font-size: 11.5px;
  color: #6b7280;
}

/* ============================== */
/* LESSON LIST */
/* ============================== */
.lesson-list {
  margin-top: 10px;
}

.lesson-item {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ececec;
  padding: 8px 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lesson-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lesson-left i {
  color: #2563eb;
  font-size: 14px;
}

.lesson-info {
  display: flex;
  flex-direction: column;
}

.lesson-info strong {
  font-size: 13px;
  font-weight: 500;
}

.lesson-info p {
  font-size: 11.5px;
  color: #6b7280;
  margin: 0;
}

.required-badge {
  background: #ef4444;
  color: white;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
}

.lesson-right {
  font-size: 11.5px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lesson-right i {
  color: #6b7280;
  font-size: 12px;
}



/* ============================== */
/* ANIMASI EXPANDABLE LESSON */
/* ============================== */
.module-card {
  transition: all 0.3s ease;
}

.module-header {
  cursor: pointer;
  transition: background 0.2s ease;
}

.module-header:hover {
  background: #f3f4f6;
}

.toggle-icon {
  color: #6b7280;
  font-size: 13px;
  transition: transform 0.3s ease;
}

.module-card.active .toggle-icon {
  transform: rotate(180deg);
}

/* Animasi munculnya lesson */
.lesson-list {
  overflow: hidden;
  transition: all 0.3s ease;
}

.lesson-list.show {
  display: block !important;
  animation: expandFade 0.35s ease;
}

.lesson-url {
  text-decoration: none;
}

.team-section {
  position: relative;
  padding-top: 20px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* Agar sisa kartu berada di tengah (untuk 5 orang) */
  gap: 30px;
  /* Jarak antar kartu */
}

.team-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  width: 240px;
  /* Lebar fix agar rapi */
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Efek saat kartu di-hover (naik sedikit + shadow) */
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #0056d2;
  /* Border berubah biru saat hover */
}

/* Wadah Foto */
.member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 16px;
  overflow: hidden;
  border: 4px solid #f8f9fa;
  /* Border tipis di sekeliling foto */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Agar foto tidak gepeng */
  transition: transform 0.5s ease;
}

/* Zoom foto sedikit saat hover */
.team-card:hover .member-photo img {
  transform: scale(1.1);
}

/* Info Text */
.member-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1c1d1f;
  margin-bottom: 4px;
}

.member-role {
  font-size: 14px;
  color: #0056d2;
  /* Warna biru DigiCode */
  font-weight: 500;
  margin: 0;
}

#info {
  text-align: center;
  color: #6a6f73;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#judul {
  text-align: center;
  margin-top: 60px;
}

@keyframes expandFade {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .team-grid {
    gap: 16px;
  }

  .team-card {
    width: 100%;
    /* Di HP kartu jadi lebar penuh atau 2 kolom */
    max-width: 200px;
    /* Batasi lebar di tampilan tablet/kecil */
    padding: 20px 10px;
  }

  .member-photo {
    width: 100px;
    height: 100px;
  }

  .member-info h3 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    flex-direction: column;
    align-items: center;
  }

  .team-card {
    width: 100%;
    /* Full width di HP kecil */
    max-width: 100%;
    flex-direction: row;
    /* Ubah jadi layout horizontal di HP (Foto kiri, Teks kanan) */
    text-align: left;
    padding: 16px;
    gap: 16px;
  }

  .member-photo {
    width: 70px;
    height: 70px;
    margin-bottom: 0;
    /* Reset margin bawah */
    border-width: 2px;
  }

  .member-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}





/* Scoped styles: hanya berlaku di dalam section .dicoding-stories */
.dicoding-stories {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  background: #fafafa;
  color: #fff;
  padding: 60px 20px;
}

.dicoding-stories,
.dicoding-stories * {
  box-sizing: border-box;
}

.dicoding-stories__container {
  max-width: 900px;
  margin: 0 auto;
}

.dicoding-stories__title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #000;
}

.dicoding-stories__subtitle {
  text-align: center;
  font-size: 1rem;
  color: #000;
  margin: 0 auto 50px;
  max-width: 720px;
}

/* ====== GRID: 3 atas, 2 bawah (ukuran tetap sama) ====== */
.dicoding-stories__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.dicoding-stories__card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 340px;
  cursor: pointer;
  transition: transform 0.25s ease;

  /* 3 kartu per baris */
  grid-column: span 2;
}

/* card ke-4 dan ke-5 ditaruh di baris bawah dan ditengah */
.dicoding-stories__card:nth-child(4) {
  grid-column: 2 / span 2;
}

.dicoding-stories__card:nth-child(5) {
  grid-column: 4 / span 2;
}

.dicoding-stories__card:hover {
  transform: translateY(-6px);
}

/* Gambar full cover */
.dicoding-stories__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.35s ease;
}

/* sedikit zoom saat hover */
.dicoding-stories__card:hover .dicoding-stories__img {
  transform: scale(1.06);
}

/* Nama + role di bawah */
.dicoding-stories__cardContent {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.5) 55%,
      rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  /* ini penting: kasih tinggi tetap untuk area teks */
  min-height: 110px;
  /* bisa 100-130 sesuai kebutuhan */
}

.dicoding-stories__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.dicoding-stories__role {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: #e5e5e5;
  line-height: 1.4;
}

/* Overlay sosial - gradasi biru + gelap (tanpa kesan "api") */
.dicoding-stories__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  /* 2 layer: hitam (atas/bawah) + biru (utama) */
  background:
    linear-gradient(to top,
      rgba(0, 0, 0, 0.55) 0%,
      /* hitam kuat di bawah */
      rgba(0, 0, 0, 0.18) 55%,
      /* hitam tipis di tengah */
      rgba(0, 0, 0, 0) 100%
      /* transparan di atas */
    ),
    linear-gradient(to top,
      rgba(0, 102, 204, 0.75) 0%,
      /* biru kuat */
      rgba(0, 102, 204, 0.38) 45%,
      /* biru tipis */
      rgba(0, 0, 0, 0) 100%
      /* transparan atas */
    );

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
}


/* Tombol icon: biar nyatu dengan tema biru */
.dicoding-stories__social {
  background: rgba(10, 12, 16, 0.28);
  /* gelap halus */
  border: 1px solid rgba(255, 255, 255, 0.22);
}


.dicoding-stories__card:hover .dicoding-stories__overlay,
.dicoding-stories__card:focus-within .dicoding-stories__overlay {
  opacity: 1;
  transform: translateY(0);
}

/* tombol icon */
.dicoding-stories__social {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dicoding-stories__social:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.dicoding-stories__social svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.dicoding-stories__social:focus {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

/* responsive */
@media (max-width: 968px) {
  .dicoding-stories__title {
    font-size: 2.3rem;
  }

  .dicoding-stories__card {
    height: 320px;
  }

  /* tablet: 2 kolom */
  .dicoding-stories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* reset posisi card bawah agar normal lagi */
  .dicoding-stories__card,
  .dicoding-stories__card:nth-child(4),
  .dicoding-stories__card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .dicoding-stories__title {
    font-size: 2rem;
  }

  .dicoding-stories__subtitle {
    font-size: 0.95rem;
  }

  .dicoding-stories__cardContent {
    padding: 18px;
  }

  /* hp: 1 kolom */
  .dicoding-stories__grid {
    grid-template-columns: 1fr;
  }
}







/*orientasi cuy*/


