body {
    font-family: 'Poppins', sans-serif;
    background-color: #fdf8f4;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background-color: #fdf8f4;
    padding: 0;
    border-bottom: none;
    display: flex;
    align-items: flex-start;
    position: relative;
    /*didn't see to make a difference, can probably delete*/
    background: linear-gradient(to right, #fdf8f4 20%, rgba(161, 144, 107, 0.2));

}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 2rem;
    /* Increased padding for better spacing from 2rem to 3rem*/
    gap: 1rem;
    /* decreased gap from 2rem to 1rem for better spacing */
    border-radius: 12px;
    flex-wrap: nowrap;
    /* changed from nowrap (which worked fine) to wrap */
}

.header-title {
    position: relative;
    width: auto;
    /* Changed from 100% to auto to allow for better responsiveness */
    max-width: 600px;
    margin-left: auto;
    margin-right: 3rem;
    text-align: right;
    padding: 1rem 2rem;
    z-index: 2;
    border-radius: 12px;
}

.header-title h1 {
    font-family: 'Aboreto', cursive;
    color: #a1906b;
    font-size: 2.3rem;
    line-height: 1.4;
    margin: 0;
    word-break: keep-all;
    /* white-space:pre-line; */
}

.hero-text h2 {
    font-family: 'Aboreto', cursive;
    color: #a1906b;
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.logo-section {
    display: flex;
    justify-content: flex-start;
    padding-left: 1rem;
    align-items: flex-start;
    flex: 1;
    flex-shrink: 0;
}

.logo {
    height: 240px;
    width: auto;
    object-fit: contain;
    margin-top: 0 auto;
    /*from 0px*/
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-bottom: 2px solid rgba(161, 144, 107, 0.2);
    padding-bottom: 0.5rem;
    width: 100%;
    background-color: transparent;
}


nav a {
    text-decoration: none;
    color: #6b715e;
    font-weight: 500;
    transition: transform 0.2s ease;
    padding: 0.25rem 0.5rem;
}

nav a:hover {
    color: #a1906b;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 1rem;
}

/* === FINAL INTERNAL PAGE HEADER TWEAKS === */

.internal-page .header-flex {
    padding: 1rem 2rem;
    /* Reduced top/bottom padding */
    align-items: center;
    gap: 1rem;
    /* Optional: reduce from 2rem */
}

/* INTERNAL PAGE: Reduce header height without shrinking logo visually */
.internal-page header {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* INTERNAL PAGE: keep logo large but contained */
.internal-page .logo {
    height: 240px;
    width: auto;
    margin-left: 2rem;
}

/* INTERNAL PAGE: refine nav positioning (desktop) */
.internal-page nav {
    width: fit-content;
    margin-left: auto;
    margin-right: 4rem;
    padding-top: 0.5rem;
    position: relative;
    border-bottom: 2px solid rgba(161, 144, 107, 0.2);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Prevent full-width line and link overflow */
.internal-page nav ul {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    border: none;
    width: auto;
}


.content-section {
    padding: 0 2rem;
}

main.content-section {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h2 {
    font-family: 'Aboreto', cursive;
    color: #a1906b;
    text-align: center;
    margin-bottom: 2rem;
}

/* h3 {
    font-size: 1.4rem;
    margin: 2rem 2rem 1rem 2rem;
    padding: 0 2rem;
    text-align: left;
    font-weight: 600;
    color: #333;
} */


.accordion {
    background-color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    padding: 1rem;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #e0dcd5;
}

.accordion:hover {
    background-color: #f0ece6;
}

.panel {
    padding: 0 1rem 1rem 1rem;
    background-color: #fff;
    display: none;
    overflow: hidden;
    border-bottom: 1px solid #e0dcd5;
}

.panel.active {
    display: block;
}

/* footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #777;
    background-color: #fdf8f4;
    border-top: 1px solid #e6dfd8;
} */

/* .home-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
} */

.home-links {
    /* display: grid; */
    /* grid-template-columns: repeat(3, 1fr); */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    /* margin-top: 2rem; */
    padding: 0 1rem;
    max-width: 1200px;
    margin: 2rem auto 4rem auto;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.card-link:hover {
    transform: translateY(-5px);
}

.preview-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    width: 280px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #b7c9d1;
}

.preview-card:hover::after {
    opacity: 1;
    transform: translateX(5px);
}



/* .preview-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    width: 280px;
    text-align: center;
    transition: transform 0.2s ease;
} */

/* .preview-card:hover {
    transform: translateY(-5px);
}

.preview-card h4 {
    font-family: 'Aboreto', cursive;
    color: #a1906b;
    margin-bottom: 1rem;
}

.preview-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #b7c9d1;
    color: #333;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #a6b29f;
    color: #fff;
} */

.hero-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    margin-top: 1rem;
}

.hero-text {
    flex: 1;
    font-size: 1.1rem;
    max-width: 50%;
    padding-right: 1rem;
    line-height: 1.5;
}

.hero-image {
    flex: 1;
    max-width: 700px;
    height: auto;
    object-fit: cover;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    text-align: center;
    width: 250px;
}

.study-links {
    flex-wrap: nowrap;
    justify-content: center;
}


/* 
.team-member img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
} */

footer {
    background-color: #eaf2f6;
    /* soft light blue background */
    padding: 2rem;
    background: linear-gradient(to top, #eaf2f6 85%, #fdf8f4 100%);
    border-top: none;
    /* matches button blue border */
    font-size: 0.9rem;
    color: #555;
    font-family: 'Poppins', sans-serif;
    margin-top: 3rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    padding: 0 1rem;
    text-align: left;
}

.footer-left {
    flex: 1 1 60%;
    min-width: 280px;
}

.footer-right {
    flex: 1 1 35%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-text {
    margin-bottom: 1rem;
    margin: 0;
    line-height: 1.6;
    padding: 0 1rem;
    /* color: #555; */
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-right img {
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    background-color: #fff;
    padding: 0.25rem;
    border-radius: 6px;
    transition: filter 0.3s ease;
}

.footer-right img:hover {
    filter: grayscale(0%);
}

.home-links {
    margin-bottom: 3rem;
    /* pushes footer down from cards */
}

.footer-logos img {
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    padding: 0.25rem;
    background-color: #fff;
    /* prevent background bleed if logos are transparent */
    border-radius: 6px;
}

.footer-logos img:hover {
    filter: grayscale(0%);
    /* transform: scale(1.05); */
}

.search-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 2rem;
}

.search-section input {
    padding: 0.4rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
}

.search-section button {
    background-color: #b7c9d1;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    transition: background-color 0.3s ease;
}

.search-section button:hover {
    background-color: #a6b29f;
    color: white;
}


@media screen and (max-width: 900px) {
    .header-title {
        position: static;
        width: 90%;
        margin: 0 auto;
        text-align: center;
        background: none;
        padding: 1rem 0;
    }

    .header-flex {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        text-align: center;
    }

    .header-title h1 {
        font-size: 1.8rem;
        text-align: center;
        font-size: clamp(1.5rem, 4vw, 2.8rem);
    }

    .home-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
    }

    .menu-toggle {
        display: block;
    }

    /* nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        background-color: #fdf8f4;
        width: 100%;
        border-top: 1px solid #ccc;
    }

    nav.active ul {
        display: flex;
    } */

    .hero-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-text {
        max-width: 90%;
        padding: 0;
    }

    .hero-image {
        max-width: 90%;
    }

    .footer-logos img {
        height: 32px;
    }
}

/* === MOBILE === */
@media screen and (max-width: 900px) {
    .internal-page header {
        flex-direction: column;
        align-items: center;
    }

    .internal-page .header-flex {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .internal-page .logo-section {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 1rem 0 0 0;
    }

    .internal-page .logo {
        height: 180px;
        margin: 0 auto;
    }

    .internal-page .menu-toggle {
        display: block;
        font-size: 1.8rem;
        padding: 1rem;
        margin-top: -1rem;
        margin-bottom: 0.5rem;
    }

    .internal-page nav {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .internal-page nav ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        display: none;
        background-color: #fdf8f4;
        border-top: 1px solid #ccc;
        width: 100%;
        text-align: center;
    }


    .internal-page nav.active ul {
        display: flex;
    }
}

.research-member {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.member-image img {
    width: 200px;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.member-info h3 {
    font-size: 1rem;
    color: #333;
}

.member-info p {
    font-size: 1rem;
    line-height: 1.4;
    color: #555;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .research-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .member-info {
        padding: 0 1rem;
    }

    .member-image img {
        width: 180px;
        height: 200px;
        object-fit: cover;
    }
}

.resources-section {
    padding: 2rem;
    text-align: center;
}

.resource-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    text-align: center;
    width: 250px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.resource-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.resource-card h4 {
    font-size: 1.1rem;
    color: #a1906b;
    margin: 0.5rem 0;
    font-family: 'Aboreto', cursive;
}

.resource-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: #a1906b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #6b715e;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .resource-card {
        width: 90%;
    }
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #a1906b;
    outline: none;
}

.contact-btn {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    background-color: #b7c9d1;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: #a6b29f;
    color: #fff;
}