/*
Media Query Size
------------------------------------------------
Small display scales - @media (min-width: 576px) and @media (max-width: 575px)
Medium screen scale - (min-width: 768px) and (max-width: 767px)
Large size display dimension - (min-width: 992px) and (max-width: 991px)
And Additional big display sizes - (min-width: 1200px) and (max-width: 1199px)
*/

@charset "utf-8";

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
/* @import url('https://hangeul.pstatic.net/hangeul_static/css/maru-buri.css'); */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto+Mono:wght@400;700&family=Noto+Serif+KR:wght@200;300;400;500;600;700;900&display=swap');

@font-face {
    font-family: 'GangwonEducationModuche';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/GangwonEdu_OTFLightA.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'GangwonEducationModuche';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/GangwonEdu_OTFBoldA.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

:root {
    --font-gothic:      'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --font-serif:       "Playfair Display", 'Noto Serif KR', serif;
    --font-hand:        'GangwonEducationModuche', serif;
    --font-monospace:   'Roboto Mono', monospace;

    --red-dark:     #cb000e;
    --red-light:    #ea4836;
    --blue-dark:    #004b9b;
    --blue-light:   #d1effe;
    --green-dark:   #195C28;
    --green-light:  #E9FEE1;
    --yellow-dark:  #B9A644;
    --yellow-light: #FFFEBD;
}

::-moz-selection { background: var(--blue-light) }
::selection { background: var(--blue-light) }

html { 
    font-family: var(--font-gothic); 
    -webkit-text-size-adjust: 100%; 
    position: relative; 
    width: 100%; 
    height: 100%; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: var(--font-gothic); 
    -webkit-tap-highlight-color: #ced4da; 
    text-rendering: optimizeLegibility; 
    -webkit-font-smoothing: antialiased; 
    position: relative; 
    width: 100%; 
    height: 100%; 
    margin: 0; 
    padding: 0; 
    min-height: 100vh; 
}

article, .board .note-editable { 
    font-family: var(--font-serif); 
    font-size: 1.15rem; 
    font-weight: 400; 
    word-break: keep-all; 
    line-height: 2; 
}

a:link, a:visited { 
    text-decoration: none; 
    color: #000; 
    transition: color .5s linear; 
}
a:hover { 
    color: var(--red-dark); 
    transition: color .5s linear; 
}

button { 
    transition: all .5s linear; 
}
button:hover { 
    transition: all .5s linear; 
}

b,strong { font-weight: 700 }

img { max-width: 100%; }

/* Bootstrap Button Color Fixes for Anchor Tags */
a.btn-primary { color: #fff !important; }
a.btn-secondary { color: #fff !important; }
a.btn-success { color: #fff !important; }
a.btn-danger { color: #fff !important; }
a.btn-warning { color: #212529 !important; }
a.btn-info { color: #000 !important; }
a.btn-light { color: #212529 !important; }
a.btn-dark { color: #fff !important; }

/* Outline Button Color Fixes for Anchor Tags */
a.btn-outline-primary { color: #0d6efd !important; }
a.btn-outline-secondary { color: #6c757d !important; }
a.btn-outline-success { color: #198754 !important; }
a.btn-outline-danger { color: #dc3545 !important; }
a.btn-outline-warning { color: #ffc107 !important; }
a.btn-outline-info { color: #0dcaf0 !important; }
a.btn-outline-light { color: #f8f9fa !important; }
a.btn-outline-dark { color: #212529 !important; }

/* Hover states for anchor buttons */
a.btn-primary:hover { color: #fff !important; }
a.btn-secondary:hover { color: #fff !important; }
a.btn-success:hover { color: #fff !important; }
a.btn-danger:hover { color: #fff !important; }
a.btn-warning:hover { color: #212529 !important; }
a.btn-info:hover { color: #000 !important; }
a.btn-light:hover { color: #212529 !important; }
a.btn-dark:hover { color: #fff !important; }

/* Outline button hover states */
a.btn-outline-primary:hover { color: #fff !important; }
a.btn-outline-secondary:hover { color: #fff !important; }
a.btn-outline-success:hover { color: #fff !important; }
a.btn-outline-danger:hover { color: #fff !important; }
a.btn-outline-warning:hover { color: #000 !important; }
a.btn-outline-info:hover { color: #000 !important; }
a.btn-outline-light:hover { color: #000 !important; }
a.btn-outline-dark:hover { color: #fff !important; }

.note-toolbar button { border: none; }

.form-control:focus, .form-select:focus { outline: none; box-shadow: none; border: solid 1px var(--bs-blue); }
.form-control::placeholder, .form-select::placeholder { color: var(--bs-gray-400); font-style: italic; }

/* Backdrop */
#backdrop { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s; 
    width: 100%; 
    height: 100vh; 
    background: rgba(255,255,255,0.3); 
    -webkit-backdrop-filter: blur(10px); 
    backdrop-filter: blur(10px); 
    z-index: -1; 
}

body.nav-open #backdrop,
body.search-open #backdrop { 
    opacity: 1; 
    visibility: visible; 
    z-index: 999; 
}

#backdrop-close { 
    position: fixed; 
    top: 1.75rem; 
    right: 1.5rem; 
    width: 30px; 
    height: 30px; 
    background: none; 
    color: #000;
    font-size: 1.5rem;
    border: none; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    z-index: 1005;
}

/* ===========================================
    Header, Nav Toggle
   =========================================== */
#header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.5rem;
}

.mobile-logo:hover { 
    cursor: pointer;
    opacity: 0.8;
}

.logo-img { width: 90px; min-width: 90px; }
.mobile-logo .logo-img { width: 120px; min-width: 120px; }

/* Mobile Navigation Toggle */
#nav-toggle { 
    display: flex; 
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: solid 1px transparent; 
    border-radius: 2rem;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.6), 
                rgba(255, 255, 255, 0.3), 
                rgba(255, 255, 255, 0.5));
    -webkit-backdrop-filter: blur(5px); 
    backdrop-filter: blur(5px); 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#nav-toggle em, 
#nav-toggle em::after, 
#nav-toggle em::before { 
    display: block; 
    position: relative; 
    height: 1px; 
    width: 16px; 
    background-color: #000; 
    transition: all 0.3s ease; 
}

#nav-toggle em::before, 
#nav-toggle em::after { 
    position: absolute; 
    content: ''; 
    left: 0; 
}

#nav-toggle em::before { 
    transform: translateY(-6px); 
}

#nav-toggle em::after { 
    transform: translateY(6px); 
}

#nav-toggle:hover { 
    cursor: pointer; 
}

body.nav-open #nav-toggle em { background-color: transparent; }
body.nav-open #nav-toggle em::before { transform: rotate(-45deg); }
body.nav-open #nav-toggle em::after { transform: rotate(45deg); }

/* ===========================================
    Mobile Navigation
   =========================================== */
#main-nav .desktop-menu { display: none; }

#mobile-container { 
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    width: 100%; 
    height: 100vh;
    transform: translateY(-100vh); 
    transition: transform 0.3s ease; 
    z-index: 999;
    overflow-y: auto;
}

body.nav-open #mobile-container { 
    transform: translateY(0); 
}

#mobile-container .mobile-menu { 
    list-style: none; 
    margin: 5rem 0 2rem 0; 
    padding: 0; 
}

#mobile-container .mobile-menu > li { 
    border-bottom: dashed 1px rgba(0, 0, 0, 0.1);
}

#mobile-container .mobile-menu > li:last-child {
    border-bottom: none;
}

/* 메인 메뉴 링크 */
#mobile-container .mobile-menu > li > a { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 1rem 1.5rem;
    color: #000; 
    text-decoration: none; 
    font-size: 1.25rem; 
    font-weight: 600; 
    transition: background-color 0.2s ease;
}

#mobile-container .mobile-menu > li > a.disabled { 
    color: #999; 
    cursor: not-allowed; 
}

#mobile-container .mobile-menu > li > a.disabled:hover {
    background-color: transparent;
}

/* 쉐브론 아이콘 */
#mobile-container .mobile-menu > li.has-submenu > a .chevron { 
    transition: transform 0.3s ease; 
    font-size: 0.875rem;
}

#mobile-container .mobile-menu > li.has-submenu.open > a .chevron { 
    transform: rotate(180deg);
}

/* 서브메뉴 */
#mobile-container .submenu { 
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    list-style: none; 
    margin: 0;
    padding: 0;
}

#mobile-container .submenu.open { 
    max-height: 1000px;
}

#mobile-container .submenu li { 
    border-bottom: dashed 1px rgba(0, 0, 0, 0.05);
}

#mobile-container .submenu li:last-child {
    border-bottom: none;
}

#mobile-container .submenu li a { 
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 2.5rem; 
    color: #000; 
    text-decoration: none; 
    font-size: 1rem;
    font-weight: 400;
    transition: background-color 0.2s ease;
}

#mobile-container .submenu li a:hover { 
    color: var(--red-dark);
}

#mobile-container .submenu li a.disabled { 
    color: #999; 
    cursor: not-allowed; 
}

#mobile-container .submenu li a.disabled:hover { 
    background-color: transparent;
    color: #999;
}

.header-actions { 
    /* position: fixed; 
    top: 1rem; 
    right: 1rem;  */
    display: flex; 
    align-items: center;
    gap: 0.5rem;
    /* z-index: 999; */
}

/* ===========================================
    Desktop Navigation
   =========================================== */
@media (min-width: 768px) {
    #header {
        width: auto;
        padding-top: 2rem;
    }

    .mobile-logo { display: none;}
    
    /* 모바일 메뉴 완전히 숨기기 */
    #mobile-container { display: none !important; }

    #nav-toggle { display: none; }
    
    #main-nav .desktop-menu { 
        /* position: fixed;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000; */

        display: flex; 
        list-style: none; 
        margin: 0; 
        padding: 0.25rem;
        border-radius: 3rem; 
        align-items: center; 
        justify-content: center; 

        background: linear-gradient(135deg, 
                   rgba(255, 255, 255, 0.6), 
                   rgba(255, 255, 255, 0.3), 
                   rgba(255, 255, 255, 0.5));
        -webkit-backdrop-filter: blur(5px); 
        backdrop-filter: blur(5px); 
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
                   inset 1px 1px 0 rgba(255, 255, 255, 0.8),
                   inset -1px -1px 0 rgba(255, 255, 255, 0.8),
                   inset 0 1px 0 rgba(255, 255, 255, 0.9),
                   inset 1px 0 0 rgba(255, 255, 255, 0.9);
    }
    
    /* 슬라이딩 배경 요소 */
    #main-nav .desktop-menu::before {
        content: '';
        position: absolute;
        top: 50%;
        left: var(--slide-left, 0);
        width: var(--slide-width, 0);
        height: 90%;
        background-color: rgba(0, 0, 0, 0.05);
        border-radius: 2rem;
        transform: translateY(-50%);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: -1;
        opacity: 0;
        pointer-events: none;
    }
    
    #main-nav .desktop-menu.menu-active::before {
        opacity: 0.7;
    }
    
    #main-nav .desktop-menu.menu-hover::before {
        opacity: 1;
    }
    
    #main-nav .desktop-menu > li.active > a {
        color: var(--red-dark);
        font-weight: 700;
    }
    
    #main-nav .desktop-menu > li { 
        position: relative; 
    }
    
    #main-nav .desktop-menu > li > a { 
        padding: 0.75rem 1rem; 
        font-weight: 500; 
        white-space: nowrap; 
        display: block; 
        transition: color 0.3s ease;
        border-radius: 2rem;
    }
    
    #main-nav .desktop-menu > li:hover > a { 
        color: var(--red-dark);
    }

    /* Desktop dropdowns */
    #main-nav .desktop-menu ul { 
        list-style: none; 
        margin: 0; 
        padding: 0; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        background: rgba(255,255,255,.9); 
        -webkit-backdrop-filter: blur(20px); 
        backdrop-filter: blur(20px); 
        border-radius: 0.375rem;
        box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15); 
        opacity: 0; 
        visibility: hidden; 
        transform: translateY(-10px); 
        transition: all 0.3s ease; 
    }
    #main-nav .desktop-menu > li:hover ul { 
        opacity: 1; 
        visibility: visible; 
        transform: translateY(0);  
    }

    #main-nav .desktop-menu ul li { width: 100%; }
    #main-nav .desktop-menu ul li a { display: block; padding: 0.5rem 1rem; color: #000; font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
    #main-nav .desktop-menu ul li a.disabled { color: #ccc; cursor: not-allowed; }
    #main-nav .desktop-menu ul li:hover { background: rgba(255, 0, 0, 0.105); }
    #main-nav .desktop-menu ul li:hover a { color: var(--red-dark); }
    #main-nav .desktop-menu ul li:hover a.disabled { color: #ccc; background: none; }

    #main-nav .desktop-menu ul li:first-child:hover { border-radius: 0.375rem 0.375rem 0 0; }
    #main-nav .desktop-menu ul li:last-child:hover { border-radius: 0 0 0.375rem 0.375rem; }

    #main-nav .desktop-menu ul li.has-active-child { background: rgba(255, 0, 0, 0.1); }
    #main-nav .desktop-menu ul li:first-child.has-active-child { border-radius: 0.375rem 0.375rem 0 0; }
    #main-nav .desktop-menu ul li:last-child.has-active-child { border-radius: 0 0 0.375rem 0.375rem; }
    
    #main-nav .desktop-menu ul li a.active-child { color: var(--red-dark) !important; font-weight: 600; }
    #main-nav .desktop-menu ul li:hover a.active-child { color: var(--red-dark) !important; }
    
    #search-form form { max-width: 400px; }

    .header-actions { top: 1rem; right: 1rem; }
}

