/* General Body Styles */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
}

header h1 {
    font-family: 'Merriweather', serif;
    margin: 0;
    font-size: 2.8rem;
}

header .subtitle {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e74c3c;
    margin-bottom: 1rem;
}

/* Main Content Styles */
main {
    flex-grow: 1;
    padding: 20px;
    max-width: 900px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Card Styles */
.card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out;
    position: relative; /* For inline images */
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    font-family: 'Merriweather', serif;
    color: #34495e;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2rem;
}

.card p, .card ul, .card ol {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.card ul li, .card ol li {
    margin-bottom: 8px;
}

/* Biography Specific Styles */
.bio-details p {
    margin: 5px 0;
    font-weight: 600;
    color: #444;
}

.bio-details p strong {
    color: #2c3e50;
}

/* Quotes Specific Styles */
#quotes ol {
    list-style-type: decimal;
    padding-left: 25px;
}

#quotes li {
    margin-bottom: 15px;
    font-style: italic;
}

/* Inline Images */
.inline-pic {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.inline-pic.right {
    float: right;
    margin-left: 20px;
}

.inline-pic.left {
    float: left;
    margin-right: 20px;
}

/* Clear float after sections with inline images */
.card::after {
    content: "";
    display: table;
    clear: both;
}

/* Footer Styles */
footer {
    background-color: #34495e;
    color: #ecf0f1;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    main {
        padding: 40px;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        max-width: 1200px;
    }

    header h1 {
        font-size: 3.5rem;
    }

    .header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .profile-pic {
        margin-bottom: 1.5rem;
    }

    .inline-pic {
        max-width: 200px;
    }
}

@media (min-width: 1024px) {
    main {
        grid-template-columns: repeat(2, 1fr);
    }
}
