@import url(https://fonts.googleapis.com/css?family=Roboto+Slab:400,700);

/* Custom container */
.container-narrow {
  margin: 0 auto;
  max-width: 1100px; }

.container-narrow > hr {
  margin: 30px 0; }

.navbar .nav {
  float: right; }

.navbarleft .nav {
  float: left; }

/* layout for navbar left section */
.navbarleft .nav li {
  list-style: none;
}


/* home navigation list */
.navbar .home-nav {
  float: left;
  margin-right: auto; 
  margin-left: -20px; }

/* posts index */
.post > h3.title {
  position: relative;
  padding-top: 7px; }

.post > h3.title span.date {
  position: absolute;
  right: 0;
  font-size: 1.2em;
  font-weight: bold; }

.post > .more {
  margin: 10px 0;
  text-align: left; }

/* post-full*/
.post-full .date {
  margin-bottom: 20px;
  font-weight: bold; 
  font-size: 1.2em;}

p {
  font-family: 'Roboto';
  font-size: 20px;
  line-height: 1.6;
  color: #333;
}

/* legacy style for old news items */
.news-font {
  font-family: 'Roboto', serif; /* or any other font like 'Roboto', 'Arial', etc. */
  font-size: 10px;
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 8px;
}
.news-font span {
  font-size: 1.2em;
  font-weight: bold;
}

/* Homepage news heading */
.news-heading {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* News date on homepage */
.news-date {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* News description on homepage */
.news-description {
  font-size: 18px;
  line-height: 1.5;
  color: #222;
}

#RecentNews {
  list-style: none !important;
  padding-left: 0;
  margin-left: 0;
}

#RecentNews li {
  list-style-type: none !important;
  margin-bottom: 10px;
}

/* tag_box */
.tag_box {
  list-style: none;
  margin: 0;
  overflow: hidden; }

.tag_box li {
  line-height: 28px; }

.tag_box li i {
  opacity: 0.9; }

.tag_box.inline li {
  float: left; }

.tag_box a {
  padding: 3px 6px;
  margin: 2px;
  background: #eee;
  color: #555;
  border-radius: 3px;
  text-decoration: none;
  border: 1px dashed #cccccc; }

.tag_box a span {
  vertical-align: super;
  font-size: 0.8em; }

.tag_box a:hover {
  background-color: #e5e5e5; }

.tag_box a.active {
  background: #57A957;
  border: 1px solid #4c964d;
  color: #FFF; }

/* Flex */

.flex-container {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
}



/* People */

.people {
  justify-content: flex-start;
}

.person {
  margin: 10px;
  width: 110px;
  height: 140px;
}

.person p {
  text-align: center;
  font-size: 1em;
  font-weight: bold;
  color: white;
  position: relative;
  text-shadow: 1px 1px 2px black;

  padding-bottom: 4px;
  bottom: 140px;
  display: table-cell;
  vertical-align: bottom;
  height: 140px;
  width: 110px;
}

.person img {
  height: 100%;
  width: 100%;
  border-radius: 6px;

  object-fit: cover;
  object-position: center;
}

.image-container> {
  transition: opacity .2s;
  opacity: 1;
}

.image-container>:hover {
  transition: opacity .1s;
  opacity: 0.7;
}

.img-thumbnail {
  min-height:55px;
  height:55px;
  margin-left: 15px;
  margin-top: 15px;
  border: 0 none;
  /*box-shadow: none;*/
}

.home-button {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: #f0f0f0;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: background-color 0.2s;
}

.home-button:hover {
  background-color: #e0e0e0;
}

.news-item-box {
  padding: 10px;
  background-color: #f9f9f9;
  border-left: 4px solid #800080;
  border-radius: 6px;
}

@media (max-width: 600px) {  
  .news-item {
  margin-bottom: 1em;
  }
}


/* index page Mission and Research Areas */
/* - Mission */
#index_mission {
  margin: 40px auto;
  max-width: 1100px;
  display: flex;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  unicode-bidi: isolate;
}

#index_mission .image-placeholder {
  display: block;
  unicode-bidi: isolate;
  width: 50%;
  background-color: #c0c3cc;
  min-height: 400px;
}

#index_mission .text-section {
  background-color: whitesmoke;
  display: block;
  unicode-bidi: isolate;
  width: 50%;
  padding: 30px;
  box-sizing: border-box;
}

#index_mission .section-title {
    /* font-size: 24px; */
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
}

#index_mission .underline {
    display: block;
    width: 80px;
    height: 4px;
    background-color: #fbbf24;
    margin-top: 4px;
}

/* — Research Areas — */
#index_research_areas.container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 40px auto;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
}

/* Title spans full width and sits tight above panels */
#index_research_areas .section-title {
  flex: 1 1 100%;
  margin: 0 0 16px;     /* no top-margin, 16px below */
  padding: 0;
  font-weight: bold;
  position: relative;
}

/* Panels row */
#index_research_areas .left-panel,
#index_research_areas .right-panel {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

#index_research_areas .left-panel {
  padding-right: 10px;
}

#index_research_areas .right-panel {
  padding-left: 10px;
}

/* Image placeholder */
#index_research_areas .image-placeholder {
  background-color: #c0c3cc;
  width: 100%;
  height: 220px;
  border-radius: 8px;
  margin: 20px 0;
}

/* **Larger text under the image** */
#index_research_areas .description {
  font-size: 18px;
  line-height: 1.5;
  margin: 0;

  /* new styles: yellow background, black text */
  background-color: #fbbf24;
  color: #000;
  padding: 12px;
  border-radius: 6px;
}

/* Accordion styling (unchanged) */
#index_research_areas .accordion-item {
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
}
#index_research_areas .accordion-header {
  background-color: #483d8b;
  color: white;
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  border-radius: 6px;
}
#index_research_areas .accordion-header.open {
  background-color: #f3f3f3;
  color: black;
  border: 1px solid #ddd;
}
#index_research_areas .accordion-body {
  background-color: #fff;
  border: 1px solid #ddd;
  border-top: none;
  padding: 15px 20px;
  display: none;
}
#index_research_areas .accordion-body.open {
  display: block;
}

/* Underline bar */
#index_research_areas .underline {
  display: block;
  width: 80px;
  height: 4px;
  background-color: #fbbf24;
  margin-top: 4px;
}
