/* ===========================
   General Body Styles
=========================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
    line-height: 1.6;
    color: #333;
}

/* ===========================
   Header Banner
=========================== */
.banner {
    width: 100%;
    height: auto;           /* auto height for responsiveness */
    max-height: 450px;      /* limit max height for large screens */
    object-fit: cover;
    display: block;
}

/* ===========================
   Header Banner & Content
=========================== */
.site-header {
    position: relative;
    width: 100%;
    overflow: hidden;       /* prevent content spill */
    margin-bottom: 30px;
}

.header-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* vertical and horizontal center */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
}

.header-content h1,
.header-content p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    margin: 10px 0;
}

/* Profile Image */
.profile {
    width: 150px;
    max-width: 30%;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 15px;
}

/* ===========================
   CV Download Button
=========================== */
.cv-btn {
    display: inline-block;
    background-color: #FFD700;
    color: #002147;
    font-weight: bold;
    padding: 12px 25px;
    margin-top: 20px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    outline: none;
}

.cv-btn:hover,
.cv-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Navigation
=========================== */
.navbar {
    background: #002147;
    text-align: center;
    padding: 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar a {
    color: white;
    margin: 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.navbar a:hover,
.navbar a:focus {
    color: #FFD700;
}

/* ===========================
   Main Content
=========================== */
main {
    max-width: 1000px;
    margin: auto;
    padding: 30px 20px;
}

section {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 6px;
}

section p {
    text-align: justify;
    text-justify: inter-word;
}

/* ===========================
   Section Headings (h2)
=========================== */
main section h2 {
    text-align: left;
    font-size: 2em;
    color: #002147;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 5px;
}

main section h3 {
    font-size: 1.5em;
    color: #0056b3;
    margin-bottom: 10px;
}

main section h4 {
    font-size: 1.2em;
    color: #002147;
    margin-bottom: 5px;
}

/* ===========================
   Stats (for metrics)
=========================== */
.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

/* ===========================
   Research Cards
=========================== */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.card {
    flex: 1 1 300px;
    min-width: 300px;
    background: #fafafa;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: justify;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 2px 6px 15px rgba(0, 0, 0, 0.15);
}

/* ===========================
   Research Profile Icons
=========================== */
.profiles {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.profiles a {
    text-decoration: none;
    color: #000;
    text-align: center;
    font-weight: bold;
    width: 90px;
}

.profiles img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    margin: auto;
    margin-bottom: 8px;
    transition: transform 0.2s;
}

.profiles img:hover,
.profiles img:focus {
    transform: scale(1.15);
}

/* ===========================
   Footer
=========================== */
footer {
    text-align: center;
    padding: 20px;
    background: #002147;
    color: white;
}

/* ===========================
   Contact Me Section
=========================== */
.contact-emails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.contact-emails a {
    display: block;
    color: #0077cc;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.2s, transform 0.2s;
}

.contact-emails a:hover,
.contact-emails a:focus {
    color: #004a99;
    text-decoration: underline;
    transform: translateY(-2px);
}

/* ===========================
   Work Experience Section
=========================== */
#work-experience {
    margin: 40px 0;
    padding: 0 10px;
}

.work-institution {
    margin-bottom: 30px;
}

.work-institution h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
    color: #0056b3;
}

.work-institution h3 a {
    text-decoration: none;
    color: #0056b3;
    transition: color 0.3s;
}

.work-institution h3 a:hover {
    color: #ff8c00;
}

.work-institution p {
    font-size: 0.95em;
    color: #333;
    margin-bottom: 15px;
}

.work-item {
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid #FFD700;
}

.work-item h4 {
    margin: 0;
    font-size: 1.1em;
    color: #002147;
}

.work-item .duration {
    display: block;
    font-style: italic;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
}

.work-item p {
    margin: 5px 0;
    font-size: 0.95em;
}

.work-item ul {
    margin: 5px 0 10px 20px;
}

.work-item ul li {
    margin-bottom: 5px;
}

/* ===========================
   Responsive Design
=========================== */
@media (max-width: 768px) {

    .card-container {
        flex-direction: column;
        gap: 15px;
    }

    .header-content h1 {
        font-size: 1.6rem;
    }

    .header-content p {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .header-content {
        width: 90%;
        padding: 15px;
    }

    .profile {
        width: 120px;
    }

    .stats {
        flex-direction: column;
        gap: 15px;
    }

    .work-item {
        padding-left: 10px;
    }

    #work-experience h2 {
        font-size: 1.8em;
    }

    .work-institution h3 {
        font-size: 1.3em;
    }
}
