/* ============================================================
   Hugo Swire – Custom Stylesheet
   Modelled on: domain-3626352755230468605-l0001.fatrank.cboard.cloud/about-hugo
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap');

/* ── Custom font (Proxima Nova via Bluetree CDN) ──────────── */
@font-face {
  font-family: 'Proxima Nova';
  src: url('/profiles/bluetree3_profile/themes/custom/bluetree/fonts/proximanovaregular.eot');
  src: url('/profiles/bluetree3_profile/themes/custom/bluetree/fonts/proximanovaregular.woff') format('woff'),
       url('/profiles/bluetree3_profile/themes/custom/bluetree/fonts/proximanovaregular.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ── Reset / Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 13px/1.5em 'Proxima Nova', 'Open Sans', Arial, sans-serif;
  color: #1A4252;
  letter-spacing: 0.03em;
  background: #e9ecee;
}

a {
  color: #028de6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p.first-p {
  margin-top: 0;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3em;
}

h1 {
  font-size: calc(16px * 2.2);
  font-weight: 300;
  padding: 0 0 0.5em;
  margin: 0;
}

.small {
  font-style: italic;
  line-height: 1.2em;
  font-size: 0.8em;
  margin-top: 5px;
}

/* ── Accessibility skip link ──────────────────────────────── */
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
  word-wrap: normal;
}

.visually-hidden.focusable:focus {
  position: static !important;
  clip: auto;
  overflow: visible;
  height: auto;
  width: auto;
}

/* ── Layout grid ──────────────────────────────────────────── */
.layout-container {
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
  float: none;
}

.layout-container::after {
  content: ' ';
  display: block;
  clear: both;
}

@media (min-width: 1170px) {
  .layout-container {
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 768px) {
  .l-12-col { width: 100%;       float: left; margin-left: 0; margin-right: 0; }
  .l-10-col { width: 82.97872%;  float: left; margin-right: 2.12766%; }
  .l-9-col  { width: 74.46809%;  float: left; margin-right: 2.12766%; }
  .l-8-col  { width: 65.95745%;  float: left; margin-right: 2.12766%; }
  .l-7-col  { width: 57.44681%;  float: left; margin-right: 2.12766%; }
  .l-6-col  { width: 48.93617%;  float: left; margin-right: 2.12766%; }
  .l-5-col  { width: 48.93617%;  float: left; margin-right: 2.12766%; }
  .l-4-col  { width: 31.91489%;  float: left; margin-right: 2.12766%; }
  .l-3-col  { width: 23.40426%;  float: left; margin-right: 2.12766%; }
  .l-2-col  { width: 14.89362%;  float: left; margin-right: 2.12766%; }
  .l-last   { float: right; margin-right: 0; }
}

/* column-wrapper clearfix */
.column-wrapper::after {
  content: '';
  display: block;
  clear: both;
}

/* Sidebar layout */
@media (max-width: 768px) {
  .layout-sidebar-first {
    margin-bottom: 20px;
  }
}

/* Mobile / desktop visibility */
.mobile-only  { display: none !important; }
.desktop-only { display: block; }

@media (max-width: 1170px) {
  .mobile-only  { display: block !important; }
  .desktop-only { display: none !important; }
}

@media (max-width: 991px) {
  .not-mobile { display: none !important; }
}

/* ── Banner ───────────────────────────────────────────────── */
.bt-banner {
  position: relative;
}

.bt-banner .bt-banner--image {
  line-height: 0;
}

.bt-banner .bt-banner--image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Party logo badge (bottom-right corner) */
.bt-banner .bt-banner--party-logo {
  background: #11243b;
  bottom: 0;
  display: block;
  padding: 5px 15px 1px 10px;
  position: absolute;
  right: 0;
}

.bt-banner .bt-banner--party-logo.logo-none {
  display: none;
}

/* Name / slogan overlay */
.bt-banner .bt-banner--name-slogan-wrapper {
  position: absolute;
  bottom: 30%;
  left: 0;
}

.bt-banner .bt-banner--name-slogan-wrapper .bt-banner--name {
  margin: 0;
  padding-bottom: 0;
}

.bt-banner .bt-banner--name-slogan-wrapper .bt-banner--name a {
  background-color: #0760ab;
  color: #fff;
  padding: 0 20px 0 70px;
  font-weight: bold;
  font-size: 40px;
  line-height: 80px;
  display: inline-block;
}

.bt-banner .bt-banner--name-slogan-wrapper .bt-banner--name a:hover {
  text-decoration: none;
}

.bt-banner .bt-banner--name-slogan-wrapper .bt-banner--slogan {
  margin: 0;
  color: #fff;
  line-height: 1em;
  font-size: 22px;
  font-weight: normal;
  display: inline-block;
  background: #075699;
  padding: 15px 20px 15px 70px;
}

/* Facebook widget in banner */
.bt-banner .bt-banner--facebook {
  position: absolute;
  right: 0;
  top: 20px;
  width: 280px;
  overflow: hidden;
}

.bt-banner .bt-banner--facebook blockquote {
  margin: 0 !important;
  padding: 0;
}

/* No-image variant */
.bt-banner.no-image {
  background-color: #0760ab;
}

.bt-banner.no-image .bt-banner--name-slogan-wrapper {
  position: relative;
}

/* Mobile banner adjustments */
@media (max-width: 991px) {
  .bt-banner .bt-banner--name-slogan-wrapper {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
  }

  .bt-banner .bt-banner--name-slogan-wrapper h1#site-name a {
    display: block;
    padding: 0 20px 0 60px;
    line-height: 1.7em;
    font-size: 30px;
  }

  .bt-banner .bt-banner--name-slogan-wrapper #site-slogan {
    padding-left: 16px;
    display: block;
    font-size: 20px;
  }

  .bt-banner .bt-banner--facebook {
    top: 0;
  }
}

