    /* 전체 기본 설정 */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    body {
      font-family: 'Segoe UI', 'Noto Sans KR', sans-serif;
      color: #082444;

       /* 배경 이미지 + 연한 오버레이 */
     background-image: 
     linear-gradient(rgba(232,227,217,0.92), rgba(232,227,217,0.92)),
     url('background.jpg');
     background-size: cover;           /* 화면 꽉 채우기 */
     background-repeat: no-repeat;     /* 반복하지 않음 */
     background-position: center;      /* 가운데 정렬 */
     background-attachment: fixed;     /* 스크롤해도 고정 */
    }
    a {
      text-decoration: none;
      color: #1C252D;
      transition: color 0.3s;
    }

/* 헤더 전체 flex */
.header-top {
  display: flex;
  align-items: center;       /* 세로 중앙 정렬 */
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: rgba(255,255,255,0); /* 완전 투명 */
  box-shadow: none;                       /* 그림자 제거 */
  gap: 0.5rem; 
}

/* 로고 */
.logo-inline {
  height: 150px;              /* 로고 크기 */
  width: auto;
  flex-shrink: 0;            /* 로고 줄어들지 않게 */
}

/* 로고 옆 텍스트 */
.logo-and-text {
  display: flex;
  align-items: center;    /* 세로 중앙 맞춤 */
}

.header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 0.3rem;   /* 로고 바로 옆 */
  margin-top : 3.3rem;
}

.header-top a {
  color: #082444;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8); /* 배경 대비 */
}

.menu-toggle span {
  background-color: #082444;             /* 햄버거 선 대비 유지 */
  box-shadow: 1px 1px 2px rgba(255,255,255,0.7);
}

.header-text h1 {
  font-size: 1.2rem;         /* 제목 줄이기 */
  margin: 0;
}

.header-text p {
  font-size: 0.8rem;         /* 본문 줄이기 */
  margin: 0.2rem 0 0 0;
  line-height: 1.4;
}

/* 오른쪽 버튼 컨테이너 */
.top-right-buttons {
  display: flex;          /* 버튼 가로 정렬 */
  gap: 1rem;              /* 버튼 간격 */
  align-items: flex-start; /* 기본은 위쪽 정렬 */
  margin-top: 5.5rem;     /* 버튼 전체 아래로 내려줌 */
}

/* 버튼 스타일 */
.top-right-buttons a {
  text-decoration: none;
  color: #082444;
  font-weight: 600;
}

.top-right-buttons a:hover {
  color: #D9D7CC;
}


/* 카드 그리드 컨테이너 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2열 */
  gap: 2rem;                             /* 카드 간격 */
  max-width: 900px;                       /* 최대 넓이 */
  margin: 0 auto;                         /* 화면 가운데 정렬 */
  position: absolute;                      /* 화면 중간 고정 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);       /* 완전 중앙 */
  width: 90%;                             /* 반응형 */
}

/* 카드 스타일 */

.card-grid .card {
  background-color: #F2F1ED;
  border-left: 6px solid rgba(8, 36, 68, 0.35); /* 투명 남색 */
  border-radius: 15px;
  padding: 2rem 1rem;
  text-align: center;

  box-shadow:
    0 8px 20px rgba(8, 36, 68, 0.12),
    0 1px 4px rgba(0, 0, 0, 0.06);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-grid .card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 28px rgba(8, 36, 68, 0.18),
    0 3px 6px rgba(0, 0, 0, 0.08);
}

.card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

    /* 푸터 */
footer {
  background-color: #1F2B36;
  color: #E8E3D9;
  text-align: center;
  padding: 25px 0;   /* ← 위아래 여백 늘리기 */
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  font-size: 9pt;
}

/* 모바일 반응형 */
@media (max-width: 600px) {
  .card-grid {
    display: flex;
    flex-direction: column;
    position: static;  
    transform: none;  
    margin: 2rem auto;
    width: 90%;
    gap: 1.5rem;
  }

  .header-top {
    flex-direction: column;       
    align-items: center;          
    text-align: center;           
    gap: 0.5rem;
  }

  .logo-and-text {
    flex-direction: column;       
    align-items: center;          
    margin-top: 0;                
  }

  .header-text {
   display: none;      
  }

  .top-right-buttons {
    margin-top: 10px;             
    justify-content: center;    /* ← 버튼 오른쪽 정렬 */
    width: 100%;                  /* 오른쪽 끝으로 붙도록 전체 넓이 확보 */
  }

  main {
    margin-bottom: 120px;         
  }
}
