/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: rgb(255, 249, 218);
    color: #3a695e;
    font-family: "Inter", sans-serif;
    font-size: 0.95em;
}

/* Navigation bar styles */
.navbar {
    width: 100%;
    background: rgb(10, 42, 38);
    color: #fff;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgb(19, 75, 68);
}

.navbar-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    width: 100%;
}

.logo {

    height: 40px;
    margin-right: 1rem;
}

.project-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
}

.project-name-second-word {
    font-style: italic;
    color: #bafff7;
}

/* Section header styles */
.section-header {
    max-width: 1100px;
    margin: 2.25rem auto 1.5rem;
    padding: 0 1rem;

    font-size: 2.25rem;
    font-weight: 500;
   color: #3a695e;
    font-family: "Lora", serif;
}

/* Grid container styles */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on mobile */
    gap: 1rem;
    /* Gap between columns and rows */
    padding: 1rem;
    /* Padding around the grid */
    max-width: 1100px;
    /* Max width for larger screens */
    margin: 0 auto;
    /* Center the grid */
}

/* Grid item styles for member directory */
.grid-item {
    background:  #3a695e;
    border: 1px solid #3a695e;
    padding: 2rem 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.grid-item-hero {
    background: rgb(10, 42, 38);

    padding: 3rem 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;


}

.hero-title {
    font-size: 3em;
    font-family: "Lora", serif;
}

.hero-text {
    font-size: 1.15em;
    margin: auto 0;
    display: inline;
    /* Ensure it stays inline with the text */

}

.italic-style {
    font-style: italic;

}

.margin-bottom-20 {
    margin-bottom: 20px;
}


.member-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    /* Circular image */
    object-fit: cover;
    /* Ensure image fills circle without distortion */
    margin-bottom: 0.75rem;
}

.member-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.5;
}

/* Single-column section styles */
.single-column-section {
    display: grid;
    grid-template-columns: 1fr;
    /* 1 column on mobile */
    gap: 1rem;
    /* Gap between rows */
    padding: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.general-content-container {
      padding: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}


/* Footer styles */
.footer {
    width: 100%;
    background: rgb(10, 42, 38);
    color: #eafffd;
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgb(19, 75, 68);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-logo {
    height: 40px;
}

.footer-site-name {
    font-size: 1rem;
    font-weight: 600;
}

.footer-about {
    text-align: center;
    font-size: 0.9rem;
    max-width: 550px;
    margin: 0 auto;
    margin-bottom: 3rem;
     color: #ffffff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* table styles */
 table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-bottom: 40px; 
    table-layout: fixed;


}

  td { 
    padding: 2px; 
    text-align: left; 
       width: auto; /* Cells size to content */
       vertical-align: top;


}

td:nth-child(2) {
    /* Your styles here */
   padding-left: 15px;
}

  a { 
    text-decoration: underline; 
     color: #3a695e;
}

        a:hover { 
            text-decoration: underline; 
              color: #233f38;
        }

         .location-header {
                color: #3a695e;
            font-size: 1.2em;
            margin-top: 30px;
            margin-bottom: 20px;
            font-weight: 600;
    
        }

        .biobank-type {
            text-align: left;
            max-width: auto; /* Cells size to content */
            white-space: nowrap; /* Prevents text wrapping to keep content width minimal */
        }

/* ECTOGENESIS STYLES */  

.sub-header {
    margin-top: 20px;
    margin-bottom: 25px;
    
}

.sub-sub-header{
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;

}
.margin-bottom-20 {
    margin-bottom: 20px;
}

.italic-500 {
    font-style:italic;
    font-weight: 500;
}

.padding-left-10 {
    padding-left: 15px;
}

.bold-600 {
    font-weight: 600;
}

.text-align-center {
    text-align: center;
}

.vertical-center {
vertical-align:  middle;
}

  tr:not(:last-child) {
    border-bottom: 1px solid #b8caa4; /* Horizontal line between rows */
  }

/* Media query for larger screens (min-width: 768px) */
@media (min-width: 768px) {

    .navbar {
        border-bottom: none;
    }

    .hero-title {
    font-size: 3.25em;
}

table {
    max-width: 70%;
}


    .grid-container {
        grid-template-columns: repeat(4, 1fr);
        /* 4 columns on larger screens */
    }

    .single-column-section {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on larger screens */
    }

    .footer {
         padding: 1.5rem 2rem;
    }

    .footer-logo-section {
        justify-content: left;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Two columns for about and links/socials */
        gap: 2rem;
    }

    .footer-about {
        text-align: left;
    }

    .footer-links {
        align-items: flex-start;
    }

    .footer-socials {
        justify-content: flex-end;
    }
}

   