/* =====================================================
   CASE STUDY LIST PAGE
===================================================== */

.case-study-section {
  padding: 60px 20px;
  background-color: #f9fafb;
}

.page-title {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #000;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


/* =====================================================
   SEARCH BAR (OLD VERSION - DISABLED)
===================================================== */

/*
.search-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: sticky;
  top: 20px;
  z-index: 100;
  padding: 10px 0;
  background-color: #f9fafb;
}

.search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background-color: #f3f4f6;
  border-radius: 8px;
  padding: 0 16px;
}
*/


/* =====================================================
   SEARCH BAR (ACTIVE VERSION)
===================================================== */

.search-container {
  display: flex;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 10px 0;
}

.search-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 16px;
  transition: border-color 0.3s ease;
}

.search-wrapper:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.search-icon {
  font-size: 20px;
  color: #9ca3af;
  margin-right: 12px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 16px 0;
  font-size: 16px;
  outline: none;
  color: #111827;
}

.search-input::placeholder {
  color: #9ca3af;
}

.btn-cari {
  padding: 16px 48px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-cari:hover {
  background-color: #1d4ed8;
}

.btn-cari:active {
  transform: scale(0.98);
}


/* =====================================================
   CATEGORY FILTER
===================================================== */

.category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.category-btn {
  padding: 8px 18px;
  background-color: white;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background-color: #f3f4f6;
}

.category-btn.active {
  background-color: #2563eb;
  color: white;
  border-color: #2563eb;
}


/* =====================================================
   CASE STUDY GRID
===================================================== */

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto 60px;
}

.case-study-card {
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}


/* IMAGE */

.case-study-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* CONTENT */

.case-study-content {
  padding: 24px;
}

.case-study-date {
  font-size: 14px;
  color: #6b7280;
  display: block;
  margin-bottom: 12px;
}

.case-study-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  line-height: 1.4;
}

.case-study-excerpt {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}


/* =====================================================
   PAGINATION
===================================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.page-btn {
  width: 44px;
  height: 44px;
  border: none;
  background-color: white;
  color: #374151;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.page-btn:hover {
  background-color: #f3f4f6;
}

.page-btn.active {
  background-color: #2563eb;
  color: white;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width:1024px){

  .case-study-grid{
    grid-template-columns: repeat(2,1fr);
  }

  .detail-layout{
    grid-template-columns:1fr;
  }

}

@media (max-width:768px){

  .page-title{
    font-size:28px;
  }

  .case-study-grid{
    grid-template-columns:1fr;
  }

  .search-container{
    flex-direction:column;
  }

}

@media (max-width:480px){

  .page-title{
    font-size:24px;
  }

}