@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #722F37;
    /* Cathedral Burgundy */
    --accent-color: #D4AF37;
    /* Sacred Gold */
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #fdfdfd;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --header-bg: rgba(255, 255, 255, 0.95);
    --top-bar-bg: #f8f8f8;
    --border-color: #eeeeee;
}

/* GNUBoard Default Reset */
#hd,
#ft,
#aside,
#container_title,
.sound_only {
    display: none !important;
}

body {
    padding: 0 !important;
    margin: 0 !important;
}

#wrapper {
    margin-top: 140px !important;
}

/* 헤더 공간 확실히 확보 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999 !important;
    /* 그누보드 모든 요소보다 위에 오도록 */
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    padding: 0;
}

header.scrolled {
    padding: 0 0 10px 0;
}

.top-bar {
    background: var(--top-bar-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 2px 0;
    /* Reduced from 5px */
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
}

.auth-links {
    display: flex;
    gap: 15px;
    list-style: none;
}

.auth-links li a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.8rem;
    transition: var(--transition);
}

.auth-links li a:hover {
    color: var(--primary-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--primary-color);
    padding: 15px 0;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-text .diocese {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    opacity: 0.9;
}

.logo-text .cathedral {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    gap: 45px;
    list-style: none;
}

.nav-links>li {
    position: relative;
    padding: 25px 0;
}

.nav-links>li>a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 10px 0;
    transition: var(--transition);
}

.nav-links>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links>li:hover>a {
    color: var(--primary-color);
}

.nav-links>li:hover>a::after {
    width: 100%;
}

/* Disable underline and absolute positioning for mobile pseudo-elements */
@media (max-width: 768px) {
    .nav-links>li>a::after {
        position: static !important;
        transform: none !important;
        left: auto !important;
        width: auto !important;
        margin-left: 15px;
    }

    .nav-links>li:hover>a::after {
        width: auto !important;
        display: inline-block;
    }
}

/* Submenu Styling */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    padding: 15px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    border-top: 2px solid var(--primary-color);
}

.nav-links>li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu li {
    width: 100%;
}

