/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #34AD54;
    --light: #EEF9FF;
    --dark: #091E3E;
}

/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Heading ***/
h1:lang(en)
{
    font-family: 'Smooch Sans', sans-serif;
    font-weight: 700 !important;
}

h1:lang(ko)
{
    font-family: sans-serif;
    font-weight: 600 !important;
}

h2,
.fw-bold {
    font-family: 'Smooch Sans', sans-serif;
    font-weight: 800 !important;
}

h2:lang(ko)
{
    font-family: sans-serif;
    font-weight: 500 !important;
}

h3:lang(en)
{
    font-family: 'Smooch Sans', sans-serif;
    font-weight: 500 !important;
    font-size: 2rem;
}

h4:lang(en)
{
    font-family: 'Smooch Sans', sans-serif;
    font-weight: 600 !important;
    font-size: 2.1rem;
}

h5:lang(en)
{
    font-family: 'Smooch Sans', sans-serif;
    font-weight: 700 !important;
    font-size: 2rem;
}

h5:lang(ko)
{
    font-family: sans-serif;
    font-weight: 700 !important;
    font-size: 1.5rem;
}

h6,
.fw-medium {
    font-weight: 600 !important;
}

h6:lang(ko)
{
    font-family: sans-serif;
    font-weight: 400 !important;
    font-size: 1rem;
    color: #FFFFFF;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
    margin-bottom: 5px; /* 버튼 아래 간격 추가 */
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Carousel ***/
.carousel-caption {
    top: 80px;
    left: -10px;
    right: 0;
    bottom: 0;
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@keyframes section-title-run { 0% { left: 0; } 50% { left: 145px; } 100% { left: 0; } }
@-webkit-keyframes section-title-run { 0% { left: 0; } 50% { left: 145px; } 100% { left: 0; } }

@keyframes section-title-run-center { 0% { left: 50%; margin-left: -75px; } 50% { left: 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; } }
@-webkit-keyframes section-title-run-center { 0% { left: 50%; margin-left: -75px; } 50% { left: 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; } }

@keyframes section-title-run-sm { 0% { left: 0; } 50% { left: 85px; } 100% { left: 0; } }
@-webkit-keyframes section-title-run-sm { 0% { left: 0; } 50% { left: 85px; } 100% { left: 0; } }


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;

}

/* News Img Customize */
.news-img {
    aspect-ratio: 4 / 3; /* 4:3 비율 유지 */
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지 비율 유지하며 꽉 채움 */
    display: block;
}

/* Album Img Customize */
.album-img {
    aspect-ratio: 1 / 1; /* 4:3 비율 유지 */
    overflow: hidden;
}

.album-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지 비율 유지하며 꽉 채움 */
    display: block;
}

/* 변화가 부드럽게 일어나도록 */
.album-item .album-img img,
.news-item .news-img img,
.team-item .team-img img,
.blog-item .blog-img img  {
    transition: .5s;
}

/* 블로그 아이템 마우스 호버시 스케일 확대 */
.album-item:hover .album-img img,
.news-item:hover .news-img img,
.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header
{
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/main-page-1.jpg) center center no-repeat;
    background-size: cover;
}

.bg-header-mu
{
    background: linear-gradient(rgba(77, 77, 121, 0.6), rgba(18, 18, 43, 0.9)), url(../img/mutale-top.jpg) center 24% no-repeat;
    background-size: cover;
}

.bg-header-alpha
{
    background: linear-gradient(rgba(77, 77, 121, 0.6), rgba(18, 18, 43, 0.9)), url(../img/alphatale-top.jpg) center 24% no-repeat;
    background-size: cover;
}

.bg-header-beta
{
    background: linear-gradient(rgba(77, 77, 121, 0.3), rgba(17, 17, 17, 0.9)), url(../img/betatale-top.jpg) center 24% no-repeat;
    background-size: cover;
}

.bg-header-notice
{
    background: linear-gradient(rgba(49, 49, 53, 0.6), rgba(18, 18, 43, 0.9)), url(../img/notice-page.jpg) center 24% no-repeat;
    background-size: cover;
}

.link-animated a 
{
    transition: .5s;
}

.link-animated a:hover 
{
    padding-left: 10px;
}

.footer-brand
{ 
        width: auto;
        height: auto;
        opacity: 100;
}

@media (min-width: 767.98px)
{
    .footer-about 
    {
        margin-bottom: -75px;
    }
}

/* 아이콘과 텍스트를 한 줄로 배치, 작은 화면에서는 자동 줄바꿈 */
.container-fluid .d-inline-flex {
    display: inline-flex;
    align-items: center;  /* 세로 정렬 */
    flex-wrap: wrap; /* 텍스트가 길어지면 자동으로 줄바꿈 */
}

