:root {

    --news-primary: #216438;
    --news-secondary: #428f9f;
    --news-light: #eeeae7;
    --news-dark: #151515;

}

.bg-gray {
    background-color: var(--color-gray);
}
.bg-green {
    background-color: var(--color-green);
}
.bg-green-light {
    background-color: var(--color-green-light);
}
.bg-green a {
  color: var(--color-white) !important;
}
.text-green {
    color: var(--color-green) !important;
}
.text-orange {
  color: var(--color-orange) !important;
}
.text-white {
  color: var(--color-white) !important;
}
.ck-source-editing-area textarea {
 height: 450px;
}
#content {
  margin-top: -80px;
}
.user-logged-in #content {
  margin-top: 50px;
}
.block-inline-blockbanner .banner--wrapper {
    position: relative;
    min-height: 550px;
}

.block-inline-blockbanner .banner--wrapper > .field__item {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.block-inline-blockbanner .banner--wrapper > .field__item > img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.block-inline-blockbanner .banner--wrapper .banner--content {
    position: absolute;
    z-index: 3;
    bottom: 30px;
    left: 30px;
    color: var(--color-white);
}

.block-inline-blockbanner .banner--wrapper .banner--overlay {
    position: absolute;
    z-index: 2;
    height: 100%;
    width: 100%;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.25) 25%,
      rgba(0, 0, 0, 0.9) 90%,
      rgba(0, 0, 0, 1) 100%
    );
}

.field__item__spacer {
    height: 0;
}
.field__item__spacer--xxs {
    padding-bottom: var(--space-xxs);
}
.field__item__spacer--xs {
    padding-bottom: var(--space-xs);
}
.field__item__spacer--sm {
    padding-bottom: var(--space-sm);
}
.field__item__spacer--m {
    padding-bottom: var(--space-md);
}
.field__item__spacer--lg {
    padding-bottom: var(--space-lg);
}
.field__item__spacer--xl {
    padding-bottom: var(--space-xl);
}
.field__item__spacer--xxl {
    padding-bottom: var(--space-xxl);
}
.ck-source-editing-area textarea {
  height: 300px;
}
/* Header, Primary Menu, Secondary Menu */

.irri-logo, .irri-logo-brand-cgiar {
    height: 50px;
}
#block-irri25-secondarymenu {
    display: flex;
    justify-content: right;
}
#block-irri25-secondarymenu li.nav-item {
    margin-bottom: 0;
}


#main {
  padding-top: 75px;
}
#navbar-main {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: 0;
    padding-bottom: 0;
    background-color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
#navbar-main .navbar-collapse {
    justify-content: right;
}
#navbar-main .navbar-collapse li.nav-item {
    margin-bottom: 0;
    margin-left: 0;
    flex: 1;
    text-align: center;
    border-left: solid var(--color-gray) 1px;
}
#block-irri25-mainmenu {
  border-right: solid var(--color-gray) 1px;
}
#navbar-main .navbar-collapse li a {
    font-size: var(--fs-md);
    color: var(--color-black);
}

/* Mobile Navigation Styles */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background-color: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
    text-decoration: none;
    outline: 0;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23242424' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

/* Mega Menu Styles */
.megamenu-dropdown {
  position: initial !important; 
}

.megamenu-dropdown.show > .nav-link,
.megamenu-dropdown > .nav-link.show {
  color: var(--color-green, #007a3d);
  font-weight: bold;
  border-radius: 4px 4px 0 0;
  /* Add any other highlight styles you want */
}
.megamenu-dropdown > .nav-link.show {
  color: var(--color-green, #007a3d) !important;
}

.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.megamenu {
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 50%;
  transform: translateX(-50%);
  border-radius: 0;
  padding: 2rem 0;
  position: absolute;
  background: white;
  border: 1px solid rgba(0,0,0,0.1);
  margin-top: 0;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000; /* Added z-index to ensure menu appears above other content */
}
.megamenu.show {
  border: none;
  top: 98%;
}

.megamenu-inner-wrapper {
  width: 100%;
  max-width: 1200px; /* or your preferred max width */
  margin: 0 auto;
}

.megamenu-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
}

.megamenu-description {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.megamenu-item {
  margin-bottom: var(--space-md);
}

.megamenu-item-title {
  margin-bottom: var(--space-xs);
   color: var(--color-green);
}

.megamenu-item-title a,
.megamenu-description h4 {
 
  font-size: var(--fs-lg) !important;
  line-height: 120%;
}

.megamenu-item-title a:hover {
  color: var(--color-green-secondary);
  text-decoration: none;
}

.megamenu-item-description {
  font-size: var(--fs-md);
  color: var(--color-black);
}
.megamenu-item-description p {
  margin-bottom: 0;
}
.megamenu-item-description .field--type-text-long {
}
.search-icon-container {
  /*display: none !important;*/
}
/* Responsive Adjustments */
@media (max-width: 991px) {
  .megamenu {
    padding: 1rem 0;
  }
  
  .megamenu-intro {
    margin-bottom: 0;
  }
  
  .megamenu-item {
    margin-bottom: 1rem;
  }
}

/* Header Region */
.region-header {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}
#navbar-top {
  padding-top: 0;
  padding-bottom: 0;
}
#navbar-top > .container {
  justify-content: right;
}
#navbar-main .navbar-collapse {
  position: static; /* This allows mega menu to position relative to navbar */
}
.region-primary-menu {
  width: 100%;
}
#navbar-main,
#navbar-top {
  border: solid 1px var(--color-white);
}

#navbar-main .navbar-collapse li.nav-item {
  margin-bottom: 0;
  margin-left: 0;
  flex: 1;
  text-align: center;
  border-left: none;
}
#block-irri25-mainmenu {
border-right: solid var(--color-gray) 1px;
}
#navbar-main .navbar-collapse {
  position: static; /* This allows mega menu to position relative to navbar */
}
.region-secondary-menu a,
.region-secondary-menu a:hover,
.region-secondary-menu a:active {
  color: var(--color-green);
}
.region-secondary-menu a:hover,
.region-secondary-menu a:active {
  text-decoration: underline;
}
#block-irri25-mainmenu li {
  margin-right: 0;
}
.node__content {
    margin-top: 0;
}

/* Nav */
.irri-main-nav {
  align-items: center;
  width: 100%;
}
.irri-main-nav .irri-nav-link.nav-link.active, 
.irri-main-nav .show > .irri-nav-link.nav-link {
  background-color: var(--color-green-highlight) !important;
}
#navbar-main .navbar-collapse li a {
  color: var(--color-black);
}
#navbar-main .navbar-collapse li a:hover {
  color: var(--color-green);
  text-decoration: none;
}

/* Slider */
.carousel-item img {
    width: 100%;
    object-fit: cover;
}
.carousel-caption h2, 
.carousel-caption p {
    text-align: left;
}

.block--simple-news-feed--articles .views-row {
    margin-bottom: var(--space-sm);
}
.block--simple-news-feed--articles .views-row a {
    color: var(--color-green-secondary);
}

.block--simple-news-feed--articles .block--simple-news-feed--text {
    margin-bottom: var(--space-md);
}


/* News Highlights Flex Layout */
.block--news-highlights .news-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
  
  /* Featured article (first post) */
.block--news-highlights .news-featured {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
}
  
  /* Container for all secondary articles */
