@charset "UTF-8";

/* ================================
   전체
================================ */

body {
    margin: 0;
    background-color: #ffffff;
    color: #222222;
    font-family: Arial, "Noto Sans KR", sans-serif;
}

.board-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 34px;
    align-items: start;
}

.community-sidebar {
    width: 100%;
}

.community-box {
    height: 150px;
    padding: 26px 24px;
    border: 8px solid #eef1f4;
    background-color: #ffffff;
    box-sizing: border-box;
    position: relative;
}

.community-box::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 18px;
    width: 42px;
    height: 42px;
    border-top: 1px solid #d9dee5;
    border-right: 1px solid #d9dee5;
    transform: skew(-5deg);
}

.community-box p {
    margin: 24px 0 0;
    font-size: 16px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

.community-box h2 {
    margin: 0;
    font-size: 33px;
    font-weight: 900;
    color: #000000;
    line-height: 1.1;
    letter-spacing: -2px;
}

.community-menu {
    margin-top: 24px;
    border-top: 1px solid #d9dee5;
}

.community-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    border-bottom: 1px solid #d9dee5;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.15s ease;
}

.board-content {
    min-width: 0;
}

.pet {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: #f2eee7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.pet-dog {
    width: 82px;
    height: 82px;
    font-size: 46px;
    background-color: #fff3dc;
}

.pet-cat {
    background-color: #e0f2fe;
}

.pet-bird {
    background-color: #fef9c3;
}

.pet-puppy {
    background-color: #fee2e2;
}

