/* subpage 공통 */
.sub_visual {
    width: 100%;
    height: 450px;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('/images/image01.png') no-repeat center / cover;
    display: flex;
    align-items: center;
    color: #fff;
    padding-top: 130px;
}

.sub_content {
    padding: 60px 0;
    min-height: 500px;
}


.sub_visual .inner {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding-left: 150px;
}

.title_en {
    display: block;
    color: #d49a37;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.title_kr {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.4;
    color: #fff;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.597);
}

.sub_content .inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.sub_title_wrap {
    position: relative;
    text-align: center;
    margin-bottom: 50px;
}

.sub_title_wrap h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    letter-spacing: -1px;
}

.breadcrumb {
    position: absolute;
    right: 0;
    bottom: 5px;
    font-size: 0.85rem;
    color: #888;
}

.breadcrumb a.home {
    color: #666666;
}

.breadcrumb a.home:hover {
    color: #d49a37;
    font-weight: 400;
}

.breadcrumb .current {
    color: #d49a37;
    font-weight: 700;
}

/* info */
.about {
    max-width: 800px;
    margin: 90px auto 0;
    text-align: left;
}

.about_subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: #d49a37;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

.about_subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2.5px;
    background-color: #d49a375a;
    border-radius: 2px;
}

.description .highlight_text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #111111;
    margin-bottom: 25px;
}

.description .highlight_text strong {
    color: #a37500;
    font-weight: 700;
}

.description p {
    font-weight: 400;
    font-size: 1.05rem;
    color: #333333;
    line-height: 1.85; 
    margin-bottom: 28px;
}

.description p:last-child {
    margin-bottom: 0;
}

/* worship */
.worship_table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.95rem;
    border-top: 2px solid #3837378a;
    border-bottom: 1px solid #cccccc;
}

.worship_table thead th {
    background-color: #222222ae;
    color: #fff;
    padding: 16px 10px;
    font-weight: 600;
    font-size: 1rem;
    border-right: 1px solid #3837378a;
}

.worship_table thead th:last-child {
    border-right: none;
}

.worship_table tbody td {
    padding: 16px 10px;
    color: #333333;
    border-bottom: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    vertical-align: middle;
}

.worship_table tbody td:last-child {
    border-right: none;
}

.worship_table .day_cell {
    font-weight: 700;
    color: #111;
    background-color: #f8f9fa;
    border-right: 1px solid #eee;
}

/* location */
.locaiton_info {
    margin-top: 30px;
    border-top: 2px solid #2b2d30;
}

.info_list {
    padding: 0;
    margin: 0;
}

.info_list>li {
    display: flex;
    padding: 20px 10px;
    border-bottom: 1px solid #e5e5e5;
    align-items: flex-start;
}

.info_list .info_title {
    width: 140px;
    flex-shrink: 0;
    font-size: 1.05rem;
    color: #2b2d30;
}

.info_list .info_title strong {
    position: relative;
    padding-left: 12px;
}

.info_list .info_title strong::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 14px;
    background-color: #d49a37;
    border-radius: 2px;
}

.info_list .info_desc {
    flex-grow: 1;
    font-size: 1rem;
    color: #444444;
    line-height: 1.7;
}

.address_text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #111111;
    margin-bottom: 10px;
}

.info_desc .transit_cate {
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.info_desc .transit_cate.mt {
    margin-top: 14px;
}

.info_desc .transit_detail {
    margin-left: 10px;
}

.info_desc .transit_detail p {
    margin-bottom: 6px;
}

.info_desc .transit_detail p:last-child {
    margin-bottom: 0;
}

.info_desc .sub_note {
    font-size: 0.88rem;
    color: #777;
    display: inline-block;
    margin-top: 2px;
}

.map_area {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.root_daum_roughmap {
    width: 100% !important;
}

@media (max-width: 768px) {
    .info_list>li {
        flex-direction: column;
    }

    .info_list .info_title {
        margin-bottom: 8px;
    }
}

/*group*/
.dept_container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

.dept_section {
    margin-bottom: 50px;
}

.dept_title {
    font-size: 1.3rem;
    color: #2b2d30;
    margin-bottom: 20px;
    padding-left: 14px;
    position: relative;
}

.dept_title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: #d49a37;
    border-radius: 2px;
}

.dept_info_list {
    border-top: 1px solid #eee;
}

.dept_info_list li {
    display: flex;
    padding: 16px 10px;
    border-bottom: 1px solid #eee;
}

.dept_info_list .label {
    width: 120px;
    font-weight: 600;
    color: #2b2d30;
    flex-shrink: 0;
}

.dept_info_list .value {
    color: #555;
}

.program_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.program_card {
    background-color: #f9f9fb;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e9e9ed;
}

.program_card h4 {
    font-size: 1.1rem;
    color: #2b2d30;
    margin-bottom: 10px;
}

.program_card p {
    font-size: 0.95rem;
    color: #666;
}

.gallery_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery_item {
    width: 100%;
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #eee;
}

.gallery_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* album */
.album_action_wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    margin-bottom: 25px;
}