@media (max-width: 767px) {
  .bt-banner .bt-banner--facebook,
  .bt-banner .bt-banner--party-logo {
    display: none !important;
    visibility: hidden;
  }
}

/* Mobile hamburger icon */
#ico-mobile-menu {
  background-image: url(/profiles/bluetree3_profile/themes/custom/bluetree/images/sprite.png);
  background-position: 0px -205px;
  width: 28px;
  height: 26px;
  display: block;
  margin-right: 1em;
  position: absolute;
  top: 11px;
  left: 17px;
  z-index: 100;
  cursor: pointer;
}

.banner-without-sitename #ico-mobile-menu {
  top: 10px;
  background-color: #11243b;
}

/* ── Navigation bar ───────────────────────────────────────── */
.nav-bar {
  background-color: #11243b;
  color: #fff;
  margin-bottom: 30px;
}

.nav-bar ul.menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-bar li.menu-item {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.nav-bar li.menu-item a {
  color: #fff;
  line-height: 50px;
  font-size: 1.2em;
  padding: 0 1em;
  display: inline-block;
  vertical-align: middle;
  text-decoration: none;
}

.nav-bar li.menu-item a:hover {
  text-decoration: underline;
}

.nav-bar li.menu-item.menu-item--active-trail {
  background-color: #028de6;
}

.nav-bar li.menu-item.menu-item--active-trail a {
  color: #fff;
}

/* Home icon */
.nav-bar li.menu-item.menu-item-home a {
  overflow: hidden;
  white-space: nowrap;
  color: transparent;
  width: 22px;
}

.nav-bar li.menu-item.menu-item-home a::before {
  content: '';
  display: inline-block;
  background-image: url(/profiles/bluetree3_profile/themes/custom/bluetree/images/sprite.png);
  background-position: 0px -88px;
  width: 22px;
  height: 21px;
  vertical-align: text-top;
}

/* Mobile nav (full-width drop-down) */
@media (max-width: 1170px) {
  .nav-bar {
    left: -100%;
    margin: 0;
    position: absolute;
    width: 100%;
    z-index: 9999;
  }

  .nav-bar .layout-container {
    max-width: 100%;
  }

  .nav-bar li.menu-item {
    float: none;
    display: block;
    line-height: 35px;
    margin: 0;
    padding: 0;
  }

  .nav-bar li.menu-item a {
    border-bottom: 1px solid #555;
    padding: 0 12px;
    line-height: 48px;
    display: block;
  }
}

/* ── Pane (generic content block) ─────────────────────────── */
.pane {
  background-color: #fff;
  border-top: 0 none;
  margin-bottom: 30px;
  overflow: hidden;
  padding: 15px 20px;
}

.path-frontpage .pane {
  border: 1px solid #8499a2;
}

.pane .pane-footer {
  background: #f3f4f5;
  text-align: left;
}

.pane.pane-with-topborder {
  border-top: 2px solid #11243b;
  word-wrap: break-word;
}

.pane.ugly-pane {
  padding: 0;
}

.pane.ugly-pane .pane-title {
  color: #fff;
  background-color: #11243b;
  margin-bottom: 0;
  padding: 10px;
  margin: 0;
  font-weight: normal;
  font-size: 1.2em;
}

.pane.pane-with-image {
  padding: 0;
}

.pane.pane-with-image img {
  display: block;
}

/* ── Pretty pane (styled block with coloured title bar) ────── */
.pretty-pane {
  padding: 0;
  border-radius: 0;
  position: relative;
  box-shadow: 1px 4px 4px -3px #bbb;
  margin-bottom: 30px;
}

.pretty-pane .pane-title {
  background: #028de6;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  padding: 15px 20px;
  margin: 0;
}

/* Alternate (odd) pretty-pane uses the darker blue */
.pretty-pane.odd .pane-title {
  background: #0760ab;
  color: #fff;
}

.pretty-pane .pane-inner {
  padding: 15px 20px;
}

.pretty-pane .pane-inner p:first-child {
  margin-top: 0;
}

.pretty-pane .field-image img {
  display: block;
  width: 100%;
  height: auto;
}

.pretty-pane .profile-image img {
  width: 100%;
}

.pretty-pane.pane-no-padding .pane-content .pane-inner {
  padding: 0;
}

.pretty-pane.pane-no-padding.padded-body p {
  padding: 0 20px;
}

/* ── Simple pane (blue hero block on front page) ──────────── */
.simple-pane {
  background: #0760ab;
  color: #fff;
  font-size: 1.15em;
  line-height: 1.7em;
  margin-bottom: 30px;
}

.simple-pane img {
  width: 100%;
  height: auto;
  display: block;
}

.simple-pane h2 {
  margin: 0;
  font-size: 1.4em;
}

.simple-pane h3 {
  margin-top: 0.5em;
  font-size: 1.1em;
  font-weight: 400;
}

.simple-pane a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}