/* ===========================================
    Search
   =========================================== */
#search-toggle { 
    line-height: 1;
    cursor: pointer; 
    font-size: 1.1rem;

    display: flex; 
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;

    border: solid 1px transparent; 
    border-radius: 2rem;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.6), 
                rgba(255, 255, 255, 0.3), 
                rgba(255, 255, 255, 0.5));
    -webkit-backdrop-filter: blur(5px); 
    backdrop-filter: blur(5px); 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
#search-toggle:hover { 
    color: var(--red-dark);
    background-color: #fff;
}

@media (min-width: 768px) {
    #search-toggle { 
        width: 56px; height: 56px;
    }
}

#search-form { 
    display: none; 
    position: fixed; 
    top: 100px; 
    left: 0; 
    right: 0; 
    padding: 1rem; 
    z-index: 1001; 
}
#search-form.active { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
}
#search-form form { 
    display: flex; 
    width: 100%; 
    max-width: 600px; 
    position: relative; 
}
#search-form input { 
    flex: 1; 
    padding: 0.75rem 1rem; 
    border: none; 
    font-size: 16px; 
    background-color: transparent; 
}
#search-form input::placeholder { 
    color: var(--bs-gray-700); 
}
#search-form input:focus { 
    outline: none; 
    box-shadow: none; 
}
#search-form button { 
    background: transparent; 
    color: #000; 
    border: none; 
    padding: 0.75rem 1rem; 
    cursor: pointer; 
}

