* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    flex-direction: column;
    align-items: flex-start;
}

.header .header-top {
    height: 4rem;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.header .header-top .left-section {
    flex: 1;
    display: flex;
    justify-content: left;
    align-items: center;
}
.header .header-top .left-section .lnb-open-btn {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 40px;
    color: #808080;
}
.header .header-top .center-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header .header-top .center-section h1{
    white-space: nowrap;
}

.header .header-top .right-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header .breadcrumb {
    height: 2.75rem;
    padding: 10px 20px;
    font-size: 0.9em;
    color: #666;
}

.header {
    top: calc(-3.925rem + (2.75rem + 1px));
}

.header .breadcrumb a {
    color: #333;
    text-decoration: none;
}

.header .breadcrumb a:hover {
    text-decoration: underline;
}

.header .breadcrumb .separator {
    margin: 0 5px;
}

.lnb {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: #fff;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
}

.lnb.open {
    left: 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.lnb .lnb-close-btn {
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    padding: 10px 0 0 10px;
    margin: 0 0 0 5px;
}

.lnb-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    visibility: hidden;
    opacity: 0;
    transition: background-color 0.3s ease-in-out, visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 999;
}

.lnb-mask.active {
    visibility: visible;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.2);
}

.lnb .lnb-menu {
    list-style: none;
}

.lnb .lnb-menu > li {
    margin-bottom: 10px;
}

.lnb .lnb-menu > li  > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.lnb .lnb-menu .lnb-submenu {
    list-style: none;
    padding-left: 20px;
    display: none;
}

.lnb .lnb-menu .lnb-submenu > li > a {
    display: block;
    padding: 8px 20px;
    color: #666;
    text-decoration: none;
}

.lnb .lnb-menu > li.active .lnb-submenu {
    display: block;
}

.lnb .lnb-menu > li > a .arrow {
    transition: transform 0.3s ease;
}

.lnb .lnb-menu > li.active > a .arrow {
    transform: rotate(180deg);
}

.main {
    padding: 20px;
}

.main .card-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main .card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    cursor: pointer;
}

.main .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.main .card-content {
    padding: 15px;
}

.main .card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.main .card-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.footer {
    background-color: #333;
    color: #888;
    padding: 20px;
    font-size: 14px;
}

.footer .family-site {
    margin-bottom: 20px;
}

.footer .family-site h3 {
    color: #aaa;
    margin-bottom: 10px;
}

.footer .family-site ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.footer .family-site li {
    margin-bottom: 10px;
    margin-left: 15px;
}

.footer .family-site a {
    color: #fff;
    text-decoration: none;
}

.footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer .footer-links a {
    color: #888;
    text-decoration: none;
    margin-right: 15px;
    margin-bottom: 10px;
}

.gnb {
    display: none;
}

/* PC 레이아웃 */
@media (min-width: 1024px) {
    .header .gnb {
        display: block;
        position: relative;
        background-color: #fff;
        border-bottom: 1px solid #eee;
    }

    .header .gnb-menu {
        display: flex;
        justify-content: space-between;
        list-style: none;
        padding: 0;
        margin: 0;
        font-size: 1.2rem;
    }

    .header .gnb-menu > li {
        flex: 1;
        text-align: center;
        padding: 15px 0;
    }

    .header .gnb-menu > li > a {
        color: #333;
        text-decoration: none;
        font-weight: bold;
    }

    .header .gnb-submenu-container {
        display: none;
        position: absolute;
        left: 0;
        width: 100%;
        background-color: #f8f8f8;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 1000;
    }

    .header .gnb-submenu-wrapper {
        display: flex;
        justify-content: space-between;
    }

    .header .gnb-submenu {
        flex: 1;
        list-style: none;
        padding: 0 10px;
        margin: 0;
    }

    .header .gnb-submenu li {
        text-align: center;
        margin-bottom: 10px;
    }

    .header .gnb-submenu a {
        color: #666;
        text-decoration: none;
    }

    .header .gnb:hover .gnb-submenu-container {
        display: block;
    }

    .header .lnb-open-btn {
        display: none;
    }

    .lnb {
        display: none;
    }

    .main .card-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .main .card {
        width: calc(33.333% - 14px); /* 3열 레이아웃, 간격 고려 */
        margin-bottom: 20px;
    }
}

/* 태블릿 레이아웃 */
@media (min-width: 768px) and (max-width: 1023px) {
    .main .card-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .main .card {
        width: calc(50% - 10px); /* 2열 레이아웃 */
        margin-bottom: 20px;
    }
}
