/*
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=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Roboto+Mono:wght@400;700&family=Chiron+Sung+HK:ital,wght@0,200..900;1,200..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:       "EB Garamond", 'Chiron Sung HK', 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;
    background: url('/images/bg.png') no-repeat right bottom fixed;
    background-size: contain;
}

article, .board .note-editable { 
    font-size: 1.15rem; 
    font-weight: 400; 
    word-break: keep-all; 
    line-height: 2; 
    padding: 1.5rem;
    border-radius: 1rem;
}

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

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; */
}

.site-header {
    padding: 1.5rem;
    text-align: right;
}
.site-header .logo-img {
    width: 120px;
    min-width: 120px;
}

/* ===========================================
    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: #111;
    color: #fff;
    padding: 4rem 0;
}

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

#footer .slogan { text-align: left; margin: 0 0 1.5rem 0; }
#footer .slogan img { height: 80px; filter: brightness(0) invert(1); opacity: 0.9; }
#footer .copyright { font-family: var(--font-serif); font-style: italic; margin: 0; color: rgba(255,255,255,0.4); font-size: 0.85rem; }

#footer address { margin-bottom: 0; }
#footer a:link, #footer a:visited { color: rgba(255,255,255,0.7); }
#footer a:hover { color: #fff; }
#footer label { text-transform: uppercase; font-size: 0.65rem; font-weight: 700; color: rgba(255,255,255,0.35); margin: 1.5rem 0 0.25rem 0; letter-spacing: 0.1em; display: block; }

#footer .social { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; margin: 0.5rem 0; }
#footer .social a { color: rgba(255,255,255,0.6); font-size: 1.1rem; transition: color 0.2s ease, transform 0.2s ease; }
#footer .social a:hover { color: var(--red-dark); transform: translateY(-2px); }
#footer .social button { background: transparent; color: rgba(255,255,255,0.6); border: none; padding: 0; cursor: pointer; font-size: 1.1rem; transition: color 0.2s ease; }
#footer .social button:hover { color: var(--red-dark); }

#footer #qrcode { width: 80px; height: 80px; margin-top: 0.5rem; border-radius: 0.5rem; padding: 6px; background: #fff; }

@media (min-width: 768px) {
    #footer { padding: 5rem 0; }
    #footer .container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
    #footer section { margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; }
    #footer section:first-child { border-right: 1px solid rgba(255,255,255,0.1); padding-right: 2rem; }
    #footer label:first-child { margin-top: 0; }
}

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


/* ===========================================
    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(12px) saturate(150%);
    backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-left-color: rgba(255, 255, 255, 0.8);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}
.glass:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}


/* ===========================================
    Main
   =========================================== */
h1 { font-family: var(--font-serif); font-size: clamp(2rem, 2.25vw + 1rem, 3.5rem); font-weight: 600; margin-bottom: 2rem; line-height: 1.2; color: #111; }
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: 600; margin-bottom: 1rem; color: #222; }

main { min-height: 100vh; }

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; }

/* ===========================================
    One-page Main
   =========================================== */

/* body 배경이미지를 one-page에서는 숨김 */
html:has(.onepage) {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overscroll-behavior: none;
}
html:has(.onepage) body {
    overscroll-behavior: none;
}

body:has(.onepage) {
    background-image: none;
}

main.onepage {
    padding: 0;
    min-height: auto;
    display: block;
}

/* ---- Onepage: 기존 bar를 모바일에서도 표시 ---- */
body:has(.onepage) #header {
    width: auto;
    padding-top: 0.75rem;
}
body:has(.onepage) .mobile-logo { display: none; }
body:has(.onepage) #main-nav .desktop-menu {
    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);
}
body:has(.onepage) #main-nav .desktop-menu > li > a {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
    display: block;
    border-radius: 2rem;
}

@media (max-width: 767px) {
    body:has(.onepage) #header { padding-top: 0.5rem; }
    body:has(.onepage) #main-nav .desktop-menu .logo-img { width: 70px; min-width: 70px; }
    body:has(.onepage) #main-nav .desktop-menu > li > a { padding: 0.4rem 0.6rem; font-size: 0.8rem; }
}

