/*@import 'init';*/
@red:rgb(247,0,0);

@yellow:#e1a452;
@black-001: #665e4f;
@grey-001: #666666;
@grey-002: #dddddd;
@grey-003: #ebebeb;
@grey-004: #efebe2;
@brown-001: #74664b;
@brown-002: #8e836d;
@brown-003: #968468;
@brown-004: #b7a583;
@brown-005: #80755c;
@green-001: #74984d;
@green-002: #7fa14c;
@green-003: #777c48;
@green-004: #9ea55f;


@b-dark: #453e2e;
@g : #628038;
h3, #top {
    scroll-margin-top: 212px;
}
@media only screen and (max-width: 991px) {
    body {
        padding-top: 153px;
    }
    h3, #top {
        scroll-margin-top: 167px;
    }
}
@media only screen and (max-width: 767px) {
    body {
        padding-top: 210px;
    }
    h3, #top {
        scroll-margin-top: 154px;
    }
}
section {
  margin-top:4px;
  margin-bottom:4px;
/*  padding-bottom:70px;*/
}
h2, h3, h4, h5, h6 {
  color: @g;
  font-weight:400;
}
h2 {
    font-size: 1.34em;
}
h3 {
    font-size: 1.13em;
}
.title {
  font-size:1.34em;
  margin-bottom:1rem;
  font-weight:400;
}
@media only screen and (max-width: 767px) {
    h2 {
/*        font-size: 1.2em;*/
    }
    h3 {
/*        font-size: 1.1em;*/
    }
}
hr {
  border-color:@g;
/*  border-style: dashed;*/
}
a {
  color:@g;
  &:hover {
    color:@g;
  }
}
.paginate { 
  text-align: center; 
  margin-top: 2rem;
}
.paginate .info { display: none; }
.paginate .links { width: 100%; }
.paginate .links a, .paginate .links span {
/*    font-size: 1em;*/
    font-weight: 500;
    padding: 0 1rem;
    text-shadow: 1px 1px black;
}
.paginate .links a {
    color: @g;
}
.paginate .links span {
    color: @brown-002;
/*    text-shadow: 1px 2px #e5dec7;*/
}
#page-content {
  min-height:~'calc(100vh - 402px)';
  word-break: break-word;
  a {
/*      text-decoration: underline;*/
  }
  img {
      height: auto;
  }
}
@media only screen and (max-width:1199px) and (min-width:992px) {
  #page-content {
    min-height:~'calc(100vh - 396px)';
  }
}
@media only screen and (max-width:991px) {
  #page-content {
    min-height:~'calc(100vh - 378px)';
  }
}
img.alignleft {
    margin-right:1rem;
    margin-bottom:1rem;
    float:left;
}
img.alignright {
    margin-left:1rem;
    margin-bottom:1rem;
    float:right;
}
#divider {
  .top {
    background-color:@b-dark;
/*    min-height: 40px;*/
    padding:10px 0;
    .title {
      margin-bottom:0;
    }
  }
  .bottom {
    height:16px;
  }
}
.announcement-wrapper {
  padding-top:2rem;
  padding-bottom: 2rem;
  &:not(:last-child) {
    border-bottom: 1px solid @grey-003;
  }
  .date {
      color: #757575;
  }
}
#go-branching-out-page {
  margin-top: 1rem;
}
#nav-announcements {
  display:flex;
  justify-content:space-between;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
#next-announcement, 
#prev-announcement {
  a:hover {
    text-decoration:none;
  }
}
#next-announcement {
  transition: 0.4s all ease-in;
  margin-right:auto;
  i {
    margin-right:4px;
    font-size:1em;
  }
  &:hover {
    transform:translateX(-1rem);
  }
}
#prev-announcement {
  transition: 0.4s all ease-in;
  margin-left:auto;
  i {
    margin-left:4px;
    font-size:1em;
  }
  &:hover {
    transform:translateX(1rem);
  }
}
.news-wrapper {
  &:not(:first-child) {
    padding-top:2rem;
  }  
  &:not(:last-child) {
    border-bottom:1px dashed black;
    padding-bottom:2rem; 
  }
  .content {
    p:last-child {
      margin-bottom:0;
    }
  }
}
#couches .paginate {
  margin-top: 1rem;
}
#quick-links, 
#esteem-side, 
#project-side {
  background-color:@b-dark;
  color: white;
  padding: 20px;
  border-radius:4px;
  .title {
    text-transform:uppercase;
    color: white;
  }
  li::marker {
      color: white;
  }
  a {
      color: white;
/*      text-decoration: underline;*/
  }
  .quick-link {
    margin-top:0.5rem;
/*    font-size:0.85em;*/
    a {
/*      color:@green;*/
/*      color:@grey-001;*/
    }
  }