.block--news-highlights .news-items-secondary {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
  
  /* Individual secondary articles */
.block--news-highlights .news-secondary {
    width: 100%;
}
  
  /* Card styling */
.block--news-highlights .news-article .card {
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
  
.block--news-highlights .news-article .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.linked-img--img {
  display: inline-block;
}
.linked-img--img img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
.linked-img--link {
  margin: var(--space-xs);
}
.linked-img--link a {
  color: var(--color-green)
  
}
.impact-icons-container .block {
  width: 20%;
}
.impact-icons-container .content {
  text-align: center;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}
.impact-icons-container .content img {
  max-width: 90%;
  width: 125px;
}
.sdg-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.sdg-container .block {
  width: 20%;
}
.sdg-container .content {
  text-align: center;
  padding: var(--space-sm);
}

.news-article h1 {
  color: var(--color-black);
}
.news-article .img-wrapper img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 90vh;
  width: 100%;
}
.news-article .news-featured-image .card {
  margin-bottom: var(--space-m);
}
.news-article .field--name-field-main-image img {
  margin-bottom: 0;
}
/* IRRI Banner component styling based on Erasmus+ design */
.slider-banner {
  position: relative;
}
.irri-hero-banner .banner-bg-image {
  position: relative;
  width: 100%;
  height: 0;
  /* Mobile aspect ratio (3:4) = 75% padding-bottom */
  padding-bottom: 133.33%; /* (4/3 * 100%) */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.irri-hero-banner .banner-bg-image picture {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.irri-hero-banner .banner-bg-image img.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.irri-hero-banner .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(187deg, rgba(0, 0, 0, 0.00) 37.7%, rgba(0, 0, 0, 0.75) 59.5%, #000 100%);
}

.irri-hero-banner h1 {
  margin-bottom: var(--space-xs);
}
.irri-hero-banner .banner-text .text-green,
.irri-hero-banner .banner-text em
.irri-hero-banner .banner-text span {
  color: var(--color-green-light) !important
}
.irri-hero-banner .banner-text .field--type-text-with-summary > *:last-child,
.irri-hero-banner .banner-text  {
 margin-bottom: 0;
}
.irri-hero-banner__container {
  position: relative;
  height: 100%;
}

.irri-hero-banner__container__content {
  position: absolute;
  bottom: var(--space-md); /* Position from bottom */
  left: 0;
  padding: 0 var(--space-sm);
  width: 100%;
  z-index: 2;
}

.irri-hero-banner .banner-text {
  color: var(--color-white);
  font-weight: 400;
}
.irri-hero-banner .banner-text p {
  font-size: var(--fs-base);
  margin-bottom: var(--space-xs);
}
.irri-hero-banner .banner-text h1,
.irri-hero-banner .banner-text h2,
.irri-hero-banner .banner-text h3,
.irri-hero-banner .banner-text h4,
.irri-hero-banner .banner-text h5 {
  color: var(--color-white);
}

.carousel-indicators {
  bottom: 30px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .irri-hero-banner .banner-bg-image {
    /* Desktop aspect ratio (16:9) = 56.25% padding-bottom */
    padding-bottom: 50%; /* (9/16 * 100%) */
  }

  .irri-hero-banner.small-banner .banner-bg-image {
    padding-bottom: 33%;
  }
  
  .irri-hero-banner .banner-title {
    font-size: 2rem;
  }
  
  .irri-hero-banner .banner-text {
    font-size: 1rem;
  }
  .irri-hero-banner .banner-text p {
    margin-bottom: var(--space-sm);
  }
}

@media (max-width: 576px) {
  .irri-hero-banner .banner-title {
    font-size: 1.75rem;
  }
}

/* YouTube Video Background Styles - Enhanced for full coverage */
.banner-video-container {
  position: relative;
  width: 100%;
  height: 85vh; /* Match the banner-bg-image height */
  overflow: hidden;
}

.youtube-video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

#youtube-video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250%; /* Increased width to ensure coverage */
  height: 250%; /* Increased height to ensure coverage */
  transform: translate(-50%, -50%) scale(1.2); /* Scale up to hide borders */
  pointer-events: none;
}

/* Search icon and search bar styling */
.search-icon-container {
  display: flex;
  align-items: center;
  justify-content: end;
  height: 100%;
  flex: 0 !important;
  min-width: 5%;
  /*padding: var(--space-xs) 0;*/
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-green);
  padding: 0.35rem;
  transition: all 0.3s ease;
  border-radius: 50%;
  border: solid 1px var(--color-green);
}

.search-icon:hover {
  background-color: rgba(0, 123, 60, 0.1);
}

.search-icon svg {
  width: 20px;
  height: 20px;
}

.search-bar-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(100%);
  background-color: var(--color-yellow);
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: block;
  z-index: 49;
}

@media (min-width: 768px) {
  .search-bar-container {
    display: none;
  }
}

.search-bar-container.active {
  display: block;
}

.search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  padding: 8px 15px;
  border: 1px solid var(--color-gray);
  border-radius: 4px 0 0 4px;
  font-size: var(--fs-base);
}

.search-button {
  background-color: var(--color-green);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.search-button:hover {
  background-color: var(--color-green-highlight);
}

.banner-video-container .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.banner-video-container .irri-hero-banner__container {
  position: relative;
  z-index: 2;
}

/* Responsive adjustments for video banner */
@media (max-width: 768px) {
  .banner-video-container {
    height: 350px; /* Match the responsive height from banner-bg-image */
  }
}

@media (max-width: 576px) {
  .banner-video-container {
    height: 300px; /* Match the responsive height from banner-bg-image */
  }
}

  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .block--news-highlights .news-flex-container {
      flex-direction: column;
    }
    
    .block--news-highlights .news-featured, 
    .block--news-highlights .news-items-secondary {
      width: 100%;
    }
  }
  
  /* Additional styling */
  .block--news-highlights .card-title a {
    color: var(--color-green);
    text-decoration: none;
  }
  
  .block--news-highlights .card-title a:hover {
    color: var(--color-green-secondary);
  }
  
  .block--news-highlights .news-date {
    color: var(--color-black);
    margin-top: 0.5rem;
  }
  
  .block--news-highlights .read-more {
    color: var(--color-blue-green);
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 500;
  }

    /* News Node Styling */
  
  /* Typography enhancements */
  .page-node-type-news .news-article .display-4 {
    font-size: calc(1.475rem + 2.7vw);
    line-height: 1.2;
  }
  
  .page-node-type-news .news-article .lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
  }
  
  /* Content styling */
  .page-node-type-news .news-content {
    font-size: 1.125rem;
    line-height: 1.8;
  }
  
  .page-node-type-news .news-content p {
    margin-bottom: 1.5rem;
    font-size: var(--fs-base);
  }
  
  .page-node-type-news .news-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
  }
  
  .page-node-type-news .news-content h3 {
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
  }
  
  .page-node-type-news .news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
  }
  
  .page-node-type-news .news-content blockquote {
    border-left: 4px solid var(--news-primary);
    padding-left: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: var(--news-secondary);
  }
  
  /* Tags styling */
  .page-node-type-news .news-tags .field__items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .page-node-type-news .news-tags .field__item a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--news-light);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--news-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .page-node-type-news .news-tags .field__item a:hover {
    background-color: var(--news-primary);
    color: white;
  }
  
  /* Social share buttons */
  .page-node-type-news .news-social-share .btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--color-primary);
    border: none;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .page-node-type-news .news-article .display-4 {
      font-size: 2.5rem;
    }
    
    .page-node-type-news .news-content {
      font-size: 1rem;
    }
  }
  

  /* main nav */
  /* irri25 Nav Pills Styling with namespacing */

/* .irri-main-nav.nav-pills {
  margin-bottom: 1rem;
} */

.irri-main-nav .irri-nav-link.nav-link {
  color: var(--bs-primary, #007B3C);
  padding: 0.5rem;
  border-radius: 0;
  transition: all 0.2s ease-in-out;
}

.irri-main-nav .irri-nav-link.nav-link:hover {
}

.irri-main-nav .irri-nav-link.nav-link.active,
.irri-main-nav .show > .irri-nav-link.nav-link {
  background-color: var(--bs-primary, #007B3C);
  color: white;
}

.irri-main-nav .irri-dropdown-menu.dropdown-menu {
  margin-top: 0.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  top: auto;  
  left: auto;
}

.irri-main-nav .irri-dropdown-item.dropdown-item {
  padding: 0.5rem 1.5rem;
  color: #212529;
  font-weight: 400;
}
.irri-main-nav .irri-dropdown-item.dropdown-item.active {
  background-color: var(--color-green-highlight);
}

.irri-main-nav .irri-dropdown-item.dropdown-item:hover,
.irri-main-nav .irri-dropdown-item.dropdown-item:focus {
  background-color: rgba(0, 123, 60, 0.1);
  color: var(--bs-primary, #007B3C);
}

.irri-main-nav .irri-dropdown-item.dropdown-item.active {
  background-color: var(--color-green-highlight);
  color: white;
}

@media (max-width: 992px) {
  .irri-main-nav {
    display: flex;
    flex-direction: column;
    padding-top: var(--space-m)
  }
  #navbar-main .navbar-collapse li.nav-item {
    padding: var(--space-xs);
  }
  #navbar-main .navbar-collapse li a {
    font-size: var(--fs-m);
  }

  #navbar-main .dropdown-menu.megamenu.show {
    position: initial;
    border-left: none;
    border-bottom: solid var(--color-gray) 1px;
    box-shadow: none;
    border: none;
    max-width: 100% !important;
    margin: 0;
    width: 100% !important;
    transform: none;
  }

  #navbar-main .megamenu-image,
  #navbar-main .megamenu-description {
    display: none;
  }
  #navbar-main .megamenu-item .megamenu-item-title {
    margin: 0 !important;
    text-align: center;
  }
  #navbar-main .megamenu-item .megamenu-item-title a {
    font-family: var(--bs-font-tertiary);
    font-size: var(--fs-base) !important;
    color: var(--color-green);
  }
  

  #navbar-main .megamenu-item .megamenu-item-description {
    display: none;
  }
}

