/* The default top/bottom margins for p elements with this theme are massive */
p {
    margin-top: 5px !important;    
    margin-bottom: 5px !important;
}

/* Get rid of the theme's default teardrop background for the off canvas component */
.dialog-off-canvas-main-canvas {
    background-color: white;
}

.page-wrapper {
margin: auto;
}
.container.site-header__inner__container {
    background: #1186a5;
}
div#header-nav {
    background: #1186a5;
    color:#ffff;
}
div#header-nav a {
    color:#ffff;
}
span.primary-nav__menu-link-inner.primary-nav__menu-link-inner--level-2 {
    color: #00467f;
}
span.icon--menu-toggle {
    background-color: #1186a5 !important;
}
button.block-search-wide__button {
    color: #ffff !important;
}
h1, h2, h3, h4, h5, h6{
color:#00467f;
}

/* BEGIN CSS FOR IEA SITE */

/* HEADER INFORMATION */
.container.site-header__inner__container {
    background: #1186a5  !important;
}

.site-branding {
    background-image: none !important;
}
.block-nsl-olivero-sub-theme-branding {
    background: #1186a5  !important;    
}

#header-nav {
    background: #1186a5 !important;  
}

/* Default state (menu collapsed) */
.mobile-nav-button .mobile-nav-button__icon,
.mobile-nav-button .mobile-nav-button__icon::before,
.mobile-nav-button .mobile-nav-button__icon::after {
    border-top-color: white;
}

.mobile-nav-button .mobile-nav-button__label {
    color: white;
}

/* When menu is expanded, switch to black */
.mobile-nav-button[aria-expanded="true"] .mobile-nav-button__icon::before,
.mobile-nav-button[aria-expanded="true"] .mobile-nav-button__icon::after {
    border-top-color: black;
}

.mobile-nav-button[aria-expanded="true"] .mobile-nav-button__label {
    color: black;
}

/* When menu is collapsed again, switch back to white */
.mobile-nav-button[aria-expanded="false"] .mobile-nav-button__icon::before,
.mobile-nav-button[aria-expanded="false"] .mobile-nav-button__icon::after {
    border-top-color: white;
}

.mobile-nav-button[aria-expanded="false"] .mobile-nav-button__label {
    color: white;
}

/* Vertically aLign the mobile menu to the site image a little better */
.mobile-nav-button {
    padding-bottom:40px;
}

.mobile-nav-button:focus {
    outline: solid 0px;
}

/* TOP BANNER IMAGE AND OVERLAID TEXT */
.region--hero {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0; /* Remove extra gap below */
}

.region--hero .wide-content {
    margin-block-end: 0px;
}

#block-nsl-olivero-sub-theme-northeastbanner,
#block-nsl-olivero-sub-theme-hawaiibanner,
#block-nsl-olivero-sub-theme-gulfofmexicobanner,
#block-nsl-olivero-sub-theme-alaskabanner,
#block-nsl-olivero-sub-theme-errorbanner,
#block-nsl-olivero-sub-theme-newsbanner,
#block-nsl-olivero-sub-theme-publicationbanner,
#block-nsl-olivero-sub-theme-ecosystemstatusreportsbanner,
#block-nsl-olivero-sub-theme-projectsbanner,
#block-nsl-olivero-sub-theme-partnersbanner,
#block-nsl-olivero-sub-theme-regionsbanner,
#block-nsl-olivero-sub-theme-aboutieabanner,
#block-nsl-olivero-sub-theme-californiacurrentbanner {
    position: relative;
    width: 100%;
    margin-bottom: 0; /* Ensures no gap below the banner */
    max-width:1350px;
}

