/* 포항시립박물관 커스텀 스타일 */

/* 이윰빌더 기본 스타일 오버라이드 - Tailwind와의 충돌 방지 */
.wrapper {
    width: 100%;
    min-height: 100vh;
    overflow: visible !important; /* Lenis 스크롤 충돌 방지를 위해 추가 */
}

/* Lenis 기본 권장 스타일 */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

.basic-body {
    background: transparent;
    padding: 0 !important;
}

/* 네비게이션 드롭다운 호버 효과 */
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 검색 전체화면 오버레이 */
.search-full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 32, 110, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-full .search-field {
    width: 600px;
    max-width: 90%;
}

.search-full .search-field input[type="text"] {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.5rem;
    padding: 0.5rem 0;
    width: 100%;
    outline: none;
    font-family: 'Pretendard', sans-serif;
}

.search-full .search-field input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-full .search-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 10000;
}

.search-full .search-close-btn::before,
.search-full .search-close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 2px;
    background: #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.search-full .search-close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.search-full .search-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* 모바일 사이드바 */
.sidebar-left {
    background: #fff !important;
}

.sidebar-left .offcanvas-header {
    border-bottom: 1px solid #e5e7eb;
}

/* Back To Top */
.eb-backtotop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.eb-backtotop.show {
    opacity: 1;
    transform: translateY(0);
}

.eb-backtotop svg {
    width: 100%;
    height: 100%;
}

.eb-backtotop .backtotop-progress {
    fill: none;
    stroke: #00206e;
    stroke-width: 2;
}

.eb-backtotop .progress-count {
    display: none;
}

/* 페이지 타이틀 서브페이지용 */
.page-body {
    min-height: 60vh;
}

/* 반응형 조정 */
@media (max-width: 768px) {
    #hero-section {
        height: auto !important;
        min-height: 100vh;
        padding-top: 6rem;
        padding-bottom: 10rem;
    }

    #hero-section .max-w-3xl {
        max-width: 100%;
    }

    #hero-section h1 {
        font-size: 2rem !important;
    }

}

@media (max-width: 640px) {
    #hero-section h1 {
        font-size: 1.5rem !important;
    }
}

/* ===== 상단 네비게이션 버튼 스타일 ===== */

/* 아이콘 풀버튼 (언어 전환, 마이페이지, 로그아웃, 햄버거 공용) */
.hd-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
    flex-shrink: 0;
}

.hd-icon-btn:hover {
    background: #f1f5f9;
    color: #00206e;
}

/* 언어 전환 버튼: 너비 자동 + 좌우 여백 20px */
.hd-icon-btn--lang {
    width: auto;
    padding: 0 20px;
    border-radius: 4px;
}

/* 다크모드 대응 */
.dark .hd-icon-btn {
    color: #94a3b8;
}

.dark .hd-icon-btn:hover {
    background: #1e293b;
    color: #e2e8f0;
}

/* 아이콘 버튼 내 라벨 (언어 코드 "KO" 등, 로그인 버튼과 동일한 폰트 사이즈 및 웨이트 적용) */
.hd-icon-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* 로그인 버튼 (주요 액션: 그라데이션 배경) */
.hd-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(135deg, #00206e 0%, #0035a0 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 32, 110, 0.2);
    flex-shrink: 0;
    white-space: nowrap;
}

.hd-action-btn:hover {
    background: linear-gradient(135deg, #0035a0 0%, #0045c0 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 32, 110, 0.3);
    transform: translateY(-1px);
}

.hd-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 32, 110, 0.2);
}

