/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    padding: 40px 20px;
}

/* Card Layout for the main container */
.container {
    max-width: 960px; /* Prevents the layout from being too wide on large screens */
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    color: #333;
}

header h2 {
    font-size: 1.5em;
    color: #666;
    font-weight: 300;
}

/* Profile section - general heading */
.profile h3 {
    text-align: center;
    margin-bottom: 20px;
}

/* Side-by-side content container */
.profile-content {
    display: flex;
    align-items: flex-start;
    gap: 30px; /* Space between image and text */
}

.profile-content img {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
}

.profile-content .bio {
    flex-grow: 1;
    text-align: left; /* Keep bio text left-aligned */
}

.justified {
    text-align: justify;
}

.bio a {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    color: #0066cc;
    text-decoration: none;
}

.bio a:hover {
    text-decoration: underline;
}

/* Two-column layout for main content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 40px; /* Space between columns and rows */
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

/* Section styles */
h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

ul {
    list-style-type: none;
}

ul li {
    font-size: 1em;
    margin-bottom: 10px;
    color: #555;
}

ul li a {
    color: #0066cc;
    text-decoration: none;
}

ul li a:hover {
    text-decoration: underline;
}

/* Button */
.btn-primary {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 12px 24px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: #333;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9em;
    color: #888;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    
    .container {
        padding: 20px;
    }

    .profile-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .main-content {
        grid-template-columns: 1fr; /* Switch to a single column */
    }
}