#block-nsl-olivero-sub-theme-northeastbanner h2,
#block-nsl-olivero-sub-theme-hawaiibanner h2,
#block-nsl-olivero-sub-theme-gulfofmexicobanner h2,
#block-nsl-olivero-sub-theme-alaskabanner h2,
#block-nsl-olivero-sub-theme-errorbanner h2,
#block-nsl-olivero-sub-theme-newsbanner h2,
#block-nsl-olivero-sub-theme-publicationbanner h2,
#block-nsl-olivero-sub-theme-ecosystemstatusreportsbanner h2,
#block-nsl-olivero-sub-theme-projectsbanner h2,
#block-nsl-olivero-sub-theme-partnersbanner h2,
#block-nsl-olivero-sub-theme-regionsbanner h2,
#block-nsl-olivero-sub-theme-aboutieabanner h2,
#block-nsl-olivero-sub-theme-californiacurrentbanner h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: black;
    font-size: 3vw; /* Default font size based on viewport width */
    line-height: 1.2em; /* Ensures proper spacing */
    max-width: 80%; /* Prevents the title from stretching too far */
}

/* Larger font and line height on big screens (e.g., desktops) */
@media (min-width: 1200px) {
    #block-nsl-olivero-sub-theme-northeastbanner h2,
    #block-nsl-olivero-sub-theme-hawaiibanner h2,
    #block-nsl-olivero-sub-theme-gulfofmexicobanner h2,
    #block-nsl-olivero-sub-theme-alaskabanner h2,
    #block-nsl-olivero-sub-theme-errorbanner h2,
    #block-nsl-olivero-sub-theme-newsbanner h2,
    #block-nsl-olivero-sub-theme-publicationbanner h2,
    #block-nsl-olivero-sub-theme-ecosystemstatusreportsbanner h2,
    #block-nsl-olivero-sub-theme-projectsbanner h2,
    #block-nsl-olivero-sub-theme-partnersbanner h2,
    #block-nsl-olivero-sub-theme-regionsbanner h2,
    #block-nsl-olivero-sub-theme-aboutieabanner h2,
    #block-nsl-olivero-sub-theme-californiacurrentbanner h2 {
        font-size: 48px;
        line-height: 1.3em;
    }
}

/* Medium screens (tablets) */
@media (max-width: 1199px) {
    #block-nsl-olivero-sub-theme-northeastbanner h2,
    #block-nsl-olivero-sub-theme-hawaiibanner h2,
    #block-nsl-olivero-sub-theme-gulfofmexicobanner h2,
    #block-nsl-olivero-sub-theme-alaskabanner h2,
    #block-nsl-olivero-sub-theme-errorbanner h2,
    #block-nsl-olivero-sub-theme-newsbanner h2,
    #block-nsl-olivero-sub-theme-publicationbanner h2,
    #block-nsl-olivero-sub-theme-ecosystemstatusreportsbanner h2,
    #block-nsl-olivero-sub-theme-projectsbanner h2,
    #block-nsl-olivero-sub-theme-partnersbanner h2,
    #block-nsl-olivero-sub-theme-regionsbanner h2,
    #block-nsl-olivero-sub-theme-aboutieabanner h2,
    #block-nsl-olivero-sub-theme-californiacurrentbanner h2 {
        font-size: 36px;
        line-height: 1.3em;
    }
}

/* Small screens (mobile) */
@media (max-width: 768px) {
    #block-nsl-olivero-sub-theme-northeastbanner h2,
    #block-nsl-olivero-sub-theme-hawaiibanner h2,
    #block-nsl-olivero-sub-theme-gulfofmexicobanner h2,
    #block-nsl-olivero-sub-theme-alaskabanner h2,
    #block-nsl-olivero-sub-theme-errorbanner h2,
    #block-nsl-olivero-sub-theme-newsbanner h2,
    #block-nsl-olivero-sub-theme-publicationbanner h2,
    #block-nsl-olivero-sub-theme-ecosystemstatusreportsbanner h2,
    #block-nsl-olivero-sub-theme-projectsbanner h2,
    #block-nsl-olivero-sub-theme-partnersbanner h2,
    #block-nsl-olivero-sub-theme-regionsbanner h2,
    #block-nsl-olivero-sub-theme-aboutieabanner h2,
    #block-nsl-olivero-sub-theme-californiacurrentbanner h2 {
        font-size: 22px;
        line-height: 1.0em; /* More spacing for readability */
        padding: 5px 10px; /* Reduce padding */
    }
}