/* 다크모드: 로그인 버튼 */
.dark .hd-action-btn {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.dark .hd-action-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

/* 회원가입 버튼 (보조 액션: 투명 배경 + 아웃라인) */
.hd-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background: transparent;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.hd-outline-btn:hover {
    border-color: #00206e;
    color: #00206e;
    background: rgba(0, 32, 110, 0.04);
}

/* 다크모드: 회원가입 버튼 */
.dark .hd-outline-btn {
    border-color: #475569;
    color: #94a3b8;
}

.dark .hd-outline-btn:hover {
    border-color: #60a5fa;
    color: #e2e8f0;
    background: rgba(96, 165, 250, 0.08);
}

/* ===== 상단 네비게이션 버튼 스타일 끝 ===== */

/* ===== 모바일 사이드바 버튼 스타일 ===== */

/* 회원 프로필 영역 */
.sidebar-user-info {
    padding: 16px 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

/* 프로필 아바타 (원형 배경) */
.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00206e 0%, #0035a0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

/* 사이드바 링크 칩 (마이홈, 마이페이지, 로그아웃) */
.sidebar-link-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-link-chip:hover {
    color: #00206e;
    background: #eef2ff;
    border-color: #c7d2fe;
}

/* 로그아웃 칩은 경계색 분리 */
.sidebar-link-chip--logout {
    color: #94a3b8;
    border-color: #e2e8f0;
}

.sidebar-link-chip--logout:hover {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

/* 비회원 로그인/가입 버튼 영역 */
.sidebar-guest-actions {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

/* 모바일 사이드바 로그인 버튼 */
.sidebar-login-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00206e 0%, #0035a0 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 32, 110, 0.2);
}

.sidebar-login-btn:hover {
    background: linear-gradient(135deg, #0035a0 0%, #0045c0 100%);
    color: #fff;
}

/* 모바일 사이드바 회원가입 버튼 */
.sidebar-signup-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s ease;
}

.sidebar-signup-btn:hover {
    color: #00206e;
    border-color: #00206e;
    background: rgba(0, 32, 110, 0.04);
}

/* 다크모드: 사이드바 아바타 */
.dark .sidebar-avatar {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

/* 다크모드: 사이드바 링크 칩 */
.dark .sidebar-link-chip {
    color: #94a3b8;
    background: #1e293b;
    border-color: #334155;
}

.dark .sidebar-link-chip:hover {
    color: #e2e8f0;
    background: #1e3a5f;
    border-color: #3b82f6;
}

/* 다크모드: 사이드바 로그아웃 칩 */
.dark .sidebar-link-chip--logout {
    color: #64748b;
}

.dark .sidebar-link-chip--logout:hover {
    color: #f87171;
    background: #450a0a;
    border-color: #991b1b;
}

/* 다크모드: 사이드바 비회원 영역 */
.dark .sidebar-guest-actions {
    border-bottom-color: #1e293b;
}

.dark .sidebar-login-btn {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.dark .sidebar-signup-btn {
    background: #1e293b;
    color: #94a3b8;
    border-color: #475569;
}

.dark .sidebar-signup-btn:hover {
    color: #e2e8f0;
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.08);
}

/* ===== 모바일 사이드바 버튼 스타일 끝 ===== */

/* 부트스트랩 오버라이드 - Tailwind와 충돌 최소화 */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* 사이드바 사용시 레이아웃 */
.main-wrap.flex {
    align-items: flex-start;
}

/* 편집모드 버튼 스타일 */
.adm-edit-btn .ae-btn-l,
.adm-edit-btn .ae-btn-r {
    font-size: 11px;
    padding: 4px 8px;
}

/* 브레드크럼(히스토리) 내 텍스트·아이콘 세로 중앙정렬 */
.breadcrumb-nav > span {
    display: inline-flex;
    align-items: center;
}

/* Material Symbols Outlined FOUT 방지 및 크기 고정 */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    overflow: hidden;
    flex-shrink: 0;
    line-height: 1;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined.no-clip {
    overflow: visible;
    width: auto;
    height: auto;
}

#captcha #captcha_img {
    float: left;
}

/* ===== 공모전 개요 - 드론영상/대지위치 행 높이 정렬 ===== */
@media (min-width: 768px) {
    .md\:col-span-4.rounded-xl.group {
        display: flex;
        flex-direction: column;
    }
    .md\:col-span-4.rounded-xl.group .popup-youtube {
        display: flex;
        flex-direction: column;
    }
    .md\:col-span-4.rounded-xl.group .aspect-video {
        flex-shrink: 0;
    }
}