/*  .quote-image {*/
    img {
      width:100%;
      object-fit: contain;
      height: 100%;
    }
/*  }*/
  /*.quote {
    p {
      margin-bottom:1rem;
    }
  }*/
  p span {
    display:block;
  }
}
#quick-links #title_hr {
    position: relative;
    &::after {
        position: absolute;
        bottom: -6px;
        right: 0;
        content: url('/images/layout/title-leaf.png');
    }
}
#quick-links:last-child p {
    margin-bottom: 0;
}
@media only screen and (max-width: 991px) {
    #quick-links, 
    #esteem-side, 
    #project-side {
        margin-top: 2rem;
        width: fit-content;
    }
}
@media only screen and (max-width: 767px) {
    #quick-links, 
    #esteem-side, 
    #project-side {
        margin-top: 1rem;
        width: 100%;
    }
}
#connect-with-us {
  #contact-form {
      label {
        display:block;
        &.required {
          position:relative;
          &:after {
            content: '*';
            color: @red;
            font-size:inherit;
          }
        }
      }
      input:not([type="submit"]), select, textarea {
        width: 100%;
        border: 1px solid @g;
        padding: 8px 16px;
        margin-bottom:1rem;
      }
      .form_btns {
          @media only screen and (max-width: 767px) {
              div:first-child {
                  padding-left: 0;
                  margin-left: -1.5px;
                  margin-bottom: 0.5rem;
              }
          }
      }
  }
}
#newsroom {
    .date {
        font-size: 0.8em;
        margin-bottom:0.5rem;
    }
}
#archives-wrapper {
  background-color:@grey-004;
  padding: 20px;
  border-radius:4px;
  .title {
    text-transform:uppercase;
  }
  .archives-year {
    margin-top:0.5rem;
/*    font-size:0.85em;*/
    a {
      color:@g;
    }
  }
}
.job-title {
  background-color: @brown-003;
  padding: 4px  12px;
  font-size: 1.1em;
  margin-bottom: 0.5rem;
  a {
    color:white !important;
  }
  .date {
      font-size: 0.8em;
  }
}
.job-label {
  color: @g;
  margin-right: 0.5rem;
}
.job-more {
  text-align:right;
  span {
    margin-right: 0.5rem;
  }
}
.btn-back {
  margin-bottom:0.5rem;
  span {
    margin-left: 0.5rem;
  }
}
.sub-title {
  font-weight:500;
  font-size:1.13em;
  color:@g;
  margin-bottom:0.5rem;
}
.job-posting-details {
  p {
    margin-bottom:0.5rem;
/*    font-size:0.9em;*/
  }
}
form[name="Job Posting"] {
  input:not([type=submit]):not([type=radio]),
  select, textarea {
    width:100%;
    margin-bottom: 1rem;
    padding:8px;
    border: 1px solid @brown-003;
  }
}
.radioset {
  padding-top:8px;
  label {
    margin-left:8px;
    margin-right:8px;
  }
}
label {
  &.required {
    &::after {
      content: '*';
      color:@red;      
    }
  }
}
#esteem-side {
/*  background-color:@grey-004;*/
  padding: 20px;
  border-radius:4px;
  img {
      width:100%;
      height: auto;
  }
}
figure.gallery-item {
    display:inline-block;
}
ul.search-results {
    list-style: none;  
    padding-left: 0;
    li {
        border: 1px solid @g;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        .weight::after {
            content:'%';
        }
        a {
            word-break: break-all;
            text-decoration: none !important;
        }
    }
}

.couch-wrapper, .branching-wrapper {
    &:not(:last-child) {
        margin-bottom: 1.5rem;
    }
    .title, .description {
        margin-bottom: 0.5rem;
    }
    a.btn {
/*        font-size: 0.8em;*/
    }
    /*.image {
        max-height:600px;
        overflow:hidden;
        img {
            width:100%;
        }
    }*/
    
    .date {
        color: @g;
        margin-bottom: 0.5rem;
    }
}
.btn-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    .link-button-right {
        .fa-chevron-down {
            display: none;
        }
        .fa-chevron-up {
            display: inline-block;
        }
    }
    &.collapsed {
        .link-button-right {
            .fa-chevron-down {
                display: inline-block;
            }
            .fa-chevron-up {
                display: none;
            }
        }
    }
}
.btn-green {
    background-color: @g;
    color: white !important;
    border: 1px solid @g;
}
.photos {
    height: 230px;
    margin-bottom: 30px;
    img {
        width: 100%;
        height: 100% !important;
/*        border: 1px solid @brown;*/
        border-radius: 8px;
        object-fit: cover;
    }
}
figure {
    position: relative;
    figcaption {
        position: absolute;
        bottom: 0;
        background-color: rgba(0,0,0,0.6);
        color: white;
        font-style: italic;
/*        font-size: 0.6em;*/
        padding: 0 6px;
        max-height: 0;
        overflow: hidden;
    }
    &:hover figcaption {
        max-height: 100%;
        padding: 3px 6px;
    }
}
.order-1, .order-lg-1 {
    order: 1;
}
.order-2, .order-lg-2 {
    order: 2;
}
.order-3, .order-lg-3 {
    order: 3;
}
.order-4, .order-lg-4 {
    order: 4;
}