#block-nsl-olivero-sub-theme-northeastbanner .wide-content,
#block-nsl-olivero-sub-theme-hawaiibanner .wide-content,
#block-nsl-olivero-sub-theme-gulfofmexicobanner .wide-content,
#block-nsl-olivero-sub-theme-alaskabanner .wide-content,
#block-nsl-olivero-sub-theme-errorbanner .wide-content,
#block-nsl-olivero-sub-theme-newsbanner .wide-content,
#block-nsl-olivero-sub-theme-publicationbanner .wide-content,
#block-nsl-olivero-sub-theme-ecosystemstatusreportsbanner .wide-content,
#block-nsl-olivero-sub-theme-projectsbanner .wide-content,
#block-nsl-olivero-sub-theme-partnersbanner .wide-content,
#block-nsl-olivero-sub-theme-regionsbanner .wide-content,
#block-nsl-olivero-sub-theme-aboutieabanner .wide-content,
#block-nsl-olivero-sub-theme-californiacurrentbanner .wide-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

#block-nsl-olivero-sub-theme-northeastbanner .wide-content img,
#block-nsl-olivero-sub-theme-hawaiibanner .wide-content img,
#block-nsl-olivero-sub-theme-gulfofmexicobanner .wide-content img,
#block-nsl-olivero-sub-theme-alaskabanner .wide-content img,
#block-nsl-olivero-sub-theme-errorbanner .wide-content img,
#block-nsl-olivero-sub-theme-newsbanner .wide-content img,
#block-nsl-olivero-sub-theme-publicationbanner .wide-content img,
#block-nsl-olivero-sub-theme-ecosystemstatusreportsbanner .wide-content img,
#block-nsl-olivero-sub-theme-projectsbanner .wide-content img,
#block-nsl-olivero-sub-theme-partnersbanner .wide-content img,
#block-nsl-olivero-sub-theme-regionsbanner .wide-content img,
#block-nsl-olivero-sub-theme-aboutieabanner .wide-content img,
#block-nsl-olivero-sub-theme-californiacurrentbanner .wide-content img {
    display: block;
    width: 100%;
    height: auto;
}
      
/* SECONDARY MENU CSS */

/* General menu styles */
.menu--west-hawaii,
.menu--gulf-of-mexico-menu,
.menu--california-current-menu,
.menu--partners-menu,
.menu--alaska-menu,
.menu--about-iea,
.menu--northeast-menu {
    background-color: #1186a5; /* Blue background */
    padding: 10px;
    margin-top: 0; /* Ensures it directly touches the banner */
    max-width:1350px;
}

.menu--west-hawaii .menu__link,
.menu--gulf-of-mexico-menu .menu__link,
.menu--california-current-menu .menu__link,
.menu--partners-menu .menu__link,
.menu--alaska-menu .menu__link,
.menu--about-iea .menu__link,
.menu--northeast-menu .menu__link {
    color: white; /* Set text color */
    text-decoration: none; /* Remove underlines */
    padding: 8px 12px; /* Reduce padding for tighter spacing */
    display: block; /* Ensure links take full space */
    text-align: left;
}

/* Remove bullets from list */
.menu--west-hawaii ul,
.menu--gulf-of-mexico-menu ul,
.menu--california-current-menu ul,
.menu--partners-menu ul,
.menu--alaska-menu ul,
.menu--about-iea ul,
.menu--northeast-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Desktop view - Display menu items in a row */
@media (min-width: 768px) {
    .menu--west-hawaii ul,
    .menu--gulf-of-mexico-menu ul,
    .menu--california-current-menu ul,
    .menu--partners-menu ul,
    .menu--alaska-menu ul,
    .menu--about-iea ul,
    .menu--northeast-menu ul {
        display: flex; /* Arrange items in a row */
        justify-content: flex-start; /* Align items to the left */
        gap: 15px; /* Add spacing between items */
    }

    .menu--west-hawaii .menu__item,
    .menu--gulf-of-mexico-menu .menu__item,
    .menu--california-current-menu .menu__item,
    .menu--partners-menu .menu__item,
    .menu--alaska-menu .menu__item,
    .menu--about-iea .menu__item,
    .menu--northeast-menu .menu__item {
        display: inline-block; /* Ensure proper alignment */
    }
}

