/* Global Smooth Scroll & Layout Protection: min-width 320px */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Fixed header height compensation */
    min-width: 320px;
    overflow-x: auto;
}

body {
    min-width: 320px;
}

/* Header Styles */
#header {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* 햄버거 버튼 스타일 */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    margin-right: 0.5rem;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler:hover {
    opacity: 0.8;
}

/* 커스텀 햄버거 아이콘 (애니메이션) */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 스크롤 시 햄버거 아이콘 색상 변경 */
#header.scrolled .hamburger-icon span {
    background-color: #212529;
}

/* 햄버거 열렸을 때 X 모양 애니메이션 */
.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler:not(.collapsed) .hamburger-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 모바일 메뉴 펼침 시 배경 블러 (Glassmorphism) */
@media (max-width: 767.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 1rem;
        border-bottom-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .navbar-collapse .navbar-nav {
        gap: 0.5rem;
    }

    .navbar-collapse .nav-link {
        color: #fff !important;
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        transition: background-color 0.2s ease;
    }

    .navbar-collapse .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* 스크롤 시에도 메뉴 배경 유지 */
    #header.scrolled .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    #header.scrolled .navbar-collapse .nav-link {
        color: #212529 !important;
    }

    #header.scrolled .navbar-collapse .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
}

/* PC 버전 메뉴 스타일 */
@media (min-width: 768px) {
    .navbar-nav {
        gap: 1.5rem;
    }

    .navbar-nav .nav-link {
        position: relative;
        padding-bottom: 0.5rem;
        color: #fff !important;
        font-weight: 500;
    }

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: currentColor;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .navbar-nav .nav-link:hover::after {
        width: 80%;
    }
}

/* 스크롤 시 메뉴 글자 색상을 검은색으로 변경 */
#header.scrolled .navbar-brand,
#header.scrolled .nav-link {
    color: #212529 !important;
}

/* 스크롤 시 햄버거 메뉴 아이콘 색상 변경 */
#header.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 37, 41, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 스크롤 시 버튼 스타일 유지 */
#header.scrolled .btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff !important;
}

/* Logo Toggle for Dual Logo System */
.logo-default {
    display: block;
}

.logo-scrolled {
    display: none;
}

#header.scrolled .logo-default {
    display: none;
}

#header.scrolled .logo-scrolled {
    display: block;
}

/* Logo Wrapper & Responsive */
.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-wrapper img {
    height: 50px;
    max-width: 200px;
    object-fit: contain;
}

.logo-text {
    font-weight: 800;
    font-size: 24px;
    color: inherit;
}

@media (max-width: 767.98px) {
    .logo-wrapper img {
        height: 35px;
        max-width: 160px;
    }

    .logo-text {
        font-size: 20px;
    }
}

.offcanvas {
    background: rgba(30, 30, 30, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Header Hide/Show on Scroll */
#header.fixed-top {
    transition: transform 0.4s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
}
#header.header-hidden {
    transform: translateY(-100%);
}

/* Hero Styles */
#hero.hero-section {
    height: 100vh;
    min-height: 600px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    transition: max-width 0.8s ease, border-radius 0.8s ease;
    overflow: hidden;
}

/* Hero Shrink on Scroll (PC only) */
@media (min-width: 768px) {
    #hero.hero-section.hero-shrink {
        max-width: 720px;
        border-radius: 24px;
    }
}
@media (min-width: 992px) {
    #hero.hero-section.hero-shrink {
        max-width: 960px;
    }
}
@media (min-width: 1200px) {
    #hero.hero-section.hero-shrink {
        max-width: 1140px;
    }
}
@media (min-width: 1400px) {
    #hero.hero-section.hero-shrink {
        max-width: 1320px;
    }
}

/* 모바일 히어로 높이 조정 */
@media (max-width: 767.98px) {
    #hero.hero-section {
        height: 90vh;
        min-height: 500px;
    }

    #hero .swiper-pagination {
        bottom: 50px;
    }
}


