body{
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    padding-top: 70px;
}

.main-nav{
    width: 100%;
    background-color: #333;
    position: absolute;
    top: 0;
    left: 0;
}

.main-nav ul{
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}
.main-nav ul li{
    display: flex;
    flex-direction: row;
}

.main-nav a{
    display: block;
    text-decoration: none;
    padding: 15px 20px;
    color: #fff;
    font-weight: bold;
}

.main-nav a:hover,
.main-nav a:focus{
    background-color: #555;
    outline: none;
}
/* the main container card  */
.profile-card{
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    overflow: hidden;  /*Ensure stays within rounded corners*/
    display: flex;
    flex-direction: column; /* moblie first */
}

.profile-header{
    text-align: center;
    padding: 20px;
}

.profile-header img{
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-header h2{
    margin: 10px 0 0;
    font-size: 1.5em;
}

.profile-body{
    padding: 20px;
}

.profile-body p{
    line-height: 1.6;
}

/* Styling the list */ 
.list-section h3{
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-top: 20px;
}

.list-section ul{
    list-style-type: none;
    padding: 0;
}

.list-section li{
    background-color: #f9f9f9;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 5px;
}

/* Style for social media links */

.social-links{
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a{
    text-decoration: none;
    color: #0073b1;
    font-weight: bold;
}

.social-links a:focus{
    outline: 2px solid #0073b1;
    outline-offset: 2px;
    border-radius: 4px;
}

.page-content-card{
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 800px;
    padding: 20px 30px;
    margin-top: 20px;
}

.page-content-card h1{
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.page-content-card h2{
    color: #333;
}

.page-content-card ul{
    padding-left: 20px;
}

.page-content-card li{
    line-height: 1.6;
    margin-bottom: 5px;
}

/* contact form style */
.contact-form{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group{
    display: flex;
    flex-direction: column;
}

.form-group label{
    font-weight: bold;
    margin-bottom: column;
}

.form-group input,
.form-group textarea{
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: Arial, Helvetica, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus{
    outline: 2px solid #0073b1;
    border-color: #0073b1;
}

.contact-form button{
    padding: 12px;
    background-color: #0073b1;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.contact-form button:hover,
.contact-form button:focus{
    background-color: #005a8a;
}

/* form validation */
.error{
    color: #d93025;
    font-size: 0.9em;
    margin-top: 3px;
    min-height: 1em;
}

/* .form-group input:invalid,
.form-group textarea:invalid{
    /* border: #d93025 solid 2px;
} */ 

#success-message{
    display: none;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 20px;

}

/* Responsiveness */

@media (min-width: 768px){
    .profile-card{
        flex-direction: row;
    }

    .profile-header{
        flex: 0 0 250px;
        border-right: 1px solid #eee;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .profile-body{
        flex: 1;
        padding: 30px;
    }
}
    


