.community-page-container {
    width: 100%;
    max-width: 1000px; /* Adjust max-width as needed for content */
    padding: 100px 0;
    box-sizing: border-box;
    margin: auto;
}

.community-main-title {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

/* Community Tabs */
.community-tabs {
    display: flex;
    justify-content: center;
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 40px;
}

.community-tab-button {
    flex: 1; /* Distribute space evenly */
    background-color: transparent;
    border: none;
    padding: 12px 0; /* Vertical padding, no horizontal for flex distribution */
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600; /* Semi-bold */
    color: #888;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    outline: none;
    text-align: center;
}

.community-tab-button.active {
    background-color: #fff;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.community-tab-button:not(.active):hover {
    color: #555;
}

/* Notice Section */
.notice-section {
    padding: 0 10px; /* Slight horizontal padding */
}

.section-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 25px;
    color: #333;
}

/* Search Bar */
.search-bar {
    display: flex;
    justify-content: flex-end; /* Align to the right */
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

.search-select {
    width: 70px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
    color: #555;
    background-color: #fff;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    cursor: pointer;
}

.search-input {
    flex-grow: 1; /* Allow input to take remaining space */
    max-width: 250px; /* Limit input width */
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
    outline: none;
    transition: border-color 0.2s;
}

.search-input::placeholder {
    color: #bbb;
}

.search-input:focus {
    border-color: #999;
}

.search-button {
    background-color: #4ecdc4; /* Green color for search button */
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.search-button svg {
    color: #fff; /* White icon */
}

.search-button:hover {
    background-color: #0d8f8c;
}

/* Notice Table */
.notice-table {
    border-top: 2px solid #333; /* Darker top border */
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.table-header,
.table-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee; /* Lighter border for rows */
}

.table-header {
    background-color: #fcfcfc;
    font-weight: bold;
    color: #555;
    border-bottom: 1px solid #ddd; /* Separator for header */
}

.col-number {
    width: 10%; /* Adjust column widths as needed */
    text-align: center;
}

.col-title {
    width: 70%;
    text-align: left;
}

.col-date {
    width: 20%;
    text-align: center;
}

.table-row {
    color: #555;
    transition: background-color 0.1s;
}

.table-row:hover {
    background-color: #f9f9f9;
}

.table-row:last-child {
    border-bottom: none; /* No border for the last row */
}

.table-row.important {
    font-weight: bold;
    color: #333;
    background-color: #fafafa;
}

.table-row.important .col-number {
    color: #fff;
    background-color: #888; /* Grey background for '공지' tag */
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.8em;
    display: inline-block; /* To apply padding and border-radius */
    margin: 0 auto; /* Center the "공지" tag */
    width: max-content;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px; /* Space between pagination buttons */
    margin-top: 20px;
}

.pagination-arrow,
.pagination-number {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.95em;
    color: #777;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    min-width: 35px; /* Ensures consistent button size */
    text-align: center;
}

.pagination-number.active {
    background-color: #4ecdc4; /* Green for active page */
    border-color: #4ecdc4;
    color: #fff;
    font-weight: bold;
}

.pagination-arrow:hover:not(:disabled),
.pagination-number:not(.active):hover {
    background-color: #f0f0f0;
    border-color: #ccc;
    color: #555;
}

.pagination-arrow:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.main_content a {
    color: #555;
}
