/*!
Theme Name: bsscii
Theme URI: http://underscores.me/
Author: Zonkey
Author URI: http://www.zonkey.co.uk
Description: Custom theme built for the British Society for Skin Care in Immunosuppressed Individuals
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: bsscii
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

bsscii is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

*/

/*! normalize.css v3.0.2 | MIT License | git.io/normalize */

/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */

html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/**
 * Remove default margin.
 */

body {
  margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */

/**
 * Correct `block` display not defined for any HTML5 element in IE 8/9.
 * Correct `block` display not defined for `details` or `summary` in IE 10/11
 * and Firefox.
 * Correct `block` display not defined for `main` in IE 11.
 */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

/**
 * 1. Correct `inline-block` display not defined in IE 8/9.
 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
 */

audio,
canvas,
progress,
video {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */

audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Address `[hidden]` styling not present in IE 8/9/10.
 * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
 */

[hidden],
template {
  display: none;
}

/* Links
   ========================================================================== */

/**
 * Remove the gray background color from active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * Improve readability when focused and also mouse hovered in all browsers.
 */

a:active,
a:hover {
  outline: 0;
}

/* Text-level semantics
   ========================================================================== */

/**
 * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
 */

abbr[title] {
  border-bottom: 1px dotted;
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
 */

b,
strong {
  font-weight: bold;
}

/**
 * Address styling not present in Safari and Chrome.
 */

dfn {
  font-style: italic;
}

/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari, and Chrome.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/**
 * Address styling not present in IE 8/9.
 */

mark {
  background: #ff0;
  color: #000;
}

/**
 * Address inconsistent and variable font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove border when inside `a` element in IE 8/9/10.
 */

img {
  border: 0;
}

/**
 * Correct overflow not hidden in IE 9/10/11.
 */

svg:not(:root) {
  overflow: hidden;
}

/* Grouping content
   ========================================================================== */

/**
 * Address margin not present in IE 8/9 and Safari.
 */

figure {
  margin: 1em 40px;
}

/**
 * Address differences between Firefox and other browsers.
 */

hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

/**
 * Contain overflow in all browsers.
 */

pre {
  overflow: auto;
}

/**
 * Address odd `em`-unit font size rendering in all browsers.
 */

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Forms
   ========================================================================== */

/**
 * Known limitation: by default, Chrome and Safari on OS X allow very limited
 * styling of `select`, unless a `border` property is set.
 */

/**
 * 1. Correct color not being inherited.
 *    Known issue: affects color of disabled elements.
 * 2. Correct font properties not being inherited.
 * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
 */

button,
input,
optgroup,
select,
textarea {
  color: inherit; /* 1 */
  font: inherit; /* 2 */
  margin: 0; /* 3 */
}

/**
 * Address `overflow` set to `hidden` in IE 8/9/10/11.
 */

button {
  overflow: visible;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
 * Correct `select` style inheritance in Firefox.
 */

button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button; /* 2 */
  cursor: pointer; /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */

button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * Remove inner padding and border in Firefox 4+.
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */

input {
  line-height: normal;
}

/**
 * It's recommended that you don't attempt to style these elements.
 * Firefox's implementation doesn't respect box-sizing, padding, or width.
 *
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
 * `font-size` values of the `input`, it causes the cursor style of the
 * decrement button to change from `default` to `text`.
 */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
 *    (include `-moz` to future-proof).
 */

input[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box; /* 2 */
  box-sizing: content-box;
}

/**
 * Remove inner padding and search cancel button in Safari and Chrome on OS X.
 * Safari (but not Chrome) clips the cancel button when the search input has
 * padding (and `textfield` appearance).
 */

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Define consistent border, margin, and padding.
 */

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct `color` not being inherited in IE 8/9/10/11.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */

legend {
  border: 0; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Remove default vertical scrollbar in IE 8/9/10/11.
 */

textarea {
  overflow: auto;
}

/**
 * Don't inherit the `font-weight` (applied by a rule above).
 * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
 */

optgroup {
  font-weight: bold;
}

/* Tables
   ========================================================================== */

/**
 * Remove most spacing between table cells.
 */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

/*--------------------------------------------------------------
# CSS Variables & Reset
--------------------------------------------------------------*/
:root {
	/* Colors */
	--color-primary: #05365E;
	--color-primary-light: #07508B;
	--color-secondary: #00A19C;
	--color-secondary-light: #12CBC5;
	--color-cream: #FAF7F4;
  --color-grey: #BCBEC0;
  --color-dark-grey: #757575;
  --color-white: #fff;
	--color-border: #EEEEEE;
  --color-border-grey: #E6E6E6;
  --color-border-opacity: rgba(255, 255, 255, 0.2);
	--color-text-white: #fff;
	--color-text-dark: hsl(0, 0%, 16%);
	--color-text-white-opacity: rgba(255, 255, 255, 0.5);

	/* Fonts */
	--font-family: "Figtree", sans-serif;
	
	/* Layout */
	--container-max: 1200px;
	--transition: 0.3s ease;
	
	/* Spacing */
	--spacing-sm: 15px;
	--spacing-ms: 20px;
	--spacing-md: 30px;
	--spacing-lg: 50px;
	--spacing-xl: 70px;
  }

/* Base Styles
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/* NOTE
html is set to 62.5% so that all the REM measurements throughout Skeleton
are based on 10px sizing. So basically 1.5rem = 15px :) */
html {
  font-size: 62.5%; }
body {
  font-size: 1.5em;
  line-height: 1.6;
  font-weight: 400;
  font-family: var(--font-family);
  color: var(--color-text-dark); 
  background: #FAF7F4;
}


/* Typography
–––––––––––––––––––––––––––––––––––––––––––––––––– */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700; 
  color: var(--color-primary); 
  line-height: 1;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 2.0rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.6rem; }
h6 { font-size: 1.4rem; }

/* Larger than phablet */
@media (min-width: 550px) {
  body {font-size: 1.8em;}
  h1 { font-size: 4.4rem; }
  h2 { font-size: 3.4rem; }
  h3 { font-size: 2.6rem; }
  h4 { font-size: 2.2rem; }
  h5 { font-size: 1.8rem; }
  h6 { font-size: 1.6rem; }
}

p {
  margin-top: 0; }

/* Links
–––––––––––––––––––––––––––––––––––––––––––––––––– */
a {
  color: var(--color-secondary);
  text-decoration: underline;
}
a:hover {
  color: var(--color-secondary-light); }


/* Buttons
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  display: inline-block;
  height: 50px;
  padding: 0 30px;
  color: var(--color-secondary);
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  line-height: 50px;
  text-decoration: none;
  white-space: nowrap;
  background-color: var(--color-text-white);
  border-radius: 50px;
  border: 1px solid var(--color-secondary);
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.3s ease-in;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.button:focus,
button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus {
  color: var(--color-text-white);
  border-color: var(--color-secondary-light);
  background-color:var(--color-secondary-light);
  outline: 0; }
.button.button-primary,
button.button-primary,
input[type="submit"].button-primary,
input[type="reset"].button-primary,
input[type="button"].button-primary {
  color: var(--color-text-white);
  background-color: var(--color-primary);
  border-color: var(--color-primary); }
.button.button-primary:hover,
button.button-primary:hover,
input[type="submit"].button-primary:hover,
input[type="reset"].button-primary:hover,
input[type="button"].button-primary:hover,
.button.button-primary:focus,
button.button-primary:focus,
input[type="submit"].button-primary:focus,
input[type="reset"].button-primary:focus,
input[type="button"].button-primary:focus {
  color: var(--color-primary);
  background-color: var(--color-text-white);
  border-color: var(--color-primary); }

.button.button-secondary,
button.button-secondary,
input[type="submit"].button-secondary,
input[type="reset"].button-secondary,
input[type="button"].button-secondary {
  color: var(--color-text-white);
  background-color: var(--color-secondary);
  border-color: var(--color-secondary); }
.button.button-secondary:hover,
button.button-secondary:hover,
input[type="submit"].button-secondary:hover,
input[type="reset"].button-secondary:hover,
input[type="button"].button-secondary:hover,
.button.button-secondary:focus,
button.button-secondary:focus,
input[type="submit"].button-secondary:focus,
input[type="reset"].button-secondary:focus,
input[type="button"].button-secondary:focus {
  color: var(--color-secondary);
  background-color: var(--color-text-white);
  border-color: var(--color-secondary); }

.button.button-small,
button.button-small,
input[type="submit"].button-small,
input[type="reset"].button-small,
input[type="button"].button-small {
  height: 34px;
  line-height: 34px;
}

@media (max-width: 576px) {
  .button,
  button,
  input[type="submit"],
  input[type="reset"],
  input[type="button"] {
    height: 38px;
    font-size: 16px;
    line-height: 38px;
  }
}

/* Forms
–––––––––––––––––––––––––––––––––––––––––––––––––– */
input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
  height: 38px;
  padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */
  background-color: #fff;
  border: 1px solid #D1D1D1;
  border-radius: 4px;
  box-shadow: none;
  box-sizing: border-box; }
/* Removes awkward default styles on some inputs for iOS */
input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none; }
textarea {
  min-height: 65px;
  padding-top: 6px;
  padding-bottom: 6px; }
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border: 1px solid #33C3F0;
  outline: 0; }
label,
legend {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600; }
fieldset {
  padding: 0;
  border-width: 0; }
input[type="checkbox"],
input[type="radio"] {
  display: inline; }
label > .label-body {
  display: inline-block;
  margin-left: .5rem;
  font-weight: normal; }


/* Lists
–––––––––––––––––––––––––––––––––––––––––––––––––– */
ul,
ol {
	list-style: none;
  padding:0;
  margin:0;
}

ol, ul
ul ul,
ul ol,
ol ol,
ol ul {
  margin:0;
  padding:0;
}

li {
  margin-bottom:0 }


/* Code
–––––––––––––––––––––––––––––––––––––––––––––––––– */
code {
  padding: .2rem .5rem;
  margin: 0 .2rem;
  font-size: 90%;
  white-space: nowrap;
  background: #F1F1F1;
  border: 1px solid #E1E1E1;
  border-radius: 4px; }
pre > code {
  display: block;
  padding: 1rem 1.5rem;
  white-space: pre; }


/* Tables
–––––––––––––––––––––––––––––––––––––––––––––––––– */
th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #E1E1E1; }
th:first-child,
td:first-child {
  padding-left: 0; }
th:last-child,
td:last-child {
  padding-right: 0; }


/* Media Queries
–––––––––––––––––––––––––––––––––––––––––––––––––– */
/*
Note: The best way to structure the use of media queries is to create the queries
near the relevant code. For example, if you wanted to change the styles for buttons
on small devices, paste the mobile query code up in the buttons section and style it
there.
*/


/* Larger than mobile */
@media (min-width: 400px) {}

/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 550px) {}

