@charset "utf-8";

/* 컬럼 스킨 기본 스타일 */
a {text-decoration: none; color: #1a3a6d;}
.text-center {text-align: center;}

.column-view {
    padding: 60px 0 !important;
    background: #fff;
}

/* 카테고리 스타일 */
.column-filter {
    padding: 40px 0;
    background: #f8f9fa;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 10px 25px;
    background: #fff;
    color: #495057;
    border: 1px solid #e9ecef;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #2a5298;
    color: #fff;
    border-color: #2a5298;
    box-shadow: 0 4px 8px rgba(42,82,152,0.2);
}

/* 컬럼 카드 스타일 */
.column-grid {
    padding: 60px 0;
}

.columns-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.column-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: 1px solid #eaeef3;
}

.column-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.column-thumb {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.column-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.column-card:hover .column-thumb img {
    transform: scale(1.05);
}

.thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.column-card:hover .thumb-overlay {
    opacity: 1;
}

.column-content {
    padding: 25px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.column-content.no-thumb {
    height: 100%;
}

.card-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 15px;
}

.category-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f4ff;
    color: #2a5298;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.date {
    color: #868e96;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-title {
    font-size: 1.4rem;
    color: #1a3a6d;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.column-card:hover .card-title {
    color: #2a5298;
}

.excerpt {
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f4ff;
    padding-top: 15px;
    margin-top: auto;
}

.read-time {
    color: #868e96;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-count {
    color: #868e96;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    color: #2a5298;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-left: auto;
}

.column-card:hover .read-more {
    opacity: 1;
    transform: translateX(0);
}

/* 더보기 버튼 */
.column-more {
    text-align: center;
    margin-top: 40px;
}

.more-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #2a5298;
    color: #fff;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.more-button:hover {
    background: #1a3a6d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42,82,152,0.3);
}

/* 하단 버튼 영역 */
.bottom-button-area {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bottom-button-left {
    display: flex;
    gap: 5px;
}

.bottom-button-right {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.bottom-button-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-column {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #2a5298;
    color: #fff;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-column:hover {
    background: #1a3a6d;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.btn-column-white {
    background: #fff;
    color: #2a5298;
    border: 1px solid #e9ecef;
}

.btn-column-white:hover {
    background: #f0f4ff;
    color: #1a3a6d;
}

.btn-column-light {
    background: #f0f4ff;
    color: #2a5298;
    border: 1px solid #e9ecef;
}

.btn-column-light:hover {
    background: #e1e8ff;
    color: #1a3a6d;
}

/* 뉴스레터 구독 섹션 */
.newsletter {
    background: #f0f4ff;
    padding: 40px;
    border-radius: 10px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.newsletter::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(42,82,152,0.05);
    border-radius: 50%;
}

.newsletter::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: rgba(42,82,152,0.05);
    border-radius: 50%;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.newsletter-content h2 {
    font-size: 1.5rem;
    color: #1a3a6d;
    margin-bottom: 5px;
}

.newsletter-content p {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1rem;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}

.subscribe-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    font-size: 0.95rem;
    color: #495057;
    background-color: #fff;
    transition: all 0.3s ease;
}

.subscribe-form input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(42,82,152,0.2);
    border-color: #2a5298;
}

.subscribe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #2a5298;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.subscribe-button:hover {
    background: #1a3a6d;
}

