/*header text h1 for desktop and mobile */
.header-textbox-for-mobile {
    display: none;
}

@media (max-width: 768px) {
    .header-text-for-desktop {
        display: none;
    }
    .header-textbox-for-mobile {
        display: block;
    }
}

/* about me section  */
.abt-me-container, 
.research-work-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 3rem 20px;
}

.abt-me {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.abt-me p {
    text-align: justify;
}

/*  To make hr full width of above h2  */
.heading-wrapper {
    display: inline-block;
}
  
.heading-wrapper hr {
    margin: auto;
    margin-bottom: 15px;
    border: none;
    height: 2px;
    background-color: var(--primary-color);
}

.abt-me-1-left {
    flex: 70%;
}

.abt-me-1-right {
    flex: 30%;
}

.abt-me-2-left {
    flex: 30%;
}

.abt-me-2-right {
    flex: 70%;
}

.abt-me-img {
    width: 80%;
    max-width: 400px;
    border: 1px solid #4f4f4f;
    border-radius: 8px;
    display: block;
    margin: 20px auto;
    box-shadow: var(--box-shadow);
}

.abt-me-1-left .abt-me-img {
    display: none;
}

.abt-me-2-left .heading-for-mobile {
    display: none;
}

@media (max-width: 768px) {
    .abt-me {
        flex-direction: column;
    }
    
    .heading-wrapper {
        display: block;
    }
    
    .abt-me-1-left .abt-me-img {
        display: flex; 
        margin-top: 20px;
    }
    
    .abt-me-1-left p {
        padding-top: 10px;
    }
    
    .abt-me-1-right .abt-me-img {
        display: none;
    }
    
    .abt-me-2-left .heading-for-mobile {
        display: block;
    }
    
    .abt-me-2-right .heading-for-desktop {
        display: none;
    }
}

/*  Research Work (style is also with abt-me-container above)  */
.research-work-container {
    background-color: rgb(247, 246, 243);
}

/*--------------------
Degree and membership
---------------------*/
.member-degree-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    padding: 20px;
    width: 100%;
}

.degree-member-content {
    max-width: 1200px; 
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
}

.member-degree {
    flex: 1;
}

.member-degree p {
    font-size: 0.8rem;
    text-align: center;
    font-style: italic;
}

.member-degree img {
    width: 100%;
    max-width: 400px;
    border: 1px solid #4f4f4f;
    border-radius: 8px;
    display: block;
    margin: 20px auto;
    box-shadow: var(--box-shadow);
}

@media (max-width: 768px){
    .degree-member-content{
        flex-direction: column;
    }
}

/*-----------------------
    Research Paper
--------------------------*/

.research-paper {
    background-color: var(--bg-light-grey);
    padding: 40px 5%;
}

.research-header {
    text-align: center;
    margin-bottom: 20px;
}

.research-header hr{
    width: 150px;
    margin: auto;
    border-bottom:1.5px solid var(--primary-color);
}

.papers {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

.papers h4 {
    color: var(--primary-color);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
}



/*--------Link to orcid and research gate------*/

.rg-orcid-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    background-color: #fff;
}

.rg-container,
.orcid-container {
    flex: 1;
    max-width: 500px;
    padding: 30px;
    background-color: var(--bg-light-grey);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.rg-orcid-container h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.rg-orcid-container img {
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    display: block;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.rg-orcid-container p {
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .rg-orcid-container {
        flex-direction: column;
        padding: 30px 20px;
    }

    .rg-container,
    .orcid-container {
        width: 100%;
        max-width: none;
    }

    .rg-orcid-container img {
        max-width: 100%;
    }
}
