/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Lato:wght@400;700&display=swap');

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif; /* Default to Roboto for body text */
}

/* Navbar Styles */
.navbar {
    background-color: #333;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.0rem;
    transition: color 0.3s;
    font-family: 'Lato', Arial, sans-serif; /* Use Lato for nav links */
}

.nav-links a:hover {
    color: #d32f2f;
}

.hamburger {
    display: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.small-text {
    font-size: 0.8rem;
}

.acadtitle p {
    color: #d32f2f;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #d32f2f, #333);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-family: 'Lato', Arial, sans-serif; /* Use Lato for headings */
}

.hero h2 {
    font-size: 1.8rem;
    font-family: 'Lato', Arial, sans-serif; /* Use Lato for subheadings */
    margin-top: 0.5rem;
}

/* Hero Image Section */
.hero-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mission/Goals Section */
.mission-section {
    background-color: #fff;
    padding: 3rem 2rem;
    text-align: center;
}

.goal {
    max-width: 1000px;
    margin: 0 auto 2rem;
    text-align: left;
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 1.5rem;
}

.goal-image-container {
    text-align: center;
    margin-bottom: 1rem;
}

.goal-image {
    width: 60px;
    height: 60px;
    border-radius: 5px;
}

.goal h3 {
    font-size: 1.5rem;
    color: #d32f2f;
    margin-bottom: 0.5rem;
    font-family: 'Lato', Arial, sans-serif; /* Use Lato for headings */
}

.goal p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Content Sections */
.content-section {
    padding: 3rem 2rem;
    text-align: center;
}

.content-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Lato', Arial, sans-serif; /* Use Lato for headings */
}

.content-section p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
}

/* Team Sections */
.team-section {
    margin-bottom: 3rem;
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.team-section h3 {
    font-size: 1.5rem;
    color: #d32f2f;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 0.5rem;
    font-family: 'Lato', Arial, sans-serif; /* Use Lato for headings */
}

.team-section h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Lato', Arial, sans-serif; /* Use Lato for headings */
}

/* PI Section */
.pi-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.pi-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.pi-image img {
    width: 100%;
    max-width: 380px;
    border: 1px solid #ccc;
    padding: 3px;
}

.pi-details {
    flex: 1;
    min-width: 300px;
    padding: 0 1rem;
}

.pi-details p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.pi-details strong {
    color: #333;
}

.paragraph {
    text-align: justify;
    margin-top: 1rem;
}

