/* Header styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the flex items */
    width: 100%;
    min-height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between; /* Aligns items to the start and end of the header */
    align-items: center; /* Vertically centers the items in the header */
    width: 100%; /* Full width of the viewport */
    background-color: black; /* Header background color */
    padding: 10px; /* Header padding */
    color: white; /* Text color */
    box-sizing: border-box; /* Include padding and border in the width */
}

.header-content {
    flex-grow: 1; /* Allows the header content to grow and take available space */
    text-align: center;
}

.header h1 {
    margin: 0; /* Removes margin to prevent layout shift */
    font-size: 2.2em; /* Title font size */
    display: inline-block;
}

.nav-container {
    text-align: right;
}

.header-link {
    background-color: #000000; /* Background color for header links */
    color: white; /* Text color */
    padding: 8px 16px; /* Padding */
    border-radius: 4px; /* Rounded corners */
    text-decoration: none; /* No underline */
    display: inline-block; /* Align with inline elements */
    /* font-weight: bold; */
    font-size: large;
    font-family: Arial, Helvetica, sans-serif;
    white-space: nowrap;
    /* Additional hover styles */
}

/* Optional: Add hover effect for the link */
.header-link:hover {
    background-color: #378bd0; /* Darker shade for hover */
}

/* Include this in your styles.css file */

/* ABOUT US STYLING  */

.about-section {
    text-align: center;
    padding: 2rem 0;
    margin: 0 auto;
}

.about-section h1.display-4 {
    font-size: 2.5rem; /* Large font size for the heading */
    margin-bottom: 1rem;
}

.about-section hr {
    width: 50%; /* Half-width horizontal rule */
    margin: 1rem auto; /* Centered with margin */
}

.about-section p.lead {
    font-size: 1.25rem; /* Slightly larger font size for lead paragraph */
}

.institution-link {
    color: #007bff; /* Bootstrap primary blue */
    text-decoration: none;
}

.institution-link:hover {
    text-decoration: underline;
}

/* CONTENT STYLING */



.section-subheading {
    background-color: #f8f9fa; /* Light grey background */
    border-left: 5px solid #007bff; /* Primary blue border */
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    font-size: 1.5rem; /* Larger font size for subheadings */
    color: #002f6c; /* Dark blue color */
    margin: 1rem 0; /* Reduced margin */
    text-align: left;
}

.mission-statement {
    text-align: left;
    margin-top: 0.5rem;
    font-size: 1rem; /* Adjust the font size for readability */
    color: #222;
}

/* Reducing white space between sections */
.section-content + .section-content {
    margin-top: 0;
}

.about-section, .section-content, .authors-section {
    margin: 0.2rem 0;
    padding: 1rem 10px;
}

.authors-section .section-subheading {
    margin-top: 0;
}


.section-subheading, .mission-statement, .author-card {
    padding-left: 10px; /* Adjust this value to match the header's horizontal padding */
    padding-right: 10px; /* Adjust this value to match the header's horizontal padding */
}

.section-subheading, .mission-statement {
    text-align: left;
    margin-left: 10px; /* Adjust if necessary to align with the header text */
}


/* Adjusting the top margin for the first section after the about-section */
.section-content:first-of-type {
    margin-top: 0;
}

/* AUTHOR CARDS */


.author-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.author-card {
    width: 200px; /* Fixed width for each card */
    text-align: left;
    margin: 1rem;
}

.author-card img {
    width: 100%;
    height: auto;
    border-radius: 5px; /* Rounded corners for images */
}

.author-card h4 {
    margin-top: 0.5rem;
}


/* Responsive styles if needed */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.2rem; /* Adjust for smaller screens */
    }
    
    .about-section, .section-content, .authors-section {
        padding: 1rem; /* Increase width on smaller screens */
        padding-top: 0.1%;
    }
}

.main-container {
    padding-left: 10px; /* Same as header's horizontal padding */
    padding-right: 10px; /* Same as header's horizontal padding */
    width: 100%; /* Full width */
    max-width: 1200px; /* Maximum width of the content, adjust as needed */
    margin: auto; /* Center the container */
    padding-top: 0.025rem;
    border-top: 1px solid transparent; /* Prevents margin collapse */
}

.header {
    margin-bottom: 0; /* Ensuring no bottom margin on the header */
}

.about-section > *:first-child {
    margin-top: 0;
}

/* Reducing top padding for the about-section */
.about-section {
    padding-top: 2rem; /* Adjust this value to what looks best */
    text-align: center;
    margin: 0 auto;
}