.btn_album_write {
    padding: 10px 20px;
    background-color: #ee9373;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn_album_write:hover {
    background-color: #e07f5f;
}

.btn_album_write:active {
    transform: scale(0.98);
}

.gallery_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.album_card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.album_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.album_img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #f1f5f9;
}

.album_info {
    padding: 16px;
}

.album_title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album_meta {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
}

.album_empty_msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: #888888;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal_content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal_title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.modal_close {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 1.8rem;
    color: #64748b;
    line-height: 1;
}

.modal_close:hover {
    color: #0f172a;
}

.form_group {
    margin-bottom: 18px;
}

.form_group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.form_group input[type="text"],
.form_group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form_group input:focus,
.form_group textarea:focus {
    border-color: #ee9373;
}

.btn_file_select {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn_file_select:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
}

.file_preview_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    margin-top: 12px;
    max-height: 180px;
    overflow-y: auto;
    padding: 2px;
}

.preview_empty_txt {
    grid-column: 1 / -1;
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
    padding: 10px 0;
}

.preview_item {
    position: relative;
    width: 100%;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.preview_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn_del_file {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn_del_file:hover {
    background-color: #ef4444;
}

.btn_submit {
    width: 100%;
    padding: 12px;
    background-color: #ee9373;
    color: #ffffff;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.2s;
}

.btn_submit:hover {
    background-color: #e07f5f;
}

/* 앨범 페이지네이션 (Pagination Style) */
.pagination_wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px;
    width: 100%;
    margin-top: 50px;
    margin-bottom: 30px;
    clear: both;
}

.page_btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.page_btn:hover {
    border-color: #ee9373;
    color: #ee9373;
    background-color: #fffaf8;
}

.page_btn.active {
    background-color: #ee9373 !important;
    color: #ffffff !important;
    border-color: #ee9373 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 10px rgba(238, 147, 115, 0.35);
}

/* ================= 앨범 상세 레이아웃 ================= */
.album_detail_inner {
    max-width: 900px;
    margin: 0 auto;
}

.album_meta_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.album_meta_info {
    font-size: 0.95rem;
    color: #64748b;
}

#albumDetailAuthor {
    margin-right: 15px;
    font-weight: 700;
    color: #334155;
}

.detail_admin_btns,
.detail_btn_group {
    display: none;
    gap: 8px;
}

.album_detail_body {
    margin-bottom: 40px;
}

.album_img_wrap {
    text-align: center;
    margin-bottom: 25px;
}

.album_detail_img,
.detail_img {
    max-width: 600px;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 0 auto 20px auto;
    background-color: #f8fafc;
}

.album_detail_desc,
.detail_desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1e293b;
    white-space: pre-wrap;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
}

