/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Page Wrapper with Proper Margins */
.page-wrapper {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px; /* Keep a reasonable page width */
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Search Box Styles */
.search-box {
    width: 25%;
    padding: 20px;
    background-color: #f9f9f9;
    border-right: 1px solid #ddd;
    position: relative;
    overflow: hidden;
}

.search-box:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff6b6b, #4caf50, #007bff);
}

.search-box h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.search-input, .age-input {
    width: 100%;
    padding: 15px; /* Increased height */
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px; /* Slightly rounded corners */
    font-size: 16px;
}

.search-btn {
    width: 100%;
    padding: 15px; /* Increased height */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.search-btn:hover {
    background-color: #0056b3;
}

/* Profiles Section */
.profiles {
    width: 70%;
    padding: 20px;
}

.profile-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #4CAF50; /* Green border as requested */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-img {
    width: 120px; /* Slightly increased */
    height: 120px; /* Slightly increased */
    border-radius: 50%;
    margin-right: 20px;
}

.profile-details {
    display: flex;
    flex-direction: column;
}

.profile-details h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.profile-details p {
    margin: 5px 0;
    color: #666;
}

/* Footer Styling */
.footer {
    background-color: #f0f0f0;
    padding: 40px 0;
    width: 100%;
    font-family: Arial, sans-serif;
    position: relative;
    bottom: 0;
}

.footer-box {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.footer-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 30%;
}

.footer-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-card p, .footer-card ul li a {
    font-size: 14px;
    color: #555;
}

.footer-card ul {
    list-style: none;
    padding: 0;
}

.footer-card ul li {
    margin-bottom: 5px;
}

.footer-card ul li a {
    text-decoration: none;
    color: #007bff;
}

.footer-card ul li a:hover {
    color: #0056b3;
}

.footer-bottom {
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    background-color: #222;
    color: #fff;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .footer-box {
        flex-direction: column;
        align-items: center;
    }

    .footer-card {
        width: 90%;
        margin-bottom: 20px;
    }
}

/* Ensure the footer stays at the bottom of the page */
body {
    min-height: 100vh; /* Minimum height of the body to cover the full viewport */
    display: flex;
    flex-direction: column; /* Makes the body act as a flex container */
}

main {
    flex: 1; /* Takes up the remaining height to push the footer to the bottom */
}

footer {
    width: 100%;
    margin-top: auto; /* Ensure the footer sticks to the bottom */
}
