/* ======== BERITA_IND dan PENGUMUMAN_IND ======== */
  /* Halaman Berita */
  .news-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px;
    background-color: #f9faf9;
  }
  
  .news-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
  }
  .news-card:hover {
    transform: translateY(-5px);
  }
  .news-card img {
    width: 300px;
    object-fit: cover;
  }
  .news-content {
    padding: 20px;
  }
  .news-content h2 {
    margin-top: 0;
    color: #0288D1;
  }
  
/* ==== TOMBOL UP dan KEMBALI ==== */
  .btn-back {
    display: inline-block;
    background: #0288D1;
    color: #fff;
    padding: 14px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 40px 0 30px 0;
    text-align: center;
  }
  .btn-back:hover {
    background: #0269A1;
  }
  .news-content .btn {
    display: inline-block;
    padding: 8px 12px;
    margin-top: 10px;
    background: #0288D1;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
  }
  .news-content .btn:hover {
    background: #0269A1;
  }
  
  /* Tombol Back to Top */
  .btn-back-top {
    display: none;               /* tidak tampil dulu */
    position: fixed;             /* menempel di layar */
    bottom: 20px;                /* jarak dari bawah layar */
    right: 25px;                 /* jarak dari kanan layar */
    z-index: 999;                /* di atas elemen lain */
    background-color: #0288D1;   /* hijau tema sekolah */
    color: #fff;
    border: none;
    outline: none;
    padding: 12px 15px;
    border-radius: 20%;          /* bentuk bulat */
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
  }
  /* Hover effect */
  .btn-back-top:hover {
    background-color: #0269A1;
    transform: scale(1.1);
  }


/* ==== GALERI GAMBAR DALAM BERITA ==== */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: center;
}
.gallery-img {
  width: calc(33.333% - 10px);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}
.gallery-img:hover {
  transform: scale(1.03);
}


/* ====BERITA dan PENGUMUMAN ======== */
.container h1 {
  text-align: center;
  color: #0288D1;
  margin-bottom: 10px;
}
.container p {
  text-align: justify;
  line-height: 1.8;
  max-width: 900px;
  margin: 10px auto;
  padding: 5px;
}
/*LIST DI DALAM CONTAINER*/
.container ul,
.container ol {
  margin: 15px auto;             /* jarak atas-bawah antar daftar */
  padding-left: 25px;            /* jarak antara bullet/nomor dan teks */
  max-width: 900px;              /* batasi lebar agar tidak terlalu panjang */
  line-height: 1.8;              /* jarak antarbaris */
  color: #222;                   /* warna teks netral */
}
/*Bullet List*/
.container ul {
  list-style-type: disc;         /* bentuk bullet: disc | circle | square | none */
  list-style-position: outside;  /* posisi bullet di luar teks */
}
/*Numbered List*/
.container ol {
  list-style-type: decimal;      /* jenis penomoran */
  list-style-position: outside;
}
/*Elemen List*/
.container li {
  margin-bottom: 8px;            /* jarak antar poin */
  text-align: justify;           /* biar teks rapi kanan-kiri */
}
/*Warna Bullet Sesuai Tema Sekolah*/
.container ul li::marker {
  color: #0288D1;                /* hijau khas SMK Al Ihsan */
  font-size: 1.1em;
}



/* ==== GALERI dan LAMPIRAN PENGUMUMAN ==== */
.featured-image {
  display: block;        /* ubah jadi elemen blok agar bisa ditengahkan */
  margin: 20px auto;     /* menengah secara horizontal & beri jarak atas-bawah*/
  max-width: 90%;        /* batasi agar tidak melebihi layar */
  height: auto;          /* jaga proporsi gambar */
  border-radius: 10px;   /* opsional: buat sudut sedikit melengkung */
}

.lampiran-container {
  background-color: #f5faf5;
  border-left: 4px solid #0288D1;
  padding: 10px 15px;
  margin-top: 20px;
  border-radius: 8px;
}

.lampiran-container a {
  color: #0288D1;
  font-weight: 600;
  text-decoration: none;
}

.lampiran-container a:hover {
  text-decoration: underline;
}

/* ==== RESPONSIF untuk HP ==== */
@media (max-width: 768px) {
  .news-card {
      flex-direction: column;
  }
  .news-card img {
      width: 100%;
      height: 200px;
  }
  .gallery-img {
    width: 100%;
    padding: 10px;
    height: auto;
  }
  .container p {
    padding: 10px;     /* tambah ruang kiri-kanan agar teks tidak menempel tepi layar */
    margin: 10px auto;      /* beri jarak antar paragraf */
    max-width: 100%;        /* biar lebar teks mengikuti layar HP */
  }
  .container ul,
  .container ol {
    padding-left: 18px;          /* sedikit lebih kecil di HP */
    margin: 10px auto;
    max-width: 90%;
  }
  .container li {
    line-height: 1.9;
    margin-bottom: 10px;
    max-width: 90%;
  }
  .btn-back-top {
    display: block;
    bottom: 15px;
    right: 15px;
    font-size: 16px;
    padding: 10px 12px;
  }
}