/* Search Results Dropdown */
.search-results-dropdown { 
    position: fixed; 
    top: 180px; 
    left: 50%; 
    transform: translateX(-50%);
    width: calc(100% - 2rem); 
    max-width: 600px; 
    max-height: 60vh; 
    overflow-y: auto; 
    display: none; 
    z-index: 10002;

    background-color: rgba(255,255,255,0.7); 
    border-radius: 1rem; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); 
    -webkit-backdrop-filter: blur(10px); 
    backdrop-filter: blur(10px); 
}
.search-results-dropdown.show { display: block; }

.search-loading { 
    padding: 1rem; 
    text-align: center; 
    color: #000; 
    font-size: 0.9rem; 
}

.search-result-category { 
    padding: 0.5rem 1rem; 
    font-weight: 600; 
    color: var(--bs-gray-700); 
    text-transform: uppercase; 
    border-bottom: 1px solid var(--bs-gray-300); 
    background: var(--bs-gray-100); 
}

.search-result-item { 
    padding: 1rem; 
    border-bottom: 1px solid var(--bs-gray-300); 
    cursor: pointer; 
    transition: background-color 0.2s ease; 
}

.search-result-item:hover { background: rgba(255,255,255,0.9); }

.search-result-item:last-child { border-bottom: none; }