/* ---- Hero ---- */
.onepage-hero {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background: #fefefe url('/images/bg.png') no-repeat right bottom;
    background-size: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.hero-content { padding: 0 2rem; }
.hero-slogan {
    width: 75%;
    max-width: 380px;
    margin: 0 auto 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}
.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--bs-gray-500);
    letter-spacing: 0.2em;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

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


/* ---- Section common ---- */
.onepage-section {
    min-height: 100vh;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
}
.onepage-section .container-sm {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

/* 섹션 배경 이미지 (공통) */
.onepage-section.has-bg::before {
    content: '';
    position: absolute;
    background: var(--section-bg) no-repeat center / contain;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* 섹션별 배경 위치/크기 — 모바일 */
#worship.has-bg::before {
    width: 70%;
    height: 70%;
    top: -160px; right: -30px;
    opacity: 0.5;
}
#sermon.has-bg::before {
    width: 100%; height: 100%;
    bottom: -30%; left: 0;
    top: auto;
    opacity: 0.5;
}
#education.has-bg::before {
    width: 300px; height: 300px;
    top: 0.5rem; left: 30%;
    opacity: 0.5;
}
#pastoral.has-bg::before {
    width: 90vw; height: 90vw;
    bottom: -2rem; right: -2rem;
    top: auto;
    opacity: 0.5;
}
#missions.has-bg::before {
    width: 90vw; height: 90vw;
    top: 0; left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

/* 짝수 섹션은 흰 배경 */
.onepage-section:nth-child(even) {
    background: #fff;
}

/* ---- Heading ---- */
.section-heading {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 1.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--red-dark);
    display: inline-block;
}

.section-desc {
    color: var(--bs-gray-600);
    font-size: 0.9rem;
    margin-top: -0.75rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ---- Card ---- */
.card {
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.2s ease;
}

/* ---- Worship ---- */
.worship-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
.worship-grid h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #222;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.worship-grid h3 i { color: var(--red-dark); font-size: 0.9rem; }
.worship-grid ul { list-style: none; padding: 0; margin: 0; }
.worship-grid ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: #333;
}
.worship-grid ul label {
    font-weight: 600;
    color: var(--bs-gray-500);
    font-size: 0.8rem;
    min-width: 3.5em;
}
.worship-grid ul.between li { justify-content: space-between; }

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

/* ---- Sermon & Notice ---- */
.info-block { margin-bottom: 2.5rem; }
.info-block:last-child { margin-bottom: 0; }

.sermon-card time {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0;
}
.sermon-meta {
    font-size: 0.85rem;
    color: var(--bs-gray-500);
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
}
.sermon-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.sermon-card h3 a { font-weight: 600; }

.more-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--red-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s ease;
}
.more-link:hover { gap: 0.5rem; color: var(--red-dark); }
.more-link i { font-size: 0.7rem; }

/* Notice */
.notice-list {
    list-style: none;
    margin: 0;
    padding: 1rem 1.5rem;
}
.notice-list li {
    border-bottom: 1px solid var(--bs-gray-100);
}
.notice-list li:last-child { border-bottom: none; }
.notice-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    gap: 1rem;
}
.notice-list .notice-title {
    font-weight: 400;
    font-size: 0.9rem;
    color: #333;
}
.notice-list time {
    font-size: 0.8rem;
    color: var(--bs-gray-400);
    font-weight: 400;
    white-space: nowrap;
}