/* Mobile view - Display menu items in a stacked list */
@media (max-width: 767px) {
    .menu--west-hawaii .menu__item,
    .menu--gulf-of-mexico-menu .menu__item,
    .menu--california-current-menu .menu__item,
    .menu--partners-menu .menu__item,
    .menu--alaska-menu .menu__item,
    .menu--about-iea .menu__item,
    .menu--northeast-menu .menu__item {
        display: block; /* Stack items */
        text-align: left; /* Left-align text */
        margin: 2px 0; /* Reduce vertical spacing between items */
    }

    .menu--west-hawaii .menu__link,
    .menu--gulf-of-mexico-menu .menu__link,
    .menu--california-current-menu .menu__link,
    .menu--partners-menu .menu__link,
    .menu--alaska-menu .menu__link,
    .menu--about-iea .menu__link,
    .menu--northeast-menu .menu__link {
        padding: 3px 3px; /* Reduce padding for tighter spacing */
        text-align: left;
    }
}

/* KNOCK OUT AUTHOR AND DATE FROM SEARCH RESULTS */
li .search-result__meta {
    display: none;
}

/* REDUCE PADDING ON TOP OF MAIN CONTENT AND BELOW MENU/BANNER IMAGE */
.main-content__container {
    padding-block-start: 30px;
}

a {
    color: #1186a5;
} 

/* BEGINNING OF CSS CLASSES USED ONLY IN LAYOUT BUILDER */

.blue-row {
    background-color: #1186a5; /* first old value #1186A5;  old value #1371B5; */
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top:50px;
    margin-bottom:20px;
}

.blue-row p {
    color: #fff;
    font-family: metropolis, sans-serif;
    font-size: 20px;
}

.icon-front p {
    font-size: 17px;
    margin-block-start:5px
}

.icon-front .block__content {
    display: flex;
    flex-direction: column; /* Stack image and text vertically */
    align-items: center; /* Center horizontally */
    text-align: center; /* Ensure the text itself is centered */
}

.image-center {
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

.left_column {
    padding-top: 10px;
    padding-right:10px;
}

.padding-bottom {
    padding-bottom:10px;
}

.right_column {
    padding-top: 10px;
    padding-left:10px;
}

.right_column_image {
    padding-top: 10px;
    padding-left:10px;
    max-width:40%;
}

.section_padding_top {
	padding-top: 20px;
}

.shaded_right_column {
    background-color: #c1ecf781; /* old value #e6f9ff; */
    padding: 10px;
}

.text-center { 
    text-align: center; 
}

.layout--twocol-section > .layout__region {
    overflow: hidden;
}

/* ENDING OF CSS CLASSES USED ONLY IN LAYOUT BUILDER */

/* CHANGE PADDING AND FONT OF TEXT ELEMENTS */
.text-content {
    font-size: 15px;
    font-family: metropolis, sans-serif;
    line-height: 25px;
    margin-block-start: 0px ;
    margin-block-end: 0px  !important;
}

.text-content h1,
.text-content h2,
.text-content h3,
.text-content h4,
.text-content h5,
.text-content h6 {
    margin-block-start: 0px;
    margin-block-end: 0px;
}

/* two_column_width */
.layout--twocol-section > .layout__region {
    overflow: hidden;
}

/* REDUCE PADDING AT END OF PAGE */
#block-nsl-olivero-sub-theme-content {
    margin-block-end: 0px;
}

.region--content {
    margin-block-end: 0px !important;
    }

.node-content {
    padding-block-end: 0px;
}

@media (min-width: 62.5rem) {
    .node__content {
        padding-block-end: 0px;
    }
}