/* Optional: Add a class for when the navbar is sticky to change its appearance */
#navbar-main.sticky {
  padding-top: 5px;
  padding-bottom: 5px;
}

/* Ensure the navbar stays above other content */
.sticky-top {
  z-index: 1020;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .irri-main-nav {
    flex-wrap: wrap;
  }
  
  .irri-main-nav .irri-nav-item {
    margin-bottom: 0.5rem;
  }
}

#navbar-main .megamenu-item .megamenu-item-title a {
  color: var(--color-green);
}


/* CTA Link */
.cta-link .cta-link-text,
.cta-link {
  color: var(--color-primary);
  font-weight: bold;
}
.cta-link:hover .cta-link-text,
.cta-link:hover {
  color: var(--color-primary);
}
.our-work--cards .row > div {
  width: 20%;
}
.cta-link-wrapper {
  line-height: 180%;
  margin-bottom: var(--space-xs);
}

/* Breadcrumb */
.block-system-breadcrumb-block .container {
  display: flex;
  align-items: center;
}
.block-system-breadcrumb-block h2 {
  color: var(--color-green);
  font-family: 'Lato', arial, sans-serif;
  margin: 0;
  margin-right: var(--space-sm);
}
.block-system-breadcrumb-block h2,
.breadcrumb .breadcrumb-item,
.breadcrumb .breadcrumb-item a {
  font-size: var(--fs-sm);
  color: var(--color-black)
}
.breadcrumb {
  padding: var(--space-xs) 0;
  margin-bottom: 0;
}
.breadcrumb .breadcrumb-item {
  margin-bottom: 0;
}
ol.breadcrumb li:first-child a::before {
  content: none;
}
/* Footer */
.site-footer {
  background-color: var(--color-white);
  box-shadow: var(--shadow-top);
}
.site-footer,
.site-footer .content,
.site-footer h2 {
  color: var(--color-black);
}

.site-footer .block {
  border: none;
  padding: 0;
}

.site-footer .block .nav .nav-item {
  width: 100%;
  margin-bottom: 0;
}
.site-footer .block-menu {
  margin-top: var(--space-sm);
} 
.site-footer .block .nav .nav-item a {
  color: inherit;
  padding-top: 0;
}

.site-footer .content .social-media-links {
  padding-left: 0 !important;
  list-style: none;
  margin-bottom: 0;
}
.site-footer .content .social-media-links li {
  margin-bottom: 0;
  margin-left: var(--space-xs);
}
.site-footer .content .social-media-links a {
  text-decoration: none;
  border-bottom: none;
}
.site-footer__bottom .region {
  margin-top: 0;
}
.site-footer h2 {
  font-family: var(--bs-font-tertiary);
  font-weight: var(--bs-font-normal);
  color: var(--color-green);
}
.site-footer a.btn {
  color: var(--color-white) !important;
}
#block-irri25-followus-2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-black);
}
#block-irri25-followus-2 h2 {
  color: var(--color-black);
}
#block-irri25-followus-2 a {
  color: var(--color-green) !important;
}
#block-irri25-footerlogo,
#block-irri25-legalnotice {
  border: none;
}
#block-irri25-legalnotice p {
  margin-bottom: 0;
  text-align: center;
}

/* News Card */
.news-card .card-img-top img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-top-right-radius: 10px !important;
  border-top-left-radius: 10px !important;
}
.news-card .card-title,
.news-card .card-title a,
.news-card .datetime,
.news-card .news-date,
.news-card .date,
.news-card .card-text,
.news-card .card-text p {
  font-size: var(--fs-base);
  color: var(--color-black);
  font-weight: normal;
}
.news-card .card-title {
  margin-bottom: var(--space-sm) !important;
  margin-top: 0;
}
.news-card .card-text,
.news-card .card-text p {
  margin-bottom: var(--space-m) !important;
}

.news-card .date,
.news-card .datetime,
.news-card .news-date {
  font-size: var(--fs-sm);
}
.news-card .card-title,
.news-card .card-title > a {
  font-size: var(--bs-h4-font-size);
  font-family: var(--bs-font-tertiary);
}
.news-card .card-action {
  color: var(--color-black);
}
.news-card .card-body {
  padding: var(--space-sm) var(--space-m);
  background-color: var(--color-white);
  border-bottom-right-radius: 10px !important;
  border-bottom-left-radius: 10px !important;
}
.bg-white .news-card .card-body {
  background-color: var(--color-yellow);
}
.news-card:hover .card-body {
  background-color: var(--color-green);
}
.news-card:hover * {
  color: var(--color-white)!important;
}


/* Pagination */
nav .pagination,
nav .pagination a,
nav .pagination span {
  color: var(--color-green) !important;
  font-size: var(--fs-base);
}
nav .pagination a:hover {
  color: var(--color-blue-green) !important;
}

nav .pagination ul,
nav .pagination li {
  margin-bottom: 0;
}

.view-news-archive nav {
  display: flex;
  justify-content: center;
}

#layout-builder-modal .form-textarea-wrapper textarea,
#layout-builder-modal .ck-editor__main,
#layout-builder-modal .ck-content {
  color: var(--color-black);
  height: 350px;
}

/* Accordion */
/* Updated Accordion Styling */
.accordion-item {
  border: none !important;
  background-color: transparent !important;
}

.accordion-button {
  color: var(--color-black) !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-bottom: 1px solid rgba(0,0,0,.125) !important;
  font-family: var(--bs-font-sans-serif);
  font-size: var(--bs-h4-font-size);
}

.accordion-button:not(.collapsed) {
  color: var(--color-black) !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: none !important;
  border-color: rgba(0,0,0,.125) !important;
}

