html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #000000;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* 소개 */
.intro {
  text-align: center; /* 안의 모든 내용을 가운데 정렬 */
  margin: 20px auto;
}

/* 티어 카드 */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
}

.tier-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-align: center;
}

.tier-card:hover {
  transform: scale(1.05);
}

.tier-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.tier-title {
  font-weight: bold;
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

/* ====================== 3개 큰 상자 (Quick Nav) ====================== */
.quick-nav {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.quick-card {
  flex: 1;
  min-width: 280px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quick-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.quick-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  text-align: center;
  color: #111;
}

/* 서브 메뉴 애니메이션 */
.sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.quick-card:hover .sub-menu {
  max-height: 400px;
  opacity: 1;
}

.sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sub-grid a,
.sub-menu a {
  display: block;
  padding: 10px 12px;
  background: #f8f8f8;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.sub-grid a:hover,
.sub-menu a:hover {
  background: #111;
  color: white;
}

/* 공지사항 아이템 호버 효과 강화 (선택) */
.notice-item {
  transition: all 0.2s ease;
}

.notice-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* 모달 내용 가독성 */
#notice-modal-content {
  line-height: 1.7;
}

/* ====================== 공지사항 섹션 ====================== */
.notice-section {
  margin-bottom: 48px; /* 티어 섹션과 여백 통일 */
}

.notice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.notice-header h2 {
  font-size: 24px;
  font-weight: 700;
}

.notice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .notice-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.notice-column {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* 살짝만 그림자 */
}

.notice-column-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 18px;
}

.notice-item {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notice-item:hover {
  border-color: #d1d5db;
  background: #fafafa;
}

.notice-item:last-child {
  margin-bottom: 0;
}

.notice-item .title {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notice-item .date {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
}

.notice-item .desc {
  font-size: 14px;
  color: #6b7280;
  margin-top: 6px;
  line-height: 1.5;
}

/* 공지사항 레이아웃 강제 정렬 (대칭 맞춤) */
.notice-section {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  margin-bottom: 60px;
}

.notice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}

@media (min-width: 1024px) {
  .notice-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.notice-column {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
}

/* 공지사항 상자 살짝 더 넓게 */
.notice-section {
  max-width: 1520px;   /* 기존 7xl(1280px)보다 조금 더 넓게 */
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.notice-section .notice-view-all {
  font-size: 14px;
  color: #6b7280 !important;
  text-decoration: none;
  font-weight: 500;
}

.notice-section .notice-view-all:hover {
  color: #111111 !important;
}

.notice-section .notice-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.notice-section .notice-item-title {
  font-weight: 600;
  color: #111;
}

.notice-section .notice-empty {
  color: #9ca3af;
  font-size: 14px;
  padding: 12px 0;
}

/* ====================== 공지사항 모달 ====================== */
.notice-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.notice-modal.show {
  display: flex;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 520px;
  margin: 20px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.modal-header {
  padding: 24px 28px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f1f1;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  font-size: 28px;
  line-height: 1;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: #333;
}

.modal-date {
  padding: 0 28px;
  font-size: 13px;
  color: #888;
  margin-top: 8px;
}

.modal-body {
  padding: 8px 28px 28px;
  font-size: 15.5px;
  line-height: 1.7;
  color: #444;
  white-space: pre-line;
}

.modal-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid #f1f1f1;
  text-align: right;
}

.modal-close-button {
  padding: 12px 32px;
  background: #222;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-button:hover {
  background: #000;
}

/* 공지사항 헤더와 상자 사이 간격 벌리기 */
.notice-section .notice-header {
  margin-bottom: 32px;     /* ← 이 숫자를 조정하면 됩니다 */
}

/* 필요하면 더 벌리고 싶을 때 */
.notice-section .notice-grid {
  margin-top: 8px;         /* 추가 여백 */
}

.notice-column-header {
  margin-bottom: 28px !important;
}
/* ====================== 모바일 공통 (메인 등) ====================== */
@media (max-width: 768px) {
  .intro {
    margin: 12px 12px 8px;
    padding: 0 4px;
  }

  .intro h1 {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .intro p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .quick-nav {
    padding: 16px 12px 24px;
    gap: 12px;
  }

  .quick-card {
    min-width: 100%;
    flex: 1 1 100%;
    padding: 18px 16px;
  }

  /* 모바일: 호버 없이 서브메뉴 노출 */
  .quick-card .sub-menu {
    max-height: none;
    opacity: 1;
    overflow: visible;
  }

  .sub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .sub-grid a {
    display: block;
    padding: 10px 6px;
    min-height: 44px;
    text-align: center;
    box-sizing: border-box;
  }

  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
  }

  .tier-card {
    padding: 14px 10px;
  }

  .notice-section {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 32px;
  }

  .notice-column {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .tiers {
    grid-template-columns: 1fr;
  }

  .sub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
