/*
 Theme Name:   The Hibbert Trust
 Theme URI:    https://www.feisar.uk
 Description:  GP child theme for The Hibbert Trust
 Author:       Julian Wright
 Author URI:   https://www.feisar.uk
 Template:     generatepress
 Version:      1.0
*/

:root {
    --blue: #267b95;
    --green: #39AEA8;
    --orange: #ef775d;
    --pink: #b03a60;
    --darkblue: #174a59;
    --darkgreen: #226865;
    --darkorange: #b52f12;
    --darkpink: #6a233a;
}
.site-logo {
    position: absolute;
    top: 20px;

}

.home .hero-img {
    height: 400px;
}

.site-logo a {
    display: block;
    cursor: pointer;
    transition: transform .2s;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
    border-radius: 50%;
}

.site-logo a:hover {
    transform: scale(0.9);
    box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
}

.site-logo img {
    -webkit-user-select: none !important;
}

h2.gb-text > a {
    text-decoration: none;
}

.breadcrumbs {
    font-size: 80%;
    height: 32px;
    display: flex;
    align-items: center;
    line-height: 1;
}

.breadcrumbs a {
    color:white;
    opacity: 0.8;
    text-decoration: none;
}

.breadcrumbs a:hover {
    opacity: 1;
}

/* make sub menus auto width */
.main-navigation ul ul {
    width: auto;
    white-space: nowrap;
}

/* make sub-menus with children arrow not fall below */
nav ul ul .menu-item-has-children .dropdown-menu-toggle {
    display: inline;
    float: none;
}

a.breadcrumb {
    height: 32px;
    align-items: center;
    display: flex;

    padding-right: 2.5em;
    background-image: url('data:image/svg+xml,<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 201 100"><path fill="url(%23a)" d="M144 100H0V0h144l56 50z"/><defs><linearGradient id="a" x1="0" x2="1" y1="0" y2="0" gradientTransform="matrix(185 0 0 370 16 50)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23000" stop-opacity="0"/><stop offset="1" stop-color="%23000" stop-opacity="0.2"/></linearGradient></defs></svg>');
    background-image: url('data:image/svg+xml,<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" clip-rule="evenodd" viewBox="0 0 98 149"><path fill="url(%23a)" d="M97 74 23 0 0 23l51 51z"/><path fill="url(%23b)" d="m97 74-74 75-23-23 51-52z"/><defs><linearGradient id="a" x1="0" x2="1" y1="0" y2="0" gradientTransform="matrix(16 -16 -174 -174 40 48)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-opacity="0"/><stop offset="1" stop-opacity=".2"/></linearGradient><linearGradient id="b" x1="0" x2="1" y1="0" y2="0" gradientTransform="matrix(16 16 -174 174 40 100)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-opacity="0"/><stop offset="1" stop-opacity=".2"/></linearGradient></defs></svg>');
    background-size: 50px 50px;
    background-position: center right;
    background-repeat: no-repeat;

}
.breadcrumbs__separator {
    color: white;
}
.breadcrumb--first::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='.85em' viewBox='0 0 576 512'%3E%3Cpath fill='white' d='M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40h-16c-1.1 0-2.2 0-3.3-.1-1.4.1-2.8.1-4.2.1H392c-22.1 0-40-17.9-40-40v-88c0-17.7-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32v88c0 22.1-17.9 40-40 40h-55.9c-1.5 0-3-.1-4.5-.2-1.2.1-2.4.2-3.6.2h-16c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9.1-2.8v-69.6H32c-18 0-32-14-32-32.1 0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7l255.4 224.5c8 7 12 15 11 24'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    font-size: 1rem; /* Reset font-size for the icon */
    vertical-align: middle;
}

.breadcrumb--last {
    color: white;
    font-weight: bold;
}

/*
Source - https://stackoverflow.com/q/77936984
Posted by Ric, modified by community. See post 'Timeline' for change history
Retrieved 2026-05-01, License - CC BY-SA 4.0
*/

/* Chrome scrollbar */
.scrolly::-webkit-scrollbar {
    width: 8px;
    margin-left: 8px;
  }

.scrolly::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
  }

.scrolly::-webkit-scrollbar-track {
    background-color: auto;
  }
  /* Chrome scrollbar */


/* blockquote */

