.container {
    width: 85%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 50px;
    position: relative;
}

.swiper-slide {
    box-sizing: border-box;
    padding: 4px;
    height: auto !important;
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
}

@media (max-width: 991px) and (min-width: 768px) {
    .swiper-slide {
        flex: 0 0 calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 767px) {
    .swiper-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.swiper {
    width: 100%;
    overflow: visible;
}

.swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.container-find {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.right-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.date-select {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    color: #888;
    font-size: 20px;
    cursor: pointer;
}

.date-select img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@media (max-width: 576px) {
    .container-find {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .search-bar-announcement {
        width: 100%;
    }

    .right-panel {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    .sort-dropdown,
    .date-select {
        flex: 1;
        max-width: 48%;
    }
}


.club-scroll-wrapper {
    display: flex;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0;
    width: 100%;
    cursor: default;
}

.club-scroll-wrapper.is-dragging {
    cursor: grabbing;
}

.profile-card:hover {
    transform: none !important;
}

.club-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.club-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}


.club-card {
    min-width: 300px;
    height: 200px;
    background-color: #eee;
    scroll-snap-align: start;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    border-radius: 10px;
}

@media (max-width: 767px) {
    .club-link {
        flex: 0 0 100%;
    }
}

.logo-container {
    width: 70px;
    height: 70px;
    margin-right: 20px;
    margin-left: 20px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-50%);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.container-announcement {
    width: 85%;
    margin: auto;
    padding-bottom: 70px;
}

.search-bar-announcement {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 250px;
    font-size: 14px;
    font-weight: bold;
}

.announcement {
    background: #f7f7f9;
    padding: 15px;
    border-radius: 10px;
    position: relative;
    margin-bottom: 15px;
    display: flex;
    align-items: start;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.announcement:hover {
    background: white;
    transform: scale(1.02);
}

.announcement-label {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 0, 0, 0.1);
    color: red;
    font-weight: bold;
    font-size: 14px;
    padding: 4px 10px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 5px;
}

.club-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: gray;
}

.club-info img {
    height: 20px;
    width: 20px;
    object-fit: contain;
    border-radius: 50%;
}

.activity-label {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(139, 191, 191, 0.68);
    color: #465e83;
    font-weight: bold;
    font-size: 14px;
    padding: 4px 10px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 5px;
}

.date-box {
    background: white;
    color: #a9a9a9;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    margin-right: 15px;
    margin-bottom: 20px;
    height: 70px;
    border: 2px solid #ddd;
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    gap: 4px;
}

.date-box .day {
    color: #ff0000;
    font-size: 20px;
    font-weight: bold;
}

.date-box .month-year {
    color: gray;
    font-size: 12px;
    font-weight: bold;
}

.content {
    flex-grow: 1;
    font-weight: bold;
    color: #a9a9a9;
    font-size: 12px;
    overflow: hidden;
    overflow-wrap: break-word;
    text-align: justify;
    padding-right: 100px;
    padding-left: 15px;
}

.content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    margin-bottom: 10px;
}


.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    text-align: center;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.sort-dropdown select {
    padding: 8px;
    background-color: #f7f7f9;
    color: gray;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.profile-card {
    width: 100%;
    height: 390px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.cover-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 350px;
    height: 100px;
}

.cover-photo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 60px 20px 0 20px;
    justify-content: flex-start;
    row-gap: 6px;
    font-size: 20px;
    height: 45px;
    text-align: left;
    width: calc(100% - 40px);
}

.profile-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.profile-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.description {
    font-weight: bold;
    color: darkgray;
    margin-right: 20px;
    margin-left: 20px;
    height: 100px;
    font-size: 12px;
    overflow: hidden;
    overflow-wrap: break-word;
    text-align: justify;
}

.footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px;
    padding-bottom: 6px;
    padding-top: 6px;
}

.footer span {
    color: dimgray;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.footer-image {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.activities {
    font-weight: bold;
    color: #275D8C;
    margin: 0;
    line-height: 1.2;
    margin-left: auto;
}

.pagination-line {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .pagination-line {
        justify-content: center;
    }
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    border-radius: 25px;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid #ccc;
    background-color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.page-btn:hover {
    background-color: #f0f0f0;
}

.page-btn.active {
    background-color: #275D8C;
    color: white;
}

.page-dots {
    padding: 6px 8px;
    color: #666;
    font-weight: bold;
}

.uni-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 200px;
    transition: transform 0.3s;
    margin-top: 30px;
}

.club-item:hover {
    transform: translateY(-5px);
}

.club-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.uni-item p {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

.uni-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.title {
    text-align: center;
    color: gray;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}


.tab-container {
    border-radius: 40px;
    justify-content: center;
    margin-top: 1.5rem;
    height: 50px;
    overflow: hidden;
    width: 19%;
    margin-right: auto;
    margin-left: auto;
}

.tabs {
    display: flex;
    background-color: #e5e7eb;
    padding: 0.25rem;
    height: 100%;
    width: 100%;
    justify-content: center;
    gap: 1rem;

}

.tab-button {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: #ffffff;
    color: #1f2937;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-button.inactive {
    color: #6b7280;
}

.search-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
}


.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    border-radius: 50px;
    padding: 1rem;
    border: 0.5px solid #e5e7eb;
    max-width: 700px;
    width: 100%;
    min-height: 60px;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
}


.search-container:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}


@media (max-width: 991px) and (min-width: 769px) {
    .search-container {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem 1.5rem;
        max-width: 650px;
    }

    .search-bar {
        width: 200px;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        gap: 1rem;
        border-radius: 30px;
        padding: 1.5rem;
        max-width: 350px;
    }

    .search-bar {
        width: 100%;
    }

    .location-dropdown {
        width: 100%;
    }
}

.search-bar {
    padding: 0.5rem;
    border-radius: 25px;
    border: 1px solid #ccc;
    width: 250px;
}

.dropdown-container {
    display: inline-block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: white;
    border: 1px solid #ccc;
    padding: 0;
    width: 250px;
}

.location-dropdown {
    width: 100%;
    padding: 8px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align: start;
    color: gray;
}

#pagination-controls {
    text-align: center;
    margin-top: 20px;
}

