

  

  header {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
  }

  header nav ul li {
    margin: 0 20px;
  }

  header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
  }

  main {
    padding: 40px 0;
    background-color: #f8f8f8;
  }

  .content-wrapper {
    width: 80%;
    margin: 0 auto;
  }

  p {
font-size: 1.3rem; /* 필요 시 1.5rem 정도로 키울 수도 있어요 */
line-height: 1.8;  /* 줄간격도 넉넉하게 주면 가독성이 좋아져요 */
}

/* ✅ 공유 버튼 스타일 */
.custom-share {
display: flex;
gap: 8px;
margin: 20px 0;
justify-content: flex-end;
}

.custom-share .share {
display: flex;
align-items: center;
gap: 6px;
padding: 1px 8px; /* 🔽 높이 줄임 */

border: none;
border-radius: 16px;
font-size: 0.9rem;
color: #fff;
cursor: pointer;
text-decoration: none;
transition: background 0.3s ease;
font-weight: 500;
}


.custom-share .share img {
height: 30px;
}

.custom-share .kakao {
background-color: #fee500;
color: #3c1e1e;
}

.custom-share .facebook {
background-color: #1877f2;
}

.custom-share .twitter {
background-color: #1da1f2;
}

.custom-share .share:hover {
filter: brightness(0.9);
}

.custom-share .copy {
background-color: #6f42c1;
color: #fff;
}


  @media (max-width: 768px) {
    .content-wrapper {
      width: 90%;
    }
  }

  section h1, section h2 {
    font-size: 2rem;
    color: white;
    text-align: center;
  }

  section p {
    font-size: 1.2rem;
    color: #555;
    text-align: center;
  }

  section a {
    display: block;
    text-align: center;
    margin-top: 10px;
  }

  footer {
    background-color: #fff;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e1e1e1;
  }

  .slider-container {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
  }

  .slider {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease;
  }

  .slide {
    max-width: 400px;
    text-align: center;
    padding: 2px;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: slideIn 1s forwards;
    margin: 1px auto;
  }

  .slide a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #007BFF;
    transition: color 0.3s;
  }

  .slide a:hover {
    color: #0056b3;
  }

  @keyframes slideIn {
    0% {
      opacity: 0;
      transform: translateY(50px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }



  /* 기본 네비게이션 스타일 */
nav {
  background-color: #333;
  padding: 10px 20px;
}

.nav-list {
  display: flex;
  justify-content: space-around;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

/* 모바일 메뉴 아이콘 */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  margin: 4px 0;
  background-color: white;
}

/* 반응형 설정 (모바일에서만) */
@media screen and (max-width: 768px) {
  .nav-list {
      display: none;
      width: 100%;
      text-align: center;
  }

  .nav-list li {
      padding: 15px;
  }

  .menu-toggle {
      display: flex;
  }

  .nav-list.active {
      display: block;
  }



 

  /* '메뉴 펼치기' 텍스트 스타일 */
/* '메뉴 펼쳐주세요' 텍스트를 버튼처럼 만들기 */
/* '메뉴 펼쳐주세요' 텍스트를 버튼처럼 만들기 */


.menu-text {
    color: white;
    font-size: 19px;
    display: inline-block;
    background-color: #333; /* 버튼 배경색 */
    padding: 10px 20px; /* 버튼의 여백 */
    border-radius: 30px; /* 둥근 모서리 */
    cursor: pointer; /* 클릭 가능한 스타일 */
}
nav {
        background-color: #333; /* 배경색 */
        padding: 1px; /* 패딩을 조정 */
        border-radius: 30px; /* 동그란 모서리 */
        width: 100%; /* 화면에 맞게 전체 너비 */
        text-align: center; /* 중앙 정렬 */
    }

}

.main-text {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;  /* 중앙 정렬 */
    line-height: 1.6;
        color: #ffffff; /* 원하는 색으로 변경 가능 ex: #f0f0f0, #fff59d 등 */

  }
  
      .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start; /* 왼쪽 정렬 */
}


    .card {
      background-color: rgba(255, 255, 255, 0.6);

      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      width: 300px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: transform 0.2s ease;
    }

    .card:hover {
      transform: translateY(-5px);
    }

    .card img {
  width: 100%;
  aspect-ratio: 16 / 9; /* 가로:세로 비율 유지 */
  object-fit: cover; /* 넘치는 부분은 잘라서 꽉 차게 */
  border-radius: 8px;
}


    .card-body {
      padding: 16px;
    }

    .card-title {
      font-size: 20px;
      margin: 0 0 10px 0;
    }

    .card-text {
      font-size: 16px;
      color: #555;
    }

    .card a.btn {
      display: inline-block;
      margin-top: 12px;
      padding: 10px 15px;
      background-color: #007bff;
      color: white;
      text-decoration: none;
      border-radius: 6px;
      text-align: center;
    }

    .card a.btn:hover {
      background-color: #0056b3;
    }

       @media (max-width: 768px) {
      .card {
        width: 99%;
      }
    }


  
    .menu-buttons {
      display: flex;
      gap: 10px;
      margin-bottom: 10px;
    }
    .menu-buttons button {
      flex: 1;
      padding: 10px;
      font-size: 16px;
      border: none;
      cursor: pointer;
      color: white;
      border-radius: 4px;
    }
    #open-btn {     background-color: rgba(0, 0, 0, 0.4);  /* 반투명 검정 */
}
    #close-btn {     background-color: rgba(0, 0, 0, 0.4);  /* 반투명 검정 */
 }

    #main-menu {
      display: none;
      background-color: rgba(0, 0, 0, 0.4);;
      list-style: none;
      padding: 0;
      border: 1px solid #ccc;
      max-width: 92%;
    }
    #main-menu > li {
      border-bottom: 1px solid #cccccc;
      position: relative;
      padding: 10px;
    }
   #main-menu > li > a {
  color: #ffffff;
  text-decoration: none;
    display: block;           /* 블록 요소로 만들어야 너비 100% 적용 가능 */
  text-align: center;       /* 글자 가운데 정렬 */
}


    /* 서브메뉴 */
    .submenu {
      display: none;
      list-style: none;
      padding-left: 2px;
      background-color: black;
      margin-top: 10px;
      border-radius: 4px;
        text-align: center;

    }
    .submenu li {
      padding: 5px 0;
    }
    .submenu li a {
      color: #c12c2c;
      text-decoration: none;
    }

    /* 서브메뉴 버튼 */
    .submenu-buttons {
      display: inline-flex;
      gap: 5px;
      margin-left: 10px;
      vertical-align: middle;
    }
    .submenu-buttons button {
      padding: 3px 8px;
      font-size: 12px;
      cursor: pointer;
      border: none;
      border-radius: 3px;
      color: white;
    }
    .sub-open-btn { background-color: #007bff; }
    .sub-close-btn { background-color: #6c757d; }


 #main-menu a {
  color: white; /* 원하는 색으로 변경 가능 */
  text-decoration: none; /* 밑줄 제거 */
  cursor: pointer; /* 클릭 모양 유지 */
}


/* PC용 (가로 폭 768px 이상) */
@media (min-width: 768px) {
  /* PC에선 메뉴 항상 보이게 */
  #main-menu {
    display: block !important;
  }
  /* PC에선 메뉴 열기/닫기 버튼 숨김 */
  .menu-buttons {
    display: none;
  }
}


