@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

* {
  font-family: "Pretendard Variable";
}

html,
body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-thumb {
  width: 8px;
  border-radius: 20px;
  background-color: #1d1d1d;
}

[data-fade] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 1s ease;
}

[data-fade].fade-up-visible {
  opacity: 1;
  transform: translateY(0);
}

a {
    text-decoration: none;
    color: inherit;
}

nav {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    position: fixed;
    display: flex;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    z-index: 999;
}

nav > .nav-container {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav.list {
    border-bottom: 1px solid #F5F5F5;
}

nav .items {
    color: #000;
    font-size: 1.2em;
    font-weight: 600;
}

nav.detail {
    background-color: #542F6B;
}

nav.detail img {
    filter: invert(1);
}

nav.detail .items {
    color: #fff;
}

nav.detail .active .items {
    color: #000;
}

nav.scrolled {
    width: 100%;
    max-width: none;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-bottom: none;
    z-index: 999;
}

nav.scrolled .items {
    color: #000;
}

nav.detail.scrolled img {
    filter: invert(0);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 3px;
    transition: all 0.3s ease;
}

nav.detail .hamburger span {
    background-color: #fff;
}

nav.scrolled .hamburger span {
    background-color: #000;
}

.hamburger.active span {
    background: #000 !important;
}

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

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

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

.nav-menu {
    display: flex;
    gap: 1em;
}


footer {
    width: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 0;
}

footer > .footerContent {
    width: 80%;
    padding: 20px 0;
}

footer > .footerContent > .mainContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer > .footerContent > .mainContent > .left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

footer > .footerContent > .mainContent > .left > p {
    color: #606060;
}

footer > .footerContent > .mainContent > .left > .headLin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

footer > .footerContent > .mainContent > .left > .headLin p {
    color: #fff;
}

footer > .footerContent > .mainContent > .left > .headLin > img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

footer > .footerContent > .mainContent > .left > .headLin > img.rotate {
    transform: rotate(180deg);
}

footer > .footerContent > .underContent {
    height: 0;
    padding: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

footer > .footerContent > .underContent.show {
    height: 136px;
    padding: 20px 0;
}

footer > .footerContent > .underContent > p {
    color: #fff;
    line-height: 2;
    margin: 0;
}

.container {
    padding: 6em 0;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
}

.contents > article {
    display: block;
    margin: 5em 0;
}

.contents > article:first-child {
    margin-top: 0;
    padding-top: 5em;
}

.content_head {
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
}

.content_head > img {
    margin-right: 1em;
    max-width: 30px;
    border-radius: 50%;
}

.content_body > img {
    border: 1px solid #F5F5F5;
    margin-bottom: 1em;
    width: 100%;
}

.content_desc {
    line-height: 1.5em;
    margin-bottom: 1em;
}

.content_footer {
    width: 100%;
}

.content_footer > .btn.btn-primary {
    width: 100%;
    padding: 0.8em 1em;
    border-radius: 5em;
    background-color: #542F6B;
    color: #fff;
    border: none;
    display: block;
    text-align: center;
    box-sizing: border-box;
    font-size: 1.1em;
}

.content_footer > .btn.btn-primary:hover {
    background-color: #8d43bb;
}

.detail_head {
    background-color: #542F6B;
    padding: 12em 0 2em;
    text-align: center;
    color: #fff;
}

.detail_head > h1 {
    font-size: 3em;
    word-break: keep-all;
    width: 90%;
    margin: 0 auto;
}

.detail_content {
    margin: 3em auto;
    width: 80%;
    max-width: 900px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.detail_content * {
    max-width: 100%;
    box-sizing: border-box;
}

.detail_content img,
.detail_content video {
    max-width: 100%;
    height: auto;
}

.detail_content iframe  {
    max-width: 100%;
}


.map_container {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.map_container > div:nth-child(2) {
    display : none;
}

/* Fixed Contact Icons */
.fixed-contact-icons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.contact-icon {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.root_daum_roughmap {
    margin: 0 auto !important;
    display: flex;
    flex-direction: column;
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.5em;
    }

    p {
        margin: 0.5em 0;
        font-size: 0.9em;
    }

    .content_body > h1 {
        font-size: 1.3em;
    }

    .detail_head > h1 {
        font-size: 2em;
    }

    .content_desc {
        line-height: 1.2em;
    }

    .detail_content > p > iframe {
        max-width: 100%;
        height: auto;
    }

    .detail_content > p > img {
        max-width: 100%;
        height: auto;
    }

    .fixed-contact-icons {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 0;
        padding-right: 10%;
        gap: 2em;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .items {
        width: 100%;
        padding-left: 15%;
        font-size: 1.5em;
        color: #000;
        font-weight: 600;
        transition: padding-left 0.3s ease;
    }

    .nav-menu .items:hover {
        padding-left: 18%;
    }

    /* Footer responsive styles */
    footer > .footerContent {
        width: 90%;
    }

    footer > .footerContent > .mainContent {
        flex-direction: column;
        align-items: flex-start;
    }

    footer > .footerContent > .mainContent > .left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }

    footer > .footerContent > .mainContent > .left > p {
        font-size: 0.75em;
        line-height: 1.4;
    }

    footer > .footerContent > .mainContent > .left > .headLin {
        width: 100%;
        justify-content: flex-start;
    }

    footer > .footerContent > .mainContent > .left > .headLin p {
        font-size: 0.9em;
    }

    footer > .footerContent > .underContent.show {
        height: auto;
        min-height: 136px;
    }

    footer > .footerContent > .underContent > p {
        font-size: 0.85em;
        line-height: 1.6;
    }
}

@media (max-width: 479px) {
    .fixed-contact-icons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .logo {
        width: 150px;
    }

    .contents > article:first-child {
        margin-top: 0;
        padding-top: 2em;
    }

    .detail_head {
        padding: 8em 0 2em;
    }
}