.simple-pane p:last-child {
  margin-bottom: 0;
}

.simple-pane .pane-inner {
  padding: 20px;
}

@media (max-width: 991px) {
  .simple-pane .l-4-col,
  .simple-pane .l-8-col {
    width: 100%;
    margin: 0;
    float: none;
  }
}

/* ── Button ───────────────────────────────────────────────── */
.button,
a.button {
  background: #EB0052;
  color: #fff;
  border: 0 none;
  font-weight: normal;
  border-radius: 0;
  font-size: 16px;
  font-family: 'Proxima Nova', 'Open Sans', Arial, sans-serif;
  line-height: 22px;
  padding: 10px 20px;
  display: inline-block;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  text-decoration: none;
}

.button:hover,
a.button:hover {
  background: #c4003f;
  text-decoration: none;
}

.pane-footer .button {
  margin: 15px 20px;
}

/* ── News listing (article-in-listing) ────────────────────── */
.article-in-listing {
  margin-bottom: 20px;
}

.article-in-listing.node--view-mode-small {
  margin-bottom: 0.5em;
}

.article-in-listing.node--view-mode-small .teaser-image img {
  max-width: 59px;
  height: auto;
}

.article-in-listing h2 {
  font-size: 13px;
  line-height: normal;
  margin: 0;
}

.article-in-listing h2 a {
  color: #028de6;
  display: block;
  font-weight: normal;
}

.article-in-listing .teaser-image {
  display: table-cell;
  padding-right: 1em;
  vertical-align: top;
}

.article-in-listing .teaser-image img {
  display: block;
  max-width: 150px;
  height: auto;
}

.article-in-listing .teaser-content {
  display: table-cell;
  vertical-align: top;
}

.article-in-listing .teaser-content p {
  margin-top: 0;
}

/* Image hover overlay effect */
.article-in-listing .teaser-image a {
  display: block;
}

.article-in-listing .teaser-image a img {
  display: block;
}

.article-in-listing .teaser-image a:hover {
  background-color: #028de6;
}

.article-in-listing .teaser-image a:hover img {
  opacity: 0.4;
}