/* 이메일 텍스트가 길어지면 줄바꿈 */
.container-fluid small {
    margin-right: 10px;
}

/* 작은 화면에서 텍스트가 줄바꿈되도록 */
@media (max-width: 768px) {
    .container-fluid small {
        white-space: normal; /* 작은 화면에서 줄바꿈 가능하게 설정 */
    }
}

/* 왼쪽 라인 */
.quote-style {
    border-left: 4px solid #009ecf; /* 원하는 색상으로 */
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #333;
    font-size: 1.1rem; /* 폰트 크기 조절 */
  }

  .gallery-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
  }
  
  .gallery-thumbnail .caption {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background-color: rgba(0, 0, 0, 0.6); /* 반투명 검정 배경 */
    color: #fff;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
  }

/* 갤러리 이미지 호버 효과 */
.gallery-thumbnail:hover img
{
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

.gallery-thumbnail .caption-right 
{
    left: auto;
    right: 12px;
}

.sns-icons
{
    position: fixed;
    bottom: 40px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
}

.sns-icons a 
{
    color: #000;
    font-size: 20px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.sns-icons a:hover 
{
    opacity: 0.6;
}
  
.copyright 
{
    position: fixed;        /* 화면 고정 */
    bottom: 10px;           /* 하단 여백 */
    left: 20px;             /* 좌측 여백 */
    font-size: 19px;        /* 글씨 크기 */
    color: #000000;       /* 글자 색상 */
    
    /* font-family: 'Arial', sans-serif; */  /* 기본 폰트 (비활성화됨) */

    font-family: 'Smooch Sans', sans-serif; /* 사용 폰트 */
    letter-spacing: 0.5px;                  /* 글자 사이 간격 */
    z-index: 1000;                          /* 우선순위 */
}

.copyright-text
{
    left: 20px;
    font-size: 14px;
    color: #5e5959;
    font-family: 'Nunito', sans-serif;
    letter-spacing: 0.5px;
    z-index: 1000;
    margin: 0 38px;
}

.debut-label 
{
    color: #383838;
    font-weight: 500;
    transition: all 0.3s ease;
}

.thumbnail-img 
{
    transition: 0.3s ease;
}

.overlay 
{
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.play-icon 
{
    font-size: 48px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* hover 효과 */
div[onclick]:hover .overlay 
{
    background: rgba(0, 0, 0, 0.5);
}

div[onclick]:hover .play-icon 
{
    opacity: 1;
}


.album-section img
{
    max-width: 100%;
    height: auto;
}

.album-section .row
{
    margin-left: 0;
    margin-right: 0;
}

.track-section
{
    max-width: 800px;
    margin: 0 auto;
}

.track-list 
{
    max-width: 100%;
    margin: auto;
}

.track-list hr
{
    margin: 0;
    border: none;
    border-top: 1px solid #ccc;
}

.track-item 
{
    padding: 12px 0;
    font-size: 1rem;
}

.track-divider 
{
    height: 2px;
    background-color: #000;
    width: 100%;
    margin-bottom: 20px;
}

.hidden-content
{
    display: none;
}

.toggle-button
{
    cursor: pointer;
    padding: 6px 12px;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    margin-top: 10px;
}

/* 갤러리 페이지 */
.gallery-pagination
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;      /* 간격 */
    font-family: 'Helvetica Neue', sans-serif;
    margin-top: 30px;
}

.nav-btn
{
    background: transparent;
    border: none;
    font-size: 24px;
    color: #a79c9c;
    cursor: pointer;
    padding: 4px 10px;
    transition: color 0.2s ease;
}

.nav-btn:hover
{
    color: #7759bb;
}

.page-number
{
    font-weight: normal;
    font-size: 15px;
    color: #333;
}

.page-number span
{
    font-weight: normal;
}

#current-page
{
    font-weight: bold;
    font-size: 18px;
}

.divider
{
    margin: 0 6px;
    color: #3869d3;
}

.back-link {
  --back-color: #333;
  color: var(--back-color);
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  margin-left: 20px;

  transition: all 0.25s ease;
  position: relative;
}

.back-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
  opacity: 0.6;
}

.back-link:hover {
  color: #747481;
  transform: translateY(-2px);
}

.back-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.main-subtitle.hero-tagline
{
    font-family: 'Smooch Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #575050;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
    padding: 12px 22px;
    border-radius: 999px;
    display: inline-block;
    margin-left: -200px;
}

@media (max-width: 768px)
{
    .main-subtitle.hero-tagline
    {
        font-size: 1.2rem;
        color: #ffffff;
        background: rgba(0, 0, 0, 0.24);
        padding: 10px 18px;
        letter-spacing: 0.06em;
        margin-left: 0px;
    }
}