.search-result-title { 
    font-weight: 500; 
    color: #000; 
    margin-bottom: 0.25rem; 
}

.search-result-summary { 
    color: var(--bs-gray-700); 
    font-size: 0.8rem; 
    line-height: 1.3; 
    margin-bottom: 0.25rem; 
}

.search-result-meta { 
    font-size: 0.75rem; 
    color: var(--bs-gray-500); 
    display: flex; 
    gap: 0.5rem; 
}

.search-view-all { 
    padding: 0.75rem 1rem; 
    border-top: 1px solid rgba(0,0,0,0.1); 
    background: rgba(0,0,0,0.02); 
    text-align: center; 
}

.search-view-all a { 
    color: var(--red-dark); 
    font-weight: 500; 
    font-size: 0.9rem; 
    text-decoration: none; 
}

.search-view-all a:hover { text-decoration: underline; }

.search-no-results { 
    padding: 2rem 1rem; 
    text-align: center; 
    color: var(--bs-gray-600); 
    font-size: 0.9rem; 
}

/* ===========================================
    Footer
   =========================================== */
#footer { 
    background-color: var(--bs-gray-100); 
    color: #000; 
    padding: 3rem 0; 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

#footer .container { padding: 0 1.5rem; }
#footer section { margin-bottom: 1.5rem; }

#footer .slogan { text-align: left; margin: 0 0 1rem 0; }
#footer .slogan img { height: 80px; }
#footer .copyright { font-family: var(--font-serif); font-style: italic; margin: 0; }

#footer address { margin-bottom: 0; }
#footer label { text-transform: uppercase; font-size: 0.7rem; font-weight: 700; color: var(--bs-gray-500); margin: 1.5rem 0 0rem 0; }

#footer .social { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; margin: 0.5rem 0; }
#footer .social button { background: transparent; color: var(--red-dark); border: none; padding: 0; cursor: pointer; }
#footer .social button:hover { color: #000; }

#footer #qrcode { width: 100px; height: 100px; margin-top: 0.5rem; }

@media (min-width: 768px) {
    #footer .container { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;}
    #footer section { margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; }
    #footer section:first-child { border-right: dashed 1px var(--bs-gray-500); }
    #footer label:first-child { margin-top: 0; }
}

@media (min-width: 992px) {
    #footer .container { gap: 3rem; }
}


/* ===========================================
    Main header
   =========================================== */

.document-bg-image { 
    background-size: cover; 
    background-position: top center; 
    height: 100vh; 
    display: flex; 
    align-items: flex-end;
    justify-content: center;
    position: relative; 
    scroll-snap-align: start;
}
.document-bg-image::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); 
    z-index: 1; 
}
.document-bg-image h2 { 
    font-family: var(--font-hand); 
    font-size: 1rem; 
    font-weight: 300; 
    color: #fff; 
    text-align: center;
    margin: 0; 
    margin-bottom: 7rem; 
    position: relative; 
    z-index: 2; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 5px rgba(0, 0, 0, 0.3); 
}