.search-label {
    width: 95px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.board-search-form select {
    width: 140px;
    height: 36px;
    border: 1px solid #cbd5e1;
    padding: 0 10px;
    color: #374151;
    font-size: 14px;
    outline: none;
}

.board-search-form input[type="text"] {
    flex: 1;
    height: 36px;
    border: 1px solid #cbd5e1;
    padding: 0 12px;
    color: #374151;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.board-search-form input[type="text"]:focus, .board-search-form select:focus {
    border-color: #7890d4;
}

.my-board-check {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-size: 14px;
    white-space: nowrap;
}

.my-board-check input {
    width: 15px;
    height: 15px;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.board-table th {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    border-right: 1px solid #e5e7eb;
}

.board-table th:last-child {
    border-right: none;
}

.board-table td {
    font-size: 14px;
    color: #333333;
    text-align: center;
    border-right: 1px solid #e5e7eb;
}

.board-table td:last-child {
    border-right: none;
}

.col-no {
    width: 72px;
}

.col-type {
    width: 120px;
}

.col-title {
    width: auto;
}

.col-writer {
    width: 110px;
}

.col-date {
    width: 116px;
}

.col-comment {
    width: 78px;
}

.col-hit {
    width: 78px;
}

.title-cell {
    text-align: left !important;
    padding: 0 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.title-cell a {
    color: #222222;
    text-decoration: none;
    font-weight: 600;
}

.empty-board {
    height: 150px;
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
}

.board-bottom {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.board-page-dummy {
    display: flex;
    align-items: center;
    gap: 5px;
}

.board-page-dummy button {
    min-width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #374151;
    cursor: pointer;
}

.board-page-dummy button.active {
    background-color: #111827;
    color: #ffffff;
    border-color: #111827;
}

@media (max-width: 1024px) {
    .board-layout {
        grid-template-columns: 200px 1fr;
        gap: 26px;
    }

    .board-hero-image {
        min-width: 260px;
    }

    .pet {
        width: 56px;
        height: 56px;
        font-size: 32px;
    }

    .pet-dog {
        width: 68px;
        height: 68px;
        font-size: 38px;
    }

    .board-hero-title h1 {
        font-size: 40px;
    }

    .my-board-check {
        display: none;
    }
}

@media (max-width: 768px) {
    .board-wrap {
        padding: 34px 16px 60px;
    }

    .board-layout {
        display: block;
    }

    .community-sidebar {
        margin-bottom: 30px;
    }

    .community-box {
        height: auto;
        padding: 22px;
    }

    .community-box p {
        margin-top: 0;
    }

    .community-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        border-top: none;
        margin-top: 14px;
    }

    .community-menu a {
        height: 42px;
        padding: 0 12px;
        border: 1px solid #d9dee5;
        border-radius: 6px;
    }

    .board-hero {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
    }

    .board-hero-title h1 {
        font-size: 34px;
    }

    .board-hero-image {
        min-width: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .board-search-form {
        flex-wrap: wrap;
    }

    .search-label {
        width: 100%;
        justify-content: flex-start;
    }

    .board-search-form select {
        width: 130px;
    }

    .board-search-form input[type="text"] {
        min-width: 180px;
    }

    .board-table {
        min-width: 780px;
    }

    .board-table-area {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .community-menu {
        grid-template-columns: 1fr;
    }

    .board-hero-title h1 {
        font-size: 30px;
    }

    .pet {
        width: 48px;
        height: 48px;
        font-size: 27px;
    }

    .pet-dog {
        width: 58px;
        height: 58px;
        font-size: 32px;
    }

    .board-search-form {
        display: block;
    }

    .board-search-form select, .board-search-form input[type="text"], .board-search-form button {
        width: 100%;
        margin-bottom: 8px;
    }

    .board-bottom {
        flex-direction: column;
        gap: 14px;
    }

    .write-button {
        width: 100%;
    }
}

.image-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    font-size: 14px;
    vertical-align: middle;
}

.animal-filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.animal-filter-head h3 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.animal-filter-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.animal-reset-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background-color: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.animal-reset-link:hover {
    background-color: #374151;
}

.animal-filter-block {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    align-items: flex-start;
}

.animal-filter-block + .animal-filter-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #cbd5e1;
}

.animal-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.animal-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 15px;
    border: 1px solid #d4dde8;
    border-radius: 999px;
    background-color: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.16s ease;
}

.animal-chip.sub {
    background-color: #f8fafc;
}

.animal-chip.sub.active {
    background-color: #4f6fc8;
    border-color: #4f6fc8;
    color: #ffffff;
}

.board-animal-name {
    margin-bottom: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0f9ca8;
    font-size: 12px;
    font-weight: 900;
}

.board-animal-name strong {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .animal-filter-head {
        display: block;
    }

    .animal-reset-link {
        margin-top: 12px;
    }

    .animal-filter-block {
        display: block;
    }

    .animal-filter-label {
        margin-bottom: 8px;
    }
}

.search-reset-button {
    height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.search-reset-button:hover {
    background-color: #f1f5f9;
}

.board-pagination {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.page-button {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #d6dee8;
    border-radius: 7px;
    background-color: #ffffff;
    color: #26364a;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.page-button.active {
    border-color: #18a8e1;
    background-color: #18a8e1;
    color: #ffffff;
}

.page-button.active:hover {
    border-color: #18a8e1;
    background-color: #18a8e1;
    color: #ffffff;
}

.page-move {
    font-size: 13px;
}

.page-disabled {
    border-color: #e4e9ef;
    background-color: #f6f8fa;
    color: #b8c1cc;
    cursor: default;
}

.page-disabled:hover {
    border-color: #e4e9ef;
    background-color: #f6f8fa;
    color: #b8c1cc;
}

@media (max-width: 600px) {
    .board-pagination {
        gap: 4px;
    }

    .page-button {
        min-width: 32px;
        height: 32px;
        padding: 0 7px;
        font-size: 12px;
    }
}

.board-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    --theme-main: #16a7a8;
    --theme-soft: #e9fbfb;
    --theme-border: #bce9e8;
    --theme-text: #087f80;
}

.board-wrap.theme-qna {
    --theme-main: #36a879;
    --theme-soft: #eaf9f1;
    --theme-border: #bfead3;
    --theme-text: #197955;
}

.board-wrap.theme-free {
    --theme-main: #ef9c51;
    --theme-soft: #fff4e9;
    --theme-border: #f8d7b5;
    --theme-text: #c97024;
}

.board-wrap.theme-notice {
    --theme-main: #3e639d;
    --theme-soft: #edf3ff;
    --theme-border: #cad9f3;
    --theme-text: #284d85;
}

.board-hero-visual {
    position: relative;
    width: 180px;
    height: 140px;
    flex-shrink: 0;
}

.hero-main-icon {
    position: absolute;
    z-index: 2;
    right: 32px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 94px;
    height: 94px;
    border: 8px solid #ffffff;
    border-radius: 50%;
    background: var(--theme-soft);
    font-size: 48px;
    box-shadow: 0 12px 22px rgba(48, 89, 119, 0.13);
}

.hero-circle {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: var(--theme-border);
    opacity: 0.65;
}

.hero-circle-one {
    top: 4px;
    right: 4px;
    width: 68px;
    height: 68px;
}

.hero-circle-two {
    bottom: 2px;
    left: 5px;
    width: 38px;
    height: 38px;
}

.community-menu a:hover, .community-menu a.active {
    color: var(--theme-main);
    padding-left: 8px;
}

.community-menu a strong {
    color: var(--theme-main);
    font-size: 22px;
    line-height: 1;
}

.animal-filter-area {
    margin: 24px 0 18px;
    padding: 22px;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    background: linear-gradient(
            135deg,
            var(--theme-soft) 0%,
            #ffffff 100%
    );
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    border-color: var(--theme-border);
}

.animal-filter-label {
    height: 34px;
    display: flex;
    align-items: center;
    color: var(--theme-text);
    font-size: 13px;
    font-weight: 900;
}

.animal-chip:hover {
    border-color: var(--theme-main);
    color: var(--theme-main);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px color-mix(
            in srgb,
            var(--theme-main) 18%,
            transparent
    );
}

.animal-chip.active {
    border-color: var(--theme-main);
    background-color: var(--theme-main);
    color: #ffffff;
    box-shadow: 0 8px 16px color-mix(
            in srgb,
            var(--theme-main) 28%,
            transparent
    );
}

.board-search-area {
    margin-top: 22px;
    border-bottom: 2px solid #222222;
    padding: 12px 16px;
    border: 1px solid #dbe6ef;
    border-radius: 14px;
    background: #ffffff;
}

.board-search-form {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    box-sizing: border-box;
}

.board-search-form button {
    width: 88px;
    height: 36px;
    border: none;
    background-color: var(--theme-main);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    border-radius: 8px;
}

.board-search-form button:hover {
    background-color: #5f78c4;
    filter: brightness(0.92);
}

.board-table-area {
    width: 100%;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid #dbe6ef;
    border-radius: 14px;
    background: #ffffff;
}

.board-table thead tr {
    height: 46px;
    background-color: #f8fafc;
    border-bottom: 1px solid #d9dee5;
    background: #f7fafc;
}

.board-table tbody tr {
    height: 62px;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.16s ease;
}

.board-table tbody tr:hover {
    background-color: var(--theme-soft);
}

.title-cell a:hover {
    color: var(--theme-main);
    text-decoration: underline;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background-color: var(--theme-soft);
    color: var(--theme-text);
    font-size: 12px;
    font-weight: 800;
}

.notice-row {
    background-color: #f3f7ff;
}

.notice-row .type-badge {
    background-color: #3e639d;
    color: #ffffff;
}

.write-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 20px;
    background-color: var(--theme-main);
    color: #ffffff;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.write-button:hover {
    background-color: var(--theme-text);
}

.page-button:hover {
    border-color: var(--theme-main);
    background-color: var(--theme-soft);
    color: var(--theme-text);
}

.page-button.active, .page-button.active:hover {
    border-color: var(--theme-main);
    background-color: var(--theme-main);
}

@media (max-width: 768px) {
    .board-hero {
        min-height: 230px;
        padding: 28px 26px;
    }

    .board-hero-title h1 {
        font-size: 34px;
    }

    .board-hero-visual {
        position: absolute;
        right: 10px;
        bottom: 0;
        transform: scale(0.82);
        transform-origin: right bottom;
    }
}

.board-hero {
    min-height: 238px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid #d9dee5;
    padding-bottom: 18px;
    position: relative;
    overflow: hidden;
    padding: 34px 42px;
    border: 1px solid var(--theme-border, #d7ebf8);
    border-radius: 18px;
    background: linear-gradient(
            120deg,
            var(--theme-soft) 0%,
            #ffffff 72%
    );
    box-sizing: border-box;
}

.board-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.92) 0%,
            rgba(255, 255, 255, 0.72) 40%,
            rgba(255, 255, 255, 0.08) 72%,
            rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

.board-hero-title {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.board-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--theme-main, #169ed8);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.board-hero-title h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 900;
    color: #102547;
    letter-spacing: -2px;
}

.board-hero-title p {
    margin: 12px 0 0;
    font-size: 15px;
    color: #4f6f8c;
    font-weight: 600;
    max-width: 510px;
    line-height: 1.6;
}

.board-hero-image {
    display: block;
    align-items: flex-end;
    gap: 13px;
    min-width: 0;
    justify-content: flex-end;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.board-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .board-hero {
        min-height: 260px;
        padding: 28px 26px;
    }

    .board-hero-title {
        max-width: 75%;
    }

    .board-hero-title h1 {
        font-size: 34px;
    }

    .board-hero-title p {
        font-size: 13px;
    }

    .board-hero-image img {
        object-position: 64% center;
    }
}

.board-filter-loading .board-table-area, .board-filter-loading .board-pagination {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.18s ease;
}