.accordion-body {
  background-color: transparent !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.accordion-header .accordion-button {
  padding-bottom: var(--space-xs);
}
.accordion-body {
  padding-top: var(--space-xs) !important;
}

/* Adjust the accordion icon */
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* SDG Icons - Global Styles */
.block--sgd-icons {
}

.block--sgd-icons .block-title {
  font-size: var(--bs-h3-font-size);
}
.block--sgd-icons .sgd-icons-container {
  margin-bottom: 1.5rem;
}
.block--sgd-icons .sgd-icon-item .sgd-icon-title {
  display: none;
}
.block--sgd-icons .sgd-icon-item img {
  width: 100%;
  height: auto;
}
.block--sgd-icons .sgd-icon-item {
  flex: 0 0 20%;        /* don’t shrink, fixed width; tweak to taste */
  aspect-ratio: 1 / 1;   
  /*display: grid;
  place-items: center;*/    /* center the icon */
  border-radius: 5px;
  overflow: hidden;  
  padding: 10px;
}

@media (max-width: 768px) {
  .block--sgd-icons .sgd-icon-item {
    width: 25vw; /* Slightly larger percentage on smaller screens */
  }
}

.col-md-3 .block--sgd-icons .sgd-icon-item,
.col-lg-3 .block--sgd-icons .sgd-icon-item {
  width: 40%; /* For sidebar placement */
}

/* SDG Icons Horizontal Scrolling */
.sgd-scroll-container {
  display: flex;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  padding-bottom: 10px; /* Space for scrollbar */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: thin; /* Firefox */
  scroll-behavior: smooth;
  gap: 0.5rem;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.sgd-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.sgd-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.sgd-scroll-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.sgd-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* SDG Icons */
.sdg-icons {
 /* display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 10px;*/
}

.col-md-3 .cta-link,
.col-lg-3 .cta-link {
  font-size: var(--fs-sm);
}
.col-lg-3 h2,
.col-md-3 h2 {
  margin-bottom: var(--space-xs);
}

/* Investor Featured */
.investor-featured .linked-img--img img {
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.person-cards .card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.person-cards .card-text {
  font-size: var(--fs-base);
}
.persons-archive .person-cards {
  margin-bottom: var(--space-lg);
}

.person-image-container img {
  width: 100%;
  height: auto;
}

/* IRRI Person Horizontal Layout - Namespaced Styles for General Persons Views */
.irri-persons-list {
  margin-bottom: var(--space-lg);
}

.irri-person-row {
  border-bottom: 1px solid var(--color-gray-light, #e9ecef);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}

.irri-person-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.irri-person-horizontal {
  padding: var(--space-md);
  border-radius: 8px;
  background-color: var(--color-white);
  transition: box-shadow 0.3s ease;
}

.irri-person-horizontal:hover {
}

.irri-person-image {
  border-radius: 10px;
  overflow: hidden;
}

.irri-person-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;

  transition: transform 0.3s ease;
}

.irri-person-image-link:hover img {
  transform: scale(1.05);
}

.irri-person-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  background-color: #f8f9fa;
}

.irri-person-name-link {
  color: inherit;
}

.irri-person-name-link:hover {
  color: var(--color-green);
}

.irri-person-position {
  border-bottom: 1px solid var(--color-gray-light, #e9ecef);
}

.irri-person-about {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-black);
}

.irri-person-about p {
  margin-bottom: var(--space-sm);
}

.irri-person-about p:last-child {
  margin-bottom: 0;
}

/* Responsive Design for IRRI Person Profiles */
@media (max-width: 991.98px) {
  .irri-person-horizontal {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    padding: var(--space-md);
  }
  
  
  .irri-person-placeholder {
    width: 180px;
    height: 180px;
  }

}

@media (max-width: 767.98px) {
  .irri-person-horizontal {
    padding: var(--space-sm);
  }
  .irri-person-placeholder {
    width: 150px;
    height: 150px;
  }
  .irri-person-position {
    font-size: var(--fs-sm);
  }
}

@media (max-width: 575.98px) {
  .irri-person-horizontal {
    padding: var(--space-sm);
  }
  
  
  .irri-person-placeholder {
    width: 120px;
    height: 120px;
  }
  
  .irri-person-about {
    font-size: var(--fs-sm);
  }
}

/* IRRI Person Block Compact Layout */
.irri-persons-block-list .irri-person-row {
  border-bottom: 1px solid var(--color-gray-light, #e9ecef);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.irri-persons-block-list .irri-person-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.irri-person-compact {
  padding: 0;
}

.irri-person-compact .irri-person-name {
  font-size: var(--fs-base);
  margin-bottom: var(--space-xs);
}
.persons-featured .irri-person-compact .irri-person-name {
  font-size: var(--bs-h2-font-size);
}
.irri-person-compact .irri-person-position {
  font-size: var(--fs-base) !important;
  margin-bottom: var(--space-xs);
  border-bottom: none;
  padding-bottom: 0;
}

.irri-person-compact .irri-person-about {
  font-size: var(--fs-sm) !important;
  line-height: 1.4;
}

@media (max-width: 575.98px) {
  
  .irri-person-compact .irri-person-placeholder {
    width: 60px !important;
    height: 60px !important;
  }
  
  .irri-person-compact .irri-person-name {
    
  }
  
  .irri-person-compact .irri-person-position {
    font-size: var(--fs-xs) !important;
  }
  
  .irri-person-compact .irri-person-about {
    font-size: var(--fs-xs) !important;
  }
}

/* Our Experts Block Layout - Sidebar + Main Content */
.our-experts-layout {
  margin-bottom: var(--space-lg);
}

.our-experts-sidebar {
  background-color: #f8f9fa;
  padding: var(--space-md);
  border-radius: 8px;
  margin-bottom: var(--space-md);
  border: 1px solid var(--color-gray-light, #e9ecef);
}

.our-experts-sidebar h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-green);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-green);
}

.our-experts-sidebar .exposed-filters {
  margin-bottom: 0;
}

.our-experts-sidebar .form-item {
  margin-bottom: var(--space-sm);
}

.our-experts-sidebar .form-item label {
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: var(--space-xs);
}
.our-experts-sidebar .form-actions {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-gray-light, #e9ecef);
}

.our-experts-sidebar .btn {
  background-color: var(--color-green);
  border-color: var(--color-green);
  color: white;
  padding: 0.5rem 1rem;
  font-size: var(--fs-sm);
  border-radius: 4px;
  margin-right: var(--space-xs);
}

.our-experts-sidebar .btn:hover {
  background-color: var(--color-green-highlight);
  border-color: var(--color-green-highlight);
}

.irri-experts-list {
  margin-bottom: var(--space-lg);
}

.irri-expert-row {
  border-bottom: 1px solid var(--color-gray-light, #e9ecef);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}

.irri-expert-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.irri-expert-image {
  border-radius: var(--border-radius, 8px);
  overflow: hidden;
}

.irri-expert-name a {
  color: inherit;
  text-decoration: none;
}

.irri-expert-name a:hover {
  color: var(--color-green);
}

.irri-expert-position {
  padding-bottom: var(--space-xs);
}

.irri-expert-about {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-black);
}

.irri-expert-about p {
  margin-bottom: var(--space-sm);
}

.irri-expert-about p:last-child {
  margin-bottom: 0;
}

/* Responsive Design for Our Experts Block */
@media (max-width: 991.98px) {
  .our-experts-results {
    padding-left: 0;
    margin-top: var(--space-md);
  }
  
  .irri-expert-profile .row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .our-experts-sidebar {
    padding: var(--space-sm);
  }
  .irri-expert-position {
    font-size: var(--fs-sm);
  }
}

@media (max-width: 575.98px) {
  .our-experts-sidebar h3 {
    font-size: var(--fs-base);
  }
  .irri-expert-about {
    font-size: var(--fs-sm);
  }
}

/* All Projects Block Layout - Sidebar + Main Content */
.all-projects-layout {
  margin-bottom: var(--space-lg);
}

.all-projects-sidebar {
  background-color: #f8f9fa;
  padding: var(--space-md);
  border-radius: 8px;
  margin-bottom: var(--space-md);
  border: 1px solid var(--color-gray-light, #e9ecef);
}

.all-projects-sidebar h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-green);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-green);
}

.all-projects-sidebar .exposed-filters {
  margin-bottom: 0;
}

.all-projects-sidebar .form-item {
  margin-bottom: var(--space-sm);
}

.all-projects-sidebar .form-item label {
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: var(--space-xs);
}

.all-projects-sidebar .form-select,
.all-projects-sidebar .form-control {
  border: 1px solid var(--color-gray-light, #e9ecef);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: var(--fs-sm);
}

.all-projects-sidebar .form-select:focus,
.all-projects-sidebar .form-control:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 60, 0.25);
}

.all-projects-sidebar .form-actions {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-gray-light, #e9ecef);
}

.all-projects-sidebar .btn {
  background-color: var(--color-green);
  border-color: var(--color-green);
  color: white;
  padding: 0.5rem 1rem;
  font-size: var(--fs-sm);
  border-radius: 4px;
  margin-right: var(--space-xs);
}

.all-projects-sidebar .btn:hover {
  background-color: var(--color-green-highlight);
  border-color: var(--color-green-highlight);
}

.irri-projects-list {
  margin-bottom: var(--space-lg);
}

