﻿@charset "utf-8";

/* ============================================================
   /css/home.css
   STEP31 - 커뮤니티 메인
   ============================================================ */

.home-main {
    padding-top: 18px;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: stretch;
}

.home-banner-shell,
.home-hot-gallery,
.home-panel,
.home-category-strip,
.home-quick-panel,
.home-side-banner,
.home-mid-banner {
    border: 1px solid #e1e5eb;
    border-radius: 9px;
    background: #fff;
}

.home-banner-shell {
    overflow: hidden;
}

.home-banner-slider {
    position: relative;
    min-height: 260px;
    overflow: hidden;
}

.home-banner-slide {
    position: absolute;
    inset: 0;
    display: none;
}

.home-banner-slide.is-active {
    display: block;
}

.home-banner-image-link,
.home-banner-html-link,
.home-banner-default {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    text-decoration: none;
}

.home-banner-image-link img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.home-banner-html-link > * {
    min-height: 260px;
}

.home-banner-default {
    padding: 40px 44px;
    background:
        radial-gradient(circle at 82% 18%, rgba(255,255,255,.28), transparent 29%),
        linear-gradient(130deg, #316ed1 0%, #2458a9 48%, #153d80 100%);
    color: #fff;
}

.home-banner-default:hover {
    text-decoration: none;
}

.home-banner-eyebrow {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.home-banner-default strong {
    display: block;
    margin-top: 18px;
    font-size: 29px;
    line-height: 1.3;
    letter-spacing: -1px;
}

.home-banner-default p {
    max-width: 560px;
    margin: 12px 0 0;
    color: rgba(255,255,255,.8);
    font-size: 13px;
    line-height: 1.7;
}

.home-banner-default em {
    display: inline-block;
    margin-top: 22px;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.home-banner-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 34px;
    height: 42px;
    margin-top: -21px;
    border: 0;
    border-radius: 5px;
    background: rgba(0,0,0,.28);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.home-banner-arrow:hover {
    background: rgba(0,0,0,.42);
}

.home-banner-arrow.is-prev {
    left: 12px;
}

.home-banner-arrow.is-next {
    right: 12px;
}

.home-banner-dots {
    position: absolute;
    right: 18px;
    bottom: 15px;
    z-index: 5;
    display: flex;
    gap: 6px;
}

.home-banner-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
}

.home-banner-dots button.is-active {
    width: 22px;
    border-radius: 5px;
    background: #fff;
}

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    min-height: 57px;
    padding: 12px 16px 10px;
    border-bottom: 1px solid #e8ebef;
}

.home-section-head.is-compact {
    min-height: 52px;
    padding: 10px 13px 9px;
}

.home-section-head h2 {
    margin: 1px 0 0;
    color: #26323f;
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: -.35px;
}

.home-section-kicker {
    display: block;
    color: #3f75c5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
}

.home-section-head > a {
    flex: 0 0 auto;
    color: #7a8591;
    font-size: 11px;
}

.home-section-head > a:hover {
    color: #2f68b2;
    text-decoration: none;
}

.home-hot-gallery {
    overflow: hidden;
}

.home-ranking-list {
    margin: 0;
    padding: 7px 12px 8px;
    list-style: none;
}

.home-ranking-list li {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr) 54px;
    gap: 7px;
    align-items: center;
    min-height: 25px;
    border-bottom: 1px solid #f0f2f5;
}

.home-ranking-list li:last-child {
    border-bottom: 0;
}

.home-rank-number {
    color: #396fba;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.home-ranking-list li:nth-child(n+4) .home-rank-number {
    color: #939ca6;
}

.home-rank-name {
    overflow: hidden;
    color: #3b4754;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-rank-name:hover {
    color: #2f68b2;
    text-decoration: none;
}

.home-rank-meta {
    color: #9aa2ab;
    font-size: 10px;
    text-align: right;
}

.home-category-strip {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 14px;
    padding: 13px 15px;
}

.home-category-label strong,
.home-category-label span {
    display: block;
}

.home-category-label strong {
    color: #34414e;
    font-size: 13px;
}

.home-category-label span {
    margin-top: 3px;
    color: #9099a3;
    font-size: 11px;
}

