* { word-break: keep-all; }

/* Bedesda Color Variables */
:root {
    --bedesda-primary: #f39c12;
    --bedesda-primary-dark: #e67e22;
    --bedesda-primary-light: #f8b24f;
    --bedesda-secondary: #5a6c7d;
    --bedesda-secondary-dark: #4a5865;
    --bedesda-secondary-light: #6c7b8a;
    --bedesda-gray-light: #f8f9fa;
    --bedesda-gray-medium: #e0e0e0;
    --bedesda-gray-dark: #666;
    --bedesda-text-primary: #333;
    --bedesda-text-secondary: #666;
    --bedesda-text-light: #999;
}

/* 반응형 시 사이드메뉴 */
.menuicon {
    width: 28px !important;
    height: 28px !important;
}

/* 브레드크럼 */
.breadcrumb-item a {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 서브 내비게이션 */
.list-group-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;

    height: 48px;
}

.tab-navigation {
    display: flex;
    margin-bottom: 30px;
    gap : 1rem;
    /* border-bottom: 1px solid #e0e0e0; */
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--bedesda-text-light);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1rem;
}

.tab-btn:hover {
    color: var(--bedesda-text-secondary);
}

.tab-btn.active {
    background: var(--bedesda-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(187, 187, 187, 0.3);
    border-radius: 0.5rem;
    font-weight: 600;
}

.content-divider {
    width: 2.5rem;
    height: 0.25rem;
    background: color-mix(in srgb, var(--bedesda-primary) 30%, transparent);
    margin-bottom: 10px;
}

.content-title {
    color: var(--bedesda-text-primary);
    margin-bottom: 30px;
}

.mg-top-20 {
    margin-top: 20px !important;
}

.pd-top-20 {
    padding-top: 20px !important;
}
.pd-bottom-20 {
    padding-bottom: 20px !important;
}
.pd-px-20 {
    padding: 20px !important;
}
.pd-top-48 {
    padding-top: 48px !important;
}
.pd-bottom-48 {
    padding-bottom: 48px !important;
}

.pd-top-24 {
    padding-top: 24px !important;
}
.pd-bottom-24 {
    padding-bottom: 24px !important;
}

.fs-px-20 {
    font-size: 20px !important;
}

.fs-px-24 {
    font-size: 24px !important;
}

.fs-px-32 {
    font-size: 32px !important;
}

.bg-gray-700 {
    --bs-bg-opacity: 1;
    background-color: var(--bs-gray-900) !important;
}

.bg-white {
    --bs-bg-opacity: 1;
    background-color: var(--bs-white) !important;
}

.list-group-item.active {
    color: var(--bedesda-primary);
    background-color: var(--bedesda-gray-light);
}

/* Bedesda Button Styles */
.btn-bedesda-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bedesda-primary);
    --bs-btn-border-color: var(--bedesda-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bedesda-primary-dark);
    --bs-btn-hover-border-color: var(--bedesda-primary-dark);
    --bs-btn-focus-shadow-rgb: 243, 156, 18;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bedesda-primary-dark);
    --bs-btn-active-border-color: var(--bedesda-primary-dark);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--bedesda-primary);
    --bs-btn-disabled-border-color: var(--bedesda-primary);
    border: 1px solid var(--bedesda-primary) !important;
}

.btn-outline-bedesda-primary {
    --bs-btn-color: var(--bedesda-primary);
    --bs-btn-border-color: var(--bedesda-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bedesda-primary);
    --bs-btn-hover-border-color: var(--bedesda-primary);
    --bs-btn-focus-shadow-rgb: 243, 156, 18;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bedesda-primary);
    --bs-btn-active-border-color: var(--bedesda-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--bedesda-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--bedesda-primary);
    --bs-gradient: none;
    border: 1px solid var(--bedesda-primary) !important;
    border-top: 1px solid var(--bedesda-primary) !important;
    border-bottom: 1px solid var(--bedesda-primary) !important;
    border-left: 1px solid var(--bedesda-primary) !important;
    border-right: 1px solid var(--bedesda-primary) !important;
}

/* Fix input group border alignment */
.input-group > .btn-outline-bedesda-primary {
    border: 1px solid #ced4da !important;
    border-color: #ced4da !important;
}
.input-group > .btn-outline-bedesda-primary:hover,
.input-group > .btn-outline-bedesda-primary:focus,
.input-group > .btn-outline-bedesda-primary:active {
    border: 1px solid var(--bedesda-primary) !important;
    border-color: var(--bedesda-primary) !important;
}

/* Even more specific rule for search form */
#frmSearch .input-group .btn-outline-bedesda-primary {
    border: 1px solid #ced4da !important;
    border-top: 1px solid #ced4da !important;
    border-bottom: 1px solid #ced4da !important;
    border-left: 1px solid #ced4da !important;
    border-right: 1px solid #ced4da !important;
}
#frmSearch .input-group .btn-outline-bedesda-primary:hover,
#frmSearch .input-group .btn-outline-bedesda-primary:focus,
#frmSearch .input-group .btn-outline-bedesda-primary:active {
    border: 1px solid var(--bedesda-primary) !important;
    border-top: 1px solid var(--bedesda-primary) !important;
    border-bottom: 1px solid var(--bedesda-primary) !important;
    border-left: 1px solid var(--bedesda-primary) !important;
    border-right: 1px solid var(--bedesda-primary) !important;
}

