/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header styles */
/*
.header {
    background-color: #414851;
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}
*/

.header {
    background-color: #414851;
    color: white;
    padding: 1rem 2rem;          /* 좌우 여백 더 넓게 */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);   /* 살짝 그림자 → 입체감 */
    transition: background-color 0.3s;        /* 스크롤 시 색 변화 가능 */
}

/* 스크롤했을 때 더 진하게 보이게 하는 경우도 많음 */
.header.scrolled {
    background-color: #2c3038;
    padding: 0.8rem 2rem;     /* 살짝 얇아짐 */
}

/* Navigation styles */
.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-menu li {
    margin: 0 0.5rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Main content styles */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-section {
    padding-top: 4rem; /* Offset for sticky header */
    margin-bottom: 4rem;
}

.page-title {
    color: #414851;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #414851;
    font-size: 2rem;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h2 {
    margin-bottom: 1rem;
    color: #444;
}

/* Full page images styles */
.full-page-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.full-page-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.full-page-image img {
    width: 100%;
    min-height: 400px;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Gallery styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    padding: 1rem;
    background-color: #f5f5f5;
    text-align: center;
}

/* Video styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.video-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1rem;
    flex-grow: 1;
}

.video-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.video-info a {
    color: #414851;
    text-decoration: underline;
    font-size: 0.9rem;
}

/* Button styles */
.btn {
    display: inline-block;
    background-color: #414851;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    margin: 0.25rem;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #5a636d;
}

/* Divider styles */
.divider {
    height: 1px;
    background-color: #ddd;
    margin: 3rem 0;
}

.divider.dotted {
    background-image: radial-gradient(circle, #ddd 1px, transparent 1px);
    background-size: 8px 1px;
    background-repeat: repeat-x;
}

/* Footer styles */
.footer {
    background-color: #414851;
    color: white;
    padding: 3rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.company-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #ccc;
}

/* Floating buttons */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1001;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #414851;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.floating-btn:hover {
    transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem;
    }
    
    .site-name {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .nav-menu li {
        margin: 0.25rem;
    }
    
    .nav-menu a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .full-page-image img {
        min-height: 250px;
    }
}