@media (min-width: 768px) {
    .document-bg-image[data-bg-pc]:not([data-bg-pc=""]) { background-image: var(--bg-pc-url) !important; }
    .document-bg-image h2 { font-size: 1.1rem; }
}

@media (min-width: 992px) {
    .document-bg-image h2 { font-size: 1.25rem; }
}

.scroll-down-btn { 
    position: absolute; 
    left: 50%; 
    bottom: 3rem; 
    transform: translateX(-50%); 
    background: rgba(255,255,255,0.8); 
    border: none; 
    border-radius: 50%; 
    width: 48px; 
    height: 48px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    z-index: 10; 
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}
.scroll-down-btn:hover { 
    background: rgba(255,255,255,1) !important; 
    transform: translateX(-50%) scale(1.1) !important; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}

/* breadcrumb */
.hanuri-breadcrumb { 
    position:fixed; 
    bottom: 0.25rem; 
    left: 0; 
    z-index: 1000; 
    background-color: #000; 
    margin: 0; 
    padding: 0.1rem 1rem; 
    border-radius: 0 1rem 1rem 0; 
    display: none; 
    align-items: center; 
    justify-content: flex-start; 
}

.hanuri-breadcrumb .breadcrumb { 
    background: transparent; 
    padding: 0; 
    margin: 0; 
}
.hanuri-breadcrumb .breadcrumb-item { 
    color: var(--bs-gray-500); 
    font-weight: 400; 
    font-size: 0.875rem; 
}
.hanuri-breadcrumb .breadcrumb-item + .breadcrumb-item::before { 
    content: var(--breadcrumb-separator, "/"); 
    color: var(--bs-gray-700); 
    margin: 0; 
    font-weight: 500; 
}
.hanuri-breadcrumb .breadcrumb-item a { 
    color: var(--bs-gray-600); 
    text-decoration: none; 
    transition: all 0.2s ease; 
}
.hanuri-breadcrumb .breadcrumb-item a:hover { 
    color: #fff; 
}
.hanuri-breadcrumb .breadcrumb-item.active { 
    color: #fff; 
}

/* menu-tabs */
.hanuri-menu-tabs {
    display: none;
    position: fixed; 
    top: 80px; 
    right: 0; 
    z-index: 10; 
}
.hanuri-menu-tabs ul { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: flex;
    align-items: center; 
    justify-content: flex-end;
    flex-wrap: wrap; 
}
.hanuri-menu-tabs ul li { 
    flex: 0 1 auto; 
    text-align: left; 
    padding: 0; 
    font-size: 0.9em;
}
.hanuri-menu-tabs ul li a { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    height: 100%; 
    padding: 0.5rem 1rem; 
    background-color: var(--bs-gray-200); 
    color: var(--bs-gray-600); 
    line-height: 1;
    cursor: pointer;
}
.hanuri-menu-tabs ul li a:hover, .hanuri-menu-tabs ul li a.active { 
    background-color: var(--bs-gray-900); 
    color: white; 
    text-decoration: none; 
}

@media (min-width: 768px) {
    .hanuri-breadcrumb { display: flex; }
    .hanuri-menu-tabs { top: 100px; display: block; }
    .hanuri-menu-tabs ul li { flex: 1 0 auto; }
    .hanuri-menu-tabs ul li a { padding: 0.5rem 1rem; }
}

/* ===========================================
    Form Elements
   =========================================== */
.form .form-group { margin-bottom: 2rem; }
.form .form-control, .form .form-select { background-color: var(--bs-gray-100); font-weight: 500; color: #000; border: solid 1px transparent; }
.form .form-control:focus, .form .form-select:focus { border: solid 1px var(--bs-red); box-shadow: none; }
.form .form-label { font-weight: 400; margin-bottom: 0.125rem; margin-left: 0.75rem; display: block; font-size: 0.8rem; color: var(--bs-orange); }

/* ===========================================
    Miscellaneous
   =========================================== */

/*  blockquote */
blockquote { position: relative; margin: 8rem 2rem; }
blockquote:before { content: '\201C'; font-family: var(--font-serif); font-size: 8rem; opacity: 0.3; position: absolute; top: -4rem; left: -2rem; transform: rotate(10deg); }
blockquote:after { content: '\201D'; font-family: var(--font-serif); font-size: 8rem; opacity: 0.3; position: absolute; bottom: -9rem; right: -1rem; transform: rotate(10deg); }
blockquote h3 { margin-bottom: 2rem; }
blockquote p { line-height: 1.8; font-weight: 300; font-size: 0.9em; }

.error { color: var(--red-dark); font-weight: 500; padding: 1rem; }

/* sitemanager default board */
.profile-photo { width: 50px; height: 50px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); transition: all 0.2s ease; border-radius: 50%; object-fit: cover; }
.profile-photo-icon { font-size: 50px; color: var(--bs-gray-300); line-height: 1; }
.profile-photo:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); transform: scale(1.05); }

