.projects-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.projects-container h3 {
    margin-bottom: 10px;
    line-height: 1.2;
    text-align: center;
}

.projects-container p {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    max-width: 600px;
}

.projects-container a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.projects-container a:hover {
    background-color: #0056b3;
}

.projects-container img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 10px;
}

.projects-container div {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    padding: 10px;
    flex-direction: column;
}

#featured-heading {
    margin-top: 40px;
    text-align: center;
}

.navigation {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.navigation h1 {
    margin-bottom: 0;
}

.navigation p {
    margin-top: 2px;
}

.navigation div {
    display: flex;
    flex-direction: column;
}

.navigation ul {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    flex-wrap: wrap; /* Allows items to wrap to the next line */
}

.navigation li {
    padding: 10px;
}

.navigation a.icon {
    display: none;
}

/* Recent Updates Section */
.recent-updates {
  margin: 4rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.section-title h2 {
  font-size: 1.5rem;
  margin: 0;
}

.section-title a {
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.7;
}

.section-title a:hover {
  opacity: 1;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.update-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Square images */
.update-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.update-card:hover .update-img {
  transform: scale(1.03);
}

.update-card h3 {
  margin: 0.75rem 0 0.25rem 0;
  font-size: 1.1rem;
}

.update-card p {
  margin: 0.25rem 0;
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.update-date {
  font-size: 0.85rem !important;
  opacity: 0.6 !important;
  font-weight: 500;
}

.section-title h2 {
  font-size: 1.5rem;
  margin: 0;
}

.section-title a {
  font-size: 0.9rem;
  text-decoration: none;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.update-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.update-card h3 {
  margin: 0.75rem 0 0.25rem 0;
  font-size: 1.1rem;
}

.update-card p {
  margin: 0.25rem 0;
  opacity: 0.8;
  font-size: 0.95rem;
}

.update-date {
  font-size: 0.85rem !important;
  opacity: 0.6 !important;
}

/* This makes images square */
.update-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.update-card:hover .update-img {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

@media (max-width: 768px) {

    .projects-container {
        flex-direction: column; /* Stack project items vertically */
        align-items: center;
    }

    .navigation a {
        color: white;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 17px;
        display: block;
    }

    .navigation a.icon {
        background: black;
        display: block;
        position: absolute;
        right: 20px; /* Align to the right side */
        top: 55px; /* Align to the top */
        cursor: pointer;
    }

    .navigation a:hover {
        background-color: #ddd;
        color: black;
    }

    .navigation #navlinks.active {
        display: flex;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 50px;
        right: 0;
        width: 100%;
    }

    .navigation {
        display: flex;
        align-items: center; /* Center align the content */
        align-content: space-between;
        flex-wrap: wrap;
    }
    
    #navlinks {
        display: none; /* Initially hidden */
        width: 100%; /* Ensure it spans the full width */
        text-align: center; /* Center the links */
        background-color: #333;
    }
    
    #navlinks ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    
    #navlinks li {
        padding: 0px 0; 
    }
}