/* Larger than tablet */
@media (min-width: 750px) {}

/* Larger than desktop */
@media (min-width: 1000px) {}

/* Larger than Desktop HD */
@media (min-width: 1200px) {}



/****************************************** MAIN CSS
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Navigation
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.site-header {
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    position: relative;
    box-sizing: border-box; 
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-branding a {
    max-width: 200px;
}

.site-branding img {
    width: 100%;
}

/* Main navigation styles */

.main-navigation {
    display: flex;
    align-items: center;
}

/* Mobile menu toggle button */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 10px;
    color: #333;
}

.menu-toggle:hover,
.menu-toggle:focus,
#primary-menu button:focus,
#primary-menu button:hover {
    background: none;
}

/* Primary menu styles */
#primary-menu {
    display: flex;
    margin: 0;
    padding: 0;
}

#primary-menu > li {
    position: relative;
    margin: 0 5px;
}

#primary-menu > li > a {
  display: block;
  padding: 10px 15px;
  color: var(--color-text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

#primary-menu a {
  text-decoration: none;
}

#primary-menu > li:hover > a {
    color: var(--color-primary);
}


#primary-menu .current-menu-item > a,
#primary-menu > li.current-menu-item:hover > a {
  color: var(--color-secondary);
}

/* Dropdown indicators and toggle */

