.profile-container {
    display: flex;
    flex-direction: column;
    max-width: 1300px;
    margin: 0 auto;
    box-sizing: border-box;
}

.top-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.profile-details {
    display: flex; /* Make the profile details section a flex container */
    align-items: center; /* Align items vertically */
}

.profile-picture img {
    width: 100px; /* Adjust the width as needed */
    height: auto;
    border-radius: 25%; /* Rounded profile picture */
    margin-right: 20px; /* Add some space between profile picture and user data */
}

.user-data {
    flex: 1; /* Take remaining space */
    padding: 20px;
}

.profile-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background-color: #fff;
    box-sizing: border-box;
}

.profile-card.general-info {
    width: calc(50% - 10px); /* Ensure they fit side by side with a small gap */
    margin-bottom: 20px;
}

.profile-card.driver-rating {
    width: calc(50% - 10px); /* Ensure they fit side by side with a small gap */
    margin-bottom: 20px;
    align-self: flex-start; /* Ensure height is determined by content */
}

.profile-card.race-statistics {
    width: 100%;
}

@media screen and (max-width: 992px) {
    .profile-card.general-info, .profile-card.driver-rating {
        width: 100%; /* Stack on smaller screens */
        margin-right: 0;
    }
}

@media screen and (max-width: 576px) {
    .profile-container {
        width: 100%;
        padding: 10px;
    }

    .profile-card {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Header styles */
.profile-header {
    background-color: #f1f1f1;
    border-radius: 8px 8px 0 0;
    padding: 10px;
}

.profile-header h2 {
    margin: 0;
}

/* Details styles */
.profile-details-fullwidth {
	padding: 20px;
	width: 100%;
}

.profile-details {
    padding: 20px;
}

.profile-details p, .profile-details a, .profile-details ul {
    margin: 10px 0;
}

.profile-details ul {
    padding-left: 20px;
}

/* Link styles */
a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}