body { padding-top: 56px; }
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #343a40 !important; }
.bg-hero { background-color: lightblue; 
    background-image: url(https://static.igem.wiki/teams/5815/projectdescription/whatsapp-image-2025-10-08-at-21-43-35-98cabce8.avif);
    background-size: cover;
    background-repeat: no-repeat; /* Prevents image repetition */
    height: 400px;

}

.results img {
    max-width: 90%;
    width: auto;
    height: auto;
    max-height: 70vh;
    display: block;
    margin: 40px auto;
    object-fit: contain;
}

.results {
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

.results p,
.results h4,
.results h5,
.results h6,
.results small,
.results div,
.results span {
    text-align: left;
}

.results p small {
    text-align: left;
    display: block;
}

.edu6 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}


.edu6 img {
   width: 45%; 
    max-width: 700px;
    height:600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgb(75, 220, 220);
    min-width: 150px;
}

.edu2 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}


.edu2 img {
   width: 33%; 
    max-width: 500px;
    height:500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgb(75, 220, 220);
    min-width: 150px;
}


.edu3 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}


.edu3 img {
   width: 30%; 
    max-width: 500px;
    height:400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgb(75, 220, 131);
    min-width: 150px;
}

.edu1 {
    display: block;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.edu1 img {
    display: block;
    width: 80%;
    max-width: 800px;
    height: auto;
    min-height: 420px; /* Minimum height */
    margin: 0 auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgb(62, 106, 207);
}

.edu4 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.edu4 img {
    width: auto;
    max-width: 45%;
    height: auto;
    max-height: 600px;
    border-radius: 20px;
    object-fit: contain; /* This prevents cropping */
    box-shadow: 0 2px 8px rgb(38, 123, 123);
}

/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #ffffff; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom: 1.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }

/*Robotic CAr*/
.robotic-car {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.robotic-car p {
    font-size: 18px;
    text-align: left;;
}

.robotic-car img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-pair {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.image-pair img {
    width: 45%;
    max-width: 400px;
    margin: 0;
}


/* footer */
footer a { color: white; font-weight: bold; text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }

/*contributions*/
/*team members*/
.Contribution-text-1{
    border: 2px solid black;
    border-radius: 50px;
    padding: 20px;
    background-color: bisque;
    margin: 20px;
}

.group-photo {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 20px auto;
    max-height: none;
}

.team-leader-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.leader-container {
    position: relative;
    width: 60%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
}

.leader-container img {
    width: 100%;
    height: auto;
    min-height: 667px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.75);
}

.sub-leader-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 0 100px;
}

.subleader-container {
    position: relative;
    width: 45%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.subleader-container img {
    width: 100%;
    height: auto;
    min-height: 600px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.75);
}

.description {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 25px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    z-index: 100;
    box-sizing: border-box;
    overflow: auto;
    font-size: 1.5vw;
    line-height: 1.4;
}

.sub-leader-photos .description {
    bottom: 30px;
    font-size: 1.4vw;
    padding: 15px;
}

.advisors .description {
    bottom: 30px;
    font-size: 1.4vw;
    padding: 15px;
}

.team-members .description {
    bottom: 30px;
    font-size: 1.8vw;
    padding: 15px;
}

.name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    z-index: 50;
    border-radius: 0 0 20px 20px;
}

.team-members {
    font-size: 18px;
    padding: 8px 15px;
}

.leader-container:hover .description,
.subleader-container:hover .description {
    display: block;
}

.supervisors-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.supervisors-photos img {
    width: 60%;
    max-width: 600px;
    height: auto;
    min-height: 667px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.75);
}

.Team-Title{
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.team-members, .advisors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    justify-items: center;
    align-items: start;
    gap: 30px;
    padding: 0 50px;
    width: 100%;
    box-sizing: border-box;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    justify-items: center;
    align-items: start;
    gap: 30px;
    padding: 0 50px;
    width: 100%;
    box-sizing: border-box;
}

.member-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.member-container img {
    width: 100%;
    height: auto;
    min-height: 600px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.75);
}

.member-container:hover .description {
    display: block;
}

.team-members .description {
    font-size: 1.2vw;
    padding: 15px;
    line-height: 1.3;
}

.professor-photo {
    width: 60%;
    max-width: 600px;
    height: auto;
    min-height: 667px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.75);
    margin: 0 auto;
    display: block;
}

.advisors {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 0 100px;
}

/* Advisors */
.advisors {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 0 100px;
}

.advisor-container {
    position: relative;
    width: 45%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.advisor-container img {
    width: 100%;
    height: auto;
    min-height: 600px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.75);
}

.advisor-container:hover .description {
    display: block;
}