.submenu li a {
    display: block;
    padding: 10px 25px;
    font-size: 0.95rem;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.submenu li a:hover {
    color: var(--primary-color);
    background-color: #fcf6f7;
}

.submenu li a::after {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    width: 32px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.mobile-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.mobile-toggle span:nth-child(1) {
    top: 0px;
}

.mobile-toggle span:nth-child(2) {
    top: 10px;
}

.mobile-toggle span:nth-child(3) {
    top: 20px;
}

.mobile-toggle.open span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
    left: -40px;
}

.mobile-toggle.open span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

.nav-utility {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
}

.btn-mass {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-mass:hover {
    background-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(114, 47, 55, 0.3);
}

/* Hero Section */
.hero {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    padding: 0;
}

.hero-narrow {
    max-width: 1200px;
    width: calc(100% - 40px);
    height: 550px;
    margin: 140px auto 20px;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s linear;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1.2s ease;
}

.hero-content h1 {
    font-size: 4.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Quick Menu */
.quick-menu {
    margin-top: -80px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.quick-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-item {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
}

.quick-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(114, 47, 55, 0.15);
}

.quick-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.quick-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Section Common */
section {
    padding: 30px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title .line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

/* News Section */
.news-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.news-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-img {
    height: 200px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.news-body {
    padding: 25px;
}

.news-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}

.news-body h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Info Section */
.info-section {
    background-color: #f8f8f8;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.info-text h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    line-height: 1.2;
}

.info-text p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.info-btn {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 5px;
    transition: var(--transition);
}

.info-btn:hover {
    gap: 15px;
    color: var(--text-dark);
}

.info-img {
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.info-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 50px;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding: 0 20px;
}

.footer-info h3 {
    color: var(--white);
    font-size: 1.17rem;
    /* 18.72px */
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -0.03em;
    font-family: 'Noto Sans KR', sans-serif;
}

.footer-info p {
    margin-bottom: 8px;
    line-height: 1.6;
    font-weight: 300;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.17rem;
    /* 18.72px */
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -0.03em;
    font-family: 'Noto Sans KR', sans-serif;
}


.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 300;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 30px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    font-weight: 300;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .quick-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 !important;
    }

    .top-bar {
        display: none;
        /* Hide top bar on mobile for simplicity */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex;
        padding-top: 80px;
        /* Space for logo/toggle */
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links>li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links>li>a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 18px 25px !important;
        width: 100% !important;
        font-size: 1.1rem;
        color: var(--text-dark);
        font-weight: 600;
        text-decoration: none !important;
        white-space: nowrap;
        background: transparent !important;
        border: none !important;
        transform: none !important;
        transition: color 0.2s ease;
    }

    .nav-links>li>a::after {
        content: '\f067';
        /* FontAwesome Plus */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.8rem;
        position: static !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        background: none !important;
        color: var(--text-light);
        margin-left: 15px;
        flex-shrink: 0;
    }

    /* Prevent any hover text shift or background blocks */
    .nav-links>li:hover>a {
        color: var(--primary-color) !important;
        background: transparent !important;
    }

    .nav-links>li.toggle-open>a {
        color: var(--primary-color) !important;
    }

    .nav-links>li.toggle-open>a::after {
        content: '\f068';
        /* FontAwesome Minus */
        color: var(--primary-color);
    }

    /* Mobile Submenu Accordion */
    .nav-links .submenu {
        position: static;
        width: 100%;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        background-color: var(--bg-light);
        box-shadow: none;
        border-top: 1px solid var(--border-color);
        padding: 0;
        border-radius: 0;
    }

    .nav-links .submenu li a {
        display: block !important;
        padding: 15px 40px !important;
        font-size: 0.95rem;
        text-align: left !important;
        color: var(--text-light) !important;
        border-bottom: 1px solid var(--border-color);
        background: transparent !important;
        text-decoration: none !important;
    }

    .nav-links .submenu li a:hover {
        background-color: rgba(114, 47, 55, 0.05) !important;
        color: var(--primary-color) !important;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-utility {
        margin-right: 0;
    }

    .nav-utility .btn-mass {
        display: none;
        /* Hide mass button on small mobile to save space, or keep if needed */
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-img {
        height: 300px;
        order: -1;
    }

    .hero-narrow {
        height: 400px;
        margin-top: 100px;
        border-radius: 20px;
        width: calc(100% - 30px);
    }
}

/* Sub Page Styles */
.sub-visual {
    width: 100%;
    height: 200px;
    margin-top: 100px;
    /* Space for the fixed header */
    position: relative;
    background-color: #f4f4f4;
    /* Light gray for the right side */
    overflow: hidden;
    padding: 0;
}


.sub-visual-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 200px;
    display: flex;
    position: relative;
    z-index: 2;
    /* Sits above the burgundy wing */
    padding: 0 20px;
    align-items: stretch;
}

/* Red title box part */
.sub-visual-title {
    width: 250px;
    height: 200px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 30px;
    flex-shrink: 0;
}

.sub-visual-title h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.sub-visual-title p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.4;
    word-break: keep-all;
}

/* Image part */
.sub-visual-img {
    flex-grow: 1;
    height: 200px;
    background-image: url('/img/hero.png');
    background-size: cover;
    background-position: center;
}

.sub-layout {
    display: flex;
    gap: 50px;
    padding: 60px 0;
    align-items: flex-start;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-title {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 18px 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    border: 1px solid #eee;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 1rem;
    /* 1.05rem에서 1rem으로 교정 */
    font-weight: 400;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.sidebar-menu li:last-child a {
    border-bottom: none;
}

.sidebar-menu li a:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
}

.sidebar-menu li a.active {
    background-color: var(--primary-color);
    color: var(--white) !important;
    font-weight: 500;
}

.sub-content {
    flex-grow: 1;
    padding-top: 0;
}

.content-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--text-dark);
    padding-bottom: 15px;
}

.content-title h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    text-decoration: none;
    color: inherit;
}

.breadcrumb i {
    margin: 0 5px;
    font-size: 0.8rem;
}

/* Board List (GNU Board Style) */
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.board-total {
    color: var(--text-light);
}

.board-search {
    display: flex;
    gap: 5px;
}

.board-search select,
.board-search input {
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-size: 0.95rem;
    color: #444;
    background-color: #fff;
    transition: var(--transition);
}

.board-search select {
    padding-right: 30px;
    cursor: pointer;
}

.board-search input:focus {
    border-color: var(--primary-color);
}

.btn-search {
    height: 40px;
    padding: 0 25px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    /* Prevent text wrap */
}

.btn-search:hover {
    background-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Board List (GNU Board & Custom) */
#bo_list {
    margin-bottom: 60px;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid var(--text-dark);
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}

.board-table th {
    background: #f8f8f8;
    color: #333;
    font-weight: 600;
    padding: 18px 10px;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
    text-align: center;
}