@media (max-width: 768px) {
    .newsletter {
        padding: 30px 20px;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }

    .newsletter-content {
        width: 100%;
        padding: 0;
    }

    .subscribe-form {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .subscribe-form input {
        width: 100%;
        box-sizing: border-box;
    }

    .subscribe-button {
        width: 100%;
        margin-top: 5px;
    }

    .bottom-button-area {
        flex-direction: column;
        align-items: stretch;
    }

    .bottom-button-left,
    .bottom-button-right {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* 페이지 타이틀 섹션 */
.page-title {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0;
    color: #fff;
    text-align: center;
    position: relative;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26,58,109,0.8), rgba(42,82,152,0.8));
}

.page-title .container {
    position: relative;
    z-index: 1;
}

.page-title h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-title p {
    font-size: 1.4rem;
    opacity: 0.9;
}

.mobile-page-title {
    position: relative;
    text-align: center;
    padding: 40px 15px;
    background: linear-gradient(135deg, #1a3a6d, #2a5298);
    overflow: hidden;
    margin-top: 0px;
    margin-bottom: 0px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.mobile-title-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('<?php echo THEMA_URL; ?>/assets/img/top/sub3-1-1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.mobile-title-content {
    position: relative;
    z-index: 2;
}

.mobile-page-title h1 {
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0 0 8px 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mobile-title-desc {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin: 0;
    font-weight: 300;
}

/* 컨테이너 공통 스타일 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 필터 섹션 */
.cases-filter {
    padding: 40px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #1a3a6d;
    border-radius: 50px;
    background: transparent;
    color: #1a3a6d;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #1a3a6d;
    color: #fff;
}

/* 업무사례 그리드 */
.cases-grid {
    padding: 60px 0;
    background: #fff;
}

.cases-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.case-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
}

.case-header {
    padding: 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.case-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #1a3a6d;
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.case-header h3 {
    font-size: 1.4rem;
    color: #1a3a6d;
    margin: 0;
}

.case-header h3 a {
    color: #1a3a6d;
    text-decoration: none;
}

.case-header h3 a:hover {
    color: #2a5298;
}

.case-content {
    padding: 25px;
}

.case-content p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.case-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat .label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat .value {
    display: block;
    color: #1a3a6d;
    font-size: 1.2rem;
    font-weight: 700;
}

/* 빈 목록 스타일 */
.empty-list {
    grid-column: span 2;
    text-align: center;
    padding: 60px 0;
    font-size: 1.2rem;
    color: #888;
    background: #f8f9fa;
    border-radius: 15px;
}

/* 페이지네이션 스타일 */
.pg_wrap {
    margin-top: 40px;
    text-align: center;
}

.pg_page, .pg_current {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.pg_page {
    background: #f8f9fa;
    color: #555;
    text-decoration: none;
}

.pg_current {
    background: #1a3a6d;
    color: #fff;
    font-weight: 600;
}

.pg_page:hover {
    background: #e9ecef;
}

/* 글쓰기 버튼 스타일 */
.board-buttons {
    text-align: center;
    margin-top: 40px;
}

.more-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: #1a3a6d;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.more-button:hover {
    background: #2a5298;
    color: #fff;
    text-decoration: none;
}

/* 상담 신청 섹션 */
.consultation {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.consultation-content {
    max-width: 800px;
    margin: 0 auto;
}

.consultation-content h2 {
    font-size: 2rem;
    color: #1a3a6d;
    margin-bottom: 20px;
}

.consultation-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.consult-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: #1a3a6d;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.consult-button:hover {
    background: #2a5298;
    color: #fff;
    text-decoration: none;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .cases-wrapper {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto 40px;
    }

    .empty-list {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .page-title {
        padding: 80px 0;
    }

    .page-title h1 {
        font-size: 2.2rem;
    }

    .page-title p {
        font-size: 1.2rem;
    }

    .filter-buttons {
        gap: 15px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .case-header h3 {
        font-size: 1.2rem;
    }

    .case-content p {
        font-size: 1rem;
    }

    .stat .value {
        font-size: 1.1rem;
    }

    .consultation-content h2 {
        font-size: 1.8rem;
    }

    .consultation-content p {
        font-size: 1.1rem;
    }

    .consult-button {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .case-header,
    .case-content {
        padding: 20px;
    }

    .case-content p {
        min-height: auto;
    }

    .empty-list {
        padding: 40px 20px;
    }
}

/* 모바일 스타일 보완 */
@media (max-width: 768px) {
    .mobile-columns {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .mobile-column-card {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 20px !important;
        visibility: visible !important;
    }

    /* GSAP 관련 스타일 초기화 (애니메이션 충돌 방지) */
    .mobile-column-card[style] {
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    /* 모바일 카드가 반드시 보이도록 추가 스타일 */
    .mobile-column-card.gsap-applied,
    .mobile-column-card:not(.gsap-applied),
    .mobile-column-card:nth-child(n) {
        opacity: 1 !important;
        transform: none !important;
        display: block !important;
        visibility: visible !important;
    }

    /* 애니메이션 후에도 카드가 보이도록 스타일 추가 */
    body:after {
        content: "";
        display: table;
        clear: both;
    }

    body:after .mobile-column-card {
        display: block !important;
        opacity: 1 !important;
    }
}

/* 기존 게시판 스타일 호환성 유지 */
/* PC 목록 */
table.list-pc { border-bottom: 1px solid #ddd; margin-bottom:15px; }
table.list-pc th { white-space:nowrap; clear:both; height:43px; background: #f8f9fa !important; font-weight:bold; font-size:14px; color:#1a3a6d; border:0px !important; padding:15px !important; margin:0px !important; text-align:center; border-top: 2px solid #2a5298; }
table.list-pc th a { text-decoration:none; color:#1a3a6d; }
table.list-pc th a:hover, table.bo-list th a:focus, table.bo-list th a:active { color:#2a5298; }
table.list-pc td { white-space:nowrap; padding: 15px; border-bottom: 1px solid #eee; }
table.list-pc tbody tr:first-child td { border-top:0 !important; }
table.list-pc .list-now { background: #f8f9fa; }
table.list-pc .list-img img { width:40px; height:40px; border-radius:50%; }
table.list-pc .list-img i { width: 40px; height: 40px; line-height:40px; margin:0px; font-size: 24px; background: #f0f4ff; border-radius:50%; text-align: center; color: #2a5298; display: inline-block; }
table.list-pc .list-subject { text-align:left !important; white-space:normal !important;}
table.list-pc .list-subject a { display:block; color: #333; text-decoration: none; transition: color 0.2s; }
table.list-pc .list-subject a:hover { color: #2a5298; }
table.list-pc .list-subject.now { font-weight:bold !important; }
table.list-pc .list-subject.notice { font-weight:bold !important; }
table.list-pc .list-none { padding:100px 0px; }

/* 페이지네이션 개선 스타일 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 20px;
    background-color: #f8f9fa;
    color: #1a3a6d;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #e9ecef;
    color: #2a5298;
    transform: translateY(-2px);
}

.pagination .current {
    background-color: #2a5298;
    color: #fff;
    box-shadow: 0 4px 8px rgba(42,82,152,0.2);
}

.pagination .prev_page,
.pagination .next_page {
    font-size: 0.9rem;
}

.pagination i {
    font-size: 0.8rem;
}

/* 모바일 페이징 개선 */
@media (max-width: 576px) {
    .pagination {
        gap: 5px;
    }

    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* 페이지 번호 부분에 애니메이션 효과 추가 */
.pagination a,
.pagination span {
    position: relative;
    overflow: hidden;
}

.pagination a:before,
.pagination span:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42,82,152,0.1);
    border-radius: 20px;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.pagination a:hover:before {
    transform: scale(1);
}

.pagination .current:before {
    display: none;
}

/* 버튼 스타일 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-color {
    background: #2a5298;
    color: #fff;
}

.btn-color:hover {
    background: #1a3a6d;
    color: #fff;
    transform: translateY(-2px);
}

.btn-black {
    background: #f0f4ff;
    color: #2a5298;
}

.btn-black:hover {
    background: #e9ecef;
    color: #1a3a6d;
    transform: translateY(-2px);
}

/* 내용 공통 스타일 */
.view-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.view-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.view-header h2 {
    font-size: 2rem;
    color: #1a3a6d;
    margin-bottom: 15px;
    line-height: 1.4;
}

.view-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

.view-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* 글쓰기 폼 스타일 */
.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1a3a6d;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    color: #495057;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: #2a5298;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42,82,152,0.1);
}

.required-mark {
    color: #dc3545;
    margin-left: 2px;
}

@media (max-width: 768px) {
    .form-container {
        padding: 20px;
        margin: 0 15px;
    }
}

/* 모바일 뉴스레터 스타일 */
.newsletter-mobile {
    margin: 20px 0;
    padding: 25px 15px;
    border-radius: 0;
    width: 100% !important;
    box-sizing: border-box;
}

.newsletter-mobile .newsletter-content {
    max-width: 100%;
}

.newsletter-mobile h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.newsletter-mobile p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.newsletter-mobile .subscribe-form {
    flex-direction: column;
}

.newsletter-mobile .subscribe-form input {
    width: 90%;
    margin-bottom: 10px;
}

.newsletter-mobile .subscribe-button {
    width: 90%;
}

@media (max-width: 768px) {
    .newsletter {
        padding: 30px 20px;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }

    .newsletter-content {
        width: 100%;
        padding: 0;
    }

    .subscribe-form {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .subscribe-form input {
        width: 100%;
        box-sizing: border-box;
    }

    .subscribe-button {
        width: 100%;
        margin-top: 5px;
    }

    .bottom-button-area {
        flex-direction: column;
        align-items: stretch;
    }

    .bottom-button-left,
    .bottom-button-right {
        justify-content: center;
        flex-wrap: wrap;
    }
}


/* 스크롤 시 고정 헤더 */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 10px 15px;
}

.mobile-logo {
    max-width: 140px;
    height: auto;
}

.mobile-logo img {
    max-width: 100%;
    height: auto;
}

.mobile-top-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #2a5298;
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(42,82,152,0.2);
    transition: all 0.3s ease;
}

.mobile-top-button:hover,
.mobile-top-button:active {
    background: #1a3a6d;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(42,82,152,0.3);
}

/* 모바일 페이지 전체 배경색 */
@media (max-width: 768px) {
    body {
        background-color: #f8f9fa;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .mobile-column-card {
        margin-bottom: 15px !important;
    }

    /* 페이지 제목 아래 간격 조정 */
    .mobile-page-title + .board-list {
        margin-top: -10px;
    }

    /* 상단 로고 스타일 */
    .at-container {
        padding: 0 !important;
    }

    /* 뉴스레터 섹션 중앙 정렬 */
    .newsletter-mobile {
        width: 90% !important;
        margin: 20px auto !important;
        border-radius: 10px !important;
    }

    /* fixed-header가 적용될 때 본문 위치 조정 */
    body.has-fixed-header {
        padding-top: 60px;
    }

    /* 현재 페이지 표시 개선 */
    .mobile-count {
        text-align: center;
        margin: 15px auto;
        max-width: 90%;
    }
}

/* 필터 섹션 개선 */
.filter-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.category-filter {
  flex-grow: 1;
}

.sort-options {
  min-width: 150px;
}

.sort-select {
  padding: 12px 35px 12px 15px;
  border: 2px solid #1a3a6d;
  border-radius: 50px;
  background: #fff;
  color: #1a3a6d;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"%3E%3Cpath fill="%231a3a6d" d="M7 10l5 5 5-5z"/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 15px center;
  transition: all 0.3s ease;
}

.sort-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,58,109,0.1);
}

@media (max-width: 768px) {
  .filter-options {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-options {
    width: 100%;
  }

  .sort-select {
    width: 100%;
  }
}