.hero-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    will-change: transform;
}

/* Parallax Effect Class */
.parallax-active .hero-background {
    will-change: transform;
}

/* ========================================
   Global Micro-interactions
   ======================================== */
/* All Buttons: Click Press Effect */
.btn:active {
    transform: scale(0.96);
}

/* Primary Button Premium Hover */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(var(--bs-primary-rgb), 0.3);
}

/* Inputs: Focus Ring Animation */
.form-control,
.form-select {
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.15);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 2;
}


/* Hero 텍스트 스타일 (줄바꿈 + 그림자) */
#hero h1,
#hero h2,
#hero p {
    word-break: keep-all;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

/* Hero 메인 카피 - 모바일 좌정렬, PC 중앙정렬 */
.hero-main-copies {
    word-break: keep-all;
}

@media (max-width: 767.98px) {
    .hero-main-copies {
        text-align: left;
    }
}

/* Hero Swiper 페이지네이션 - 모던 스타일 */
#hero .swiper-pagination {
    bottom: 30px;
}

#hero .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    margin: 0 6px;
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
}

#hero .swiper-pagination-bullet::before {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px solid transparent;
    border-radius: 20px;
    transition: all 0.3s ease;
}

#hero .swiper-pagination-bullet-active {
    width: 36px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#hero .swiper-pagination-bullet-active::before {
    border-color: rgba(255, 255, 255, 0.5);
}

#hero .swiper-pagination-bullet:hover:not(.swiper-pagination-bullet-active) {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Styles */
.gallery-item {
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1 !important;
}

/* File Upload Dropzone Styles */
.upload-dropzone {
    border: 2px dashed #adb5bd;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.upload-dropzone:hover {
    border-color: #6c757d;
    background-color: #f0f0f0;
}

.upload-dropzone.dragover {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.upload-dropzone-icon {
    font-size: 2.5rem;
    color: #adb5bd;
    margin-bottom: 0.5rem;
}

.upload-dropzone-text {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.25rem;
}

.upload-dropzone-hint {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Upload Progress */
.upload-progress-container {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.upload-file-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.upload-file-info .file-name {
    font-weight: 500;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.upload-file-info .file-size {
    color: #6c757d;
}

.upload-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6c757d;
}

/* Upload Preview List */
.upload-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.upload-preview-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    width: 100%;
}

.upload-preview-item .file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.upload-preview-item .file-thumb {
    width: 48px;
    height: 48px;
    border-radius: 0.375rem;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #6c757d;
}

.upload-preview-item .file-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-preview-item .file-size {
    font-size: 0.75rem;
    color: #6c757d;
}

.upload-preview-item .btn-remove {
    background: none;
    border: none;
    color: #adb5bd;
    padding: 0.25rem;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}

.upload-preview-item .btn-remove:hover {
    color: #dc3545;
}

/* Gallery Overlay (ensure visibility transition) */
.gallery-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ========================================
   Mobile Menu UI Improvements (2026-01-21)
   ======================================== */

/* 1. 메뉴 항목 Stagger 애니메이션 */
@media (max-width: 767.98px) {

    /* Stagger 효과: 메뉴 항목 순차 등장 */
    .navbar-collapse .nav-item {
        opacity: 0;
        transform: translateX(-15px);
    }

    .navbar-collapse.show .nav-item,
    .navbar-collapse.collapsing .nav-item {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.25s ease-out, transform 0.25s ease-out;
    }

    /* Stagger delays */
    .navbar-collapse.show .nav-item:nth-child(1) {
        transition-delay: 0.05s;
    }

    .navbar-collapse.show .nav-item:nth-child(2) {
        transition-delay: 0.1s;
    }

    .navbar-collapse.show .nav-item:nth-child(3) {
        transition-delay: 0.15s;
    }

    .navbar-collapse.show .nav-item:nth-child(4) {
        transition-delay: 0.2s;
    }

    .navbar-collapse.show .nav-item:nth-child(5) {
        transition-delay: 0.25s;
    }

    .navbar-collapse.show .nav-item:nth-child(6) {
        transition-delay: 0.3s;
    }

    .navbar-collapse.show .nav-item:nth-child(7) {
        transition-delay: 0.35s;
    }

    .navbar-collapse.show .nav-item:nth-child(8) {
        transition-delay: 0.4s;
    }

    /* 닫힐 때는 delay 없이 빠르게 */
    .navbar-collapse.collapsing .nav-item {
        transition-delay: 0s !important;
    }

    /* 3. 메뉴 배경 강화 - 더 진한 Glassmorphism */
    /* 메뉴 카드: 마진 + 보더 + 라운딩 + 배경 강화 */
    .navbar-collapse {
        margin: 1rem;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    #header.scrolled .navbar-collapse {
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.9) 0%,
                rgba(255, 255, 255, 0.95) 100%);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    }
}