.menu-item-has-children > a {
    position: relative;
    padding-right: 35px !important;
}

.menu-item-has-children > a:after {
    content: "";
    position: absolute;
    right: 10px;
    top: 45%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-grey);
    border-bottom: 2px solid var(--color-grey);
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s;
}

.menu-item-has-children:hover > a:after {
    border-color: var(--color-secondary);;
}

/* Dropdown toggle button - hidden by default on desktop */
.dropdown-toggle {
    display: none;
}

/* Submenu styles */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 0;
    padding: 0;
    z-index: 100;
    overflow: hidden;
    border: 1px solid var(--color-grey);
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children.submenu-open > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    display: block;
    width: 100%;
}

.sub-menu a {
    padding: 8px 20px;
    display: block;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.sub-menu a:hover {
    background-color: #f5f5f5;
    color: var(--color-primary);
}

/* Search icon */
.search-toggle {
    margin-left: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
}

.current-page-ancestor > a:after {
  border-color:var(--color-secondary);
}

/* Mobile styles */
@media screen and (max-width: 991px) {
  .site-branding a {
    width: 120px;
  }
  
  .site-header {
      padding: 10px 15px;
  }
  
  .menu-toggle {
      display: block;
      font-size: 0;
      width: 30px;
      height: 25px;
      position: relative;
  }
  
  .menu-toggle:before,
  .menu-toggle:after,
  .menu-toggle span {
      background-color: #333;
      content: '';
      display: block;
      height: 3px;
      position: absolute;
      transition: all 0.3s ease;
      width: 100%;
      left: 0;
      border-radius: 20px;
      background: var(--color-secondary);
  }
  
  .menu-toggle:before {
      top: 0;
  }
  
  .menu-toggle span {
      top: 50%;
      transform: translateY(-50%);
  }
  
  .menu-toggle:after {
      bottom: 0;
  }
  
  .menu-toggle[aria-expanded="true"]:before {
      transform: translateY(11px) rotate(45deg);
  }
  
  .menu-toggle[aria-expanded="true"] span {
      opacity: 0;
  }
  
  .menu-toggle[aria-expanded="true"]:after {
      transform: translateY(-11px) rotate(-45deg);
  }
  
  .main-navigation {
      position: static;
  }
  
  .menu-main-menu-container {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background-color: #fff;
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.5s ease;
      z-index: 999;
  }
  
  .main-navigation.toggled .menu-main-menu-container {
      max-height: calc(100vh - 60px);
      overflow-y: auto;
  }
  
  #primary-menu {
      flex-direction: column;
      padding: 10px 0;
  }
  
  #primary-menu > li {
      margin: 0;
      border-bottom: 1px solid #eee;
  }
  
  #primary-menu > li:last-child {
      border-bottom: none;
  }
  
  #primary-menu > li > a {
      padding: 15px 20px;
  }
  
  /* Mobile dropdown toggle styling */
  .dropdown-toggle {
      display: block;
      position: absolute;
      top: 0;
      right: 0;
      width: 50px;
      height: 50px;
      background: transparent;
      border: none;
      cursor: pointer;
      z-index: 10;
  }
  
  .dropdown-toggle:before {
      content: "";
      position: absolute;
      top: 50%;
      right: 20px;
      width: 10px;
      height: 10px;
      border-right: 2px solid #666;
      border-bottom: 2px solid #666;
      transform: translateY(-50%) rotate(45deg);
      transition: transform 0.3s;
  }
  
  .submenu-open > .dropdown-toggle:before {
      transform: translateY(-50%) rotate(-135deg);
  }
  
  /* Remove the arrow from the link on mobile */
  .menu-item-has-children > a:after {
      display: none;
  }
  
  .sub-menu {
      position: static;
      opacity: 1;
      visibility: visible;
      transform: none;
      box-shadow: none;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
      padding: 0;
      border: 0 none;
  }
  
  .submenu-open > .sub-menu {
      max-height: 500px;
      padding: 5px 0;
      background-color: #f9f9f9;
  }
  
  .sub-menu a {
      padding: 12px 30px;
  }
}

