.event-section {
  max-width: 1920px;
  width: 100%;
  margin: 50px auto 0;
  padding: 0 40px;
}

.medical-main-content .event-section {
  margin: 200px auto 100px;
}

.event-top-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 55px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 24px;
  margin-bottom: 66px;
  min-height: 300px;
}

.event-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid #D9D9D9;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  border-radius: 8px;
}

.event-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.event-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.event-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* 이벤트 상태 오버레이 */
.event-status-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.event-status-overlay.ended {
  background-color: rgba(128, 128, 128, 0.8);
  opacity: 1;
}

.event-status-overlay.progress {
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.event-card:hover .event-status-overlay.progress {
  opacity: 1;
  transform: translateY(0);
}

.status-text {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.3);
}

/* 기본 정보 영역 */
.event-info {
  padding: 16px 20px;
  width: 100%;
  background: #fff;
  border-radius: 0 0 8px 8px;
}

.event-info .event-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-info .event-period {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-info .period-separator {
  color: #999;
}

/* 상태 배지 */
.status-badge {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
}

/* 진행중인 이벤트 호버 콘텐츠 */
.hover-content {
  text-align: center;
  color: #fff;
  padding: 20px;
}

.hover-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

.hover-period {
  font-size: 16px;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  opacity: 0.9;
}

/* 기존 스타일 제거 - 새로운 .event-info 스타일로 대체됨 */

/* 검색영역 */
.event-search-area {
  max-width: 1200px;
  width: 100%;
  background: #F5F5F5;
  border-radius: 16px;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 50px;
}
.event-search-area select,
.event-search-area input {
  border: none;
  background: #fff;
  border-radius: 50px;
  padding: 10px 16px;
  font-size: 15px;
  outline: none;
  min-width: 120px;
  position: relative;
}
.event-search-area select {
  appearance: none;
  background-image: url("/images/icon/icon-drop-down-4c8a1e65adf10f55042751f14d7ff5aa.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.event-search-area button {
  background: var(--point-color);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.event-search-area button:hover {
  background: var(--point-color-hover);
}

.event-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.event-pagination button,
.event-pagination span {
  background: none;
  border: none;
  color: var(--point-color);
  font-size: 22px;
  cursor: pointer;
  padding: 0 8px;
}
.event-pagination .active {
  color: #fff;
  background: var(--point-color-hover);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: #fff;
  margin: 2% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 900px;
  max-height: 88vh;
  overflow: hidden;
  animation: slideIn 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

@keyframes slideIn {
  from { transform: translateY(-30px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 26px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-header h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, var(--point-color), var(--point-color-hover));
  border-radius: 2px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #718096;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.modal-close:hover {
  background-color: #f7fafc;
  color: #4a5568;
  transform: scale(1.1);
}

.modal-body {
  padding: 0;
  overflow-y: auto;
  flex: 1;
  max-height: calc(96vh - 100px);
}

/* 이벤트 상세보기 스타일 */
.event-detail-container {
  padding: 20px;
}

.event-detail-image {
  position: relative;
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  border-radius: 8px;
}

.event-detail-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.event-status-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.status-progress {
  background-color: var(--point-color);
}

.status-ended {
  background-color: var(--warning);
}

.event-detail-info {
  flex: 1;
}

.event-detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 24px 0;
  line-height: 1.3;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 16px;
}

.event-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
  padding: 10px;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.meta-label {
  font-weight: 600;
  color: #4a5568;
  min-width: 80px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  color: #2d3748;
  font-weight: 500;
  font-size: 14px;
}

.event-detail-content {
  color: #4a5568;
  font-size: 14px;
  background: #fff;
  padding: 0 2px;
  border-radius: 12px;
}

.event-detail-content h1,
.event-detail-content h2,
.event-detail-content h3,
.event-detail-content h4,
.event-detail-content h5,
.event-detail-content h6 {
  color: #2d3748;
  margin: 24px 0 16px 0;
  font-weight: 600;
}

.event-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-detail-content ul,
.event-detail-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.event-detail-content li {
  margin: 8px 0;
}

.event-detail-content blockquote {
  border-left: 4px solid var(--point-color);
  padding-left: 16px;
  margin: 16px 0;
  font-style: italic;
  color: #4a5568;
  background: #f7fafc;
  padding: 16px;
  border-radius: 0 8px 8px 0;
}

/* 스크롤바 스타일링 */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .event-section {
    padding: 0 16px;
  }

  .event-top-title {
    margin-bottom: 30px;
  }

  .event-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }

  .event-info {
    padding: 12px 16px;
  }

  .event-info .event-title {
    font-size: 14px;
  }

  .event-info .event-period {
    font-size: 12px;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 90vh;
  }
  
  .modal-header {
    padding: 20px 24px;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .event-detail-container {
    padding: 24px 20px;
  }
  
  .event-detail-title {
    font-size: 1.75rem;
  }
  
  .event-detail-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .meta-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .meta-label {
    min-width: auto;
  }
  
  .event-detail-content {
    padding: 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .event-grid {
    grid-template-columns: 1fr;
  }

  .event-search-area {
    flex-direction: column;
    gap: 8px;
    padding: 16px 8px 12px 8px;
  }
}