blockquote {
    font-family: Noto Serif, serif;
    font-style: italic;
    width: 75%;
    margin-bottom: 2em;
    padding: 1em 1em 1em 4em;
    line-height: 1.45;
    position: relative;
    background-color: rgb(157, 250, 245);
    background-image: linear-gradient(180deg,#eaf8f7 0%,#d5f1f0 100%);
    border-left:0;
    border-radius: 1em;
}

blockquote:before {
    display: block;
    content: "\201C";
    font-size: 120px;
    position: absolute;
    left: 5px;
    top: -30px;
    color: #267b95;
}

blockquote cite {
    color: #999999;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

blockquote cite:before {
    content: "\2014 \2009";
}

blockquote:nth-child(2n) {
    margin-left: auto;
}


.block-container .main-block:nth-child(4n+1){
    background-color: var(--blue) !important;
    background-image: url('https://hibbert.feisar.net/wp-content/uploads/2026/04/pattern-bg.svg'), linear-gradient(180deg,var(--blue) 0%,var(--darkblue) 100%);

}

.block-container .main-block:nth-child(4n+1) .btn-white {
    color: var(--darkblue);
}

.block-container .main-block:nth-child(4n+1) .btn-white:hover {
    color: white;
}

.block-container .main-block:nth-child(4n+2){
    background-color: var(--green) !important;
    background-image: url('https://hibbert.feisar.net/wp-content/uploads/2026/04/pattern-bg.svg'), linear-gradient(180deg,var(--green) 0%,var(--darkgreen) 100%);
}

.block-container .main-block:nth-child(4n+2) .btn-white {
    color: var(--darkgreen);
}

.block-container .main-block:nth-child(4n+2) .btn-white:hover {
    color: white;
}

.block-container .main-block:nth-child(4n+3){
    background-color: var(--orange) !important;
    background-image: url('https://hibbert.feisar.net/wp-content/uploads/2026/04/pattern-bg.svg'), linear-gradient(180deg,var(--orange) 0%,var(--darkorange) 100%);
}

.block-container .main-block:nth-child(4n+3) .btn-white {
    color: var(--darkorange);
}

.block-container .main-block:nth-child(4n+3) .btn-white:hover {
    color: white;
}

.block-container .main-block:nth-child(4n+4){
    background-color: var(--pink) !important;
    background-image: url('https://hibbert.feisar.net/wp-content/uploads/2026/04/pattern-bg.svg'), linear-gradient(180deg,var(--pink) 0%,var(--darkpink) 100%);
}

.block-container .main-block:nth-child(4n+4) .btn-white {
    color: var(--darkpink);
}

.block-container .main-block:nth-child(4n+4) .btn-white:hover {
    color: white;
}

/* lists */

ol, ul {
    margin: 0 0 1.5em 2em;
}

ol li {
    margin-bottom: 1em;
}

ol ul li {
    margin-bottom: inherit;
}

button {
    border-radius: 30px;
}

.page-navigation {
    margin: 0rem 0;
    padding: 0rem 0;
    /* border-top: 2px solid #e5e7eb; */
}

.page-nav-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 100%;
    padding: 0 1em;
}

.page-nav-item {
    flex: 1;
    min-width: 0;
}

.page-nav-prev {
    text-align: left;
}

.page-nav-next {
    text-align: right;
}

.page-nav-item a {
    display: block;
    padding: 1.25rem 0;
    /* background: #f9fafb;
    border-radius: 8px; */
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
    /* border: 1px solid #e5e7eb; */
}

.page-nav-item a:hover {
    /* background: #f3f4f6;
    border-color: #d1d5db; */
    transform: translateY(-2px);
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

.page-nav-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    /* margin-bottom: 0.5rem; */
}

.page-nav-title {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    line-height: 1.4;
}

.page-nav-prev a .page-nav-label::before {
    content: "← ";
}

.page-nav-next a .page-nav-label::after {
    content: " →";
}

.page-nav-disabled {
    visibility: hidden;
}

.site-header .header-image {
    width: 160px;
}

.custom-before-header-search {
    background-color: #e8e6e7;
    width:100%;
    display: flex;
    padding: 5px 0;
}

.custom-before-header-search .search-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    gap: 0.5em;
}

.custom-before-header-search a {
    text-decoration: none;
    font-family: Noto Sans, sans-serif;
    font-weight: normal;
    /* text-transform: lowercase; */
    font-size: 18px;
    color: var(--contrast);
}

.custom-before-header-search a:hover {
    color: var(--accent);
}

.custom-before-header-search button {
    padding: 0;
    color: var(--contrast);
    background-color: transparent;
    font-weight: bold;
}

.custom-before-header-search input[type=search], .custom-before-header-search input[type=search]:focus {
    padding: 0 5px;
    font-size: 18px;
    /* text-transform: lowercase; */
}

.menu-item-has-children .dropdown-menu-toggle {
    padding-left: 5px;
}

a.fsr {
    display: inline-flex;
    color: var(--contrast-2);
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    /* text-transform: uppercase;
    font-weight: bold; */
}

.home .entry-title {
    text-align: center;
}
a.fsr:hover {
    color: var(--accent);
}

a.fsr svg {
    height:10px;
    margin-left: 6px;
    padding-right: 2px;
}

.trustee p:empty {
    display: none;
}

.trustee p {
    color: white;
    font-size: 16px;
}

.trustee p:first-child {
    margin-top: 0;
}

.trustee p:last-child {
    margin-bottom: 0;
}

ul.columns3 {
    column-count: 3;
}

@media (max-width:480px) {
    ul.columns3 {
        column-count: 2;
    }


    .site-logo {
        top: 10px;
    }

    .page-nav-prev a {
        padding-bottom: 0;
    }

    .page-nav-next a {
        padding-top: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .inside-header {
        padding-top: 0;
        padding-left:20px;
        padding-right: 20px;
    }
    .site-header .header-image {
        width: 80px;
    }

    .page-nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }



    /* .page-nav-next {
        text-align: left;
    } */
}
