/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #f4f5f7;
    padding: 20px;
}

/* HEADER */
.top-header {
    text-align: center;
    margin-bottom: 30px;
}

.top-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
}

.top-header p {
    margin-top: 8px;
    color: #444;
}

/* TABS */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 12px;
}

.tab {
    padding: 10px 25px;
    border-radius: 25px;
    background: #d9d9d9;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.tab.active {
    background: #007bff;
    color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* CATEGORY TITLE */
.category-title {
    text-align: center;
    font-size: 28px;
    margin: 30px 0 40px;
    font-weight: bold;
    color: #222;
}

/* MAIN CONTAINER */
.card-container {
    max-width: 1200px;
    margin: auto;
}

/* PANELS */
.category-panel {
    display: none;
    width: 100%;
}

.category-panel.active {
    display: block;
}

/* CARD CENTERING WRAPPER */
.cards-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
}

/* CARD */
.card {
    width: 500px;
    position: relative;
    background: #fff;
    padding: 80px 20px 20px;
    border-radius: 18px;
    margin: 60px 0;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
}

/* IMAGE */
.img-wrap {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* INFO */
.info h4 {
    margin: 8px 0;
    color: #444;
}

/* VOTE BUTTON */
.vote-btn {
    margin-top: 10px;
    padding: 12px 25px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s ease;
}

.vote-btn:hover {
    background: #0056b3;
    transform: scale(1.07);
}

/* FOOTER */
.footer {
    margin-top: 50px;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}
