/* =========================================================
   Research Page (for your current research/index.html)
========================================================= */

.research-page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* =========================
   Top
========================= */
.research-top{
  text-align: center;
  margin-bottom: 28px;
}

.research-top h1{
  font-size: 36px;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}

.research-top-desc{
  color: #475569;
  font-size: 15px;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =========================
   Tabs
========================= */
.research-tabs{
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 26px;
  flex-wrap: wrap;
}

.research-tabs .tab{
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
}

.research-tabs .tab:hover{
  background: #f8fafc;
}

.research-tabs .tab:active{
  transform: translateY(1px);
}

.research-tabs .tab.active{
  background: #111827;
  color: #fff;
  border-color: #111827;
}

/* =========================
   Panels
========================= */
.research-content .tab-panel{
  display: none;
}
.research-content .tab-panel.active{
  display: block;
}

/* =========================
   Grid
   - 너는 <div class="research-grid one-col"> 를 사용 중
========================= */
.research-grid{
  display: grid;
  gap: 26px;
}

.research-grid.one-col{
  grid-template-columns: 1fr;
}

/* =========================
   Item Card
========================= */
.research-item{
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,23,42,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.research-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.15);
}

/* =========================
   Thumb (button)
   - ✅ button 기본 스타일 제거
========================= */
.research-thumb{
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: #0b1220;
  cursor: pointer;
  text-align: left;
}

.research-thumb:focus{
  outline: 3px solid rgba(59,130,246,0.55);
  outline-offset: -3px;
}

.research-thumb img{
  width: 100%;
  height: 420px;
  object-fit: contain;
  display: block;
  background: #0b1220;
}

/* =========================
   Meta
========================= */
.research-meta{
  padding: 18px 22px 22px;
}

.research-title-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.research-title{
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
}

.btn.btn-detail{
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.research-lead{
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

/* =========================================================
   Modal
========================================================= */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.open{
  display: block;
}

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}

.modal-dialog{
  position: relative;
  max-width: 1200px;
  margin: 60px auto;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  z-index: 10;
}

.modal-body{
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  padding: 24px;
}

#modalImg{
  width: 100%;
  height: 560px;
  object-fit: cover;
  background: #0b0f19;
  border-radius: 16px;
  display: block;
}

.modal-text{
  overflow-y: auto;
  max-height: 560px;
}

#modalTitle{
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 14px;
}

#modalDesc{
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 900px){
  .research-page{
    padding: 28px 14px 50px;
  }

  .research-thumb img{
    height: 300px;
  }

  .research-title-row{
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-dialog{
    margin: 18px 12px;
  }

  .modal-body{
    grid-template-columns: 1fr;
  }

  #modalImg{
    height: 360px;
  }

  .modal-text{
    max-height: none;
  }
}