.home-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.home-category-links a {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid #e1e6ec;
    border-radius: 16px;
    background: #fafbfc;
    color: #53606d;
    font-size: 10px;
}

.home-category-links a:hover {
    border-color: #b7cae5;
    background: #f3f7fd;
    color: #2e68b3;
    text-decoration: none;
}

.home-category-links a span {
    color: #9aa3ac;
    font-size: 9px;
}

.home-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.home-panel {
    min-width: 0;
    overflow: hidden;
}

.home-post-list {
    padding: 4px 14px 7px;
}

.home-post-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    border-bottom: 1px solid #f0f2f5;
}

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

.home-post-rank {
    flex: 0 0 24px;
    color: #3970ba;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.home-post-gallery {
    flex: 0 0 88px;
    overflow: hidden;
    color: #7b8794;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-post-main {
    min-width: 0;
    flex: 1;
}

.home-post-title {
    display: block;
    overflow: hidden;
    color: #33404d;
    font-size: 12px;
    font-weight: 620;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-post-title:hover {
    color: #2865b2;
    text-decoration: none;
}

.home-post-title em {
    margin-left: 3px;
    color: #d05c5c;
    font-size: 9px;
    font-style: normal;
}

.home-post-sub {
    display: flex;
    gap: 9px;
    margin-top: 2px;
    color: #989fa8;
    font-size: 8px;
}

.home-post-sub a {
    color: #778491;
}

.home-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 14px;
    margin-top: 14px;
}

.home-new-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 13px;
}

.home-new-gallery-card {
    min-width: 0;
    min-height: 102px;
    padding: 13px;
    border: 1px solid #e7ebf0;
    border-radius: 7px;
    background: #fbfcfd;
}

.home-new-gallery-card:hover {
    border-color: #c0d2e9;
    background: #f7faff;
    text-decoration: none;
}

.home-new-gallery-card > span {
    display: block;
    color: #3b73bd;
    font-size: 8px;
    font-weight: 700;
}

.home-new-gallery-card > strong {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    color: #34414e;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-new-gallery-card > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 7px 0 0;
    color: #8a949f;
    font-size: 10px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-side-column {
    display: grid;
    align-content: start;
    gap: 12px;
}

.home-notice-list {
    margin: 0;
    padding: 7px 13px 9px;
    list-style: none;
}

.home-notice-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 8px;
    align-items: center;
    min-height: 31px;
    border-bottom: 1px solid #f0f2f4;
}

.home-notice-list li:last-child {
    border-bottom: 0;
}

.home-notice-list a {
    overflow: hidden;
    color: #46525e;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-notice-list span {
    color: #9aa2ab;
    font-size: 8px;
    text-align: right;
}

.home-quick-panel {
    padding: 15px;
    background: #f8fafc;
}

.home-quick-panel > strong {
    display: block;
    color: #374451;
    font-size: 11px;
}

.home-quick-panel > p {
    margin: 7px 0 0;
    color: #87919c;
    font-size: 9px;
    line-height: 1.6;
}

.home-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.home-quick-links a {
    display: flex;
    min-height: 33px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe5eb;
    border-radius: 5px;
    background: #fff;
    color: #53606c;
    font-size: 9px;
}

.home-quick-links a:hover {
    color: #2f68b2;
    text-decoration: none;
}

.home-quick-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 11px;
}

.home-side-banner,
.home-mid-banner {
    overflow: hidden;
}

.home-side-banner a,
.home-mid-banner a {
    display: block;
    text-decoration: none;
}

.home-side-banner img {
    display: block;
    width: 100%;
    min-height: 92px;
    max-height: 180px;
    object-fit: cover;
}

.home-side-banner a > *:not(img) {
    min-height: 92px;
}

.home-mid-banner {
    margin-top: 14px;
}

.home-mid-banner img {
    display: block;
    width: 100%;
    max-height: 150px;
    object-fit: cover;
}

.home-mid-banner a > *:not(img) {
    min-height: 90px;
}

.home-empty-line,
.home-empty-block {
    color: #929ba5;
    font-size: 10px;
    text-align: center;
}

.home-empty-block {
    padding: 45px 15px;
}

.home-empty-line {
    display: block !important;
    padding: 24px 5px;
}

