/* ==========================================================================
   OJS KAMPUS - DEDICATED STYLESHEET
   Institut Kesehatan Karsa Husada Garut
   ========================================================================== */

.ojs-section {
  padding: 4.5rem 0 5.5rem;
  background-color: var(--bg-body, #f8fafc);
  min-height: 60vh;
}

.ojs-intro-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.ojs-tag-pill {
  background: var(--primary-light, #e6f6f5);
  color: var(--primary-dark, #078f86);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.ojs-section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.ojs-section-subtitle {
  color: var(--text-muted, #64748b);
  font-size: 1rem;
  line-height: 1.6;
}

/* Search Bar Toolbar */
.ojs-search-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto 3rem;
  flex-wrap: wrap;
}

.ojs-search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.ojs-search-box svg {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.ojs-search-box input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  font-size: 0.9375rem;
  color: var(--text-main, #0f172a);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  outline: none;
  font-family: inherit;
}

.ojs-search-box input:focus {
  border-color: var(--primary, #078f86);
  box-shadow: 0 0 0 4px rgba(7, 143, 134, 0.15);
}

.ojs-count-indicator {
  font-size: 0.875rem;
  color: var(--text-muted, #64748b);
  font-weight: 500;
  white-space: nowrap;
}

.ojs-count-indicator strong {
  color: var(--primary, #078f86);
  font-weight: 800;
}

/* Grid Layout */
.ojs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1100px) {
  .ojs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 700px) {
  .ojs-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Card Styling */
.ojs-card {
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ojs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(7, 143, 134, 0.12);
  border-color: var(--primary, #078f86);
}

.ojs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.ojs-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f0fdfa;
  color: #078f86;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccfbf1;
}

.ojs-official-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.ojs-title {
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.ojs-desc {
  font-size: 0.90625rem;
  color: var(--text-body, #475569);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

/* Actions */
.ojs-actions {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle, #f1f5f9);
  padding-top: 1.25rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.ojs-btn-main {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg, #09a89e 0%, #078f86 100%);
  color: #ffffff;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(7, 143, 134, 0.2);
}

.ojs-btn-main:hover {
  background: linear-gradient(135deg, #078f86 0%, #056e67 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(7, 143, 134, 0.3);
}

.ojs-btn-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ojs-btn-sub:hover {
  background: #f8fafc;
  border-color: #078f86;
  color: #078f86;
}

/* Empty Box */
.ojs-empty-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  background: #ffffff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
}

.ojs-empty-box svg {
  margin-bottom: 1rem;
}

.ojs-empty-box h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.ojs-empty-box p {
  font-size: 0.875rem;
  color: #64748b;
  max-width: 420px;
  margin: 0 auto;
}