.glass {
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.6), 
                rgba(255, 255, 255, 0.3), 
                rgba(255, 255, 255, 0.5));
    -webkit-backdrop-filter: blur(5px); 
    backdrop-filter: blur(5px); 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
                inset 1px 1px 0 rgba(255, 255, 255, 0.8),
                inset -1px -1px 0 rgba(255, 255, 255, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.9),
                inset 1px 0 0 rgba(255, 255, 255, 0.9);
}


/* ===========================================
    Main
   =========================================== */
h1 { font-size: clamp(2rem, 2.5vw + 1rem, 4rem); font-weight: 700; margin-bottom: 2rem; line-height: 1.2; color: var(--bs-gray-900); }
h2 { font-size: clamp(1.75rem, 2vw + 0.75rem, 3rem); font-weight: 300; color: var(--bs-gray-600); margin-bottom: 2rem; }
h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 1rem; color: var(--bs-gray-800); }

main { min-height: 100vh; padding: 150px 0; }

main .container, main .container-sm, main .container-md { padding: 0 1.5rem; }
main .container-sm, .media-container-sm { max-width: 644px; margin: 0 auto; }
main .container-md, .media-container-md { max-width: 768px; margin: 0 auto; }

.media-container, .media-container-sm, .media-container-md { padding: 0; }
.image-caption { margin-top: 0.25rem; color: var(--bs-gray-400); font-style: italic; text-align: center; }

.author { display: flex; align-items: center; justify-content: flex-start; gap: 0.5rem; line-height: 1.2; }
time { font-weight: 500; color: var(--red-dark); margin: 0; font-size: 0.875rem; }
.category { color: var(--bs-gray-600); }

.like-btn { background: none; border: solid 1px var(--bs-gray-500); color: var(--bs-gray-900); padding: 0; font-size: 0.875rem; display: flex; align-items: center; justify-content: center; gap: 0.125rem; cursor: pointer; width: 40px; height: 40px; line-height: 1; border-radius: 50%; }
.like-btn:hover { background-color: var(--bs-gray-900); color: #fff; border-color: var(--bs-gray-900); }
.like-btn i { font-size: 0.75rem; }

.meta { font-size: 0.875rem; color: var(--bs-gray-500); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; line-height: 1.2; }
.meta time { color: var(--bs-gray-700); }

.meta-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }

.counts { display: flex; align-items: center; gap: 0.5rem; }
.view-count { color: var(--bs-orange); font-size: 0.875rem; }
.comment-count { color: var(--bs-green); font-size: 0.875rem; }
.like-count { color: var(--bs-gray-600); font-size: 0.875rem; }
.like-count i { font-size: 0.75rem; }

.sermon-attachments { margin: 2rem 0; }
.btn-download { border: solid 1px var(--bs-gray-200); color: var(--bs-gray-900); }
.btn-download:hover { border-color: var(--bs-gray-900); background-color: var(--bs-gray-900); color: #fff !important; }

/* .main */
.main section { margin: 2rem 0; padding: 0 0 1rem 0; border-bottom: dashed 1px var(--bs-gray-300); }
.main section:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.main .bible-text { font-style: italic; }

.main .view-more { text-align: right; font-size: 0.8rem; }
.main .view-more a { color: var(--bs-gray-500); }
.main .view-more a:hover { color: var(--bs-gray-900); }

.main .songs-list { list-style: none; margin: 0; padding: 0; }
.main .songs-list li { margin-bottom: 2rem; border-bottom: dashed 1px var(--bs-gray-300); padding-bottom: 1rem; }
.main .songs-list li:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }

.total-count { color: var(--red-dark); }

/* worship-info */
.worship-info section { margin-bottom: 4rem; }
.worship-info section h3 { margin: 0; padding-bottom: 0.5rem; border-bottom: solid 1px var(--bs-gray-200); }
.worship-info ul { list-style: none; padding: 0; margin: 0 0 2rem 0; }
.worship-info ul li { border-bottom: dashed 1px var(--bs-gray-300); padding: 1rem 0; display: flex; align-items: center; gap: 1rem; }
.worship-info ul label { flex: 0 0 40px; font-weight: 500; color: var(--bs-gray-500); }

/* sermon */
.sermon h1 { margin-bottom: 0.5rem;}
.sermon h4 { color: var(--bs-gray-600); margin-bottom: 2rem; }
.sermon-content { background-color: var(--bs-gray-100); padding: 1rem; margin-bottom: 2rem; }

.sermon .columns h5 { margin-bottom: 0; }
.sermon .columns .bible-text { color: var(--bs-gray-700); }
.sermon .columns .sermon-attachments { margin: 1rem 0 0 0;}
.sermon .columns .sermon-content {
    margin: 1rem 0;
    padding: 0;
    color: var(--bs-gray-700);
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 8em;
}

