/*  Body and Container */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000; /* main background black */
    color: #fff;     /* default text color */
}

.container {
    width: 1000px;
    margin: 0 auto; /* center container */
    background-color: #171717;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/*  Header */
.header {
    background-color: #171717;
    padding: 10px 20px;   
    text-align: left;
}

.header h1 { /* Name */
    color: #fff;
    font-size: 36px;      
    margin: 20px 0 0 0; 
}

.header p { /* Tagline */
    color: #aaa;          
    font-size: 16px;      
    margin: 5px 0 0 0;    
}


/* Heqader Links */
.header-links {
    margin-top: 15px;              
    padding-top: 10px;             
    border-top: 1px solid #444;    
}

.header-links a {
    color: #fff;       
    text-decoration: none;
    margin-right: 15px;  
    font-size: 14px;
    font-weight: bold;
}

.header-links a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* Content layout */
.content {
    display: flex;
    flex-direction: row;
    padding: 20px;
    gap: 20px;
}

/* Left Content */
.left {
    width:100%;
}


/* Modules */
.module {
    background-color: #000;
    border: 1px solid #333;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.module h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.text {
    color: #d2d2d2;
    margin: 10px 0;
    padding: 0;
    text-align: justify;
}


/* Items: Education, Experience, Projects, Publications */
.edu-item, .exp-item, .proj-item, .pub-item  {
    background-color: transparent;
    padding: 5px 0;
    margin: 0;
}

.edu-item strong, .exp-item strong, .proj-item strong, .pub-item strong {
    font-weight: bold;
    font-size: 16px;
    color: #fff;
}

.edu-item em, .exp-item em, .proj-item em, .pub-item em {
    font-size: 14px;
    color: #aaa;
}

.edu-item ul, .exp-item ul, .proj-item ul {
    color: #d2d2d2;
    margin: 5px 0 10px 45px;
    padding: 0;
}

.edu-logo-name, .exp-logo-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edu-logo-name img, .exp-logo-name img {
    height: 32px;
    width: 32px;
    object-fit: cover;
}

.edu-logo-name div, .exp-logo-name div {
    display: block;
}




/* Project Description and Links */


.proj-preview-row {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 60px;
}

.proj-img {
    height: 100%;
    width: calc(60px * 16 / 9);
    object-fit: cover;
    border-radius: 6px;
}

.proj-link {
    color: #aaa;
    font-weight: bold;
    font-size: 14px;
    word-break: break-all;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.proj-link:hover {
    color: #fff;
    text-decoration: underline;
}

.proj-item {
    margin-bottom: 25px;
}



/* Publications */

.pub-item .pub-link {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    color: #727272;
    text-decoration: none;
    margin: 5px 0;
    word-break: break-all;
}

.pub-item .pub-link:hover {
    text-decoration: underline;
}


/* For Mobile */
@media screen and (max-width: 600px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .header h1 {
        font-size: 28px;
    }

    .header p {
        font-size: 14px;
    }

    .module h3 {
        font-size: 18px;
    }

    .edu-item ul, .exp-item ul, .proj-item ul, #skills ul {
        font-size: 14px;
        margin-left: 20px;
    }

    .proj-img img {
        max-width: 80%;
    }

    .right {
        display: none;
    }

    .content {
        flex-direction: column;
        padding: 10px;
    }
}