/* Global Reset & Body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('assets/common/BricolageGrotesque.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px;
    color: black;
    background-color: white;
}

/* Logo Constraints */
.header-logo {
    max-width: 800px;   /* caps the size on large screens */
    width: 100%;        /* scales down automatically */
    height: auto;       /* keeps aspect ratio perfect */
    display: block;
    margin: 0 auto;     /* centers it */
}

/* Header */
.header {
    background-color: #B24E50;
    color: white;
    text-align: center;
    padding: 30px;
    font-size: 2.5rem;
    font-weight: bold;
}

/* Navigation Bar */
.navbar {
    background-color: #A18CC1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

/* Dropdown container */
.dropdown {
    position: relative;
}

/* Buttons */
.dropbtn {
    background-color: #A18CC1;
    color: black;
    padding: 16px 24px;
    border: none;
    cursor: pointer;
    font-size: 23px;
}

.dropbtn:hover {
    background-color: #f4d177;
}

/* Dropdown menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #e4dce5;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f4d177;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Content Area */
.content {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.content h1 {
    margin-bottom: 20px;
    text-align: center;
}

.content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}

.intro-line {
    margin-top: 20px;
}

.text-with-right-image {
    overflow: auto;
    margin: 0 0 36px 80px;
    max-width: 720px;
}

.text-with-right-image p {
    margin: 1.2rem 0 0 0;
    max-width: 420px;
}

.float-right-image {
    float: right;
    width: 260px;
    max-width: 40%;
    height: auto;
    margin: 0 0 20px 20px;
}

.feature-bar {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background-color: #A18CC1;
    color: white;
    min-height: 8rem;
    padding: 1.5rem 20px;
    margin-bottom: 32px;
    text-align: center;
}

.feature-bar-text {
    font-size: 2.4rem;
    font-weight: bold;
    line-height: 1.1;
}

.feature-side-image {
    width: 180px;
    height: auto;
}

.main-paragraph {
    max-width: 800px;
    margin: 0 auto 32px;
    text-align: left;
}

.webelieve-wrapper {
    text-align: center;
    margin-bottom: 32px;
}

.webelieve-wrapper img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .float-right-image {
        float: none;
        display: block;
        margin: 0 auto 20px;
        max-width: 90%;
    }

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

    .main-paragraph {
        max-width: 100%;
        padding: 0 10px;
    }
}

.image-stack-right {
    float: right;
    margin: 0 0 20px 20px;
    max-width: 45%;
}

.image-stack-right .wrap-image {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .image-stack-right {
        float: none;
        margin: 0 auto 20px;
        max-width: 90%;
    }

    .wrap-image {
        width: 100%;
        max-width: 100%;
    }
}

/* Publication page (TEMP?) */
.publications {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
}

.publications h1,
.publications h2 {
    text-align: center;
}

.pub-note {
    text-align: center;
    margin-bottom: 30px;
}

.pub-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.pub-list li {
    margin-bottom: 20px;
    line-height: 1.6;
}

.pub-title {
    font-style: italic;
}

@media (max-width: 768px) {
    .publications {
        padding: 15px;
    }

    .pub-list li {
        margin-bottom: 18px;
    }
}

/* for Map on contact page */
.map-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Team Page */

.team-member {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 40px;
    text-align: left;
    flex-wrap: wrap;
}

.member-photo img {
    width: 550px;
    height: auto;
    border-radius: 10px;
}

.member-info {
    flex: 1;
    min-width: 300px;
}

.member-info h2 {
    margin-bottom: 10px;
}

.member-info span {
    font-weight: normal;
    color: #666;
}

.position {
    font-weight: bold;
    margin-bottom: 5px;
}

.degree {
    margin-bottom: 8px;
}

.links {
    margin-bottom: 12px;
}

.links a {
    text-decoration: none;
}

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

.member-info p {
    margin-bottom: 14px;
    color: #555;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .team-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .member-info {
        text-align: left;
    }

    .member-photo img {
        width: 250px;
    }
}

/* MOBILE FIXES - checks resolution of screen and adjusts header*/
@media (max-width: 768px) {

    /* Header area */
    .header {
        padding: 15px;
    }

    .header-logo {
        max-width: 300px;
    }

    /* Navbar layout */
    .navbar {
        flex-wrap: wrap;
        padding: 0;
    }

    /* Buttons */
    .dropbtn {
        font-size: 16px;
        padding: 10px 14px;
    }

    /* Dropdown menu */
    .dropdown-content {
        min-width: 140px;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    html {
        position: relative;
        min-height: 100%;
    }

    body {
        margin: 0 0 100px;
        position: relative;
    }

    main {
        margin-bottom: 350px;
    }

}   /* ← THIS closes the mobile block */


/* ===========================
   UNIVERSAL FOOTER (always applies)
   =========================== */

.footer {
    background-color: #B24E50;
    color: white;
    padding: 30px 20px;
    margin-top: 60px;
    text-align: center;
    text-decoration: none;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.footer-section p {
    margin-bottom: 8px;
    font-size: 1rem;
}

.footer-socials a {
    margin: 0 10px;
    display: inline-block;
}

.social-icon {
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

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

.footer-bottom {
    margin-top: 25px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* MOBILE FOOTER */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }
}