.advisor-container:nth-child(3) img,
.subleader-container:nth-child(2) img,
.member-container:nth-child(9) img{
    object-position: 75% center;
}

        .supervisor-container {
            position: relative;
            width: 60%;
            max-width: 600px;
            border-radius: 20px;
            overflow: hidden;
            margin: 0 auto;
        }

        .supervisor-container img {
            width: 100%;
            height: auto;
            min-height: 667px;
            object-fit: cover;
            border-radius: 0;
            box-shadow: 0 2px 8px rgba(124, 58, 237, 0.75);
        }

        .supervisor-container:hover .description {
            display: block;
        }

        .supervisor-container .description {
            bottom: 25px;
            font-size: 1.5vw;
        }

        /* Professor container */
        .professor-container {
            position: relative;
            width: 60%;
            max-width: 600px;
            border-radius: 20px;
            overflow: hidden;
            margin: 0 auto;
        }

        .professor-container img {
            width: 100%;
            height: auto;
            min-height: 667px;
            object-fit: cover;
            border-radius: 0;
            box-shadow: 0 2px 8px rgba(124, 58, 237, 0.75);
        }

        .professor-container:hover .description {
            display: block;
        }

        .professor-container .description {
            bottom: 25px;
            font-size: 1.5vw;
        }

/*ALL HP HERE*/

img {
    max-width: 1000px;
    max-height: 300px;
    margin: auto;
}

.beach-cleanup {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

a[href$=".pdf"] {
    margin-top: 40px
}

.beach-cleanup img {
    width: 23%; 
    max-width: 300px;
    height:300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgb(75, 220, 220);
    /* No min-width, or very small min-width */
    min-width: 150px;
}

.beach-cleanup img[src="https://static.igem.wiki/teams/5815/humanpratice/pslmpjjexleqxwven70u.webp"]
,img[src="https://static.igem.wiki/teams/5815/humanpratice/zgzmp2ijevzbylagt4dr.webp"] {
    object-fit: fill; /* Or scale-down */
    background-color: white;
}

.youth-centre {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}


.youth-centre img {
   width: 33%; 
    max-width: 400px;
    height:400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgb(75, 220, 220);
    /* No min-width, or very small min-width */
    min-width: 150px;
}

.youth-centre img[src="https://static.igem.wiki/teams/5815/humanpratice/x69bkkr3ijg1aye78rzu.webp"]
 {
    object-fit: fill; /* Or scale-down */
    background-color: white;
}

a:hover{
    color:#7949b3
}

.beach-cleanup img:last-of-type{
    width: 80%; /* Or 100% */
    height: auto; /* Natural height based on width */
    max-width: 800px;
    max-height: 700px; /* Optional maximum */
    display: block;
    margin: 10px auto;
}

.youth-centre img:last-child, .epdinterview img:last-child{
    width: 80%; /* Or 100% */
    height: auto; /* Natural height based on width */
    max-width: 800px;
    max-height: 700px; /* Optional maximum */
    display: block;
    margin: 10px auto;
}


.human-practice {
    max-width: 12px; /* Or your preferred max width */
    margin: 0 auto; /* Center the container */
    padding: 0 20px; /* Add some side padding */
}

.iGEM-timeline-HP {
    width: 100%;
    text-align: center;
    margin: 30px 0;
}

.iGEM-timeline-HP img {
width: 90%; /* Or 100% */
    height: auto; /* Natural height based on width */
    max-width: 800px;
    max-height: 700px; /* Optional maximum */
    display: block;
    margin: 10px auto;
}



.Humanpracticephotos{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    
}


.tall-photo-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 20px;
    margin: 30px 0;
}

.photo-half {
   width: auto; /* Reasonable width */
    height: auto; /* Natural tall height */
    max-height: 1000px; /* Very tall limit */
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    background: white;
    margin-bottom: 20px;
    margin-top: 10px;
}

.photo-split-container {
    display: flex;
    justify-content: center; /* Center both halves */
    gap: 25px;
    margin: 40px 0;
    padding: 0 70px;
}

.photo-upper-half {
    width: 25%; /* Reasonable width */
    height: auto; /* Natural tall height */
    min-height: 700px; /* Very tall limit */
    background-image: url('https://static.igem.wiki/teams/5815/intergratedhumanpractice/photo-2025-07-09-18-02-59.webp');
    background-size: 100% 190%; /* Shows upper 55% */
    background-position: top center;
    background-repeat: no-repeat;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border: 2px solid #45b06cff;
}

.photo-lower-half {
   width: 25%; /* Reasonable width */
    height: auto; /* Natural tall height */
    min-height: 700px;
    background-image: url('https://static.igem.wiki/teams/5815/intergratedhumanpractice/photo-2025-07-09-18-02-59.webp');
    background-size: 100% 214%; 
    background-position: bottom center;
    background-repeat: no-repeat;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border: 2px solid #45b06cff;
}