/* 2. 활성 섹션 표시 */
.nav-link.active {
    position: relative;
}

/* 모바일: 활성 메뉴 배경 강조 */
@media (max-width: 767.98px) {
    .navbar-collapse .nav-link.active {
        background-color: rgba(255, 255, 255, 0.15) !important;
        font-weight: 600;
    }

    #header.scrolled .navbar-collapse .nav-link.active {
        background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
        color: var(--bs-primary) !important;
    }
}

/* PC: 활성 메뉴 언더라인 표시 */
@media (min-width: 768px) {
    .navbar-nav .nav-link.active::after {
        width: 80%;
        background-color: currentColor;
    }

    #header.scrolled .navbar-nav .nav-link.active {
        color: var(--bs-primary) !important;
    }
}

/* ========================================
   Modern Submit Button
   ======================================== */
.btn-submit-modern {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0099ff 50%, var(--bs-primary) 100%);
    background-size: 200% 200%;
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s ease;
}

.btn-submit-modern:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.5);
    color: #fff;
}

.btn-submit-modern:hover::before {
    left: 100%;
}

.btn-submit-modern:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.4);
}

.btn-submit-modern:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25), 0 4px 15px rgba(var(--bs-primary-rgb), 0.4);
}

.btn-submit-modern i {
    transition: transform 0.3s ease;
}

.btn-submit-modern:hover i {
    transform: translateX(3px);
}

/* ========================================
   한글 타이포그래피 조정
   한글은 영문 대비 시각적으로 크게 보이므로 
   heading 크기를 약 10-15% 축소
   ======================================== */
.display-1 {
    font-size: 4.25rem;
}

/* 5rem → 4.25rem */
.display-2 {
    font-size: 3.75rem;
}

/* 4.5rem → 3.75rem */
.display-3 {
    font-size: 3.25rem;
}

/* 4rem → 3.25rem */
.display-4 {
    font-size: 2.75rem;
}

/* 3.5rem → 2.75rem */
.display-5 {
    font-size: 2.25rem;
}

/* 3rem → 2.25rem */
.display-6 {
    font-size: 1.875rem;
}

/* 2.5rem → 1.875rem */

/* 모바일에서 추가 축소 */
@media (max-width: 767.98px) {
    .display-1 {
        font-size: 2.5rem;
    }

    .display-2 {
        font-size: 2.25rem;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .display-6 {
        font-size: 1.25rem;
    }
}


/* ========================================
   모바일 빠른 연락 버튼
   ======================================== */
@media (max-width: 767.98px) {
    .mobile-quick-contact .btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }

    .mobile-quick-contact .btn-outline-light {
        border-color: rgba(255, 255, 255, 0.5);
    }

    .mobile-quick-contact .btn-outline-light:hover {
        background-color: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.7);
    }

    /* 스크롤 후 (밝은 배경) */
    #header.scrolled .mobile-quick-contact .border-top {
        border-color: rgba(0, 0, 0, 0.1) !important;
    }

    #header.scrolled .mobile-quick-contact .btn-outline-light {
        color: var(--bs-primary);
        border-color: var(--bs-primary);
    }

    #header.scrolled .mobile-quick-contact .btn-outline-light:hover {
        background-color: rgba(var(--bs-primary-rgb), 0.1);
    }

    #header.scrolled .mobile-quick-contact .btn-light {
        background-color: var(--bs-primary);
        color: #fff !important;
        border-color: var(--bs-primary);
    }
}

