/* style/main.css - 문제가 되는 스타일이 제거된 버전 */

/* Main Visual Section (메인 이미지) */
.main-visual {
    margin-top: 20px;
    text-align: center;
}

.main-visual img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Scrollable Grid Wrapper */
.scrollable-grid-wrapper {
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
}

/* Category Navigation Section */
.category-navigation {
    padding: 30px 0;
    background-color: #f0f0f0;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 카테고리 아이템의 세부 디자인은 유지 */
.category-nav-item {
    text-align: center;
    text-decoration: none;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.category-nav-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.category-nav-item p {
    margin: 0;
    font-weight: bold;
    font-size: 1.1em;
}

/* Product Thumbnails Section */
.product-thumbnails {
    padding: 40px 0;
    background-color: #fff;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-thumbnails h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.2em;
}

/* 제품 카테고리 아이템의 세부 디자인은 유지 */
.product-category-display-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-category-display-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.product-category-display-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
    color: #007bff;
}

/* Video Section */
.video-section {
    padding: 40px 0;
    margin-top: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.video-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.2em;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.video-grid iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .product-thumbnails h2,
    .video-section h2 {
        font-size: 1.8em;
    }
}

/* Slideshow container */
.slideshow-container {
    width: 100%; /* 슬라이드쇼 전체 크기 100%로 수정 */
    position: relative;
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16 / 9; /* 16:9 비율 유지 */
}

.slides-wrapper {
    display: flex;
    height: 100%;
    transition: transform 1.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 컨테이너에 맞춰 이미지 비율 유지 및 자르기 */
    display: block;
}

/* Announcements and Contact Section Layout */
.main-flex-container {
    display: flex;
    justify-content: space-between;
    gap: 40px; /* 간격 추가 */
}

.recent-announcements-wrapper {
    flex: 1; /* 공지사항이 차지할 공간 */
    min-width: 0;
}

.main-contact-wrapper {
    flex: 1; /* 빠른 문의가 차지할 공간 */
    min-width: 0;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto; /* Center vertically and horizontally */
    padding: 40px;
    border: 1px solid #888;
    width: 80%; /* Could be more specific */
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
}

.modal-content h3 {
    color: #007bff;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
}

.modal-button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.modal-button:hover {
    background-color: #0056b3;
}

/* Product Showcase Section */
.product-showcase {
    padding: 40px 0;
    background-color: var(--color-light);
}

.product-showcase h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
}

.product-swiper {
    width: 100%;
    overflow: hidden;
    display: none; /* FOUC 방지 */
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 320px; /* 슬라이드 높이 고정 (이미지 + 캡션) */
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 250px; /* 고정 높이 설정 */
    object-fit: cover; /* 이미지 비율 유지하며 꽉 채우기 */
}

.product-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    font-size: 1.2em;
    font-weight: bold;
}