/* 메인 비주얼 */
.main-visual {
    background: linear-gradient(135deg, #2f6fed, #6a8dff);
    color: #fff;
}

.main-visual-inner {
    width: calc(100% - 40px);
    max-width: 1100px;
    min-height: 260px;
    margin: 0 auto;
    padding: 36px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-visual h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.main-visual p {
    font-size: 17px;
    margin-bottom: 28px;
    opacity: 0.95;
}

.main-actions {
    display: flex;
    gap: 10px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 700;
}

.btn-primary {
    background-color: #ffffff;
    color: #2f6fed;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #f1f4ff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* 메인 게시판 카드 */
.board-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.board-card {
    display: block;
    padding: 18px;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    background-color: #fafbfc;
    transition: 0.2s;
}

.board-card:hover {
    transform: translateY(-2px);
    border-color: #2f6fed;
    background-color: #f5f8ff;
}

.board-card h4 {
    font-size: 17px;
    margin-bottom: 8px;
    color: #222;
}

.board-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 14px;
}

.board-card span {
    font-size: 13px;
    color: #2f6fed;
    font-weight: 700;
}

/* 메인 최신글 */
.post-list li {
    border-bottom: 1px solid #edf0f3;
}

.post-list li:last-child {
    border-bottom: none;
}

.post-list a {
    display: block;
    padding: 14px 4px;
}

.post-list strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
    color: #222;
}

.post-list a:hover strong {
    color: #2f6fed;
}

.post-meta {
    display: block;
    font-size: 13px;
    color: #888;
}

/* 사이드바 회원 메뉴 */
.login-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 14px;
}

.side-btn {
    display: block;
    width: 100%;
    padding: 11px 0;
    margin-top: 8px;
    text-align: center;
    border-radius: 7px;
    background-color: #2f6fed;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.side-btn.outline {
    background-color: #fff;
    color: #2f6fed;
    border: 1px solid #2f6fed;
}

.side-btn:hover {
    background-color: #1f5bd8;
}

.side-btn.outline:hover {
    background-color: #f5f8ff;
}

/* 인기글 */
.rank-list {
    counter-reset: rank;
}

.rank-list li {
    margin-bottom: 12px;
}

.rank-list li:last-child {
    margin-bottom: 0;
}

.rank-list a {
    display: block;
    font-size: 14px;
    color: #333;
}

.rank-list a::before {
    counter-increment: rank;
    content: counter(rank);
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background-color: #eef2ff;
    color: #2f6fed;
    font-size: 12px;
    font-weight: 800;
}

.rank-list a:hover {
    color: #2f6fed;
}

/* 메인 공지사항 */
.notice-list li {
    margin-bottom: 10px;
}

.notice-list li:last-child {
    margin-bottom: 0;
}

.notice-list a {
    font-size: 14px;
    color: #444;
}

.notice-list a:hover {
    color: #2f6fed;
}

@media (max-width: 768px) {
    .main-visual-inner {
        width: calc(100% - 28px);
        min-height: 220px;
        padding: 32px 0;
    }

    .main-visual h2 {
        font-size: 28px;
        line-height: 1.3;
    }

    .main-visual p {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .main-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .board-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-visual h2 {
        font-size: 24px;
    }

    .main-visual p {
        font-size: 14px;
    }

    .board-card {
        padding: 16px;
    }

    .post-list strong {
        font-size: 15px;
    }
}