#pagination-controls button {
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

.dropdown-container::after {
    content: "▼";
    font-size: 12px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: gray;
}

.search-button {
    padding: 0.5rem 0.8rem;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
}

.search-button:hover {
    background-color: #ff0000;
}

.search-icon {
    font-size: 1.2rem;
}

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
}


.items-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
}

.items-per-page label {
    font-weight: bold;
    color: #333;
}


.items-per-page select {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-weight: bold;
}

.container-announcement:empty {
    min-height: 100px;
}

.announcement-link>.announcement {
    display: flex;
    align-items: start;
}

.announcement-link {
    display: block;
}

.announcement-wrapper {
    margin-bottom: 20px;
    display: block;
}

.announcement-image {
    flex-shrink: 0;
    margin-right: 15px;
}

.announcement-image img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .announcement {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 40px;
    }

    .announcement .date-box {
        margin-bottom: 15px;
        flex-shrink: 0;
    }

    .announcement .announcement-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .announcement .announcement-image img {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    .announcement .content {
        width: 100%;
        padding-right: 10px;
        padding-left: 0;
    }

    .announcement .content strong {
        display: block;
        word-wrap: break-word;
    }

    .announcement .content p {
        word-wrap: break-word;
    }
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    border-color: #007bff;
    background: #e7f3ff;
    color: #007bff;
    transform: translateY(-2px);
}

.page-btn.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #999;
}

.page-dots {
    padding: 8px 4px;
    color: #999;
    font-weight: bold;
    user-select: none;
}

@media (max-width: 768px) {
    .page-btn {
        min-width: 35px;
        height: 35px;
        padding: 6px 10px;
        font-size: 13px;
    }

    .profile-info h3 {
        font-size: 14px !important;
    }

    .description {
        font-size: 12px !important;
        line-height: 1.4;
    }

    .footer {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }

    .footer span {
        font-size: 11px !important;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .activities {
        font-size: 11px !important;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .logo-container {
        width: 50px;
        height: 50px;
    }
}