.community-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 130px;
    margin-bottom: 90px;
}

.community-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-base);
}

.community-search {
    display: flex;
    justify-content: space-between;
    background: #E9E9E9;
    border-radius: 20px;
    padding: 0 15px;
}

.community-search input {
    border: none;
    background: transparent;
    font-size: var(--font-base);
    padding: 20px 10px;
    color: var(--color-text-base);
    outline: none;
    width: 310px;
    font-family: 'SUIT', sans-serif;
}

.community-search input::placeholder {
    color: #808080;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    /*margin-top: 90px;*/
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab_pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    /*margin-bottom: 120px;*/
    flex-wrap: wrap;
}

.page-btn {
    background: none;
    border: none;
    font-size: var(--font-lg);
    font-weight: 700;
    padding: 8px 14px;
    cursor: pointer;
    color: rgba(128, 128, 128, 0.55);
    transition: background 0.2s ease, color 0.2s ease;
    border-radius: 6px;
}

.page-btn img {
    width: 40px;
    height: 40px;
    vertical-align: middle;
}

.page-btn:hover img {
    transform: scale(1.05);
}

.page-btn.active,
.page-btn:hover {
    color: var(--color-primary-dark);
}

.blog_link {  }
.blog_link img { vertical-align: bottom; }
.adm_list_link { color:#ff0000; }

@media (max-width: 1280px) {
    .community-title {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    .community-section-header {
        margin: 40px 20px 30px !important;
        flex-wrap: wrap;
    }

    .community-title {
        font-size: 25px;
        font-weight: 700;
        color: var(--color-text-base);
        margin-bottom: 20px;
    }

    .community-search {
        width: 100%;
    }

    .community-search input {
        font-size: var(--font-sm);
        padding: 10px 10px;
        width: 310px;
    }

    .search-btn img {
        width: 15px;
        height: 15px;
    }

    .tab_pagination {
        margin-top: 50px;
        gap: 6px;
    }

    .page-btn {
        font-size: var(--font-sm);
        padding: 6px;
    }

    .page-btn img {
        width: 18px;
        height: 18px;
    }
    
    .blog_link img { width:35px; }
}


/* notice */
.notice-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.notice-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    margin-bottom: 70px;
}

.notice-card.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.notice-card.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.notice-card:hover {
    transform: translateY(-5px);
}

.notice-thumb {
    width: 100%;
    height: 320px;
    border-radius: 20px;
    object-fit: cover;
    object-position: center 10%;
    margin-bottom: 15px;
    transition: border 0.3s ease;
    box-sizing: border-box;
    border: 2px solid transparent;
}

.notice-card:hover .notice-thumb {
    border: 2px solid var(--color-primary-dark);
}

.notice-info {
    text-align: left;
}

.notice-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--color-text-base);
    line-height: 1.7;
    margin-bottom: 35px;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.notice-card:hover .notice-title {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.notice-date {
    font-size: 15px;
    color: rgba(34, 34, 34, 0.5);
}

@media (max-width: 1024px) {
    .notice-posts {
        padding: 0 20px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .notice-posts {
        padding: 0 20px;
        grid-template-columns: 1fr;
    }

    .notice-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .notice-posts {
        margin-top: 0;
        gap: 10px;
    }

    .notice-thumb {
        height: 180px;
        margin-bottom: 8px;
        border-radius: 10px;
    }

    .notice-title {
        font-size: var(--font-sm);
        margin-bottom: 8px;
    }

    .notice-date {
        font-size: var(--font-xs);
    }
}

/* community detail */
.community-detail {
    display: none;
    padding: 80px 20px;
}

.community-detail div[class*="detail-content"] img {
    max-width: 100%;
    height: auto;
}

.notice-detail-header {
    text-align: left;
    border-bottom: 2px solid rgba(0, 0, 0, 0.5);
    margin-bottom: 110px;
    padding-bottom: 45px;
}

.notice-detail-title {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 50px;
}

.notice-detail-meta {
    font-size: var(--font-base);
    text-align: left;
}

.notice-detail-meta .meta-label {
    font-weight: 300;
    color: rgba(0, 0, 0, 0.5);
    margin-right: 12px;
}

.notice-detail-meta .meta-value {
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
    margin-right: 30px;
}

.notice-detail-thumb {
    width: 100%;
    margin-bottom: 30px;
}

.notice-detail-content {
    margin-top: 50px;
    text-align: left;
    font-size: var(--font-base);
    font-weight: 300;
    line-height: 1.9;
    color: #555;
    padding-bottom: 130px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.file-meta {
    font-size: var(--font-md);
    margin-top: 50px;
}

.file-link {
    color: rgba(0, 0, 0, 0.7);
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.file-link:hover {
    text-decoration: underline;
    cursor: pointer;
}

.download-icon {
    width: 18px;
    height: 18px;
}

.back-to-list {
    margin-top: 150px;
    min-width: 254px;
    padding: 24px 40px;
    font-size: var(--font-base);
    font-weight: 500;
    background: none;
    color: var(--color-text-base);
    border: 1px solid rgba(34, 34, 34, 0.3);
    border-radius: 50px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .community-detail {
        padding: 0 20px;
    }

    .notice-detail-header {
        margin-bottom: 60px;
        padding-bottom: 24px;
    }

    .notice-detail-title {
        font-size: var(--font-2xl);
        margin-bottom: 30px;
    }

    .notice-detail-meta {
        font-size: var(--font-sm);
        display: flex;
        flex-wrap: wrap;
        gap: 6px 16px;
    }

    .notice-detail-meta .meta-value,
    .notice-detail-meta .meta-label {
        font-size: var(--font-xs);
    }

    .notice-detail-content {
        font-size: var(--font-sm);
        line-height: 1.7;
        padding-bottom: 80px;
        margin-top: 30px;
    }

    .file-meta {
        font-size: var(--font-sm);
        margin-top: 30px;
    }

    .file-link {
        font-size: var(--font-sm);
    }

    .back-to-list {
        margin: 50px 0;
        min-width: auto;
        width: 100%;
        padding: 10px 0;
        font-size: var(--font-sm);
    }

}

@media (max-width: 480px)  {
    .notice-detail-title {
        font-size: var(--font-md);
    }

}

/* procedure */
.procedure-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.procedure-table thead {
    border-bottom: 2px solid #444444;
    color: #444444;
}


.procedure-table th {
    padding: 18px 20px;
    font-weight: 400;
    font-size: var(--font-base);
    white-space: nowrap;
    text-align: center;
}

.procedure-table th:first-child {
    text-align: left;
    padding: 18px 5px;
}

.procedure-table td {
    padding: 24px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    vertical-align: middle;
}

.procedure-table td:nth-child(3),
.procedure-table td:nth-child(4) {
    color: #848484;
    text-align: center;
    font-weight: 300;
    font-size: var(--font-md);
}

.procedure-table td:nth-child(1) {
    text-align: left;
    padding: 18px 5px;
    color: #848484;
    font-weight: 400;
    font-size: var(--font-md);
}

.procedure-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.procedure-category,
.procedure-title {
    display: inline-block;
    vertical-align: middle;
}

.procedure-category,
.procedure-category-detail {
    background-color: var(--color-primary-dark);
    width: 140px;
    height: 28px;
    border-radius: 20px;
    color: white;
    margin-left: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--font-sm);
    font-weight: 500;
    padding: 5px 0;
}

.procedure-title {
    margin-left: 8px;
    font-size: var(--font-md);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.procedure-title {
    text-decoration: none;
    color: var(--color-text-base);
    font-weight: 300;
    cursor:pointer;
}

.procedure-title:hover {
    text-decoration: underline;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.procedure-category-detail {

    margin-bottom: 30px;
    padding: 20px 0;
    font-size: var(--font-md);
}

.center {
    text-align: center;
}

@media (max-width: 1280px) {
    .procedure-table {


        overflow-x: auto;
    }
    .procedure-table thead { min-width:700px; }
    .procedure-table tbody { min-width:700px; }

}

@media (max-width: 1024px) {
    .table-scroll-wrapper {  overflow-x: auto; width: 90%; margin:0 auto; }
    .community-posts { width:100%; display:block; }
    .procedure-table th:first-child {
        text-align: left;
        padding: 18px 15px;
    }



}

@media (max-width: 768px) {
    .procedure-posts {

    }


    .procedure-posts::-webkit-scrollbar {
        height: 8px;
    }

    .procedure-posts::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {

    .procedure-table th,
    .procedure-table td {
        font-size: var(--font-xs) !important;
        padding: 0 10px;
    }

    .procedure-title {
        font-size: var(--font-sm);
    }

    .procedure-category,
    .procedure-category-detail {
        font-size: var(--font-xs);
        width: 110px;
        padding: 4px;
        margin-top: 10px;
    }
}


/* immigrant */
.immigrant-card {
    display: flex;
    gap: 40px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
    padding-bottom: 70px;
    margin-bottom: 70px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    align-items: flex-start;
}

.immigrant-card:hover .immigrant-title {
    color: var(--color-primary-dark);
    font-weight: 700;
    text-decoration: underline;
}

.immigrant-thumb {
    width: 440px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 20px;
    flex-shrink: 0;
}

.immigrant-card:hover .immigrant-thumb {
    border: 2px solid var(--color-primary-dark);
}

.immigrant-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    padding: 20px 0;
}

.immigrant-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.immigrant-snippet {
    font-size: var(--font-base);
    font-weight: 300;
    color: rgba(34, 34, 34, 0.8);
    line-height: 1.8;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.immigrant-date {
    font-size: 15px;
    color: rgba(34, 34, 34, 0.5);
    margin-top: 50px;
}

.immigrant-content {
    line-height: 1.9;
}

@media (max-width: 1024px) {
    .immigrant-card {
        flex-direction: column;
        gap: 20px;
        padding-bottom: 50px;
        margin-bottom: 50px;
        margin-left: 30px;
        margin-right: 30px;
    }

    .immigrant-thumb {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 5;
    }

    .immigrant-info {
        padding: 0;
    }

    .immigrant-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .immigrant-snippet {
        font-size: var(--font-sm);
        -webkit-line-clamp: 4;
    }

    .immigrant-date {
        margin-top: 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .immigrant-card {
        margin-left: 20px;
        margin-right: 20px;
        padding-bottom: 40px;
        margin-bottom: 40px;
    }

    .immigrant-title {
        font-size: var(--font-base);
    }

    .immigrant-snippet {
        font-size: var(--font-xs);
    }

    .immigrant-date {
        margin-top: 10px;
        font-size: var(--font-xs);
    }

    .immigrant-thumb {
        border-radius: 10px;
        height: 180px;
    }
}

/* youtube */
.title-logo {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.title-logo .community-title {
    margin-bottom: 0;
}

.youtube-featured {
    margin-bottom: 120px;
}

.featured-container {
    display: flex;
    flex-wrap: wrap;
    gap: 120px;
}

.featured-video {
    flex: 1;
    width: 800px;
}

.featured-video iframe {
    border-radius: 20px;
    width: 800px;
    height: 450px;
    border: none;
}

.featured-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 20px;
    text-align: left;
    color: var(--color-text-base);
    line-height: 1.8
}

.featured-title {
    font-size: 26px;
    margin-bottom: 10px;
    font-weight: 600;
}

.featured-description {
    font-size: var(--font-base);
    font-weight: 400;
    line-height: 1.9;
    white-space: pre-line;
    color: rgba(34, 34, 34, 0.7);
}

.tab-content[data-tab="유튜브"] .notice-thumb {
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.community-section-container {
    padding: 70px 0;
    position: relative;
    z-index: 0;
}

@media (max-width: 768px) {
    .featured-container {
        flex-direction: column;
        gap: 20px;
    }

    .featured-video {
        width: 100%;
        padding: 0 20px;
    }

    .featured-video iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .featured-info {
        padding: 0 20px;
        text-align: left;
    }

    .featured-title {
        font-size: var(--font-lg);
        line-height: 1.4;
    }

    .featured-description {
        font-size: var(--font-sm);
        line-height: 1.7;
    }

    .youtube-featured {
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {

    .title-logo img {
        width: 30px;
        height: 30px;
    }

    .featured-title {
        font-size: var(--font-base);
        margin-bottom: 8px;
    }

    .featured-description {
        font-size: var(--font-xs);
    }

    .featured-info {
        gap: 0;
    }

    .tab-content[data-tab="유튜브"] .notice-thumb {
        height: 200px;
    }

    .notice-card {
        margin-bottom: 50px;
    }
}

/* blog */
.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.blog-thumb {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 15px;
}

.blog-info {
    text-align: left;
    padding: 10px 0;
    line-height: 1.7;
}

.blog-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--color-text-base);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.blog-date {
    font-size: 15px;
    color: rgba(34, 34, 34, 0.5);
    display: block;
    margin-top: 5px;
}

.blog-card:hover .blog-title {
    font-weight: bold;
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.blog-card:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .blog-thumb {
        height: 180px;
        object-fit: cover;
    }

    .blog-info {
        line-height: 1.6;
        padding: 0;
    }

    .blog-title {
        font-size: var(--font-md);
        margin-bottom: 12px;
    }

    .blog-date {
        font-size: var(--font-xs);
    }
}


@media (max-width: 480px) {
    .blog-thumb {
        margin-bottom: 8px;
        border-radius: 10px;
    }

    .blog-title {
        font-size: var(--font-sm);
        margin-bottom: 8px;
    }

    .blog-card {
        margin-bottom: 50px;
    }
}

/* client posts */
.client-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.client-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: none;
    border-radius: 30px;
    min-height: 300px;
    padding: 40px 30px;
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--color-primary-dark);
}

.client-card:hover .client-content {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.client-info {
    text-align: left;
}

.client-title {
    font-size: var(--font-base);
    font-weight: 300;
    color: rgba(34, 34, 34, 0.6);
    line-height: 1.6;
    margin-bottom: 12px;
}

.client-content {
    font-size: var(--font-xl);
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height:75px;
}

.client-category {
    font-weight: bold;
    font-size: var(--font-base);
    color: #243D6D;
    background-color: #D8E6FB;
    border-radius: 20px;
    padding: 6px 16px;
    display: inline-block;
    margin-top: 60px;
}
@media (max-width: 1024px) {
    .client-posts {
        width: 100%;
        margin: 0 auto;
        padding:0 20px;
    }
}
@media (max-width: 1024px) {
    .client-posts {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .client-card {
        padding: 30px 24px;
        min-height: 260px;
        border-radius: 20px;
    }

    .client-content {
        font-size: var(--font-lg);
        -webkit-line-clamp: 4;
    }

    .client-title {
        font-size: var(--font-sm);
        margin-bottom: 10px;
    }

    .client-category {
        font-size: var(--font-sm);
        margin-top: 40px;
    }
    .community-search { margin-right:20px; }
}
@media (max-width: 610px) {
    .community-title { font-size:30px; }
    .community-section-header {
        margin-top: 100px;
        margin-bottom: 60px;
    }
    .community-search input { width:230px; }

}
@media (max-width: 480px) {
    .client-posts {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 20px;
    }

    .client-card {
        padding: 24px 20px;
        min-height: 150px;
    }

    .client-content {
        font-size: var(--font-sm);
        color: rgba(34, 34, 34, 0.6);
        -webkit-line-clamp: 5;
    }

    .client-title {
        font-size: var(--font-lg);
        color: var(--color-text-base);
        font-weight: 600;
    }

    .client-category {
        font-size: var(--font-xs);
        padding: 4px 12px;
        margin-top: 10px;
    }

    .community-detail .notice-detail-content img[class*="wp-image-"],
    .community-detail .notice-detail-content img {
        max-width: 100%;
        height: auto;
    }
    
    .client-posts { width:100%; margin:0 auto; padding:0 20px; }

}
.procedure-card { text-decoration: none; }
#subtop-container { overflow:hidden;}