.irri-project-row {
  border-bottom: 1px solid var(--color-gray-light, #e9ecef);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}

.irri-project-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.irri-project-horizontal {
  border-radius: var(--border-radius, 8px);
  background-color: var(--color-white);
  transition: box-shadow 0.3s ease;
}

.irri-project-horizontal:hover {
}

.irri-project-image {
  border-radius: var(--border-radius, 8px); 
  overflow: hidden;
}

.irri-project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.irri-project-image-link:hover img {
  transform: scale(1.05);
}

.irri-project-placeholder {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  background-color: #f8f9fa;
  border: 2px dashed var(--color-gray-light, #e9ecef);
}

.irri-project-title-link {
  color: inherit;
}

.irri-project-title-link:hover {
  color: var(--color-green);
}

.irri-project-duration {
  font-size: var(--fs-sm);
  padding-bottom: var(--space-xs);
}

.irri-project-description {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-black);
}

.irri-project-description p {
  margin-bottom: var(--space-sm);
}

.irri-project-description p:last-child {
  margin-bottom: 0;
}

.irri-project-actions .btn {
  transition: all 0.3s ease;
}

.irri-project-actions .btn:hover {
  background-color: var(--color-green);
  color: white;
  opacity: 1;
}

/* Responsive Design for All Projects Block */
@media (max-width: 991.98px) {
  
  .irri-project-image {
    width: 100%;
  }
  
  .irri-project-image img,
  .irri-project-placeholder {
    height: 180px;
  }
}

@media (max-width: 767.98px) {
}

@media (max-width: 575.98px) {
}

/* Research Networks */
.research-networks-items .block-inline-blockcard {
  margin-bottom: var(--space-lg);
}

.irri-tech-transfer-contacts img {
  height: 200px;
  width: auto;
  margin-bottom: var(--space-sm);
}

/* Publication Cards Styling */
.publication-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.country-flyers .block-views h2 {
  font-size: var(--bs-h3-font-size);
}

.uniform-image-container {
  height: 200px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.uniform-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.publication-card .card-title {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.publication-card .card-footer {
  padding-top: 0;
}

.publication-year {
  font-size: 0.8rem;
}

/* Testimonial styling */
.max-width-800 {
  max-width: 800px;
}
.testimonial-item {
  border: none !important;
  box-shadow: none !important;
}

.testimonial-item:hover {
  transform: none;
  box-shadow: none !important;
}

.testimonial-container {
  max-width: 900px;
}

.testimonial-quote {
  position: relative;
}

.testimonial-text {
  font-family: var(--bs-font-secondary);
}

.testimonial-author {
  flex-wrap: wrap;
}

.testimonial-author-photo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #333;
}

.testimonial-author-description {
  color: #555;
}

.testimonial-logo img {
  height: 30px;
  width: auto;
}

/* Single testimonial styling */
.single-testimonial {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .testimonial-text {
    font-size: 1.5rem;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-logo {
    margin-top: 1rem;
    margin-left: 0 !important;
  }
}

/* Side Navigation Styles */
.side-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.side-nav-item {
  margin: 0;
  border-bottom: 1px solid #e9ecef;
}
.side-nav-item .side-nav-link {
  font-size: var(--fs-sm);
  padding-left: 40px;
}

.side-nav-item:last-child {
  border-bottom: none;
}

.side-nav-link {
  display: block;
  padding: 15px 20px;
  color: var(--color-black);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.side-nav-link:hover {
  background-color: var(--color-green-highlight);;
  color: var(--color-black);
}

.side-nav-link.active {
  background-color: var(--color-green-highlight);
  color: var(--color-green);
  font-weight: 500;
  border-right: solid 5px var(--color-green);
  font-weight: bold;
}

/* Submenu styling */
.side-nav-item .side-nav-menu {
  background-color: #fff;
  box-shadow: none;
  border-radius: 0;
}

.side-nav-item .side-nav-item {
  border-bottom: none;
}

/* Tool styling for unformatted view */
.tools-wrapper .tool-wrapper {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  /*border: 1px solid var(--news-light);
  border-radius: 8px;*/
  transition: all 0.3s ease;
}

.tools-wrapper .tool-wrapper:hover {
 /* box-shadow: 0 5px 15px rgba(0,0,0,0.1);*/
}

.tools-wrapper .tool-logo {
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px; /* Set consistent height */
}

.tools-wrapper .tool-logo img {
  max-height: 125px; /* Control image height */
  width: auto;
  object-fit: contain;
}

.tools-wrapper .tool-title {
  font-weight: bold;
  margin-top: auto;
}

.tools-wrapper .tool-title a {
  color: var(--color-green);
  text-decoration: none;
}
#views-exposed-form-tools-block-1 #edit-actions {
 margin-left: var(--space-xs);
}

#block-irri25-page-title {display: none !important;}

.impact-numbers table tr,
.impact-numbers table tr td {
  border: none !important;
  background-color: transparent !important;
}

.newsletter-section {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
  position: relative;
}
.newsletter-section::after {
  content: ' ';
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(to right, var(--color-green) 0%, rgba(0, 128, 0, 0) 100%);
  z-index: 1;
}
.newsletter-section .container {
  position: relative;
  z-index: 5;
}
.get-in-touch--section::after {
  content: ' ';
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(to right, var(--color-orange) 0%, rgba(0, 128, 0, 0) 100%);
  z-index: 1;
}
.get-in-touch--section .container {
  position: relative;
  z-index: 5;
}
.get-in-touch--section * {
  color: var(--color-white) !important;
}

.site-footer__top .region {
  width: 100% !important;
}
.site-footer {
  background-color: var(--color-white);
  color: var(--color-black);
}
.site-footer a,
.site-footer p,
.site-footer span {
  color: var(--color-black) !important;
}

.site-footer .region-footer-first {
  width: 100% !important;
}
.site-footer .region-footer-first #block-irri25-footerlogo h2 {
  display: none;
}
.site-footer .region-footer-first #block-irri25-footerlogo img {
  max-width: 100%;
  height: 90px;
  width: auto;
}

.site-footer .block-irri25-followus-2 {
  display: flex;
  flex-direction: row;
}

.countries-section {
  position: relative;
  padding: 5rem 0;
}

.countries-section-title {
  color: #333;
  margin-bottom: 0;
}

.irri-works-section {
  background-image: url('../images/irri-map-2025.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--color-white);
  position: relative;
}
.countries-section-map {
  padding: 3rem 0;
  padding-bottom: 0;
}
.countries-section-map .region-container > .region-header {
  padding-top: 0;
  padding-bottom: 0;
}
.region-container {
  background-color: #00843D;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
}

.region-header > a {
  background-color: #005C2A;
  padding: 10px 15px;
  font-weight: bold;
  text-align: center;
  color: white;
  text-decoration: none;
  display: flex;
  justify-content: center;
}

.country-item {
  padding: 0;
  text-align: center;
}

.country-item a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 15px 10px;
  transition: background-color 0.3s ease;
}

.country-item a:hover {
  background-color: var(--color-orange);
}


/* Philippines is highlighted by default */
/* .country-item:has(a[href*="philippines"]) a {
  background-color: #F47920;
  border-radius: 3px;
  padding: 8px 5px;
  margin: 5px 0;
  font-weight: bold;
} */

/* Optional: Add a class for when the navbar is sticky to change its appearance */
#navbar-main.sticky {
  padding-top: 5px;
  padding-bottom: 5px;
}

/* Ensure the navbar stays above other content */
.sticky-top {
  z-index: 1020;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .countries-section-regions .col-md-3 {
    margin-bottom: 20px;
  }
}

.banner-bg-image {
  position: relative;
}

.banner-bg-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-bg-image img.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* If you were using a background image before, you might need to adjust these styles */
.banner-overlay {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* Logo Carousel Styling */
.logo-carousel-block {
  margin-bottom: var(--space-lg);
  padding: 2rem 0;
}
.logo-carousel-block .swiper-pagination {
  display: none;
}

.logo-carousel-block h2 {
  margin-bottom: var(--space-md);
}

.logo-carousel-swiper {
  padding: 1rem 0;
}

.swiper-slide.logo-item {
  height: 120px; /* Set a fixed height for all slides */
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  padding: 1rem;
}

.logo-container img {
  max-width: 100%;
  max-height: 80px; /* Control the maximum height of logos */
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.logo-container:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Swiper navigation customization */
.logo-carousel-swiper .swiper-button-next,
.logo-carousel-swiper .swiper-button-prev {
  color: var(--color-primary);
}

.logo-carousel-swiper .swiper-pagination-bullet-active {
  background-color: var(--color-primary);
}


#edit-save-order {
  display: none !important;
}

/* Countries Block Styling */
.countries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.countries-grid .country-item {
  flex: 0 0 calc(20%);
  margin-bottom: 0;
}

.countries-grid .country-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-green);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  height: 100%;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  border-radius: 10px;
  font-size: var(--fs-md);
}