/* Footer
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.site-footer {
  background: var(--color-primary);
  position: relative;
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box; 
  color: var(--color-text-white);
}

.site-footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.site-footer-top,
.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
  gap: 20px;
}

.site-footer-top {
  margin-bottom: 40px;
}

.site-footer-bottom {
  border-top: 1px solid var(--color-border-opacity);
  padding: 40px 0 0 0;
}

.footer-branding {
  color: var(--color-text-white-opacity);
  max-width: 500px;
}

.footer-branding img {
  max-width: 210px;
  width: 100%;
  margin-bottom: 15px;
}

#footer-menu a {
  text-decoration: underline;
  color: var(--color-text-white);
}

#footer-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#footer-menu a {
  position: relative;
  padding: 0 0 0 25px;
}

#footer-menu a:after {
  content: "";
  position: absolute;
  left: 0;
  top: 45%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: translateY(-50%) rotate(-45deg);
  transition: transform 0.3s;
}

#footer-menu a:hover:after {
  border-color: var(--color-secondary-light);
}

#footer-menu a:hover {
  color: var(--color-secondary-light);
}

.footer-message {
  font-size: 1.6rem;
}

.website-by,
.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.website-by,
.copywrite {
  color: var(--color-text-white-opacity);
}

.website-by a,
.footer-social a {
   display: flex;
}

.footer-social a:hover svg {
  stroke: var(--color-secondary-light);
}

.website-by svg {
  max-width: 100px;
  min-width: 100px;
  width:100%;
}

/* Footer Logos */
.footer-logos {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-direction: row;
    margin-bottom: 20px;
}