/* Search form width adjustment */
#frmSearch {
    width: 100%;
}
#frmSearch .input-group {
    width: 100%;
    background: var(--bedesda-gray-light);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#frmSearch .input-group .form-control {
    flex: 1;
    min-width: 200px;
    background: #fff !important;
}
#frmSearch .input-group .btn {
    white-space: nowrap;
    background: #fff !important;
}
#frmSearch .input-group .btn:hover {
    color: var(--bedesda-primary);
    /* background: var(--bedesda-primary) !important; */
}

/* Search button always primary */
#frmSearch .input-group .btn#btnSearch,
#frmSearch .input-group button[type="button"]:last-child {
    background: var(--bedesda-primary) !important;
    color: #fff !important;
    border-color: var(--bedesda-primary) !important;
}
#frmSearch .input-group .btn#btnSearch:hover,
#frmSearch .input-group button[type="button"]:last-child:hover {
    background: var(--bedesda-primary-dark) !important;
    border-color: var(--bedesda-primary-dark) !important;
}

/* Focus styles for search form */
#frmSearch .input-group .form-control:focus {
    border-color: var(--bedesda-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25) !important;
}
#frmSearch .input-group .btn:focus {
    border-color: var(--bedesda-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25) !important;
}
#frmSearch .input-group .btn.dropdown-toggle:focus {
    border-color: var(--bedesda-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25) !important;
    color: var(--bedesda-primary);
}
#frmSearch .input-group .btn-outline-bedesda-primary:focus {
    border-color: var(--bedesda-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25) !important;
    color: var(--bedesda-primary);
}

/* Remove all blue focus shadows */
#frmSearch *:focus {
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25) !important;
    border-color: var(--bedesda-primary) !important;
    outline: none !important;
}

/* Override Bootstrap focus styles completely */
#frmSearch .form-control:focus,
#frmSearch .btn:focus,
#frmSearch .btn.focus,
#frmSearch .btn:active:focus,
#frmSearch .btn.active:focus,
#frmSearch input:focus,
#frmSearch button:focus,
#frmSearch .dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25) !important;
    border-color: var(--bedesda-primary) !important;
    outline: 0 !important;
}

/* Remove any default focus outline */
#frmSearch input,
#frmSearch button,
#frmSearch .btn {
    outline: none !important;
}

/* Force override all focus states including input-group */
#frmSearch .input-group:focus-within {
    box-shadow: none !important;
}

/* Global focus override for search form area */
#frmSearch,
#frmSearch *,
#frmSearch *:focus,
#frmSearch *:focus-visible,
#frmSearch *:active,
#frmSearch .input-group,
#frmSearch .input-group:focus-within {
    box-shadow: none !important;
    outline: none !important;
}

/* Only apply bedesda focus to individual elements */
#frmSearch input:focus,
#frmSearch .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25) !important;
    border-color: var(--bedesda-primary) !important;
}

#frmSearch button:focus,
#frmSearch .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25) !important;
    border-color: var(--bedesda-primary) !important;
}

/* Bedesda Footer Styles */
.bedesda-footer {
    background-color: #e9ecef !important;
    border-top: 1px solid #dee2e6;
    padding: 0;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    padding: 48px 120px;
    box-sizing: border-box;
}

.footer-content > .d-flex {
    width: 100%;
    justify-content: space-between;
}

.footer-logo-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-content-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-links-row {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: #6c757d !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--bedesda-primary) !important;
}

.footer-contact-row {
    color: #6c757d;
    font-size: 0.75rem;
    line-height: 1.3;
}

.footer-copyright-row {
    color: #6c757d;
    font-size: 0.75rem;
    line-height: 1.3;
}

.content-wrapper {
    min-height: calc(100vh - 80px);
    background-color: #fff;
}

.bedesda-footer {
    margin-top: auto;
}

/* ---- 푸터 반응형 ---- */
@media screen and (max-width: 1400px) {
    .footer-content {
        padding: 48px 64px;
    }
}

@media screen and (max-width: 960px) {
    .footer-content {
        padding: 48px 16px;
    }
}

@media screen and (max-width: 640px) {
    .footer-content > .d-flex {
        flex-direction: column;
        justify-content: flex-start;
        gap: 24px;
    }

    .footer-content-col {
        gap: 16px;
    }

    .footer-links-row {
        flex-wrap: wrap;
        row-gap: 8px;
    }
}


/* .card.h-200{
    height: 250px;
} */
.card-img-top.h-150 {
    height: 150px;

}

