/* FONT */
@font-face { font-family:'SF Pro Rounded'; src:url('../fonts/SF-Pro-Rounded-Regular.otf') format('opentype'); font-weight:400; font-style:normal; }
@font-face { font-family:'SF Pro Rounded'; src:url('../fonts/SF-Pro-Rounded-Medium.otf') format('opentype'); font-weight:500; font-style:normal; }
@font-face { font-family:'SF Pro Rounded'; src:url('../fonts/SF-Pro-Rounded-Semibold.otf') format('opentype'); font-weight:600; font-style:normal; }
@font-face { font-family:'SF Pro Rounded'; src:url('../fonts/SF-Pro-Rounded-Bold.otf') format('opentype'); font-weight:700; font-style:normal; }

body {
  margin:0;
  font-family:'SF Pro Rounded', sans-serif;
  display:flex;
  height:100vh;
  overflow-y:auto; 
  overflow-x:hidden;
}

/* HAMBURGER */
.hamburger {
  display:none;
  position:fixed;
  top:15px;
  left:15px;
  font-size:28px;
  cursor:pointer;
  z-index:999;
}

/* SIDEBAR */
.sidebar {
  width:20%;
  background:#ecf1ef;
  color:#00332e;
  padding:25px;
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  overflow-y:auto;
  box-shadow:2px 0 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  font-family:'SF Pro Rounded', sans-serif;
}

.sidebar .sidebar-close {
  display:none;
  font-size:30px;
  position:absolute;
  top:15px;
  right:15px;
  cursor:pointer;
}

/* FILTER & NAV */
.sidebar h2 { margin-top:0; font-size:22px; letter-spacing:0.5px; }
.filter-section h3 { font-size:15px; font-weight:600; margin-bottom:10px; color:#004d40; }
.filter-item { padding:8px 0; border-bottom:1px solid rgba(0,0,0,0.1); }
.filter-item label { cursor:pointer; color:#00332e; font-weight:500; }
.reset-btn { margin-top:25px; padding:10px 15px; width:100%; border:none; background:#004d40; color:#fff; cursor:pointer; border-radius:4px; font-size:15px; }

.sidebar-header { text-align:center; }
.sidebar img { height:50px; display:block; margin:0 auto 15px auto; }
.nav-menu { display:flex; justify-content:center; gap:18px; margin-top:10px; }
.nav-menu a { color:#004d40; text-decoration:none; font-weight:600; font-size:13px; transition:0.3s; margin-bottom:27px; }
.nav-menu a:hover { color:#00201c; transform:scale(1.05); }
.nav-menu a.active { color:#001a17; position:relative; font-weight:700; }
.nav-menu a.active::after { content:""; position:absolute; left:0; right:0; bottom:-4px; margin:auto; width:100%; height:3px; background:#004d40; border-radius:2px; }

/* GALLERY */
.gallery-wrapper {
  margin-top: 20px;
  margin-left:26%;
  width:74%;
  height:100vh;
  overflow-y:auto;
  padding:40px 20px 100px 20px;
  margin-bottom: 0;
  padding-bottom: 200px;
  overflow-y:auto;
}

.gallery-title {
  font-size:32px;
  margin-bottom:25px;
  margin-top:30px;
  color:#004d40;
  font-weight:600;
  position:relative;
}
.gallery-title::after {
  content:"";
  display:block;
  width:70px;
  height:4px;
  background:#004d40;
  margin-top:6px;
  border-radius:4px;
}

.gallery {
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:10px;
}
.gallery img {
  width:100%;
  height:100%;
  object-fit:cover;
  cursor:pointer;
  border-radius:4px;
  transition: transform 0.3s;
}
.gallery img:hover { transform:scale(1.05); }

/* MODAL */
.modal {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.8);
  display:none;
  justify-content:center;
  align-items:center;
  padding:20px;
}
.modal-content {
  position:relative;
  width:70%;
  max-width:100%;
  height:auto;
  background:#ecf1ef;
  padding:20px;
  border-radius:6px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  box-sizing:border-box;
}
.modal-content img { width:100%; border-radius:0; }
.close-btn { position:absolute; top:10px; right:15px; color:#fff; font-size:30px; cursor:pointer; }
.description { color:#00332e; margin-bottom:15px; font-size:15px; line-height:1.6; text-align:center; }

/* WRAPPER */
.artikel-wrapper {
    margin-left:26%;
  width:74%;
  height:100vh;
  overflow-y:auto;
  padding:40px 20px 20px 20px;
}

/* GRID ARTIKEL */
.artikel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

/* CARD */
.artikel-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: .3s;
    cursor: pointer;
}

.artikel-card:hover {
    transform: translateY(-4px);
}

/* GAMBAR */
.artikel-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* BODY */
.card-body {
    padding: 15px;
}

.card-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

.card-title {
    font-size: 17px;
    font-weight: bold;
    color: #222;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.5em;
    height: 4.5em;              /* 3 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;      /* LIMIT 3 LINES */
    -webkit-box-orient: vertical;
}

/* RESPONSIVE */
@media (max-width:1024px) {
  .sidebar { width:250px; }
  .nav-menu { gap:13px;}
  .gallery-wrapper { margin-left:250px; width:calc(100% - 250px); padding:30px 15px 85px 65px; }
  .gallery { grid-template-columns:repeat(2, 1fr); }
  .artikel-wrapper { padding: 40px 20px 20px 60px;}
}

@media (max-width:900px) {
  .gallery-wrapper { padding: 40px 20px 80px 70px;}
  .artikel-wrapper {padding: 40px 20px 80px 100px;}
}

@media (max-width:768px) {
  .hamburger { display:block; }
  .sidebar { transform:translateX(-100%); z-index:999; }
  .sidebar.active { transform:translateX(0); }
  .sidebar .sidebar-close { display:block; }
  .gallery-title {margin-top: 60px;}
  .gallery-wrapper { margin-left:0; width:100%; padding:20px 10px 80px 25px; }
  .gallery { grid-template-columns:repeat(2, 1fr); }
  .artikel-wrapper {
    margin-left:0;
    width: 94%;
    padding: 40px 20px 80px 20px;}
}

@media (max-width:480px) {
  .gallery { grid-template-columns:1fr; }
  .gallery-title { font-size:24px;}
  .modal-content { width:95%; }
  .modal { padding: 5px 1px; }
}