/* ── Scale images responsively ────────────────────────────── */
.scale-image img {
  max-width: 100%;
  height: auto;
}

.node--view-mode-full:not(.node--type-homepage) .body img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .node--view-mode-full:not(.node--type-homepage) .field-news-image-gallery img {
    height: 100%;
    width: 100%;
  }
}

/* ── Social links ─────────────────────────────────────────── */
.social-links {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── Page title block ─────────────────────────────────────── */
#block-pagetitle h1 {
  padding: 0 0 0.5em;
  margin: 0 0 20px;
  border-bottom: 2px solid #11243b;
}

/* ── Lovely links (sidebar nav) ───────────────────────────── */
.lovely-links {
  padding: 0;
  margin: 0;
}

.lovely-links ul {
  padding: 0;
  margin: 0;
}

.lovely-links li {
  list-style: none;
  border-top: 1px solid #dadada;
}

.lovely-links li a {
  display: block;
  padding: 10px;
  color: #11243b;
  background-color: #fff;
  text-decoration: none;
  font-weight: normal;
}

.lovely-links li a:hover {
  color: #fff;
  background-color: #028de6;
}

.lovely-links li a.is-active,
.lovely-links li.menu-item--active-trail > a.is-active {
  background-color: #0760ab;
  color: #fff;
}

/* ── Tables ───────────────────────────────────────────────── */
table {
  width: 100%;
  border: 2px solid #bbb;
  border-spacing: initial;
  border-collapse: collapse;
}

table tr {
  border-bottom: 1px solid #ccc;
}

table tr:nth-child(even) { background: #EEE; }
table tr:nth-child(odd)  { background: #fff; }

table td,
table th {
  padding: 10px;
}

table th {
  font-weight: bold;
}

/* ── Forms ────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea {
  font-size: 1em;
  padding: 10px;
  border: 1px solid #dcdee2;
  border-radius: 4px;
}

@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="password"],
  textarea {
    font-size: 16px;
  }
}

.form-wrapper { margin: 0 0 1em; }
.form-item    { margin: 0 0 1em; }

.form-item .description {
  font-style: italic;
  line-height: 1.2em;
  font-size: 0.8em;
  margin-top: 5px;
  color: #777;
}

label {
  padding-right: 1em;
}

/* ── Front page column layout clearfix ────────────────────── */
.header.l-col-12 {
  width: 100%;
  float: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 30px;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background-color: #11243b;
  color: #fff;
  padding: 30px 0 20px;
  margin-top: 30px;
  clear: both;
}

.footer a {
  color: #9dd4f0;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer .footer-link-title {
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 20px;
}

.footer ul.menu {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
}

.footer ul.menu li {
  display: inline-block;
  margin-right: 15px;
  margin-bottom: 8px;
}

.footer ul.menu li a {
  color: #9dd4f0;
}

.footer .block--bluetree-imprint {
  font-size: 0.85em;
  color: #aac5d4;
  margin-top: 15px;
}

/* ── Footer bottom bar ────────────────────────────────────── */
.footer-bottom {
  background-color: #0a1a28;
  color: #8aabb8;
  padding: 12px 0;
  font-size: 0.8em;
}

.footer-bottom .layout-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: #9dd4f0;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ── EU Cookie banner ─────────────────────────────────────── */
div#sliding-popup,
div#sliding-popup .eu-cookie-withdraw-banner,
.eu-cookie-withdraw-tab {
  background: #0760ab;
}

div#sliding-popup.eu-cookie-withdraw-wrapper {
  background: transparent;
}

#sliding-popup h1,
#sliding-popup h2,
#sliding-popup h3,
#sliding-popup p,
.eu-cookie-compliance-more-button,
.eu-cookie-compliance-secondary-button,
.eu-cookie-withdraw-tab {
  color: #fff;
}

.eu-cookie-withdraw-tab {
  border-color: #fff;
}

/* ── Misc helpers ─────────────────────────────────────────── */
.hidden {
  display: none !important;
  visibility: hidden;
}

.date-teaser { color: #888; }
.date-full   { font-size: 1.1em; }

.messages {
  padding: 9px;
  margin: 0 0 1em;
  color: #036;
  background: #bdf;
  border: 1px solid #ace;
}

.messages.messages-error {
  color: #fff;
  background: #e63;
  border-color: #d52;
}