.HP-start{
    background-color: beige;
    border-radius: 20px;
    padding: 25px 30px; /* More padding for better appearance */
    margin: 20px 0; /* Space around the paragraph */
    line-height: 1.65; /* Better text spacing */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Optional shadow */
    width: 100%;
    box-sizing: border-box;
}

.dr-jones-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 40px 0;
}

.dr-jones-container img {
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgb(75, 220, 220);
}

.epdinterview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}


.epdinterview img {
   width: 33%; 
    max-width: 400px;
    height:400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgb(75, 220, 220);
    /* No min-width, or very small min-width */
    min-width: 150px;
}

.greensai {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}


.greensai img {
   width: 33%; 
    max-width: 400px;
    height:400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgb(56, 214, 167);
    min-width: 150px;}

.Humanpracticepdf {
    width: 100% !important;
    height: 600px !important;
    max-width: 1000px !important;
    border: 2px solid rgb(44, 139, 196);
    border-radius: 10px;
    display: block;
    margin: 20px auto;}


    /* END of HP*/
    /*Experiments*/
    .colonyPCR-table {
        width: 60%;
        border-collapse: collapse;
        margin-left:auto;
        margin-right:auto;
        font-size: 0.9em;
        border: 2px solid rgb(38, 179, 90); /* Outer border */
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        table-layout: fixed;
        box-align: center
    }
    
    .colonyPCR-table th,
    .colonyPCR-table td {
        padding: 15px 15px;
        border: 1px solid #cccccc; /* Grid lines */
        text-align: left;
    }
    
    .colonyPCR-table th:first-child,
    .colonyPCR-table td:first-child {
        text-align: left;
    }
    
    .colonyPCR-table thead tr {
        background-color: #45b06cff;
        color: rgb(255, 255, 255);
        font-weight: bold;
    }
    
    .colonyPCR-table tbody tr:nth-of-type(even) {
        background-color: rgb(255, 255, 255);
    }
    
    
    .gcolonyPCR-table tbody tr:hover {
        background-color: rgb(255, 255, 255);
    }
    
    .nested-steps {
        margin: 15px 0 15px 20px;
        color: #555;
    }
    
    .nested-steps li {
        margin-bottom: 8px;}
    
    .AHL-prep-table {
        width: 70%;
        border-collapse: collapse;
        margin: 25px auto;
        font-size: 0.9em;
        border: 2px solid rgb(38, 179, 90);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        table-layout: fixed;
    }
    
    .AHL-prep-table th,
    .AHL-prep-table td {
        padding: 12px 15px;
        border: 1px solid rgb(255, 255, 255);
        text-align: left;
    }
    
    .AHL-prep-table th:first-child,
    .AHL-prep-table td:first-child {
        text-align: left;
    }
    
    .AHL-prep-table thead tr {
        background-color: #45b06cff;
        color: white;
        font-weight: bold;
    }
    
    .AHL-prep-table tbody tr:nth-of-type(even) {
        background-color: rgb(255, 255, 255);
    }
    
    .AHL-prep-table tbody tr:hover {
        background-color: rgb(255, 255, 255);
    }
    /* Force footer color bar to stretch full viewport width */
footer.bg-dark {
    width: 100vw;           /* 100% of the viewport width */
    margin-left: calc(50% - 50vw); /* Pull it out of centered layout limits */
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
  }

  .engineeringstart{
    background-color: beige;
    border-radius: 20px;
    padding: 25px 30px; /* More padding for better appearance */
    margin: 20px 0; /* Space around the paragraph */
    line-height: 1.65; /* Better text spacing */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Optional shadow */
    width: 100%;
    box-sizing: border-box;
}

.engineeringphoto {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
}

.contributionphoto {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.resultphoto {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.resultstart{
    background-color: beige;
    border-radius: 20px;
    padding: 25px 30px; /* More padding for better appearance */
    margin: 20px 0; /* Space around the paragraph */
    line-height: 1.65; /* Better text spacing */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Optional shadow */
    width: 100%;
    box-sizing: border-box;
}
.Resultpdf{    width: 100% !important;
    height: 600px !important;
    max-width: 1000px !important;
    border: 2px solid rgb(44, 139, 196);
    border-radius: 10px;
    display: block;
    margin: 20px auto;}

    .educationdata {
        width: 100% !important;
        height: 600px !important;
        max-width: 1000px !important;
        border: 2px solid rgb(44, 139, 196);
        border-radius: 10px;
        display: block;
        margin: 20px auto;}

        .educationboard {
            width: 100% !important;
            height: 600px !important;
            max-width: 1000px !important;
            border: 2px solid rgb(44, 139, 196);
            border-radius: 10px;
            display: block;
            margin: 20px auto;}
            
            .descphoto {
                display: flex;
                flex-wrap: wrap;
                gap: 15px;
                justify-content: center;
            }