@charset "utf-8";
/* General Clan Header Section */
.clan-header {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-emblem {
    width: 64px;
    height: 64px;
    margin-bottom: 10px; /* Space below the emblem */
}

.header-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.header-name,
.header-tag {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.header-tag {
    color: #C9431F; /* Clan tag color */
}

.clan-motto {
    font-size: 16px;
    font-style: italic;
    color: #555;
    margin: 10px 0;
}

.clan-extra-details {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    line-height: 1.6;
}

/* Members Grid */
.clan-members {
    margin-top: 20px;
}

.clan-members h3 {
    text-align: center;
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.members-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Space between cards */
    justify-content: center; /* Center the grid */
    margin: 0 auto;
    max-width: 900px;
}

.member-card {
    flex: 0 0 calc(33.333% - 20px); /* 3 cards per row */
    max-width: calc(33.333% - 20px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    height: 200px;
    color: #fff; /* White text for visibility */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); /* Shadow for readability */
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
    transform: translateY(-5px); /* Lift on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.member-card p {
    margin: 5px 0;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.member-card p strong {
    font-size: 16px;
    color: #fff;
}

/* Role Stars */
.member-card .fa-star,
.member-card .fa-star-o {
    color: #C9431F; /* Orange stars */
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px; /* Space between pagination links */
    margin-top: 20px;
}

.pagination-link {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #0073aa;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

.pagination-link:hover,
.pagination-link.active {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
    font-weight: bold;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .member-card {
        flex: 0 0 calc(50% - 15px); /* 2 cards per row */
        max-width: calc(50% - 15px);
    }

    .header-name,
    .header-tag {
        font-size: 16px; /* Adjust font size for tablets */
    }

    .clan-motto {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .member-card {
        flex: 0 0 100%; /* 1 card per row */
        max-width: 100%;
    }

    .header-emblem {
        width: 48px;
        height: 48px;
    }

    .header-name,
    .header-tag {
        font-size: 14px;
    }

    .clan-motto {
        font-size: 12px;
    }
}