.paragraph p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Member Entries */
.member-entry {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.member-image-container {
    flex: 0 0 200px;
    text-align: center;
}

.member-image {
    width: 100%;
    max-width: 200px;
    border: 1px solid #ccc;
    padding: 3px;
    margin: 5px 10px 10px 0;
}

.member-details {
    flex: 1;
    min-width: 300px;
}

.member-details p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.member-details strong {
    color: #333;
    font-size: 1.1rem;
}

.member-divider {
    width: 100%;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1rem 0;
}

/* Placeholder Content Styling */
.team-list, .research-list, .opportunities-list, .publications-list, .toolbox-list, .contact-info {
    margin-top: 2rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-member, .research-list h3, .opportunities-list h3, .toolbox-list h3 {
    margin-bottom: 1rem;
}

.contact-info a {
    color: #d32f2f;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Publications List */
.publications-list {
    max-width: 1000px;
    margin: 2rem auto;
    text-align: left;
}

.publications-list h3 {
    font-size: 1.5rem;
    color: #d32f2f;
    margin: 1.5rem 0 1rem;
    border-bottom: 1px solid #d32f2f;
    padding-bottom: 0.5rem;
    font-family: 'Lato', Arial, sans-serif; /* Use Lato for headings */
}

.publications-list p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.publications-list em {
    font-style: italic;
}

.publications-list a {
    color: #d32f2f;
    text-decoration: none;
}

.publications-list a:hover {
    text-decoration: underline;
}

/* Research Thrusts */
.research-thrust {
    margin-bottom: 3rem;
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.research-thrust h3 {
    font-size: 1.8rem;
    color: #d32f2f;
    margin-bottom: 1rem;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 0.5rem;
    font-family: 'Lato', Arial, sans-serif; /* Use Lato for headings */
}

.thrust-image {
    text-align: center;
    margin-bottom: 1rem;
}

.thrust-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border: 1px solid #ccc;
    padding: 3px;
}

.thrust-content {
    margin-bottom: 1.5rem;
}

.thrust-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.thrust-content ul {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.thrust-content li {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.thrust-content strong {
    color: #333;
}

.selected-publications {
    margin-top: 1.5rem;
}

.selected-publications h4 {
    font-size: 1.3rem;
    color: #d32f2f;
    margin-bottom: 1rem;
    font-family: 'Lato', Arial, sans-serif; /* Use Lato for headings */
}

.selected-publications p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.selected-publications em {
    font-style: italic;
}

.selected-publications a {
    color: #d32f2f;
    text-decoration: none;
}

.selected-publications a:hover {
    text-decoration: underline;
}

/* Sponsors Section */
.sponsors-section {
    margin: 2rem 0;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.sponsors-section h3 {
    font-size: 1.8rem;
    color: #d32f2f;
    margin-bottom: 0.5rem;
    font-family: 'Lato', Arial, sans-serif; /* Use Lato for headings */
}

.sponsors-section h4 {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-family: 'Lato', Arial, sans-serif; /* Use Lato for headings */
}

.sponsor-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.sponsor-logos img {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

/* Opportunities List */
.opportunities-list {
    max-width: 1000px;
    margin: 2rem auto;
    text-align: left;
}

.opportunity {
    margin-bottom: 3rem;
}

.opportunity h3 {
    font-size: 1.5rem;
    color: #d32f2f;
    margin-bottom: 0.5rem;
    font-family: 'Lato', Arial, sans-serif; /* Use Lato for headings */
}

.opportunity h4 {
    font-size: 1.2rem;
    color: #333;
    margin: 1rem 0 0.5rem;
    font-family: 'Lato', Arial, sans-serif; /* Use Lato for headings */
}

.opportunity p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.opportunity ul {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.opportunity li {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.opportunity a {
    color: #d32f2f;
    text-decoration: none;
}

.opportunity a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 915px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #333;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero-image {
        height: 200px;
    }

    .mission-section {
        padding: 2rem 1rem;
    }

    .goal {
        padding: 1rem;
    }

    .goal h3 {
        font-size: 1.3rem;
    }

    .goal p {
        font-size: 0.9rem;
    }

    .goal-image {
        margin-bottom: 0.5rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section p {
        font-size: 1rem;
    }

    .team-section h3 {
        font-size: 1.3rem;
    }

    .team-member h4 {
        font-size: 1.1rem;
    }

    .team-member p {
        font-size: 0.9rem;
    }

    .pi-container {
        flex-direction: column;
        align-items: center;
    }

    .pi-image, .pi-details {
        width: 100%;
        padding: 0;
        margin-bottom: 1rem;
    }

    .member-image-container {
        flex: 0 0 100%;
        margin-bottom: 1rem;
    }

    .member-image {
        max-width: 150px;
    }

    .member-details {
        width: 100%;
    }

    .research-thrust h3 {
        font-size: 1.5rem;
    }

    .thrust-image img {
        max-width: 100%;
    }

    .thrust-content p,
    .thrust-content li {
        font-size: 0.9rem;
    }

    .selected-publications h4 {
        font-size: 1.2rem;
    }

    .selected-publications p {
        font-size: 0.8rem;
    }

    .sponsors-section h3 {
        font-size: 1.5rem;
    }

    .sponsors-section h4 {
        font-size: 1.2rem;
    }

    .sponsor-logos {
        gap: 1rem;
    }

    .sponsor-logos img {
        height: 50px;
        max-width: 120px;
    }

    .opportunity h3 {
        font-size: 1.3rem;
    }

    .opportunity h4 {
        font-size: 1.1rem;
    }

    .opportunity p,
    .opportunity li {
        font-size: 0.9rem;
    }
}

/* Secondary Navigation Bar for Apps */
.secondary-nav {
    background-color: #f5f5f5;
    padding: 0.5rem 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.app-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.app-links li {
    margin: 0;
}

.app-links a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: 'Lato', Arial, sans-serif;
    padding: 0.5rem 1rem;
    transition: color 0.3s, background-color 0.3s;
}

.app-links a:hover {
    color: #d32f2f;
}

.app-links a.active {
    color: #d32f2f;
    background-color: #e0e0e0;
    border-radius: 5px;
}

/* App Container for Iframe */
.app-container {
    width: 100%;
    height: calc(100vh - 60px - 110px - 40px); /* 100vh - main navbar height - secondary nav height - footer height */
    margin: 0;
    padding: 0;
}

#app-iframe {
    width: 100%;
    height: 100%;
    border: none; /* Remove border to make it seamless */
}

/* Responsive Design for Secondary Nav and Iframe */
@media (max-width: 915px) {
    .app-links {
        gap: 1rem;
    }

    .app-links a {
        font-size: 1rem;
        padding: 0.5rem;
    }

    #app-iframe {
        height: 100%; /* Adjust for smaller screens */
    }
}