.countries-grid .country-item a:hover {
  color: white;
  text-decoration: none;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background-color: var(--color-orange);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .countries-grid .country-item {
    flex: 0 0 calc(33.333% - 14px);
  }
}

@media (max-width: 768px) {
  .countries-grid .country-item {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 576px) {
  .countries-grid .country-item {
    flex: 0 0 100%;
  }
}


/* Numbers Display Styling */

.numbers-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
}

.number-item h1,
.number-item h2,
.number-item h3 {
  margin-bottom: 0;
}

/* Style for the numbers themselves */
.number-item p:first-child {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-green);
  margin-bottom: var(--space-xs);
}

/* Orange color for the second number */
.number-item:nth-child(2) p:first-child {
  color: #f47920; /* Orange color as shown in screenshot */
}

/* Style for the "Impact" text */
.number-item p:last-child {
  font-size: 1.2rem;
  color: var(--color-black);
  margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .number-item {
    flex: 0 0 50%;
  }
  
  .number-item p:first-child {
    font-size: 3rem;
  }
}

@media (max-width: 576px) {
  .number-item {
    flex: 0 0 100%;
  }
}
/* News Highlights Layout */
.news-highlights-container {
  margin-bottom: var(--space-lg);
}

.news-highlights-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.news-highlights-container .card-body {
  padding: 0 !important;
  padding-top: var(--space-sm) !important;
  padding-bottom: var(--space-sm) !important;
}
.recently-item h4 a {
  font-family: var(--bs-font-sans-serif);
}

/* Featured Article */
.featured-article {
  flex: 1;
  min-width: 300px;
}

.featured-article .featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 5px;
}

.featured-article .category-tag {
  display: inline-block;
  background-color: #f8f8f8;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin: 1rem 0;
  font-size: var(--fs-sm);
}

.featured-article h2 {
  font-size: var(--bs-h3-font-size);
  margin-bottom: var(--space-md);
}

.featured-article h2 a {
  color: var(--color-black);
  text-decoration: none;
}
.featured-article .card-body {
  padding: var(--space-md);
}

/* Style for the article summary */
.featured-article .article-summary {
  margin-bottom: 1rem;
  color: var(--color-black);
  font-size: var(--fs-base);
}

/* Style for the date and read time */
.featured-article .article-meta {
  display: flex;
  align-items: center;
  color: var(--color-black);
  font-size: var(--fs-sm);
}

.article-date, .read-time {
  margin-right: var(--fs-xs);
  font-size: var(--fs-sm);
}

/* Recently Section */
.recently-articles {
  flex: 0 0 350px;
}

.recently-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.recently-item {
  display: flex;
  gap: 1rem;
}

.recently-item-image img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.recently-item-content {
  flex: 1;
}

.recently-item .article-meta {
  font-size: 0.8rem;
  color: #777;
}

.recently-item h4 {
  font-size: 1rem;
  margin: 0.3rem 0;
}

.recently-item h4 a {
  color: var(--color-black);
  text-decoration: none;
}

.recently-item h4 a:hover {
  color: var(--color-green);
}

.recently-item p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .news-highlights-layout {
    flex-direction: column;
  }
  
  .recently-articles {
    flex: 0 0 100%;
    margin-top: 2rem;
  }
}



/* Profile */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: start;
}
.profile-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  aspect-ratio: 1 / 1;

}
.profile-card .card-body * {
  color: var(--color-black);
}

/* Project */
/* Project listing styles based on screenshots */
.project-listing {
  margin-bottom: 2rem;
}

.project-card {
  background-color: #fff;
  border-radius: 0.25rem;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.project-content {
  padding: 1.5rem;
}

.meta-info {
  display: flex;
  margin-bottom: 0.75rem;
  color: #666;
  font-size: 0.9rem;
}

.country-region {
  margin-right: 0.5rem;
}

.country-region:after {
  content: '•';
  margin-left: 0.5rem;
  color: #999;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-black);
}

.project-summary {
  margin-bottom: 1.5rem;
  color: var(--color-black);
  line-height: 1.6;
}

.project-section#background img {
  max-width: 100% !important;
  height: auto;
  border-radius: 6px;
}


.btn-view-details {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
}

.btn-view-details:after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.btn-view-details:hover {
  color: var(--color-primary);
}

.btn-view-details:hover:after {
  transform: translateX(3px);
}

/* Event Thumbnail Styling */
.event-thumbnail-card {
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-white);
  box-shadow: var(--shadow-standard);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: var(--space-md);
}

.event-thumbnail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.event-thumbnail-card .card-img-top {
  height: 200px;
  overflow: hidden;
}

.event-thumbnail-card .card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-thumbnail-card:hover .card-img-top img {
  transform: scale(1.05);
}

.event-thumbnail-card .card-body {
  padding: var(--space-sm);
}

.event-thumbnail-card .event-type {
  font-size: var(--fs-sm);
  font-weight: var(--bs-font-bold);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-xxs);
}

.event-thumbnail-card .card-title {
  font-family: var(--bs-font-secondary);
  font-size: var(--bs-h4-font-size);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  color: var(--color-black);
}

.event-thumbnail-card .event-details {
  margin-bottom: var(--space-md);
}

.event-thumbnail-card .event-datetime,
.event-thumbnail-card .event-location {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-xs);
}

.event-thumbnail-card .icon {
  width: 24px;
  height: 24px;
  margin-right: var(--space-xs);
  color: var(--color-primary);
}

.event-thumbnail-card .details {
  flex: 1;
}

.event-thumbnail-card .date,
.event-thumbnail-card .venue {
  font-weight: var(--bs-font-bold);
  color: var(--color-black);
}

.event-thumbnail-card .time,
.event-thumbnail-card .location-details {
  color: var(--color-muted);
}

.event-thumbnail-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.event-thumbnail-card .btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: var(--bs-font-bold);
  text-align: center;
  transition: all 0.3s ease;
}

.event-thumbnail-card .view-details {
  flex: 1 0 100%;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  margin-bottom: var(--space-xs);
}

.event-thumbnail-card .view-details:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.event-thumbnail-card .brief,
.event-thumbnail-card .program {
  flex: 1;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
}

.event-thumbnail-card .brief:hover,
.event-thumbnail-card .program:hover {
  background-color: var(--color-primary-dark);
}

.microsites--section > .container > .row {
   display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;

  /* This ensures leftover items are centered */
  justify-content: center;
}

.microsites--section > .container > .row > .col-md-12 {
  text-align: center;
  display: flex;
  width: 100%;
  max-width: 320px;
  justify-self: center; 
}

.microsites--section a {
  color: var(--color-black);
}
.microsites--section > .container > .row img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: cover;
}
.microsites--section > .container > .row .img-wrapper {i
  width: 100%;
}

.dspace-results .dspace-publication-actions a {
  color: var(--color-green) !important;
  font-size: var(--fs-md) !important;
  font-family: var(--bs-font-tertiary;)
}

.dspace-results .dspace-results--view-details,
.dspace-results .dspace-results--view-details a {
  font-family: var(--bs-font-sans-serif) !important;

}
.dspace-results .dspace-publication-type {
  font-size: var(--fs-xs);
  margin-bottom: var(--space-xs);
}
.dspace-results img {
  border-radius: 10px;
}
.dspace-results--types a,
.dspace-results--types {
  color: var(--color-black) !important;
  font-size: var(--fs-sm) !important;
}
.dspace-publication-item {
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: solid 1px var(--color-gray-light);
}
.dspace-publication-item .dspace-publication-title {
  margin-bottom: var(--space-xs);
}
.dspace-publication-item .dspace-publication-title a {
  color: var(--color-black);
}
.dspace-publication-item .dspace-publication-meta {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-sm);
}
.dspace-publication-item .dspace-publication-description {
  margin-bottom: var(--space-xs);
}
.dspace-publication-item .dspace-publication-actions a {
  font-size: var(--fs-md);
  font-family: var(--bs-font-tertiary);
  color: var(--color-green);
}
.dspace-publication-item .dspace-publication-actions a:hover {
  text-decoration: none;
}
.dspace-publication-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 250px;
    width: 100%;
    background: var(--color-gray-light);
    border-radius: 10px;
}
.dspace-publication-item .dspace-publication-thumbnail {
  width: 100%;
}

