.navbar ul{
    list-style-type: none;
    background-color: rgb(255, 255, 255);
    padding: 0px;
    margin: 0px;
    text-align: center;
}
.navbar a{
    color: black;
    text-decoration: none;
    padding: 25px 10px;
    font-size: 20px;
    display: block;
    text-align: center;
    width: 100px;
    font-weight: bold;
}
.navbar a:hover{
    text-decoration-line: underline;
}
.navbar li{
    display: inline-block;
}

.pic{
    position: fixed;
    height: auto;
    margin-top: 10px;
    left: 75px;
    width: 200px;
}

body{
    font-family: sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: normal;
    color: rgb(59, 55, 55);
}

.centered-text{
    margin:100px;
    text-align: center;
    line-height: 1.4;
    padding: 10px;
    font-size: 2rem;
}
h2{
    font-size: 4.5rem;
    color:rgba(20, 45, 99, 0.952);
    margin-top: 175px;
    margin-left: 75px;
    text-align: left;
    line-height: 1.5;
}
h3{
    font-size: 2.5rem;
    margin-top: 100px;
    color:rgba(20, 45, 99, 0.952);
    text-align: center;
}
.textbreak{
    width: 600px;
    word-wrap: break-word;
    margin-left: 75px;
    line-height: 1.3;
}
.gallery{
    text-align: center;
}
.headshots{
    text-align: center;
    margin: 20px;
    display: inline-block;
}

.rounded-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid #333;
}
.names{
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.titles {
    margin-top: 10px;
    font-size: 1.2em;
    color: #333;
}

.learn-button{
    background-color: rgb(238, 207, 34);
        color: white;
        border-radius: 30px;
        border: 2px rgb(238, 207, 34);
        margin-top: 20px;
        margin-left: 75px;
        height: 50px;
        width: 200px;
        font-size: 1.3rem;
        cursor: pointer;
}

.right-image{
    float:right;
    width: 38%;
    height: auto;
    margin-top: 50px;
    margin-right: 125px;
}

.news-header{
    background-color:rgba(20, 45, 99, 0.952);
    color: white;
    margin-top: 25px;
    width: 100%;
    height: 100%;
    padding: 50px;
    font-size: 2rem;
}

.text-gallery {
    text-align: center; /* Center the boxes if desired */
}

.text-box {
    display: inline-block; /* Display boxes inline */
    background-color: #ffffff; /* Background color */
    border: 1px solid #dddddd; /* Border color */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Space inside the box */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Shadow effect */
    margin: 10px; /* Space between boxes */
    vertical-align: top; /* Align the tops of the boxes */
    height:350px;
    width: 300px; /* Set a fixed width for the boxes */
}

.news-link{
    text-decoration: none; /* Remove underline from the link */
    color: rgb(59, 55, 55);
    transition: color 0.3s ease; /* Smooth transition for color change */
}

.news-link:hover{
    color:#aaa;
}

.date-heading{
    text-align: center;
    font-size: 1rem;
    color: rgb(121, 118, 118) 
}

.news-title{
    text-align: center;
    font-weight: bold;

}

@media (max-width: 600px) {
    /* ➤ Logo: hidden on home page, still visible on others */
    body.home .right-image {
      display: none !important;
    }
    .pic {
      /* If you still need it on other pages: keep the scaled down version */
      position: static !important;
      width: 80px !important;
      max-width: 30%;
      margin: 10px auto !important;
    }

     /* pull the h3 up on home now that the image’s gone */
    body.home h3 {
        margin-top: 20px !important;
    }
  
    /* ➤ Navbar: keep links in one row but allow horizontal scroll */
    .navbar ul {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      white-space: nowrap;
    }
    .navbar li {
      display: inline-block;
      margin: 0 5px;
    }
    .navbar a {
      font-size: 1rem !important;
      padding: 10px 8px !important;
      width: auto !important;
    }
  
    /* ➤ Global text & element scaling */
    body {
      font-size: 1rem;
    }
    h2 {
      font-size: 1.8rem;
    }
    h3 {
      font-size: 1.4rem;
    }
    .centered-text {
      font-size: 1rem;
      margin: 20px;
    }
    .textbreak {
      width: 90% !important;
      margin-left: 0 !important;
    }
    .learn-button {
      width: 80% !important;
      margin: 20px auto !important;
    }
    .right-image {
      width: 90% !important;
      margin: 20px auto !important;
      float: none !important;
    }
    .text-box {
      width: 90% !important;
    }
  }
  