.footer-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

@media (min-width: 750px) {
  .site-footer-top,
  .site-footer-bottom {
      flex-direction: row;
  }
  .footer-logos {
        justify-content: center;
  }
}

 /* Home Banner Slider Style
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.home-banner-slider {
    position: relative;
    overflow: hidden;
}

.banner-slide {
    min-height: 650px!important;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    text-align: left;
    color: #fff;
    box-sizing: border-box;
    min-height: 650px!important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-content-inner {
  max-width: 780px;
  margin-right: 250px;
}

.banner-heading {
    font-size: 48px;
    margin-bottom: 40px;
    color: var(--color-primary);
    max-width: 800px;
}

.banner-subheading {
    font-size: 24px;
    margin-bottom: 40px;
    color: #fff;
}

.banner-buttons {
    display: flex;
    justify-content: start;
    gap: 15px;
    flex-wrap: wrap;
}

.home-banner-slider.slick-dotted.slick-slider {
  margin-bottom: 0;
}

.home-banner-slider .slick-next,
.home-banner-slider .slick-prev {
  z-index: 1;
}

.home-banner-slider .slick-prev {
  left: 0;
}

.home-banner-slider .slick-next {
  right: 0;
}

.home-banner-slider.slick-initialized .slick-slide {
  display: flex;
  height: 100%;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .banner-slide,
    .banner-content  {
      min-height: 450px!important;
    }

    .banner-content  {
      padding: 60px;
    }

    .banner-content-inner {
      max-width: 780px;
      margin-right: 150px;
    }

    .banner-heading {
        font-size: 36px;
    }
    
    .banner-subheading {
        font-size: 18px;
    }
    
    .banner-slide {
        min-height: 400px;
    }
}

@media (max-width: 576px) {
    .banner-heading {
        font-size: 28px;
    }
    .banner-content-inner {
      margin-right: 50px;
    }
}


.slick-prev, .slick-next {
    width: 50px!important;
    height: 50px!important;
}

.slick-prev:before, .slick-next:before {
    font-size: 40px!important;
}

/* Site Wide
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.site-main {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
}

.site-main-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  gap: 50px;
}

.home .site-main-inner {
  flex-direction: row;
}

.page-header {
  padding: 60px 20px;
  background-color: var(--color-secondary-light); 
}

.page-header .entry-title {
  max-width: var(--container-max);
  margin: 0 auto;
  color: var(--color-text-white);
}

.content-area {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 50px;
  background: var(--color-white);
  border: 1px solid var(--color-border-grey);
  box-shadow: 0px 10px 20px rgba(5, 54, 94, 0.1);
  border-radius: 12px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-header {
    padding: 20px;
  }
  .site-main {
    padding:20px;
  }
  .site-main-inner {
    flex-direction: column;
    gap: 20px;
  }
  .content-area {
    padding: 20px;
  }
}

/* Sidebar + Breadcrumbs
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Sidebar Styling */
.sidebar {
  padding: 30px;
  border-radius: 12px;
  width: 300px;
  border: 1px solid var(--color-border-grey);
  box-sizing: border-box;
}

