html, body {
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
}

.site-container {
    width: 100%;
    background-color: #ffffff;
    box-sizing: border-box;
    overflow: hidden; 
}

.site-header {
    background-color: #102b6b; 
    margin-bottom: 40px;
    width: 100%;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 25px 40px;
    box-sizing: border-box;
}

.site-logo a {
    font-size: 1.7rem;
    font-weight: 700;
    color: #ffffff; 
    text-decoration: none;
    letter-spacing: -0.5px;
}

.site-nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.site-nav a:hover, .site-nav a.active {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.content-wrapper {
   max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 40px 40px;
    min-height: 400px;
    box-sizing: border-box;
}


h1 {
    font-size: 1.6rem;
    color: #102b6b;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 25px;
}

h2 {
    font-size: 1.25rem;
    color: #111111;
    margin-top: 30px;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.15rem;
    color: #111111;
    margin-bottom: 5px;
}

.header-space {
    height: 5px;
    padding: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 60px;
    align-items: start;
} 



.frontp {
    margin: 0 0 1.3em 0;
    max-width: 100%;
    font-size: 1rem;
     line-height: 1.7;
}

.contact-box {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.4;
}

.profile-img {
  /*  width: 100%;
    height: auto; */
    object-fit: cover;
  /*  border-radius: 50%;     */
    border: 1px solid #dddddd;
    display: block;
    width: 100%;
    height: auto;
}


.contact-box a {
    color: #0b1d3a;
    text-decoration: none;
    font-weight: 500;
}

.contact-box a:hover {
    text-underline-offset: 3px;
    text-decoration: underline;
}

.paper-entry {
    margin-bottom: 40px;
}

.paper-title {
   color: #102B6B;
}

.paper-meta {
    font-style: italic;
    color: #666666;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.paper-abstract {
    font-size: 0.9rem;
    color: #444444;
    border-left: 3px solid #0b1d3a; 
    padding-left: 15px;
    margin-left: 5px;
    text-align: justify;
}

.software-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 25px;
    border-radius: 6px;
}

.software-link-btn {
    display: inline-block;
    background-color: #0b1d3a;
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-top: 15px;
    transition: background-color 0.2s ease;
}

.software-link-btn:hover {
    background-color: #16325c;
}

.cv-frame {
    width: 100%;
    height: 850px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    margin-top: 20px;
}

.cv-download-link {
    font-weight: bold; 
    color: #0b1d3a;
    text-decoration: none;
}

.cv-download-link:hover {
    text-decoration: underline;
}

.paper-title-link {
    color: #1825d1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.paper-title-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.course-entry {
    margin-bottom: 35px;
}

.course-term {
    font-weight: 700;
    color: #0b1d3a;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.course-institution {
    font-style: italic;
    color: #666666;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.course-details {
    color: #444444;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.course-metric {
    font-weight: 600;
    color: #0b1d3a;
    font-size: 0.9rem;
}

.evaluation-section {
    margin-top: 50px;
    border-top: 2px solid #eeeeee;
    padding-top: 30px;
}

.evaluation-intro {
    font-style: italic;
    color: #555555;
    margin-bottom: 25px;
}

.eval-quote {
    font-size: 0.95rem;
    color: #444444;
    font-style: italic;
    border-left: 3px solid #eeeeee;
    padding-left: 20px;
    margin: 20px 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .site-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .site-header-inner {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px;
    }

    .site-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .site-nav a {
        margin-left: 0; 
        font-size: 0.9rem;
    }

    .header-space{
        padding:0px
    }

    .content-wrapper {
        padding: 25px 20px 30px 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .profile-img {
        max-width: 220px; 
        margin: 0 auto;
    }
}