* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
  }

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

.my-bg {
  background-image: url('assets/images/backgroundimg.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 50vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
  header {
 /*   background-color: #004080; */
    color: white;
    text-align: center;
    padding: 1rem;
    /* position: sticky; */
    top: 0;
    z-index: 1000;
	margin-top: 20px;
  }

header a:link,
header a:visited {
  color: rgb(153, 153, 153);
  text-decoration: none;
}

header a:hover,
header a:focus {
  color: rgb(107, 107, 107);
}

.responsive-center-img {
  max-width: 30%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

  
  main {
    flex: 1; /* 이 줄을 추가해서 main이 중간 공간을 차지 */
    
    /* 원래 코드 --> padding: 2rem 1rem; */
    padding: 2rem 1rem;
    
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1600px;
    margin: auto;
  }
  
  .card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .card img {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .download-btn {
    display: block;
    margin: 1rem auto 1rem auto;
    padding: 0.6rem 1.2rem;
    background-color: #004080;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
    text-align: center;
    width: fit-content;
  }
  
  .download-btn:hover {
    background-color: #0066cc;
  }

footer {
  text-align: center;
  padding: 1rem;
  background-color: #eee;
  /* position: fixed;  <= 필요하면 주석 처리 */
  /* left: 0; */
  /* bottom: 0; */
  width: 100%;
}


  /*
  footer {
    text-align: center;
    padding: 1rem;
    background-color: #eee;
    /* margin-top: 2rem; */
  }
  */
  /* Tablet: 2 cards per row */
  @media screen and (min-width: 768px) {
    .card {
      flex: 1 1 calc(50% - 2rem);
      max-width: calc(50% - 2rem);
    }
  }

  /* 태블릿 가로~작은 데스크탑: 3개 */
  @media screen and (min-width: 1024px) {
    .card {
      flex: 1 1 calc(33.3333% - 2rem);
      max-width: calc(33.3333% - 2rem);
    }
  }
  
  /* Desktop: 4 cards per row */
  @media screen and (min-width: 1280px) {
    main {
        padding: 6rem 1rem;
    }
    .card {
      flex: 1 1 calc(25% - 2rem);
      max-width: calc(25% - 2rem);
    }
  }