* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb-home {
    color: #333;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

/* Page Banner */
.page-banner {
    background-image: url('/image/category_banner.png');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    width: 100%;
    aspect-ratio: 4.13 / 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 20px 40px;
    min-height: 300px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.page-banner .breadcrumb {
    background-color: transparent;
    padding: 0;
    font-size: 13px;
    color: #666;
    margin-bottom: 40px;
}

/* Admin Actions */
.admin-actions {
    background-color: #f8f9fa;
    padding: 20px 0;
}

.admin-actions .container {
    display: flex;
    justify-content: flex-end;
}

.btn-write {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1064D9;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-write:hover {
    background-color: #0d53b3;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background-color: #fff;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.gallery-item {
    background-color: #fff;
    border: 2px solid #1064D9;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.gallery-item:hover {
    border-color: #1064D9;
    box-shadow: 0 8px 20px rgba(16, 100, 217, 0.15);
    transform: translateY(-5px);
}

.item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.item-image {
    width: 100%;
    height: 320px;
    padding: 15px 15px 0 15px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
}

.item-content {
    padding: 25px 30px;
}

.item-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
}

.item-date {
    font-size: 14px;
    color: #999;
}

/* Responsive */
@media (max-width: 1100px) {
    .page-title {
        font-size: 40px;
    }

    .page-banner {
        padding: 30px 20px 40px;
    }
}

@media (max-width: 900px) {
    .page-title {
        font-size: 38px;
    }

    .page-banner {
        padding: 25px 20px 40px;
    }
}

@media (max-width: 810px) {
    .page-title {
        font-size: 35px;
    }

    .page-banner {
        padding: 22px 20px 40px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        background-image: url('/image/m_category_banner.png');
        aspect-ratio: 4.13 / 1;
        min-height: 200px;
        padding: 30px 15px 30px;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .page-banner .breadcrumb {
        font-size: 12px;
        margin-bottom: 30px;
    }

    .banner-illustration img {
        max-height: 180px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .item-image {
        height: 240px;
    }

    .item-content {
        padding: 20px;
    }

    .item-title {
        font-size: 16px;
    }
}

/* Extra small screens (Z Fold outer screen, etc.) */
@media (max-width: 350px) {
    .container {
        padding: 0 15px;
    }

    .breadcrumb {
        font-size: 12px;
        padding: 12px 0;
    }

    .breadcrumb-separator {
        margin: 0 6px;
    }

    .page-banner {
        min-height: 150px;
        padding: 25px 10px 20px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .page-banner .breadcrumb {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .gallery-section {
        padding: 50px 0;
    }

    .gallery-grid {
        gap: 20px;
    }

    .gallery-item {
        border-radius: 10px;
    }

    .item-image {
        height: 200px;
    }

    .item-content {
        padding: 15px;
    }

    .item-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .item-date {
        font-size: 12px;
    }
}