.sidebar h3 {
  color: #0d395f;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  border-bottom: 1px solid #e6e1dc;
  padding: 8px 0;
}

.sidebar-menu li:last-child {
  border-bottom: none;
}

.sidebar-menu a {
  color: #0d395f;
  text-decoration: none;
  display: block;
  position: relative;
  padding-left: 20px;
}

.sidebar-menu a:before {
  content: "›";
  position: absolute;
  left: 0;
  color: #00a79d;
}

.sidebar-menu a:hover,
.current_page_item a {
    color: #00a79d;
}

/* Breadcrumbs Styling */
.breadcrumbs {
  padding: 20px;
  font-size: 1.6rem;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-grey);
}

.breadcrumbs-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.breadcrumbs a {
  color:var(--color-primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
  margin: 0 5px;
  position: relative;
  width: 30px;
  display: inline-block;
}

.breadcrumbs .separator:after {
  content: "";
  position: absolute;
  left: 30%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
  transform: translateY(-50%) rotate(-45deg);
  transition: transform 0.3s;
}

.breadcrumbs .current-page {
  color:var(--color-secondary);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .breadcrumbs {
    display: none;
  }
  .sidebar {
    padding: 20px;
    width: 100%;
  }
}


/* Home page intro +
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.intro-section {
  margin: 50px 0;
}

.intro-section-heading {
  margin-bottom: 20px;
}

.intro-section-text {
  max-width: 850px;
}

/* Home page content split +
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.cards-and-members {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.card-block-section {
  flex: 0 1 60%;
  max-width: 60%;
}

.join-us-container {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border-grey);
    display: flex;
    flex-direction: column;
}

.join-us-text-col {
  padding: 30px;
  background: var(--color-primary);
  color: var(--color-white);
}

.join-us-image-col {
  width: 100%;
  position: relative;
  height: 300px;
  overflow: hidden;
}

.join-us-image-col img {
  position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    width: 100%;
}

.join-us-heading {
  color: var(--color-white);
  margin: 0 0 20px 0;
}

.join-us-section {
  flex: 0 1 40%;
  max-width: 40%;
}

@media (max-width: 991px) {
  .cards-and-members {
    flex-direction: column;
  }
  .card-block-section,
  .join-us-section {
    max-width: 100%;
    flex-basis: 100%;
  }
}

/* Arrow Button
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.arrow-btn {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: underline;
  color: var(--color-primary);
}

.arrow-btn:hover,
.arrow-btn:hover svg path {
  color: var(--color-secondary);
  fill: var(--color-secondary);
}

/* Card Blocks +
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.card-block-section {
  display: flex;
  gap: 40px;
  flex-direction: column;
}

.card-item {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border-grey);
  display: flex;
}

.card-text {
  padding: 30px;
}

.card-text-heading {
  margin-bottom: 10px;
}

.card-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-links > a {
  position: relative;
  padding: 0 0 0 25px;
  color:var(--color-primary);
  text-decoration: underline;
  transition: all;
}

.card-links > a:hover {
  color:var(--color-secondary);
}
.card-links > a:hover:after {
  border-color: var(--color-secondary);
}

.card-links > a:after {
  content: "";
  position: absolute;
  left: 0;
  top: 45%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: translateY(-50%) rotate(-45deg);
  transition: transform 0.3s;
}

.card-image-container img {
  width: 80px;
  padding: 30px 0 30px 30px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .card-text {
    padding: 20px;
  }

  .card-block-section {
    flex-direction: column;
  }
  .card-item {
    flex-direction: column;
  }
  .card-image-container img {
      width: 60px;
      padding: 20px 0 0px 20px;
  }
}

/* Team Members
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.team-section-heading {
  margin:30px 0;
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
}

.team-member-card {
    background-color: #fff; /* White background for cards */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    border: 1px solid var(--color-border-grey);
}