@media (max-width: 991.98px) {
  .dspace-results.dspace-publications {
    padding-top: var(--space-md);
  }
  .dspace-publication-item .dspace-publication-thumbnail {
    margin-bottom: var(--space-sm);
  }
}

.persons-archive .views-exposed-form .js-form-item, 
.persons-archive .views-exposed-form .form-actions {
  padding-left: var(--space-sm);
}
.persons-archive .views-exposed-form > .d-flex {
  justify-content: end;
}
#TableJobs,
#div-srcparam1 {
  margin-top: var(--space-lg);
}
#SRCLogLegend,
#saintro {
  display: none !important;
}

#TableJobs a {
  color: var(--color-black) !important;
  font-size: var(--fs-base) !important;
  font-weight: 500;
}
#TableJobs th a {
  color: var(--color-white) !important;
  font-size: var(--fs-base) !important;
  font-weight: 500;
  font-family: var(--bs-font-tertiary);
}
.irri25-talentlink-list .strapline {
    font-style: normal;
    color: var(--color-muted, #888);
    font-size: var(--fs-sm);
}
.linkbracket {
  display: none !important;
}
#div-srcparam3 {
  margin-bottom: var(--space-sm);
}
#rpd-content #div-srcparam4 {
  display: none;
}
#rpd-content .SRCLogSet input[type=text],
#rpd-content .SRCLogSet select {
  border: solid 1px var(--color-black);
  border-radius: var(--border-radius);
  width: 100% !important;
}
#rpd-content .SA-ButtonFace[type=Submit] {
 background: var(--color-green);
 color: var(--color-white);
 border: solid 1px var(--color-green);
 
 padding: var(--space-xxs) var(--space-sm) !important; 
 border-radius: var(--border-radius);
 margin-bottom: var(--space-xs);
}

#bottomact {
    margin-bottom: var(--space-xl);
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
} 

.jobs-table-column {
 max-width: 100%;
 overflow: auto;
}

/**
 * Project content type styling for IRRI25 theme
 */

/* Project banner */


.sdg-icons .sdg-scroll-container {
  display: flex;
  flex-wrap: wrap;
  
  /* The magic: let it scroll horizontally if wider than its parent */
  overflow: visible;

  /* Nice touch for phones / trackpads */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  /* Optional spacing */
  /*gap: 1rem;
  padding-block: 0.5rem;
  scroll-snap-type: x mandatory;*/
}

.sdg-icon,
.sgd-icon-item {
  width: auto;
  height: auto;
  transition: transform 0.3s ease;
  text-align: center;
  position: relative;
}

.sdg-icon:hover,
.sgd-icon-item:hover {
  transform: scale(1.05);
}

.sdg-icon img,
.sgd-icon-item img,
.sdg-icon-image,
.sgd-icon-image {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.5rem;
}

.sdg-icon img:hover,
.sgd-icon-item img:hover,
.sdg-icon-image:hover,
.sgd-icon-image:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.sdg-icon-title,
.sgd-icon-title {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--color-primary-dark);
  font-weight: var(--bs-font-normal);
  line-height: 1.2;
  font-family: var(--bs-font-sans-serif);
  text-align: center;
  max-width: 80px;
  word-wrap: break-word;
  hyphens: auto;
}

.sdg-icon-link,
.sgd-icon-link {
  text-decoration: none !important;
  scroll-snap-align: start;
  color: inherit;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sdg-icon-link:hover,
.sgd-icon-link:hover {
  opacity: 0.8;
  color: var(--color-primary);
  text-decoration: none !important;
}

.sdg-icon-link:hover .sdg-icon-title,
.sgd-icon-link:hover .sgd-icon-title {
  color: var(--color-primary);
}

.sdg-icon-wrapper,
.sgd-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sdg-scroll-container::-webkit-scrollbar {
  height: 0.2rem;
}
.sdg-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}
.sdg-scroll-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 99px;
}
/* Project-specific SDG styling */

/* Project-specific SDG styling */
.node--project .sdg-icons {

}

.node--project .sdg-icon,
.node--project .sgd-icon-item {
}

.node--project .sdg-icon:hover,
.node--project .sgd-icon-item:hover {
  background: var(--color-tertiary);
  box-shadow: 0 4px 12px rgba(4, 141, 91, 0.15);
}

/* SDG Responsive Design */
@media (max-width: 767.98px) {
  .sdg-icons {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.75rem;
  }
  
  .sdg-icon img,
  .sgd-icon-item img,
  .sdg-icon-image,
  .sgd-icon-image {
    width: 60px;
    height: 60px;
  }
  
  .sdg-icon-title,
  .sgd-icon-title {
    font-size: 0.75rem;
    max-width: 60px;
  }
  
  .node--project .sdg-icons {
    padding: 1rem;
  }
}

@media (max-width: 575.98px) {
  .sdg-icons {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 0.5rem;
  }
  
  .sdg-icon img,
  .sgd-icon-item img,
  .sdg-icon-image,
  .sgd-icon-image {
    width: 50px;
    height: 50px;
  }
  
  .sdg-icon-title,
  .sgd-icon-title {
    font-size: 0.7rem;
    max-width: 50px;
    margin-top: 0.25rem;
  }
}
.node--project .project-lead-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--color-light);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-primary-soft);
}

.node--project .project-lead-info {
  flex: 1;
}
.node--project .lead-info {
  text-align: left;
}
.node--project .project-lead-info img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.node--project .project-lead-info .field--name-title {
  font-weight: var(--bs-font-bold);
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
  font-size: var(--fs-md);
  font-family: var(--bs-font-tertiary);
}

.node--project .project-lead-info .field--name-field-job-title {
  font-size: var(--fs-base);
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  font-weight: var(--bs-font-normal);
  font-family: var(--bs-font-sans-serif);
}

.node--project .project-lead-info .field--name-field-organization {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  font-style: italic;
  font-family: var(--bs-font-sans-serif);
}

/* Countries list */
.node--project .country-list {
}
.node--project .project-sidebar ul > li {
  margin-bottom: var(--space-xxs);
}
.node--project .project-sidebar ul > li a {
  color: var(--color-black);
  display: block;
}
.node--project .project-sidebar ul > li a:hover {
  color: var(--color-green);
  text-decoration: underline;
}
.node--project .country-item a {
  padding: 0;
  text-align: left;
}
.node--project .country-item a:hover {
  background-color: var(--color-white);
}

/* Partners list */
.node--project .partners-list {
}

.node--project .partner-item {
}

.node--project .partner-item:hover {

}


/* Objectives section */
.node--project #objectives ul {

}
/* Status styling */
.node--project .project-status .field--name-field-status {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-green);
  color: var(--color-white);
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(5, 130, 84, 0.3);
}

/* Related sections */
.node--project .related-projects,
.node--project .related-articles,
.node--project .events {
  background: var(--color-tertiary);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
  border: 1px solid var(--color-primary-soft);
}

.node--project .related-projects h2,
.node--project .related-articles h2,
.node--project .events h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-primary);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  
}

@media (max-width: 767.98px) {
  
}

@media (max-width: 575.98px) {
  
}

.units-section .block-inline-blocklink-image {
  margin-bottom: var(--space-m);
}

.profile-card .card-img-top{
  margin-bottom: var(--space-sm);
}

@media (max-width: 767.98px) {
  .irri-hero-banner__container {
    padding-left: 0;
    padding-right: 0;
  }
  .irri-hero-banner .banner-bg-image {
    padding-bottom: 133.33%;
  }

}
.related-news-view .views-exposed-form {
  margin-bottom: var(--space-md);
}
.related-news-view .views-exposed-form .js-form-item,
.related-news-view .views-exposed-form .form-actions{
  margin-left: var(--space-xs);
}
.related-news-view .views-exposed-form > .d-flex {
 justify-content: end;
}
.our-experts-sidebar {
  padding: 0 !important;
  background-color: var(--color-white);
  border: none !important
}
.our-experts-sidebar h3 {
  border-bottom: none !important;
}