/* Catalogue */
form[name="Catalogue"] {
    label {
        margin-bottom: 0;
    }
}
.search-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    label {
        font-size: 1.2em;
        font-weight: bold;
    }
    input[type="text"] {
        flex: 1;
        padding: 10px 16px;
        font-size: 1em;
        border: 1px solid @b-dark;
    }
}
.catalogue-search-categories {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2em;
    font-weight: bold;
}
#catalogue-topic {
    display: none;
    &.active {
        display: block;
    }
}
@media only screen and (max-width: 767px) {
    .search-input {
        flex-direction: column;
        align-items: stretch;
    }
}
/* chatalogue lists page*/
.checkbox {
    // direction: rtl;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}
input[type="checkbox"] {
    // appearance: none;
    background-color: white;
    margin: 0;
    font: inherit;
    color: @b-dark;
    width: 1.15em;
    height: 1.15em;
    border: 2px solid currentColor;
    border-radius: 0.2em;
    display: grid;
    place-content: center;
    &::before {
        content: '';
        width: 0.65em;
        height: 0.65em;
        transform: scale(0);
        transition: 120ms transform ease-in-out;
/*        box-shadow: inset 1em 1em @g;*/
/*        background-color: CanvasText;*/
        transform-origin: bottom left;
        clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    }
    &:checked::before {
        transform: scale(1);
    }
    &:focus {
/*        outline: 1px solid currentColor;*/
        outline: unset;
    }
}

.paginate-clean {
    font-family: 'Open Sans', sans-serif;
    margin-top: 1rem;
    width: 100%;
    table {
        margin: 0 auto;
    }
    td {
        display: block;
        text-align: center;
    }
    .left-options, .right-options {
        display: none;
    }
    .links {
        padding-top: 1rem;
        padding-bottom: 1rem;
        span, a {
            margin-left: 1rem;
            margin-right: 1rem;
            font-size: 1.2em;
            color: @g;
        }
        .curLink {
            position: relative;
            &::after {
                font-family: 'FontAwesome';
                font-weight: 700;
                font-size: 1.7em;
                content: '\F1DB';
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
            }
        }
        .prevLink {
            margin-right: 8px;
        }
        .nextLink {
            margin-left: 8px;
        }
    }
}
.cat-list-h-wrapper, .cat-list-item-wrapper a {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 35fr 10fr 20fr 35fr;
    border-bottom: 1px solid @g;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.cat-list-h-wrapper > div {
    font-size: 1.2em;
    font-weight: bold;
}
.cat-list-item-wrapper a {
    color: black;
    text-decoration: none;
    transform: scale(1);
    transition: 0.2s transform ease-in-out;
    &:hover {
        transform: scale(1.01);
    }
}

@media only screen and (max-width: 767px) {
    .cat-list-h-wrapper, .cat-list-item-wrapper a {
        grid-template-columns: 70fr 30fr;
    }
    .cat-list-header, .cat-list-item-name {
        &.mobile {
            display: none;
        }
    }
    .paginate-clean .links{
        span, a {
            margin-left: 0.5rem;
            margin-right: 0.5rem;
        }
    }
}
/* Catalogue Item Page */
.cat-item-image, .cat-item-content {
    border-bottom: 1px solid @g;
}
.cat-item-image {
    padding-bottom: 1rem;
    margin-left: -15px;
    margin-right: -15px;
}
.cat-item-content {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.cat-item-header {
    font-weight: bold;
}
.btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.job-posting-wrapper .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    button {
        transition: all 0.5s ease-in-out;
        color: white;
        padding: 4px 0;
        &[aria-expanded="true"] {
            transform: rotate(90deg);
        }
        &.focus, &:focus {
            box-shadow: none;
        }
    }
}
@media only screen and (max-width: 767px) {
    .job-posting-wrapper .card-header {
        gap: 8px;
    }
}

/* catalogue style */
form[name="Catalogue"] {
    .checkbox {
        direction: rtl;
    }
}