body {
    font-family: Wulkan Display, Adobe Garamond Pro, Garamond, Baskerville, Baskerville Old Face, Hoefler Text, Times New Roman, serif;
    margin: 0;
    padding: 0;
    background-color: black;
}

/* Navbar Style */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.45); /* Set background to 45% transparent */
    padding: 10px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar li {
    margin: 0 20px;
}

.navbar a {
    color: #a9a9a9; /* Light grey color */
    text-decoration: none;
    padding: 10px;
    display: block;
}

.navbar a:hover {
    color: white; /* Change text color to white on hover */
}

.navbar .active {
    color: white; /* Ensure active link has white text */
}

/* Section Style */
.section {
    padding: 40px;
    transition: background-color 0.3s ease;
    color: #fff;
}

#section1 {
    background-image: url('images/HST_ISM.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: left;
    align-items: left ;
    text-align: left;
    height: 100vh;
    font-size: 1.2rem;
}

#section1 h1 {
    color: white;
    font-weight: bold;
}
#section1 h2 {
    color: lightgrey;
}
#section1 p {
    color: lightgrey;
}

/* Image styling for the top-left corner */
#section1 .right-img {
    float: right;
    margin-top: 20px; /* reduce margin-top for higher position */
    margin-left: 20px;
    margin-bottom: 10px;
    width: 270px;
    height: 270px; /* restore fixed height for vertical placement */
    object-fit: contain;
    border-radius: 8px;
}

/* Responsive override for small screens */
@media (max-width: 768px) {
    #section1 .right-img {
        float: none;
        display: block;
        margin: 20px auto;
        width: 80%;
        max-width: 270px;
        height: auto; /* Let it scale naturally */
    }
}

/* Sections 2, 3, and 4 with black background */
.section:nth-child(2) {
    background-color: black;
    color: white;
}

.section:nth-child(3) {
    background-image: url('images/a1e862f011e175bd.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    height: 100vh;
}

.section:nth-child(4) {
    background-color: black;
    color: white;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section p {
    color: lightgrey;
    margin-top: 20px;
    margin-bottom: 0px;
    padding: 0; /* Remove any padding */
}

.section p.second {
    text-indent: 25px;
    color: lightgrey;
    margin: 0;
}

.section p.second-noindent {
    text-indent: 0px;
    color: lightgrey;
    margin: 0;
}

.section a {
    color: lightgrey; /* Set the color of the links to light grey */
}

.section a.no-underline {
    text-decoration: none;
    color: lightgrey; /* Set the color of the links to light grey */
}

/* Optional: Add hover effect */
.section a:hover {
    color: white; /* Slightly lighter grey for hover effect */
}

.image-wrap {
    float: left; /* Float the image to the left */
    margin-right: 20px; /* Space between the image and text */
    margin-bottom: 10px; /* Space between the image and the bottom text */
}

/* === Research Grid and Cards === */
.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 600px) {
    .research-grid {
        grid-template-columns: 1fr; /* 1 column on small screens */
    }
}

.research-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px; /* Adjust height to make smaller */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
    background-color: #222;
}

.research-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.research-card h3 {
    padding: 15px;
    color: lightgrey;
    font-size: 1.1rem;
}

/* === Research Detail Section === */
.research-detail {
    margin-top: 40px;
    padding: 20px;
    background-color: #111;
    border-radius: 10px;
    color: lightgrey;
    border: 1px solid #444;
}

.research-detail h2 {
    color: white;
}

.research-detail a {
    color: #999;
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* === Card Title Styling === */
.card-title {
    padding: 15px;
    background-color: #2c2c2c;
    font-size: 1.1rem;
    color: lightgrey;
    text-decoration: none;
    font-weight: 500;
}

/* Prevent underline for entire card */
.research-card,
.research-card:hover,
.research-card .card-title {
    text-decoration: none;
    color: lightgrey;
}

.research-image-float {
    width: 350px;
    float: left;
    margin: 0 20px 20px 0;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .research-image-float {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
    }
}

.image-wrap {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    width: 350px;       /* Or any width that works well */
    height: auto;
    border-radius: 10px;
}

.logo-container {
    margin-top: 30px;
    display: flex;
    justify-content: left; /* or center/right depending on your preference */
    align-items: center;
    gap: 20px; /* space between logos */
}

.contact-logo {
    height: 60px;  /* Adjust as needed */
    width: auto;
    border-radius: 4px;  /* Optional: rounded corners */
}