@media (max-width: 1000px) {

    .home-hero-grid,
    .home-bottom-grid {
        grid-template-columns: 1fr;
    }

    .home-hot-gallery {
        display: none;
    }

    .home-side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-side-column .home-panel,
    .home-side-column .home-quick-panel {
        min-width: 0;
    }

    .home-side-banner {
        display: none;
    }
}

@media (max-width: 760px) {

    .home-main {
        padding-top: 10px;
    }

    .home-banner-slider,
    .home-banner-image-link,
    .home-banner-html-link,
    .home-banner-default {
        min-height: 210px;
    }

    .home-banner-image-link img {
        height: 210px;
    }

    .home-banner-html-link > * {
        min-height: 210px;
    }

    .home-banner-default {
        padding: 28px 25px;
    }

    .home-banner-default strong {
        font-size: 23px;
    }

    .home-banner-default p {
        font-size: 11px;
    }

    .home-category-strip {
        grid-template-columns: 1fr;
    }

    .home-content-grid,
    .home-side-column {
        grid-template-columns: 1fr;
    }

    .home-new-gallery-grid {
        grid-template-columns: 1fr;
    }

    .home-side-column .home-panel,
    .home-side-column .home-quick-panel {
        display: block;
    }
}

@media (max-width: 520px) {

    .home-banner-slider,
    .home-banner-image-link,
    .home-banner-html-link,
    .home-banner-default {
        min-height: 185px;
    }

    .home-banner-image-link img {
        height: 185px;
    }

    .home-banner-html-link > * {
        min-height: 185px;
    }

    .home-banner-default {
        padding: 22px 18px;
    }

    .home-banner-default strong {
        margin-top: 12px;
        font-size: 20px;
    }

    .home-banner-default p {
        display: none;
    }

    .home-banner-default em {
        margin-top: 17px;
    }

    .home-banner-arrow {
        width: 29px;
        height: 38px;
        margin-top: -19px;
    }

    .home-category-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .home-category-links a {
        flex: 0 0 auto;
    }

    .home-post-gallery {
        flex-basis: 67px;
    }

    .home-section-head {
        padding-right: 12px;
        padding-left: 12px;
    }
}

/* STEP31 초기 HTML 배너용 클래스 */
.home-seed-banner {
    min-height: 260px;
    padding: 40px 44px;
    box-sizing: border-box;
    color: #fff;
}

.home-seed-banner-blue {
    background: linear-gradient(130deg, #316ed1, #153d80);
}

.home-seed-banner-navy {
    background: linear-gradient(130deg, #183a63, #285b91);
}

.home-seed-banner > span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.home-seed-banner > strong {
    display: block;
    margin-top: 18px;
    font-size: 29px;
    line-height: 1.3;
}

.home-seed-banner > p {
    margin: 12px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    line-height: 1.7;
}

.home-seed-side {
    min-height: 108px;
    padding: 18px;
    box-sizing: border-box;
    background: #eef5ff;
    color: #315f9d;
}

.home-seed-side strong,
.home-seed-side span,
.home-seed-mid strong,
.home-seed-mid span {
    display: block;
}

.home-seed-side strong {
    font-size: 14px;
}

.home-seed-side span {
    margin-top: 7px;
    color: #6f84a0;
    font-size: 11px;
    line-height: 1.6;
}

.home-seed-mid {
    min-height: 90px;
    padding: 22px 28px;
    box-sizing: border-box;
    background: #f4f7fb;
    color: #364b67;
}

.home-seed-mid strong {
    font-size: 16px;
}

.home-seed-mid span {
    margin-top: 6px;
    color: #77889d;
    font-size: 11px;
}

@media (max-width: 760px) {
    .home-seed-banner {
        min-height: 210px;
        padding: 28px 25px;
    }

    .home-seed-banner > strong {
        font-size: 23px;
    }

    .home-seed-banner > p {
        font-size: 11px;
    }
}

@media (max-width: 520px) {
    .home-seed-banner {
        min-height: 185px;
        padding: 22px 18px;
    }

    .home-seed-banner > strong {
        margin-top: 12px;
        font-size: 20px;
    }

    .home-seed-banner > p {
        display: none;
    }
}