/* ---- Education ---- */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.edu-item {
    text-align: center;
    padding: 1.25rem 0.75rem;
}
.edu-item:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); }
.edu-icon { font-size: 1.5rem; color: var(--red-dark); margin-bottom: 0.5rem; }
.edu-item h4 { font-size: 0.95rem; font-weight: 700; color: #222; }
.edu-detail { font-size: 0.75rem; color: var(--bs-gray-500); display: block; margin-top: 0.25rem; }
.edu-time { font-size: 0.7rem; color: var(--bs-gray-400); margin-top: 0.25rem; }

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

/* ---- Pastoral ---- */
.pastoral-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
.pastoral-grid h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.75rem;
}
.pastoral-grid p { font-size: 0.9rem; color: #555; line-height: 1.7; margin-bottom: 0.5rem; }
.pastoral-time { font-size: 0.8rem; color: var(--bs-gray-400); display: block; margin-bottom: 0.25rem; }
.pastoral-meta { font-size: 0.8rem; color: var(--bs-gray-500); display: flex; align-items: center; gap: 0.35rem; }
.pastoral-meta i { color: #c13584; }

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

/* ---- Mission ---- */
.mission-quote {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    font-style: italic;
    color: #333;
    margin: 0 0 1.25rem 0;
    padding: 0 0 1rem 0;
    border-bottom: 1px solid var(--bs-gray-200);
    position: relative;
}
.mission-quote::before, .mission-quote::after { display: none; }
.mission-quote cite {
    display: block;
    font-size: 0.75rem;
    font-style: normal;
    color: var(--bs-gray-400);
    margin-top: 0.5rem;
    text-align: right;
}
.mission-card > p { font-size: 0.9rem; color: #555; line-height: 1.7; margin: 0; }

/* footer snap */
body:has(.onepage) #footer {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
}

/* ---- Section Nav ---- */
.section-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 0.35rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.section-nav.on-hero {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.section-nav.on-footer {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.section-nav.on-footer .section-nav-btn {
    color: rgba(255, 255, 255, 0.8);
}
.section-nav.on-footer .section-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.section-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.section-nav-btn svg {
    display: block;
    transition: background 0.2s ease, color 0.2s ease;
}
.section-nav-btn:hover {
    background: var(--bs-gray-100);
    color: var(--red-dark);
}

/* ---- Desktop ---- */
@media (min-width: 768px) {
    .hero-slogan { width: 100%; max-width: 640px; }
    .hero-subtitle { font-size: 0.9rem; }
    .onepage-hero { background-size: 70%; }
    /* 섹션별 배경 — 데스크톱 */
    #worship.has-bg::before {
        width: 50%; height: 50%;
        top: 70%; left: 70%;
        transform: translate(-70%, -70%);
        opacity: 0.5;
    }
    #sermon.has-bg::before {
        width: 50%; height: 50%;
        top: 50%; left: 30%;
        transform: translate(-50%, -30%);
        opacity: 0.5;
    }
    #education.has-bg::before {
        width: 100%; height: 100%;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.5;
    }
    #pastoral.has-bg::before {
        width: 90%; height: 90%;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.5;
    }
    #missions.has-bg::before {
        width: 100%; height: 100%;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.5;
    }
}

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

/* worship-info */
.worship-info section { margin-bottom: 3rem; }
.worship-info section h3 {
    margin: 0;
    padding: 0.5rem 0;
    padding-left: 0.75rem;
    border-bottom: none;
    border-left: 3px solid var(--red-dark);
    font-size: 1.15rem;
    color: #222;
}
.worship-info ul { list-style: none; padding: 0; margin: 0 0 2rem 0; }
.worship-info ul li {
    border-bottom: 1px solid var(--bs-gray-100);
    padding: 0.875rem 0;
    padding-left: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}
.worship-info ul li:last-child { border-bottom: none; }
.worship-info ul li:hover { background-color: var(--bs-gray-100); border-radius: 0.25rem; }
.worship-info ul label { flex: 0 0 40px; font-weight: 600; color: var(--bs-gray-500); font-size: 0.85rem; }
.worship-info .note { color: var(--bs-gray-500); font-size: 0.85rem; }

/* sermon */
main.sermon { padding: 50px 0 ; }
.sermon h1 { margin-bottom: 0.5rem;}
.sermon h4 { color: var(--bs-gray-500); margin-bottom: 2rem; margin-left: 0.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-attachments .btn { font-size: 0.85rem; }
.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; }
.columns li { min-width: 0; padding: 1.5rem; margin-bottom: 1.5rem; }
.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: 150px 0 100px; }
    .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); }
}