.search-form { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 0.75rem; padding: 0.5rem 1rem; margin: 2rem 0; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); border: 1px solid rgba(255, 255, 255, 0.5); }
.search-row { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; flex-direction: column; align-items: stretch; }

.search-form .form-group { display: flex; flex-direction: column; gap: 5px; min-width: 120px; margin: 0; }
.search-form .form-group.flex-grow-1 { flex: 1; min-width: 300px; }

.search-form .input-group .btn-light { border-color: var(--bs-gray-200); }

#direction-toggle { width: 40px; }

@media (min-width: 768px) {
    .search-row { flex-direction: row; align-items: center; }

    .form-group { min-width: 100%; }
    .form-group.flex-grow-1 { min-width: 100%; }
}


.bible-verse { margin-bottom: 2rem; }
.bible-verse h5 { color: var(--bs-info); font-family: var(--font-gothic); font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.bible-verse h5 span { font-size: 1rem; font-weight: 400; color: var(--bs-gray-600); }
.bible-verse p { line-height: 1.8; }
.bible-verse p span { font-weight: 600; color: var(--bs-gray-600); }
.bible-verse p.verse { display: flex; align-items: flex-start; gap: 0.5rem; }

/* column */
.columns { list-style: none; margin: 0; padding: 0; border-top: solid 2px var(--bs-gray-900); }
.columns li { border-bottom: dashed 1px var(--bs-gray-300); min-width: 0; padding: 1.5rem 0; }
.columns li h5 { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; width: 100%; min-width: 0; margin-bottom: 1rem; }
.columns li .meta-between { margin-bottom: 0; }

.columns.notice li { background-color: var(--bs-gray-100); }
.columns.notice li:last-child { border-bottom: none; }
.columns.notice li h4 { margin: 0; }

.columns li.active { background-color: var(--bs-gray-200); padding: 1.5rem; border-left: solid 4px var(--bs-red); }

.action-buttons { margin-top: 3rem; display: flex; gap: 0.5rem; justify-content: center; align-items: center; }

@media (min-width: 768px) {
    main { padding: 180px 0; }
    .media-container, .media-container-sm, .media-container-md { padding: 0 1.5rem !important; }

    .meta-between-md { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
    .sermon-attachments { margin: 0; }

    .columns { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 1.5rem; }
    .columns li .meta-between { margin-bottom: 0; }

    .columns.notice { border-top: none; display: flex; flex-wrap: wrap; gap: 0; align-items: center; }
    .columns.notice li { border-bottom: none; background-color: transparent; display: flex; align-items: center; }
    .columns.notice li:not(:first-child)::before {
        content: '•';
        color: var(--red-dark);
        margin: 0 0.5rem;
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .columns { grid-template-columns: repeat(3, 1fr);  }
}

/* Attachments */
.attachments { margin: 3rem 0; }
.attachments h6 { margin-bottom: 1rem; }

.attachment-list { display: flex; flex-direction: column; gap: 1rem; }

.attachment-item { display: flex; flex-direction: column; border: 1px solid var(--bs-gray-200); border-radius: 0.5rem; background: #fff; transition: all 0.2s ease; overflow: hidden; }
.attachment-item:hover { border-color: var(--bs-gray-300); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.attachment-item-body { display: flex; gap: 1rem; padding: 1rem; flex: 1; }

.attachment-thumbnail { flex-shrink: 0; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 0.375rem; overflow: hidden; background: var(--bs-gray-100); }
.attachment-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.attachment-thumbnail .file-icon { font-size: 1.5rem; color: var(--bs-gray-500); }

.attachment-content { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; /* Prevent flex item overflow */ }

.attachment-item h6 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--bs-dark); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.attachment-description { font-size: 0.875rem; color: var(--bs-gray-600); line-height: 1.4; margin: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }

.attachment-meta { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--bs-gray-500); }
.attachment-meta span { display: flex; align-items: center; gap: 0.25rem; }

.attachment-footer { border-top: 1px solid var(--bs-gray-200); background: var(--bs-gray-100); padding: 0.5rem 1rem; }

.attachment-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }
.attachment-actions .btn { padding: 0.375rem 0.75rem; font-size: 0.8rem; line-height: 1.2; }

/* Responsive adjustments */
@media (min-width: 576px) {
    .attachment-thumbnail { width: 80px; height: 80px; }
    .attachment-thumbnail .file-icon { font-size: 2rem; }
    
    .attachment-item h6 { font-size: 1.1rem; }
    
    .attachment-description { font-size: 0.9rem; }
    
    .attachment-meta { font-size: 0.8rem; }
}

@media (min-width: 992px) {
    .attachment-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* Post Navigation */
.post-navigation { margin: 3rem 0; }
.post-navigation .prev-post a, .post-navigation .next-post a { color: #000; font-size: 1rem; text-decoration: none; line-height: 1.3; }
.post-navigation .prev-post a:hover, .post-navigation .next-post a:hover { color: var(--bs-red); } 
.post-navigation .prev-post { display: flex; align-items: center; justify-content: flex-start; margin: 1rem 0; gap: 0.5rem; }
.post-navigation .next-post { display: flex; align-items: center; justify-content: flex-end; margin-top: 1rem; gap: 0.5rem; }
.post-navigation i.bi { color: var(--bs-gray-500); font-size: 1.25rem; }

@media (min-width: 768px) {
    .post-navigation { display: flex; justify-content: space-between; align-items: center; }
    .post-navigation .next-post { margin-top: 0; }
}

/* Comments */
.comments h5 span { font-size: 1rem; color: var(--bs-gray-700); font-weight: 500; }
.comments textarea { margin: 0.5rem 0; }
#commentForm { margin-bottom: 3rem; }

.comment-item { border: dashed 1px transparent; margin-top: 3rem; }
.comment-item:hover { border-color: rgba(25, 135, 84, 0.5); border-radius: 0.5rem; }
#comments-list > .comment-item:first-child { margin-top: 0; }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; font-size: 0.8rem; }

.comment-author { font-weight: 700; color: var(--bs-dark); margin-right: 1rem; }
.comment-date { color: var(--bs-gray-500); }
.comment-pending { color: var(--bs-warning); margin-right: 0.25rem; font-weight: 600; font-size: 0.8em; }
.comment-item.pending { opacity: 0.4; }
.comment-item.pending:hover { opacity: 1; }

.comment-item .dropdown-menu { min-width: 80px; font-size: 0.8rem; font-weight: 500; padding: 0; border: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.comment-item .dropdown-menu .dropdown-divider { margin: 0; border-color: var(--bs-gray-100); }
.comment-item .dropdown-menu i { font-size: 0.8em; }
.comment-item .dropdown-menu .dropdown-item { color: var(--bs-gray-700); }

.comment-content { font-family: var(--font-hand); color: #000; font-size: 1.1rem; }

.comment-file-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.comments .file-preview-item { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.5rem; background: var(--bs-gray-100); border: 1px solid var(--bs-gray-300); border-radius: 0.375rem; font-size: 0.85rem; color: var(--bs-gray-700); }
.comments .file-preview-item img { width: 20px; height: 20px; object-fit: cover; border-radius: 3px; margin-right: 6px; }

.comment-attachments { margin: 1rem 0; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.comment-attachments img { max-width: 120px; max-height: 80px; cursor: pointer; border-radius: 0.375rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); transition: all 0.2s ease; }

.reply-form, .edit-form { border: solid 1px var(--bs-gray-200); padding: 1rem; border-radius: 0.5rem; background: var(--bs-gray-100); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.reply-form { margin-left: 30px; margin-top: 2rem; }
.reply-form textarea, .edit-form textarea { width: 100%; border: solid 1px var(--bs-gray-300); border-radius: 0.375rem; padding: 0.5rem; font-size: 1rem; resize: vertical; min-height: 100px; }

.existing-attachments { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 0.5rem 0; }
.existing-attachment-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.5rem; background: #fff; border: 1px solid var(--bs-gray-300); border-radius: 0.375rem; font-size: 0.85rem; color: var(--bs-gray-700); }
.existing-attachment-item img { width: 20px; height: 20px; object-fit: cover; border-radius: 3px; margin-right: 6px; }
.existing-attachment-item button { background: none; border: none; color: var(--bs-red); cursor: pointer; padding: 0; }

.guest-author-form { margin: 1rem 0; }
.guest-author-form .form-group { display: flex; align-items: center; gap: 0.5rem; }
.guest-author-form .email-verification-info-btn { color: var(--bs-info); font-size: 1.25rem; cursor: pointer; }

/* Family Worship */
.guide { font-size: 0.9rem; color: var(--bs-gray-600); margin: 2rem 0; }
.guide h5 { font-weight: 400; margin-bottom: 0.75rem; }
.guide ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 0; margin: 0; list-style: none; }
.guide ul li:before { content: "•"; color: var(--bs-gray-300, #0d6efd); margin-right: 0.4rem; vertical-align: 1px; }

.family-worship-list { list-style: none; margin: 0; padding: 0; border-top: solid 1px #000; }
.family-worship-list li { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; border-bottom: dashed 1px var(--bs-gray-300); }

.family-worship-list h6 { font-size: 1rem; margin: 0; font-weight: 400; }

.family-worship-list .download-links { display: flex; align-items: center; gap: 0.5rem; }
.family-worship-list .download-links a { display: flex; align-items: center; gap: 0.25rem; }

@media (min-width: 768px) {
    .family-worship-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1rem; }
}

@media (min-width: 992px) {
    .family-worship-list { grid-template-columns: repeat(3, 1fr); }
}