.board-table td {
    padding: 18px 10px;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 1rem;
    text-align: center;
    vertical-align: middle;
}

.board-table .td_subject {
    text-align: left !important;
    padding-left: 20px !important;
}

.board-table .td_subject a {
    color: #333;
    font-weight: 400;
    font-size: 1.05rem;
    transition: var(--transition);
    text-decoration: none;
}

.board-table .td_subject a:hover {
    color: var(--primary-color);
}

.notice-badge {
    background: #1a1a1a;
    color: #fff;
    padding: 3px 12px;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-right: 10px;
}

.bo_notice td {
    background-color: #fdfdfd !important;
}

.bo_notice td a {
    font-weight: 600;
}

/* Board Footer (Pagination & Buttons) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0 30px;
    /* Reduced bottom margin to accommodate buttons below */
    width: 100%;
}

.pagination .pg_wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination .pg_page,
.pagination .pg_current,
.pagination .pg_start,
.pagination .pg_prev,
.pagination .pg_next,
.pagination .pg_end {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e1e1e1;
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
    background-color: #fff;
    border-radius: 4px;
    box-sizing: border-box;
}

.pagination a.pg_page:hover,
.pagination a:hover {
    border-color: #333;
    color: #333;
    background-color: #f9f9f9;
}

.pagination .pg_current {
    background-color: #fff;
    border-color: #333;
    color: #333;
    font-weight: 700;
}

/* Hide text and show icons for G5 navigation */
.pagination .pg_start,
.pagination .pg_end {
    display: none !important;
}

.pagination .pg_prev,
.pagination .pg_next {
    font-size: 0;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.pagination .pg_prev::before {
    content: "\f053";
    font-size: 0.8rem;
}

.pagination .pg_next::before {
    content: "\f054";
    font-size: 0.8rem;
}

.bo_fx {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 50px;
}

.btn_bo_user {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    float: none;
    /* override default float */
}

.btn_bo_user li {
    float: none !important;
    /* override default float */
    width: auto !important;
    /* override default fixed width (40px) */
    margin: 0 !important;
    background: none !important;
}

.btn_admin,
.btn_mass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 25px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    line-height: normal;
    box-sizing: border-box;
}

.btn_admin {
    background: #f9f9f9;
    border: 1px solid #ddd;
    color: #666;
}

.btn_admin:hover {
    background: #eee;
    color: #333;
    border-color: #ccc;
}

.btn_mass {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff !important;
}

.btn_mass:hover {
    background: #8e1a2d;
    /* Slightly darker burgundy */
    box-shadow: 0 2px 10px rgba(114, 47, 55, 0.2);
    color: #fff !important;
}

/* Sub Page Responsive */
@media (max-width: 992px) {
    .sub-visual {
        height: auto;
        min-height: 150px;
    }

    .sub-visual-container {
        flex-direction: column;
        height: auto;
        padding: 0;
    }

    .sub-visual-title {
        width: 100%;
        height: auto;
        padding: 30px 20px;
        text-align: center;
    }

    .sub-visual-img {
        display: none;
    }

    .sub-layout {
        flex-direction: column;
        padding: 30px 0;
        gap: 0;
    }

    .sidebar {
        display: none;
    }

    .sub-content {
        width: 100%;
        padding: 0 15px;
    }

    .content-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .board-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .board-search {
        width: 100%;
    }

    .board-table {
        display: table;
        width: 100%;
        border-top: 1px solid #333;
    }

    .board-table thead {
        display: none;
        /* Hide headers */
    }

    .board-table tr {
        display: flex;
        flex-direction: column;
        padding: 15px 10px;
        border-bottom: 1px solid #eee;
    }

    .board-table td {
        border: none;
        padding: 0;
        text-align: left;
    }

    /* Column Specifics */
    .board-table .td_num:not(.bo_notice),
    .board-table .td_name,
    .board-table .td_hit {
        display: none !important;
        /* Hide less important info */
    }

    .board-table .bo_notice .td_num {
        display: block !important;
        margin-bottom: 8px;
    }

    .board-table .td_subject {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 5px;
    }

    .board-table .td_subject a {
        font-size: 1.05rem;
        font-weight: 500;
        word-break: break-all;
        line-height: 1.4;
    }

    .board-table .td_date {
        display: block !important;
        font-size: 0.85rem;
        color: #999;
    }

    /* Board View Content Padding */
    #bo_v_atc {
        padding: 15px 0 !important;
    }
}