.all-projects-sidebar {
  padding: 0 !important;
  background-color: var(--color-white);
  border: none !important;
  margin-top: var(--space-md);
}
.irri-project-title a {
  color: var(--color-black) !important;
  font-family: var(--bs-font-secondary) !important;
  font-weight: normal;
}


/* ========================================
   PROJECT PAGE SIDEBAR STYLES
   ======================================== */

/* Project sidebar container */
.project-sidebar {
}

/* Sidebar section styling */
.sidebar-section {
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

/* Sidebar titles */
.node--project .sidebar-title {
  color: var(--color-black);
}

/* Sidebar content container */

/* Project Details Section */
.project-details-section .detail-item {
  margin-bottom: 15px;
}

.project-details-section .detail-item:last-child {
  margin-bottom: 0;
}

.project-details-section .detail-label {
  font-family: var(--bs-font-tertiary);
  color: var(--color-black);
  display: block;
  font-size: var(--fs-m);
}

.project-details-section .detail-value {
  color: #555;
  line-height: 1.4;
}

/* Project Lead Section */
.project-lead-section .project-lead-profile {
  text-align: center;
}

.project-lead-section .project-lead-profile img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.project-lead-section .project-lead-profile .field--name-title,
.project-lead-section .project-lead-profile .field--name-field-person-name {
  color: var(--color-green);
}

.project-lead-section .project-lead-profile .field--name-field-person-role {
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

/* SDG Section */
.project-sdg-section .sdg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-items: center;
}

.project-sdg-section .sdg-grid .field__item {
  text-align: center;
}

.project-sdg-section .sdg-grid img {
  width: 100%;
  height: auto;
}

.project-sdg-section .sdg-grid img:hover {
  transform: scale(1.05);
}

/* Project image in sidebar */
.project-image-section .project-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.project-image-section .project-image > .field {
  float: none;
}

/* Responsive styles */
@media (max-width: 768px) {
  .project-sidebar {
    margin-bottom: 20px;
    padding: 15px;
  }
  
  .sidebar-section {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .project-sdg-section .sdg-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .project-sdg-section .sdg-grid img {
  }
}

@media (max-width: 576px) {
  .project-sdg-section .sdg-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sidebar-title {
    font-size: 1rem;
  }
}


.site-footer .block {
  margin-bottom: 0;
}
.region-footer-third,
.region-footer-fourth {
  display: flex;
  flex-direction: row;
}
.region-footer-third > *,
.region-footer-fourth > * {
  flex: 0 0 50%;
}
.site-footer #block-irri25-footer .nav-item {
  width: auto;
}
.region-footer-fifth ul .nav-item {
  text-align: center;
}
.region-footer-fifth ul .nav-item a {
  padding-left: 0;
  font-size: var(--fs-sm);
}

.region-footer-sixth {
  display: flex;
  flex-direction: column;
  border-top: solid 1px var(--color-black);
}
.region-footer-sixth .content * {
 font-size: var(--fs-sm);
}
.region-footer-sixth #block-irri25-footer {
 order: 1;
}
.region-footer-sixth #block-irri25-footer .nav {
  justify-content: center;
  font-size: var(--fs-sm);
}
.region-footer-sixth #block-irri25-legalnotice {
 order: 2;
}

@media (min-width: 992px) {
  /* desktop-ish layouts start here */
  .region-footer-third,
  .region-footer-fourth {
    flex-direction: column;
  }
  .region-footer-third > *,
  .region-footer-fourth > * {
    flex: 1 1 auto;
  }
  .region-footer-fifth ul .nav-item {
   text-align: left;
  }
  .region-footer-sixth {
    border-top: solid 1px var(--color-black);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  
  .region-footer-sixth #block-irri25-footer {
    order: 2;
  }
  .region-footer-sixth #block-irri25-legalnotice {
    order: 1;
  }
  .site-footer .region-footer-sixth .nav .nav-item a {
    padding-right: 0;
  }
 

}

.card.card-horizontal .field--type-entity-reference {
  margin-bottom: 0;
}
.card.card-horizontal .row {
  align-items: center;
}
.card.card-vertical .field--name-field-card-image {
  margin-bottom: 0;
} 

iframe.jobs-embed {
 width: 100%;
 height: 600px;
}

.related-projects {
  padding-block: 2rem;
}

.related-projects .section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,.15);
  padding-bottom: .75rem;
}

.projects-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.node--view-mode-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: .5rem;
  display: block;
}

.node--view-mode-card h3 {
  margin-top: .75rem;
  font-size: 1.125rem;
  font-weight: 700;
}
.project-view-card .field--type-image {
 width: 100%;
}
.project-view-card img {
 border-radius: 5px;
 object-fit: cover;
 width: 100%;
 height: 350px;
}
.project-view-card .field--name-title {
 font-size: var(--fs-lg);
 line-height: 120%;
}
.block-views-blockaggregator-sources-aggregator-feed-block > h2 {
 font-size: var(--fs-md);
 font-family: var(--bs-font-primary);
 color: var(--color-black);
 padding-bottom: var(--space-sm);
 margin-bottom: var(--space-md);
 border-bottom: solid 1px #BEBEBE;
}
.aggregator--rice-today-feed .aggregator-feed h2 {
 display: none;
} 

.aggregator--rice-today-feed .aggregator-feed .aggregator-item {
  margin-bottom: var(--space-md);
}

.aggregator--rice-today-feed .aggregator-feed .aggregator-item .feed-item-title {
  font-size: var(--fs-md);
  font-family: var(--bs-font-primary);
  color: var(--color-black);
}
.aggregator--rice-today-feed .aggregator-feed .aggregator-item .feed-item-title a {
 color: var(--color-black);
 font-family: var(--bs-font-tertiary);
}
.aggregator--rice-today-feed .aggregator-feed .aggregator-item .feed-item-title a:hover {
  color: var(--color-primary);
}
.aggregator--rice-today-feed .aggregator-feed .aggregator-item > * {
  display: none;
}
.aggregator--rice-today-feed .aggregator-feed .aggregator-item > .feed-item-title {
 display: block;
}
.aggregator-feed > .aggregator-item:not(:nth-child(-n+6)) {
    display: none;
}
.news-highlights-horizontal--article img {
 border-radius: 0;
 border-top-left-radius: 10px;
 border-bottom-left-radius: 10px;
 width: 45%;
 height: 100%;
 top: 0;
 left: 0;
 object-fit: cover;
 position: absolute;
}
.news-highlights-horizontal--article .row > * {
 flex: 1 1 0; 
}
.news-highlights-horizontal--article .card-title,
.news-highlights-horizontal--article .card-title a {
 font-size: var(--fs-base);
 font-family: var(--bs-font-tertiary);
}

.news-highlights-horizontal--article-img .field--name-field-main-image {
 margin-right: 0;
}
.news-thumbnail-card .card-title {
  line-height: 1.5;
}
#edit-created-wrapper {
 margin-bottom: 0 !important;
}
#edit-created-wrapper .fieldset-wrapper {
 display: flex;
}
#edit-created-wrapper legend {
 display: none;
}
.dot-separator {
  position: relative;
}
.dot-separator:after {
 content: '•';
 font-size: var(--fs-md);
 position: absolute; 
 color: inherit;
 top: 50%;
 right: -11px;
 transform: translateY(-50%);
}

table.gsc-input {
 margin: 0 !important;
}
.gsc-search-button,
.gsib_a,
.gsc-input {
 background-color: var(--color-white);
}
button.gsc-search-button {
      height: 40px;
}
.gsc-results .gsc-cursor-box .gsc-cursor-page {
  border-color: var(--color-white) !important;
  background-color: var(--color-white) !important;
  color: var(--color-black) !important;
}
table.gsc-search-box td.gsc-input {
  padding-left: 0;
}

.featured-bottom .container {
 max-width: none !important;
 background-color: var(--color-yellow);
}
@media (min-width: 1200px) {
.featured-bottom .container .region {
  max-width: var(--container-xl);
  margin: 0 auto;
}

}