.album_back_wrap {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn_back {
    background-color: #64748b;
}

.btn_edit {
    padding: 8px 16px;
    background-color: #64748b;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 700;
}

.btn_delete {
    padding: 8px 16px;
    background-color: #ef4444;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 700;
}

.btn_edit:hover {
    background-color: #475569;
}

.btn_delete:hover {
    background-color: #dc2626;
}

.add_photo_wrap {
    margin-bottom: 10px;
}

.hide_file_input {
    display: none;
}

.btn_add_photo {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn_add_photo:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.file_preview_container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.edit_preview_item {
    position: relative;
    display: inline-block;
    width: 72px;
    height: 72px;
    margin-top: 6px;
}

.edit_preview_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.edit_preview_item.new_file img {
    border: 2px solid #ee9373;
}

.btn_del_edit {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    z-index: 5;
    line-height: 1;
}

.btn_del_edit:hover {
    background-color: #dc2626;
}

.edit_preview_empty {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* login */
.login-box {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: #1a202c;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
}

.form-group input {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3182ce;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.login-btn:hover {
    background: #2c5282;
}

.bottom-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: #718096;
}

.bottom-link a {
    color: #3182ce;
    text-decoration: underline;
    margin-left: 5px;
}

/* signup */
.signup-box {
    max-width: 440px;
    margin: 60px auto;
    padding: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.signup-box h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: #1a202c;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
}

.form-group input {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3182ce;
}

.guide-text {
    font-size: 0.8rem;
    color: #e53e3e;
    margin-top: 4px;
}

.signup-btn {
    width: 100%;
    padding: 14px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.signup-btn:hover {
    background: #2c5282;
}

/* SiteLink */
/* 관련 사이트 페이지 영역 */
.page_sitelinks {
    padding: 50px 0 80px;
}

.page_sitelinks .link_group {
    margin-bottom: 40px;
}

.page_sitelinks .link_group:last-child {
    margin-bottom: 0;
}

.page_sitelinks .category_title {
    font-size: 16px;
    font-weight: 700;
    color: #EE9373;
    margin-bottom: 14px;
}

.page_sitelinks .link_grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 0;
    margin: 0;
}

.page_sitelinks .link_grid a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 170px;
}

.page_sitelinks .link_grid a:hover {
    background-color: #ffffff;
    border-color: #EE9373;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.page_sitelinks .link_grid .thumb {
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.page_sitelinks .link_grid .thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.page_sitelinks .link_grid .thumb.icon_arrow {
    color: #888888;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    padding-top: 0;
    padding-bottom: 3px;
}

.page_sitelinks .link_grid a:hover .thumb.icon_arrow {
    color: #EE9373;
}

.page_sitelinks .link_grid .name {
    font-size: 13px;
    font-weight: 500;
    color: #333333;
    line-height: 1.25;
    word-break: keep-all;
}

.page_sitelinks .link_grid a:hover .name {
    color: #EE9373;
}

@media (max-width: 1024px) {
    .page_sitelinks .link_grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .page_sitelinks .link_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 서브페이지 미디어쿼리 (768px 이하) */
@media (max-width: 768px) {
    .sub_visual {
        height: 350px;
        padding-top: 80px;
    }
    .sub_visual .inner {
        padding-left: 20px;
        padding-right: 20px;
    }
    .title_kr {
        font-size: 1.8rem;
    }
    .sub_content {
        padding: 40px 0;
    }
    .sub_title_wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 40px;
    }
    .breadcrumb {
        position: static;
        font-size: 0.8rem;
    }

    .about {
        margin-top: 40px;
    }
    .about_subtitle {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    .about_subtitle::after {
        left: 0;
        transform: none;
        width: 100%;
    }
    .description .highlight_text {
        font-size: 1.05rem;
    }
    .description p {
        font-weight: 400;
        font-size: 0.9rem;
        line-height: 1.5; 
        margin-bottom: 20px;
    }
    
    .root_daum_roughmap .canvas {
        height: 320px !important;
    }
    
    .program_grid,
    .gallery_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .gallery_item {
        height: 220px;
    }


    .album_img {
        height: 180px;
    }
}

/* 서브페이지 모바일 (480px 이하) */
@media (max-width: 480px) {
    .sub_visual {
        height: 300px;
    }
    .title_en {
        font-size: 0.8rem;
    }
    .title_kr {
        font-size: 1.45rem;
    }
    .sub_title_wrap h2 {
        font-size: 1.6rem;
    }
    
    .root_daum_roughmap .canvas {
        height: 250px !important;
    }
    .info_desc .transit_detail {
        margin-left: 0;
    }

    .dept_container {
        padding: 10px 16px 40px;
    }
    .dept_info_list .label {
        width: 80px;
    }
    .program_grid,
    .gallery_grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .gallery_item {
        height: 200px;
    }

    .album_action_wrap {
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .btn_album_write {
        width: 100%;
        padding: 12px;
    }

    .modal_content {
        padding: 20px 16px;
        width: 92%;
    }

    .album_img {
        height: 200px;
    }

    .album_meta_wrap {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .album_meta_info {
        display: flex;
        align-items: center;
        gap: 8px; 
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .detail_admin_btns {
        display: flex;
        gap: 6px;
        margin-left: auto; 
    }

    .detail_admin_btns button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}
