body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #333;
}

header {
    background: #222;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* 배너 섹션 전체 너비와 높이 지정 */
.banner {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

/* 헤더를 배너 위에 오버레이 */
.banner-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    padding: 20px 0;
    text-align: center;
    z-index: 2;
    color: #fff;
}

.banner-header h1,
.banner-header p {
  margin: 0;
  padding: 5px;
}

.banner-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  color: #fff;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}

.banner-message h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.banner-message p {
  margin: 0;
  font-size: 1.2rem;
}

.slideshow-container, .slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
  position: relative;
  display: none;
  text-align: center;
  color: #fff;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  padding: 20px;
  background: rgba(0, 0, 0, 0);
  border-radius: 8px;
  text-align: center;
}

.slide-message h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}
  
.slide-message p {
    margin: 0;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.fade {
    animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.dots-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    margin-top: 10px;
}

.dot {
    height: 15px;
    width: 15px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: #666;
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.card {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

a {
    color: inherit;
    text-decoration: none;
  }
  
.card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.card h3 {
    margin-top: 15px;
    font-size: 1.2rem;
}

.card p {
    color: #666;
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 5px;
    width: 80%;
    height: 80%;
    overflow: hidden;
}
  
#modalIframe {
    width: 100%;
    height: 100%;
    border: none;
}
  
.close-button {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
}

footer {
    background: #eee;
    text-align: center;
    padding: 16px;
    font-size: 0.85rem;
    color: #666;
    margin-top: 40px;
}

.hamburger {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 20;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.side-menu {
    position: fixed;
    top: 0;
    left: -270px;
    width: 220px;
    height: 100vh;
    background: rgba(9, 14, 32, 0.9);
    color: #fff;
    padding: 80px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: left 0.3s ease;
    z-index: 19;
}

.side-menu.open {
    left: 0;
}

.side-menu .menu-title {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    opacity: 0.7;
}

.side-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-menu a:last-child {
    border-bottom: none;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 18;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}