.card-body {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* quill css*/
.ql-size-8px { font-size: 8px !important; }
.ql-size-10px { font-size: 10px !important; }
.ql-size-12px { font-size: 12px !important; }
.ql-size-14px { font-size: 14px !important; }
.ql-size-16px { font-size: 16px !important; }
.ql-size-18px { font-size: 18px !important; }
.ql-size-20px { font-size: 20px !important; }
.ql-size-24px { font-size: 24px !important; }
.ql-size-28px { font-size: 28px !important; }
.ql-size-32px { font-size: 32px !important; }
.ql-size-48px { font-size: 48px !important; }

/* Post List Icons */
.post-secret-icon {
    color: var(--bedesda-text-light);
    font-size: 1.2em;
    vertical-align: middle;
    margin-left: 0.25rem;
}

/* Badge Styles */
.bg-bedesda-primary {
    background-color: var(--bedesda-primary) !important;
}

/* Responsive Improvements */
@media screen and (max-width: 960px) {
    /* Tab Navigation Responsive */
    .tab-btn {
        width: 100%;
        padding: 8px 0px;
        font-size: 1rem;
        flex: 0 1 auto;
    }
}

@media (max-width: 768px) {
    .board-contents {
        margin-top: 32px;
    }

    /* Search Form Responsive */
    #frmSearch .input-group {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        padding: 12px;
    }

    #frmSearch .input-group .btn.dropdown-toggle {
        order: 1;
        width: 100%;
        min-width: auto;
        justify-content: space-between;
    }

    #frmSearch .input-group .form-control {
        order: 2;
        width: 100%;
        min-width: auto;
    }

    #frmSearch .input-group .btn#btnSearch {
        order: 3;
        width: 100%;
        min-width: auto;
        margin-top: 4px;
    }

    #frmSearch .input-group button,
    #frmSearch .input-group ul,
    #frmSearch .input-group input {
        border-radius: 4px;
    }

    /* Tab Navigation Responsive */
    #bedesda-tab-navigation {
        display: none;
    }

    .tab-navigation {
        /* flex-wrap: wrap; */
        gap: 0.5rem;
        margin-bottom: 20px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 1rem;
        min-width: auto;
        flex: 0 1 auto;
    }

    /* Table Header Responsive */
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
    }

    /* Hide less important columns */
    .table th:nth-child(4), /* 등록날짜 */
    .table td:nth-child(4) {
        display: none;
    }

    .table th:nth-child(5), /* 조회수 */
    .table td:nth-child(5) {
        display: none;
    }

    /* Adjust column widths */
    .table th:nth-child(1), /* 순번 */
    .table td:nth-child(1) {
        width: 50px;
        text-align: center;
    }

    .table th:nth-child(2), /* 제목 */
    .table td:nth-child(2) {
        width: auto;
        min-width: 200px;
    }

    .table th:nth-child(3), /* 작성자 */
    .table td:nth-child(3) {
        width: 80px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    /* Search Form Mobile */
    #frmSearch .input-group {
        padding: 10px;
        gap: 6px;
    }

    #frmSearch .input-group .btn,
    #frmSearch .input-group .form-control {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    /* Tab Navigation Mobile */
    .tab-navigation {
        flex-wrap: wrap;
        gap: 0.25rem;
        margin-bottom: 15px;
    }

    .tab-btn {
        width: auto;
        padding: 6px 10px;
        font-size: 1rem;
    }

    /* Table Mobile */
    .table th,
    .table td {
        padding: 0.4rem 0.15rem;
        font-size: 0.8rem;
    }

    .table th:nth-child(1), /* 순번 */
    .table td:nth-child(1) {
        width: 40px;
    }

    .table th:nth-child(2), /* 제목 */
    .table td:nth-child(2) {
        min-width: 150px;
    }

    .table th:nth-child(3), /* 작성자 */
    .table td:nth-child(3) {
        width: 70px;
        font-size: 0.75rem;
    }

    /* Card spacing */
    .card-header {
        padding: 1rem 0.75rem;
    }

    .card-body {
        padding: 1rem 0.75rem;
    }

    /* Container padding */
    .container-xxl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Pagination Styles */
.pagination .page-link {
    color: var(--bedesda-text-light);
    background-color: transparent;
    border: 1px solid var(--bedesda-gray-medium);
    padding: 0.5rem 0.75rem;
    margin: 0 2px;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

.pagination .page-link:hover {
    color: #fff;
    background-color: var(--bedesda-primary);
    border-color: var(--bedesda-primary);
}

.pagination .page-link:focus {
    color: var(--bedesda-text-light);
    background-color: transparent;
    border-color: var(--bedesda-gray-medium);
    box-shadow: 0 0 0 0.2rem rgba(224, 224, 224, 0.25);
}

.pagination .page-item.active .page-link {
    color: var(--bedesda-primary);
    background-color: transparent;
    border-color: var(--bedesda-primary);
    box-shadow: none;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: var(--bedesda-text-light);
    background-color: transparent;
    border-color: var(--bedesda-gray-medium);
    opacity: 0.5;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0.375rem;
}

/* Remove default Bootstrap pagination styles */
.pagination .page-item + .page-item .page-link {
    margin-left: 0;
}