/* CSS FOR FOOTER  */
/* REDUCE FOOTER PADDING */
.site-footer__inner {
padding-block-end: 0px;
    padding-block-start: 20px;
}

.region--footer_top__inner{
    margin-block-end:20px
}

.footer-container {
    display: flex;
    justify-content: space-between; /* Places items side by side */
    align-items: center; /* Aligns them vertically */
    gap: 30px; /* Adjust spacing between columns */
    flex-wrap: wrap; /* Ensures responsiveness */
    text-align: center; /* Centers text */
}

.footer-logo {
    display: flex;
    flex-direction: column; /* Keeps the logo and text stacked */
    align-items: center; /* Centers logo and text */
    flex: 1; /* Allows it to take equal space */
}

.footer-text {
    margin-top: 5px; /* Space between image and text */
    font-style: italic;
    margin-block-start: 5px !important;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    flex: 2; /* Makes the links section wider than the logo */
}

.footer-links a {
    text-decoration: none;
    color: #ffffff; /* Adjust color as needed */
}

/* REDUCE VERTICAL GAPS BETWEEN BLOCKS */
.layout--onecol,
.layout--twocol,
.layout--threecol {
    margin-block-end: 0px;
}

.view-content{
    row-gap: 20px;
}

/* REDUCE VERTICAL GAPS IN VIEWS */
.field-content {
    margin-block:15px;
}

/* REDUCE VERTICAL GAPS BELOW TITLE */
#block-nsl-olivero-sub-theme-page-title{
    margin-block-end:0px ;
}

/* MAKE PAGE TITLE RESPONSIVE TO SCREEN SIZE */
@media (min-width: 1200px) {
    .page-title{
        font-size: 40px;
    }
}

@media (max-width: 1199px) {
    .page-title{
        font-size: 30px;
    }
}          
    
@media (max-width: 768px) {
    .page-title{
        font-size: 25px;
    }
}

/* REDUCE HORIZONTAL PADDING BETWEEN CONTENT AND PAGE EDGE  */
#content {
    grid-template-columns: 0;
  }

  .grid-full {display:block;}

/* RESPONSIVE WIDTH FOR IFRAMES, SO THAT THE IFRAME WIDTH DOESN'T EXCEED THE PAGE WIDTH REGARDLESS OF DEVICE */
.embed-responsive {
    position: relative;
    width: 100%; /* Make it responsive */
    padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Make iframe scale with container */
    height: 100%;
}

/* REDUCE VERTICAL PADDING ON PUBLICATION PAGES BETWEEN FORM CONTROLS AND LIST OF PUBLICATIONS */
.view {
    gap:0px;
}

/* H3 STYLE USED FOR PUBLICATION TITLES */
.h3-style {
    font-family: metropolis, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    height: 36px;
    hyphens: auto;
    line-height: 36px;
    color: #00467f;
    margin-bottom: 50px;
}

/* PROPERTIES FOR LINK BUTTON ON PUBLICATION PAGES */
.publication-link .block__content {
    background-color: #1186a5;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
}

.publication-link .block__content a{
    color:white;
    text-decoration:none;
    font-size:larger;
}

/* PROPERTIES FOR SPACING ON PUBLICATION PAGES */
.block-field-blocknodepublication-content-typefield-publication-date .field,
.block-field-blocknodepublication-content-typefield-authors .field,
.block-field-blocknodepublication-content-typefield-abstract1 .field,
.block-field-blocknodepublication-content-typefield-journal .field,
.block-field-blocknodepublication-content-typefield-doi .field,
.block-field-blocknodepublication-content-typefield-region .field {
    margin-block:10px !important;
}

/* PROPERTIES FOR FRONT PAGE TITLE */
.front-page-title {
    padding-bottom: 40px;
    text-align: center;
}

/* CHANGE THE FONT FOR THE SEARCH BOX TO MATCH THE REST OF THE SITE */
#search-block-form input,
#search-block-form--2 input {
    font-family: metropolis, sans-serif;
}