/* 기본 모바일 세로 메뉴 유지 */
@media (min-width: 768px) {
  #main-menu {
    display: flex !important;
    justify-content: center;  /* 항목 가운데 정렬 */
    gap: 40px;
    padding: 0;
    margin: 0 auto;            /* 전체 메뉴를 중앙으로 정렬 */
    width: fit-content;        /* 메뉴 너비를 내용만큼만 */
    background: none;
    border: none;
  }

  #main-menu > li {
    min-width: 250px;
    text-align: center;
    border: none;
    padding: 10px 0;
  }

  #main-menu > li > a {
    display: block;
    font-size: 18px;
  }

  .menu-buttons {
    display: none;
  }

  .submenu {
    margin-top: 10px;
  }
}

@media (min-width: 768px) {
  #main-menu > li {
    display: flex;
    flex-direction: column; /* 수직 배치 */
    align-items: center;
    position: relative;
  }

  #main-menu > li > div.menu-top {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .submenu-buttons {
    display: inline-flex;
    align-items: center;
  }

  .submenu {
    margin-top: 10px;
    width: 100%;
  }
}
@media (min-width: 768px) {
  #main-menu > li {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .menu-top {
    display: flex;
    align-items: center;
    gap: 8px; /* 글자와 버튼 사이 여백 */
  }

  .submenu-buttons {
    display: flex;
    gap: 4px;
  }

  .submenu {
    margin-top: 10px;
  }

 
}

/* 동영상 배경 스타일 */
#background-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* 내용을 덮지 않도록 가장 아래로 보냄 */
    background-size: cover;
    filter: brightness(70%); /* 동영상 밝기 조절 (오버레이 대용 또는 함께 사용) */
}

/* 오버레이 스타일 */
#video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;  /* 가장 위에 나오도록 */
  pointer-events: none; /* 클릭 막지 않도록 */
}


/* 내용이 오버레이 위에 보이도록 z-index 설정 */
body {
    position: relative; /* z-index를 사용하기 위해 position 설정 */
    z-index: 1; /* 오버레이 위에 보이도록 설정 */
    /* Keep existing body styles like padding */

     font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


@media (max-width: 768px) {
  .menu-top {
    display: flex;
    flex-direction: row;       /* 가로 정렬 유지 */
    justify-content: center;   /* 전체 가운데 정렬 */
    align-items: center;
    gap: 10px;                 /* 글자와 버튼 사이 여백 */
  }

  .menu-top a {
    color: #ffffff;
    text-align: center;
    display: inline-block;
  }

  .submenu-buttons {
    display: flex;
    gap: 5px;
  }
}