.team-member-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
}

.team-member-image img {
    width: 100%;
    height: 340px; /* Fixed height for images */
    object-fit: cover; /* Cover the area without distorting aspect ratio */
    display: block;
}

.team-member-info {
    padding: 20px;
    text-align: center;
}

.team-member-name {
    margin-bottom: 5px;
    color: var(--color-secondary);
}

.team-member-position {
   margin:0;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black background with opacity */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 40px;
    border-radius: 8px;
    width: 90%; /* Adjust width for responsiveness */
    max-width: 700px; /* Maximum width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative; /* Needed for absolute positioning of close button */
}

.close-button {
    color: var(--color-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--color-secondary-light);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex; /* Use flexbox for modal content layout */
    flex-direction: column; /* Stack elements vertically on small screens */
    align-items: center; /* Center items on small screens */
}

.modal-image {
    margin-bottom: 20px; /* Space below image on small screens */
}

.modal-image img {
      width: 150px; /* Smaller image in modal */
      height: 150px; /* Smaller image in modal */
      border-radius: 50%; /* Rounded image */
      object-fit: cover;
}

.modal-text {
    text-align: center; /* Center text on small screens */
}

.modal-name {
    margin-bottom: 10px;
    color: #333;
}

.modal-biography {
  font-size: 1.4rem;
  color: var(--color-dark-grey);
  margin: 10px 0 0 0;
}

/* Responsive adjustments for modal */
@media (min-width: 768px) {
    .modal-body {
        flex-direction: row; /* Arrange elements horizontally on larger screens */
        align-items: flex-start; /* Align items to the top */
    }

    .modal-image {
        margin-right: 40px; /* Space to the right of image on larger screens */
        margin-bottom: 0; /* Remove bottom margin on larger screens */
    }

    .modal-image img {
        width: 200px; /* Larger image in modal on larger screens */
        height: 200px; /* Larger image in modal on larger screens */
    }

    .modal-text {
        text-align: left; /* Align text to the left on larger screens */
    }
}

/* Content
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.entry-content .heading {
  margin:0 0 20px 0;
}

.entry-content h3, 
.entry-content h4, 
.entry-content h5, 
.entry-content h6,
.entry-content ul {
  margin:0 0 15px 0;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
  .entry-content .heading {
    display: none;
  }
}

/* Projects
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.accordion-controls {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.projects-accordion-group {
    margin-top: 20px;
}

.project-item-accordion {
    margin-bottom: 10px; /* Space between accordion items */
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden; /* Ensures rounded corners are respected by children */
}

.accordion-trigger {
    background-color: var(--color-white);
    color: var(--color-primary);
    cursor: pointer;
    padding: 10px 15px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    display: flex ;
    justify-content: space-between;
    align-items: center;
    border-radius: 0;
    white-space: normal;
    line-height: 29px;
    height: auto;
    letter-spacing: 0;
}