/* ========================================
   Scroll Animation - 스크롤 시 섹션 등장
======================================== */

/* 기본 상태 (숨김) */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* fade-up: 아래에서 위로 */
.animate-on-scroll[data-animation="fade-up"] {
    transform: translateY(40px);
}

/* fade-in: 단순 페이드 */
.animate-on-scroll[data-animation="fade-in"] {
    transform: translateY(0);
}

/* slide-left: 왼쪽에서 */
.animate-on-scroll[data-animation="slide-left"] {
    transform: translateX(-40px);
}

/* slide-right: 오른쪽에서 */
.animate-on-scroll[data-animation="slide-right"] {
    transform: translateX(40px);
}

/* zoom-in: 확대 */
.animate-on-scroll[data-animation="zoom-in"] {
    transform: scale(0.95);
}

/* 활성화 상태 (보임) */
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* 지연 효과 */
.animate-on-scroll.delay-100 {
    transition-delay: 0.1s;
}

.animate-on-scroll.delay-200 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-300 {
    transition-delay: 0.3s;
}

/* 모션 감소 설정 존중 */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========================================
   Mobile UI/UX Improvements (2026-01-23)
   ======================================== */

@media (max-width: 767.98px) {

    /* 1. Section Spacing: Increase top padding to avoid header overlap */
    section.py-5 {
        padding-top: 4.5rem !important;
        padding-bottom: 4.5rem !important;
    }

    /* 2. Gallery Title Spacing */
    #gallery .mb-5 {
        margin-bottom: 4rem !important;
    }

    /* 3. Horizontal Spacing: Increase container padding */
    .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

/* 3. Visual Emphasis for Video Play Button */
#youtube .badge.bg-danger-subtle {
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    border: 2px solid rgba(220, 53, 69, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

#youtube .badge.bg-danger-subtle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* ========================================
   Bento Grid Gallery Styles
   ======================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.bento-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item:hover img {
    transform: scale(1.08);
}

/* Bento Spans */
.bento-span-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-span-2x1 {
    grid-column: span 2;
}

.bento-span-1x2 {
    grid-row: span 2;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .bento-span-2x2 {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-span-2x1 {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-span-1x2 {
        grid-column: span 1;
        grid-row: span 2;
    }
}

@media (max-width: 575.98px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 1rem;
    }

    /* Reset spans on mobile for vertical flow */
    .bento-span-2x2,
    .bento-span-2x1,
    .bento-span-1x2 {
        grid-column: span 1;
        grid-row: span 1;
    }
}


/* ========================================
   Skeleton Loading Animation
   ======================================== */
.skeleton-bg {
    background-color: #e9ecef;
    position: relative;
    overflow: hidden;
}

.skeleton-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}


/* ========================================
   Form Floating Enhancements
   ======================================== */
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--bs-primary);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating>.form-control {
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.form-floating>.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.15);
    background-color: #fff;
}


/* Map Info Window Custom Style */
.map-info-card {
    padding: 20px !important;
    min-width: 240px;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--bs-primary);
    /* Primary Color Border */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(var(--bs-primary-rgb), 0.15);
    position: relative;
    overflow: hidden;
}

.map-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bs-primary);
}

/* ========================================
   About Section: Asymmetric Layered Images
   ======================================== */
.about-composition {
    position: relative;
    padding: 20px 0 40px 20px;
    /* 여백 확보 */
    z-index: 1;
}

