/* =========================
   ABOUT PAGE
========================= */

.about-page {
    padding: 80px 0 120px;
    background: #fff;
}

.sub-info-text {
    margin-top: 38px;      /* 설명과 정보 사이 간격 */
    color: #2456d3;
    font-size: 24px;
    font-weight: 700;
    line-height: 2.2;      /* 줄 간격 증가 */
    letter-spacing: -0.02em;
}

.sub-info-text p {
    display: flex;
    justify-content: space-between;
    gap: 80px;             /* 항목 간 간격 */
    margin: 0;
}

.sub-info-text span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.about-write-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    background: #1d3557;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    transition: 0.2s ease;
}

.about-write-btn:hover {
    background: #16304f;
}

.about-category-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -8px 0 42px;
}

.about-category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 42px;
    padding: 0 20px;
    border: 1px solid #dbe2ea;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    font-size: 15px;
    font-weight: 800;
    transition: 0.2s ease;
}

.about-category-tab:hover {
    border-color: #1d3557;
    color: #1d3557;
}

.about-category-tab.is-active {
    border-color: #1d3557;
    background: #1d3557;
    color: #fff;
}

.about-item-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    margin-bottom: 14px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
}

/* =========================
   SECTION LIST
========================= */

.about-section-list {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.about-section-item {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

/* =========================
   IMAGE
========================= */

.about-image {
    overflow: hidden;
    border-radius: 28px;
    background: #dbe5f0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.about-image img {
    display: block;
    width: 100%;
    height: 700px;
    object-fit: cover;
    transition: 0.4s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* =========================
   CONTENT
========================= */

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    margin: 0 0 28px;
    color: #111827;
    font-size: 42px;
    line-height: 1.3;
    font-weight: 900;
}

.about-desc {
    color: #475569;
    font-size: 18px;
    line-height: 1.9;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.about-admin-btns {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.about-admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.about-admin-btn.edit {
    background: #1d4ed8;
    color: #fff;
}

.about-admin-btn.delete {
    background: #ef4444;
    color: #fff;
}

.about-admin-btn.view:hover {
    background: #e2e8f0;
}

.about-admin-btn.edit:hover {
    background: #1e40af;
}

.about-admin-btn.delete:hover {
    background: #dc2626;
}

/* =========================
   EMPTY
========================= */

.empty-about {
    padding: 120px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    color: #64748b;
    font-size: 16px;
    text-align: center;
}

/* =========================
   PAGINATION
========================= */

.about-page .pg_wrap {
    margin-top: 80px;
}

/* =========================
   WRITE
========================= */

.about-write-page {
    padding: 80px 0 100px;
    background: #fff;
}

.about-write-box {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #fff;
}

.write-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 24px;
    padding: 22px 26px;
    border-bottom: 1px solid #e2e8f0;
}

.write-row:last-child {
    border-bottom: 0;
}

.write-row > label {
    color: #111827;
    font-size: 15px;
    font-weight: 800;
}

.write-row > label strong {
    color: #ef4444;
}

.write-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.write-inline span {
    font-size: 16px;
}

.write-row input[type="text"],
.write-row input[type="date"],
.write-row select,
.write-row textarea {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 15px;
}

.write-row input[type="file"] {
    height: 44px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    line-height: 1;
}

.write-row input[type="file"]::file-selector-button {
    height: 28px;
    margin-right: 10px;
    padding: 0 10px;
    border: 1px solid #9ca3af;
    border-radius: 4px;
    background: #f8fafc;
    color: #111827;
    font-size: 14px;
    cursor: pointer;
}

.detail-file-row.is-hidden {
    display: none;
}

.write-row textarea {
    width: 100%;
    min-height: 180px;
    padding: 14px;
    line-height: 1.7;
}

.file-current {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.file-name {
    color: #64748b;
    font-size: 14px;
}

.file-delete-btn {
    padding: 0;
    background: none;
    border: none;
    color: #dc2626;
    font-size: 14px;
    cursor: pointer;
}

.write-btn-wrap {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
}

.btn-cancel,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 50px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
}

.btn-cancel {
    background: #f1f5f9;
    color: #1d3557;
}

.btn-submit {
    border: 0;
    background: #1b365d;
    color: #fff;
    cursor: pointer;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {

    .about-page {
        padding: 70px 0 100px;
    }

    .about-section-list {
        gap: 90px;
    }

    .about-image img {
        height: 520px;
    }

    .about-content {
        max-width: 100%;
    }

    .about-content h2 {
        font-size: 34px;
    }

    .about-desc {
        font-size: 17px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .about-page {
        padding: 60px 0 80px;
    }

    .sub-info-text {
        font-size: 15px;
        line-height: 1.7;
        margin-top: 20px;
    }

    .sub-info-text p {
        flex-direction: column;
        gap: 0;
    }


    .sub-info-text span {
        display: block;
        margin: 0;
    }

    .section-title-row {
        flex-direction: column;
        align-items: center;
    }

    .about-category-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        margin: 0 0 28px;
    }

    .about-category-tab {
        min-width: 0;
        height: 34px;
        padding: 0 12px;
        font-size: 13px;
        border-radius: 999px;
        white-space: nowrap;
    }

    .about-section-list {
        gap: 70px;
    }

    .about-section-item {
        gap: 24px;
    }

    .about-image {
        border-radius: 18px;
    }

    .about-image img {
        height: 260px;
    }

    .about-content h2 {
        margin-bottom: 16px;
        font-size: 28px;
    }

    .about-desc {
        font-size: 15px;
        line-height: 1.8;
    }
}