/* === GLOBAL === */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    background-color: #fdfdfd;
    color: #222;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* === HEADER === */
header {
    border-bottom: 1px solid #ddd;
    padding: 30px 0; /* generous top-bottom space */
    background-color: #fff;
}

/* === PROFILE BLOCK === */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.8em 1em 0.8em 1em;
}

.profile-info {
    display: flex;
    align-items: flex-start;
    gap: 1.5em;
    flex-wrap: wrap;
    max-width: 1000px;
    width: 100%;
    justify-content: center;
}

.profile-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
}

.profile-text {
    flex: 1;
    min-width: 260px;
}

.profile-text h1 {
    margin: 0;
    font-size: 1.9em;
}

.profile-text p {
    margin: 0.3em 0 0.8em 0;
    font-size: 1em;
    color: #555;
}

/* === NAVIGATION === */
.navbar {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.navbar a {
    text-decoration: none;
    color: #007BFF;
    font-weight: 500;
}

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

/* === LINKS === */
a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === MAIN CONTENT === */
.main-content {
    margin-top: 2em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.2em;
}

.main-content p {
    text-align: justify;        /* 👈 Fully justified paragraph text */
    margin-bottom: 1.2em;
    line-height: 1.8;
    font-size: 1.05em;
}

.main-content a {
    word-break: break-word;
}

.main-content h1,
.main-content h2,
.main-content h3 {
    text-align: left;
    margin-top: 2em;
    margin-bottom: 1em;
    color: #333;
}

.main-content hr {
    margin: 2.5em 0;
    border: none;
    border-top: 1px solid #ccc;
}

/* === FOOTER === */
footer {
    border-top: 1px solid #ddd;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #666;
}

/* === BANNER === */
.banner-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 0 0 8px 8px;
    margin-bottom: 10px;
}

/* === SOCIAL ICONS (Google Scholar, LinkedIn, etc.) === */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0.5em;
    align-items: center;
}

.social-icons a {
    display: inline-block;
    width: 24px;
    height: 24px;
}

.social-icons img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease-in-out;
}

.social-icons img:hover {
    transform: scale(1.15);
}



/* === RESPONSIVE === */
@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
    }

    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .profile-text {
        text-align: center;
    }
}