.about-main-img {
    width: 85%;
    aspect-ratio: 4/5;
    /* 세련된 세로 비율 */
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.about-composition:hover .about-main-img {
    transform: translateY(-10px);
}

.about-sub-img-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    z-index: 10;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease 0.1s;
}

.about-composition:hover .about-sub-img-wrapper {
    transform: translateY(-15px) translateX(-5px);
}

.about-sub-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
    border: 8px solid #fff;
    /* 흰색 테두리로 구분 */
}

/* 장식용 도트 패턴 */
.about-decoration-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(var(--bs-primary) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.6;
    z-index: -1;
    transform: translate(-10%, -10%);
}

/* 장식용 원형 */
.about-decoration-circle {
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--bs-primary);
    opacity: 0.2;
    z-index: -1;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .about-composition {
        padding: 0 0 30px 10px;
        /* 공간 확보 */
        margin-top: 3rem;
        text-align: left;
    }

    .about-main-img {
        width: 85%;
        aspect-ratio: 4/5;
        border-radius: 16px;
    }

    .about-sub-img-wrapper {
        display: block !important;
        width: 45%;
        bottom: 0;
        right: 0;
        transform: translateY(10%);
    }

    .about-sub-img {
        border-width: 4px;
        border-radius: 12px;
    }

    .about-decoration-pattern {
        display: block !important;
        width: 100px;
        height: 100px;
        left: -10px;
        top: -20px;
    }
}
/* ========================================
   YouTube Vertical Video Styles (9:16)
   ======================================== */
.youtube-vertical-wrapper {
    max-width: 320px;
    width: 100%;
}

.youtube-vertical-ratio {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* 9:16 = 16/9 * 100 */
    height: 0;
    overflow: hidden;
}

.youtube-vertical-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-side-content {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
    border-radius: 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
}

/* 모바일: 세로 영상 full-width */
@media (max-width: 991.98px) {
    .youtube-vertical-wrapper {
        max-width: 280px;
    }
}

@media (max-width: 575.98px) {
    .youtube-vertical-wrapper {
        max-width: 240px;
    }
}

/* YouTube Vertical - Info Card hover */
.youtube-info-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.youtube-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1) !important;
}

/* ========== Banner Section ========== */
.banner-section {
    padding: 40px 0 0;
    background: #fff;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}
.banner-section a {
    display: block;
}
.banner-section picture {
    display: block;
    max-width: 100%;
}
.banner-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    vertical-align: top;
}
@media (min-width: 992px) {
    .banner-img {
        max-width: 1400px;
    }
}
@media (max-width: 991px) {
    .banner-section {
        padding-top: 24px;
    }
}

/* ========== Footer Section ========== */
#v2-footer {
    padding: 0;
}
#v2-footer .py-5 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}
#v2-footer h5 {
    font-size: 1.25rem;
}
#v2-footer h6 {
    font-size: 1rem;
}
#v2-footer .small,
#v2-footer small {
    font-size: 0.9rem;
}
#v2-footer .fs-6 {
    font-size: 1.1rem !important;
}
#v2-footer p.small {
    font-size: 0.85rem;
}
@media (min-width: 992px) {
    #v2-footer .py-5 {
        padding-top: 80px !important;
        padding-bottom: 40px !important;
    }
    #v2-footer h5 {
        font-size: 1.5rem;
    }
    #v2-footer h6 {
        font-size: 1.1rem;
    }
    #v2-footer .small,
    #v2-footer small {
        font-size: 1rem;
        line-height: 1.8;
    }
    #v2-footer .fs-6 {
        font-size: 1.2rem !important;
    }
    #v2-footer p.small {
        font-size: 0.95rem;
    }
    #v2-footer img[alt] {
        height: 50px !important;
    }
}
@media (max-width: 991px) {
    #v2-footer .py-5 {
        padding-bottom: 100px !important;
    }
    #v2-footer .small,
    #v2-footer small {
        line-height: 1.6;
    }
}
