/* =========================================================
   main_style.css
   Main Page Only
   ========================================================= */


/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 420px;
  color: #ffffff;
  background: url("../images/main-hero.png") center / cover no-repeat;
  padding: 120px 0; 
}

.hero .container {
  position: relative;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 0;
}

.hero h2 {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
  color: #f1f5f9;
}


/* =========================================================
   Main Section Common
   ========================================================= */

.main-section {
  padding: 80px 0;
}


/* =========================================================
   Services (Main Only – New Style)
   ========================================================= */

.services {
  background: #ffffff;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: #ffffff;
  border: 1.8px solid #004fac;
  border-radius: 20px;
  padding: 32px 28px;
  min-height: 250px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 12px 28px rgba(59,130,246,0.15);
  transform: translateY(-2px);
}

/* 아이콘 – 우측 상단 고정 */
.service-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 80px;
  height: 80px;
}

.service-icon img {
  width: 100%;
  height: 80px;
}

/* 텍스트 */
.service-text {
  position: absolute;
  left: 25px;
  bottom: 20px;
  right: 28px;
  min-width: 220px; /* 줄바꿈 안정성 */
}

.service-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000;
}

.service-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

/* =========================================================
   Main Board (Notice / Research)
   ========================================================= */

.main-board-section {
  background: #f8fafc;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.board-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  width: 560px;
  height: 300px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 아이콘 + 타이틀 묶음 */
.board-title-group {
  display: flex;
  align-items: center;
  gap: 10px;           /* ← 여기서 간격 조절 */
}

.title-icon {
  width: 20px;
  height: 20px;
}

.board-title {
  font-size: 18px;
  font-weight: 700;
  color: #004fac;
  margin-bottom: 3px;
}

/* 더보기 */
.more-link {
  color: #d2d2d2;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2px;
}

.board-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
}

.board-list li:last-child {
  margin-bottom: 0;
}

.board-list li a {
  font-size: 16px;
  color: #222;
}

.board-list li .date {
  font-size: 16px;
  color: #666;
  white-space: nowrap;
}

.board-list li a:hover {
  text-decoration: underline;
}

.board-list.empty {
  height: 140px;              /* 카드 안에서 차지할 높이 */
  display: flex;
  align-items: center;        /* 세로 중앙 */
  justify-content: center; 
}

.empty-state {
  font-size: 16px;
  color: #666;
  text-align: center;
  padding: 0;
  border: none !important;
}

/* =========================================================
   Responsive (Main Only)
   ========================================================= */

@media (max-width: 1024px) {
  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .board-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero h2 {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .service-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 200px;
    padding: 24px;
  }

  .service-text {
    left: 24px;
    bottom: 24px;
    right: 24px;
  }

  .service-icon {
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
  }
}
