/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header Styling */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333;
    color: #f0c929;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.header h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: goldenrod;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-bar {
    width: 200px;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.search-bar:focus {
    outline: none;
    border-color: goldenrod;
    box-shadow: 0 0 5px goldenrod;
}

/* Styling for the Results Section */
.results-container {
    padding: 100px 20px 40px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
}

.results-container h2 {
    text-align: center;
    color: goldenrod;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: bold;
}

/* Table Styling */
.table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: white;
}

.table thead {
    background-color: #333;
    color: white;
    text-align: left;
}

.table thead th {
    padding: 12px;
    text-transform: uppercase;
    font-size: 14px;
    border: 1px solid #ddd;
}

.table tbody tr {
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s;
}

.table tbody tr:hover {
    background-color: #f2f2f2;
}

.table tbody td {
    padding: 10px;
    font-size: 14px;
    text-align: left;
    vertical-align: middle;
}

/* Styling for the Candidate Photo */
.candidate-photo {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer Styling */
footer {
    background-color: #333;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-left img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.footer-left h3 {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    color: white;
}

.footer-center {
    text-align: center;
    font-size: 14px;
}

.footer-center p {
    margin: 5px 0;
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-media a {
    font-size: 18px;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.2);
    color: goldenrod;
}

/* Responsive Table Styling */
@media (max-width: 768px) {
    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 20px;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border: none;
    }

    .table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        font-size: 14px;
    }

    .table tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: uppercase;
        color: #333;
    }

    .candidate-photo {
        margin-right: 10px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}