.accordion-trigger:hover {
   background-color: var(--color-white);
   color: var(--color-secondary);
}
.accordion-trigger:focus {
  background-color: var(--color-white);
  color: var(--color-secondary);
}

.accordion-trigger .project-name-accordion-title {
    font-weight: 400;
    line-height: 1.4;
}

/* Icon for accordion state - basic example using + and - */
.accordion-icon::before {
    content: '+'; /* Default: closed state */
    font-size: 1.2em;
    font-weight: bold;
    margin-left: 10px;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::before {
    content: '−'; /* Open state */
}

.accordion-content {
    padding: 0;
    background-color: white;
    overflow: hidden; 
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    max-height: 0; 
}

.accordion-content[hidden] {
    display: none;
}

.accordion-content.is-open {
  max-height: 1000px;
  padding: 0 15px 10px;
}

.project-details-inner .project-content-text {
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.project-details-inner .project-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.acf-projects-container {
  display: flex;
  gap: 30px;
  flex-direction: column;
}

/* Publications
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.publication-year-item {
  margin:0 0 20px 0;
}

ul.publications-list,
.entry-content ul {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 15px;
}


ul.publications-list li,
.entry-content ul li {
  position: relative;
  padding-left: 20px;
}

ul.publications-list li {
  font-size: 1.6rem;
  line-height: 1.4;
}

ul.publications-list li:before,
.entry-content ul li:before {
    content: "›";
    position: absolute;
    left: 0;
    color: #00a79d;
}

/* Events
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.event-archive-list .event-summary {
  box-sizing: border-box;
  background: var(--color-white);
  border: 1px solid var(--color-border-grey);
  box-shadow: 0px 10px 20px rgba(5, 54, 94, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.event-archive-details {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-archive-details h4 {
    line-height: 1.4;
}

.single-event .sidebar {
  padding: 0;
}

.sidebar-details {
  padding: 30px;
}

.sidebar-details h4 {
  margin-bottom: 20px;
}

.event-featured-image {
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom: 1px solid var(--color-border-grey);
}

.event-featured-image img {
  width: 100%;
  max-width: 130px;
  height: auto;
}

@media (max-width: 768px) {
    .single-event .site-main-inner {
        flex-direction: column-reverse;
    }
    .event-archive-details {
        padding: 20px;
    }
}

/* Events Archive Grid
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.event-archive-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.event-summary {
    display: flex;
    flex-direction: column;
}

.event-archive-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.event-archive-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .event-archive-list {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 576px) {
    .event-archive-list {
        grid-template-columns: 1fr;
    }

}

/* Upcoming Event Section
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.upcoming-event-heading {
    margin-bottom: 30px;
    color: var(--color-primary);
}

.upcoming-event-content {
    background: var(--color-white);
    border: 1px solid var(--color-border-grey);
    border-radius: 12px;
    display: flex;
    align-items: stretch;
}

.upcoming-event-image {
    flex: 0 0 300px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    overflow: hidden;
}

.upcoming-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upcoming-event-details {
    flex: 1;
    padding: 40px;
}

.upcoming-event-details h3 {
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.event-date,
.event-location {
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.upcoming-event-details .button {
    margin-top: 20px;
    display: inline-block;
}

@media (max-width: 768px) {
    .upcoming-event-heading{
      margin-bottom: 20px;
    }
    .upcoming-event-content {
        flex-direction: column;
    }
    .upcoming-event-image {
        flex: 0 0 250px;
        width: 100%;
        border-radius: 12px 12px 0 0;
    }
    .upcoming-event-details {
        padding: 20px;
    }
}

/* contact Us
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.gform_wrapper.gravity-theme .field_sublabel_above .gfield_description {
  margin: 0;
  padding-top: 5px;
}

.gform_wrapper.gravity-theme .gform_footer {
  margin: 0!important;
  padding:0!important;
}

.page-id-39 .content-area {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.6rem;
}