/* --- START FONTS --- */

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    local(""),
    url("/fonts/lato-v23-latin-regular.woff2") format("woff2"),
    url("/fonts/lato-v23-latin-regular.woff") format("woff");
}
/* lato-italic - latin */
@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src:
    local(""),
    url("/fonts/lato-v23-latin-italic.woff2") format("woff2"),
    url("/fonts/lato-v23-latin-italic.woff") format("woff");
}
/* lato-700 - latin */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    local(""),
    url("/fonts/lato-v23-latin-700.woff2") format("woff2"),
    url("/fonts/lato-v23-latin-700.woff") format("woff");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src:
    local(""),
    url("/fonts/lato-v23-latin-700italic.woff2") format("woff2"),
    url("/fonts/lato-v23-latin-700italic.woff") format("woff");
}

/* --- END FONTS --- */

/* --- START THEME DEFINITIONS (MOVE LATER) --- */

body.theme-main {
  --active-button-bg: var(--brand-green);
  --header-bg: var(--brand-blue);
  --footer-row-bg: var(--brand-blue);
  --navbar-bg: rgba(0, 48, 72, 0.75);
}

body.theme-library {
  --active-button-bg: var(--brand-blue);
  --header-bg: var(--brand-green);
  --footer-row-bg: var(--brand-green);
  --navbar-bg: rgba(96, 124, 19, 0.75);
}

body.theme-visit {
  --main-colour: var(--brand-atlantic-blue);
  --secondary-colour: var(--brand-teal);
  --active-button-bg: var(--brand-teal);
  --header-bg: var(--brand-atlantic-blue);
  --footer-row-bg: var(--brand-atlantic-blue);
  --navbar-bg: rgba(27, 118, 188, 0.75);
  --header-height: 150px;
}

/* --- END THEME DEFINITIONS --- */

.main-menu .heading-bar a {
  color: #fafafa !important;
  font-size: 16px !important;
  padding: 10px !important;
}

.main-menu .dropdown-menu a span {
  font-weight: 700;
  display: block;
  font-size: 14px;
}

.main-menu .dropdown-menu a {
  color: #242526;
  font-size: 12px;
  display: block;
  margin-bottom: 20px;
  line-height: 1.2;
  padding: 1px;
}

.main-menu .dropdown-item {
  text-transform: none;
  display: inline;
  padding: 0;
  white-space: normal;
}

.main-menu .dropdown-menu {
  width: 600px;
}

.theme-visit .search-container {
  border-radius: 0;
}

.main-menu li.contact-us {
  position: relative;
}

@media (min-width: 992px) {
  .main-menu .navbar-nav {
    display: flex;
    flex-direction: row;
    width: 100%;
    list-style: none;
    padding: 0;
  }

  .main-menu .navbar-nav li:nth-child(6) {
    margin-left: auto;
    border: 0;
  }
}

/* Header 2 */

.banner-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  aspect-ratio: 21 / 9;
  max-height: 533px;
  margin-left: 0;
}

.banner-fullscreen {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  min-height: 500px;
}
#banner-image.banner-fullscreen {
  height: calc(100vh - 115px);
  max-height: 1057px;
}
.banner-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.main-menu .heading-bar a,
.main-menu button {
  background-color: var(--active-button-bg);
}

li.nav-item a.nav-link.dropdown-toggle:hover {
  color: var(--active-button-bg);
}

.navbar-nav .nav-item.active .nav-link:hover,
.navbar-nav .nav-item.contact-us a:hover {
  color: var(--header-bg);
}

.banner-content {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 350px; /* Removed the duplicate */
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center; /* Added for multi-line text safety */
}
/* The Wrapper for the text and icon */
.overlay-text-block {
  display: flex;
  flex-direction: column;
  align-items: center; /* Changed from flex-start to center the SVG icon */
  gap: 0;
  color: #ffffff;
  text-align: center; /* Changed from left so the text lines are centered */
}

/* The SVG Rules */
.overlay-icon {
  max-width: 100%;
  height: auto;
  line-height: 1;
}

/* The Title Rules */
.overlay-title {
  font-size: clamp(1.5rem, 5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Keeps it legible without a dark overlay */
  color: #fff;
}

/* The Subtitle Rules */
.overlay-subtitle {
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 400;
  margin: 0;
  opacity: 0.9;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.main-menu li.contact-us {
  height: auto;
}

form input[type="search"] {
  height: 60px;
}
@media (max-width: 1023px) {
  form input[type="search"] {
    height: 56px;
  }
}

.main-menu .dropdown-menu {
  padding: 15px;
  width: 400px;
}

@media screen and (max-width: 800px) {
  .main-menu .navbar-nav .nav-link {
    padding: 8px 30px;
  }
}

@media screen and (max-width: 1024px) and (min-width: 801px) {
  header a {
    font-size: clamp(0.7em, 0.8em, 1em);
  }
  .main-menu .navbar-nav .nav-link {
    padding: 18px 12px;
  }
}

@media screen and (max-width: 991px) {
  .main-menu .dropdown-menu {
    width: 88vw;
  }
  .main-menu {
    margin-top: -10px;
  }

  :root {
    --show-menu-margin: 15px 5px;
    --show-menu-margin-top: 10px;
  }
  .main-menu .see-dd {
    margin: var(--show-menu-margin);
    margin-top: var(--show-menu-margin-top);
  }
  .main-menu .stay-dd {
    margin-left: var(--show-menu-margin);
    margin-top: var(--show-menu-margin-top);
  }
  .main-menu .explore-dd {
    margin-left: var(--show-menu-margin);
    margin-top: var(--show-menu-margin-top);
  }
  .main-menu .events-dd {
    margin-left: var(--show-menu-margin);
    margin-top: var(--show-menu-margin-top);
  }
  .main-menu .inspire-dd {
    margin-left: var(--show-menu-margin);
    margin-top: var(--show-menu-margin-top);
  }
}

#_neoContentBlock2 a {
  color: var(--brand-atlantic-blue);
  text-decoration: none;
}
a:hover {
  color: var(--brand-teal);
  text-decoration: underline;
}
h1,
h2,
h3 {
  color: var(--brand-atlantic-blue);
}
h1 {
  margin: 0 0 10px 0;
  font-size: 2.5rem;
}
h2 {
  font-size: 1.8rem;
}
h3 {
  font-size: 1.4rem;
}
html {
  font-size: 100%;
}
p,
li,
.accordion-button,
.accordion-body p {
  font-size: 1.125rem;
}
p.intro-text {
  font-weight: 700;
}

/* 1. The Container */
.image-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 8px;
}

/* 2. The Image */
.card-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3. The Overlay  */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 33%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
  color: white;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.card-overlay h3 {
  font-style: normal;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.card-overlay a {
  margin: 0;
  color: #fff;
  text-decoration: none;
}
.card-overlay p {
  margin: 5px 0 0 0;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.card-links {
  font-size: 0.95rem;
  /* Optional: ensures the links don't break awkwardly on mobile */
  word-break: break-word;
}

/* 1. THE BASELINE */
/* Apply a standard 40px margin to the top of EVERY block that follows another block */
.content-block + .content-block {
  margin-top: 40px;
}

/* 2. THE EXCEPTIONS (Your specific rules) */

/* If Text follows Text, tighten it up to feel like a continuous article */
.block-richText + .block-richText {
  margin-top: 0;
}

/* If a Full Image follows Text, give it extra breathing room */
.block-text + .block-fullImage {
  margin-top: 60px;
}

/* If a Text block follows a Full Image, tuck it up close */
.block-fullImage + .block-text {
  margin-top: 20px;
}

/* If an Image follows an Image, stick them completely flush */
.block-fullImage + .block-fullImage {
  margin-top: 0;
}

/* Ensure the very first block never pushes away from the header */
.content-block:first-child {
  margin-top: 0;
}

/* Ensure the very last block behaves correctly near the footer */
.content-block:last-child {
  margin-bottom: 0; /* Or whatever your footer gap needs to be */
}

/* Specifically, if the last block is an image, make it flush with the footer */
.block-fullImage:last-child {
  margin-bottom: -15px; /* Pull it into the footer zone if needed */
}

.block-eventfinda:last-child {
  margin-bottom: -40px; /* Pull it into the footer zone if needed */
}

.block-quicklinks {
  margin-top: 60px;
}

.block-readspeaker {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.block-eventfinda {
  background-color: #eafbfd;
  padding-top: 20px;
}

@media (max-width: 1940px) {
  .block-eventfinda {
    /* Pulls the background 10px outward to bridge the gap */
    margin-left: -10px;
    margin-right: -10px;

    /* Pushes the text 10px back inward so it doesn't hit the screen edge */
    padding-left: 10px;
    padding-right: 10px;
  }
}
.block-eventfinda .image-card {
  aspect-ratio: auto; /* Ensures all cards are landscape */
}
.block-eventfinda .image-card img {
  border-radius: 8px !important;
}

/* 1. Make the article a stacked column so all cards in a row match height */
.block-eventfinda .image-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  background-color: #fff; /* Optional: ensures the text area has a white background */
}

/* 2. Force the image into a landscape crop */
.block-eventfinda .card-image {
  border-radius: 0px !important; /* Override for safety */
  overflow: visible !important; /* Let the image dictate its own borders */
  width: 100%;
  object-fit: cover; /* Ensures the image fills the 16:9 frame without stretching */
  display: block;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  aspect-ratio: auto !important;
}

/* 3. The new text container below the image */
.block-eventfinda .card-content {
  padding: 12px 4px;
  flex-grow: 1; /* If titles are different lengths, this pushes the text to the top */
}

/* 4. Fix typography (since it's no longer on a dark gradient) */
.block-eventfinda .card-content h3 {
  margin-top: 0;
  margin-bottom: 2px;
  color: #242526; /* Ensure it's a dark text color */
  font-size: 1.2rem;
  line-height: 1.1;
}

.block-eventfinda .card-content p {
  font-size: 0.8rem;
  margin: 0;
  color: #555555; /* Slightly lighter for metadata */
}

.block-temporaryNote blockquote {
  margin-bottom: 20px;
  padding: 5px;
  border: 2px solid var(--secondary-colour);
}
.block-temporaryNote h4 {
  color: var(--secondary-colour);
  text-align: right;
  float: right;
  padding: 0 0.8em;
  font-size: 16px;
  z-index: 9999;
  background: #fff;
  width: 140px;
  margin-top: -16px;
  margin-right: 20px;
}

.racards .card {
  padding: 0;
}
.racards {
  padding: 0 10px;
}
/* --- MOBILE: Tight Spacing --- */
/* Reduces the gap between cards to 10px total */
.card-grid-row {
  margin-left: -5px;
  margin-right: -5px;
}
.card-grid-row > [class*="col-"] {
  padding-left: 5px;
  padding-right: 5px;
}

/* --- DESKTOP: Slight Reduction --- */
/* Reduces the gap between cards to 20px total (Bootstrap default is 30px) */
@media (min-width: 992px) {
  .card-grid-row {
    margin-left: -10px;
    margin-right: -10px;
  }
  .card-grid-row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* 1. The Container: Flexbox to make them flow and wrap nicely */
.filter-group.ks-cboxtags {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 5px; /* Space BETWEEN the pills on the same line */
  row-gap: 0; /* Space BETWEEN the lines when they wrap */
  align-items: center; /* Keeps the clear button lined up */
}

/* 2. Hide the actual tiny square checkbox (but keep it accessible) */
.filter-group.ks-cboxtags input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* 3. Style the label to look like a clickable pill */
.filter-group.ks-cboxtags label {
  display: inline-block;
  background-color: #f8f9fa; /* Light grey background */
  border: 1px solid #ced4da; /* Subtle border */
  color: #495057;
  border-radius: 25px; /* Fully rounded edges */
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  user-select: none; /* Stops text highlighting if they double click */
  transition: all 0.2s ease-in-out;
}

/* Optional: Hover effect for desktop users */
.filter-group.ks-cboxtags label:hover {
  background-color: #e9ecef;
}

/* 4. The "Checked" State: What happens when they click it */
.filter-group.ks-cboxtags input[type="checkbox"]:checked + label {
  background-color: #1b75bc; /* Your brand blue */
  border-color: #1b75bc;
  color: #ffffff; /* White text */
}

/* --- START ACCORDION CSS --- */

.accordion-button {
  color: var(--brand-teal);
  padding: 5px 10px;
  white-space: normal;
  line-height: 1.1;
  background-color: transparent;
}

.accordion-button:not(.collapsed) {
  color: var(--brand-teal);
  background-color: transparent;
  box-shadow: none;
}

.accordion-button::after {
  display: none !important;
}

.accordion-body {
  padding: 0 15px;
}

.accordion-body img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 575px) {
  .accordion-button {
    padding: 5px 0px;
  }
  .accordion-body {
    padding: 0 0px;
  }
}

/* --- END ACCORDION CSS --- */

/* --- MOBILE SPACING (The Default) --- */
/* 1. Shrink the space between rows (Vertical) */
.dynamic-gutter-row {
  margin-bottom: 10px;

  /* Shrink the negative margin to match the new column padding */
  margin-left: -5px;
  margin-right: -5px;
}

/* 2. Shrink the space between the images (Horizontal) */
.dynamic-gutter-row > [class*="col-"] {
  padding-left: 5px;
  padding-right: 5px;
}

/* --- DESKTOP SPACING (768px and up) --- */
@media (min-width: 768px) {
  .dynamic-gutter-row {
    margin-bottom: 20px; /* Standard row gap */

    /* Restore standard Bootstrap negative margins */
    margin-left: -15px;
    margin-right: -15px;
  }

  .dynamic-gutter-row > [class*="col-"] {
    /* Restore standard Bootstrap column padding */
    padding-left: 12px;
    padding-right: 12px;
  }
}

a {
  text-decoration: none;
  color: var(--main-colour);
}

a:hover {
  text-decoration: underline;
}

.link-button-outline {
  border: 2px solid var(--secondary-colour);
  background-color: inherit;
}

.link-button-outline a:hover {
  color: var(--main-colour);
}

.link-button-outline:hover {
  border: 2px solid var(--main-colour);
}

.link-button-solid:hover {
  border: 2px solid var(--main-colour);
  background-color: var(--main-colour);
}

.link-button-outline a {
  color: var(--secondary-colour);
}

.theme-visit .link-button-solid a:hover {
  color: #fff;
}
.link-button-solid {
  border: 2px solid var(--secondary-colour);
  background-color: var(--secondary-colour);
}

header {
  background-color: var(--header-bg);
}

.yourin li {
  margin-right: 3px !important;
}
.yourin .nav-item {
  border: 1px solid white !important;
}
.yourin .nav-item.active {
  background-color: var(--active-button-bg);
}

.yourin,
.yourin a {
  font-size: 22px;
}
@media (min-width: 992px) and (max-width: 1024px) {
  .yourin,
  .yourin a {
    font-size: 18px;
  }
}

.yourin.main-menu ul {
  height: 50px;
}
.yourin .nav-item.active a {
  text-decoration: underline;
}

.main-menu {
  background-color: var(--navbar-bg);
}

.yourin.main-menu {
  background-color: var(--header-bg);
}

.main-menu li.contact-us {
  background-color: var(--active-button-bg);
}

/* Desktop & Base styling */
.yourin .nav-link {
  /* 16px top, 0px left/right, 8px bottom */
  padding: 12px 20px 10px !important;

  /* Forces the clickable area to fill the entire flex-fill box */
  display: block !important;
  width: 100%;
}

.yourin .nav-link:hover {
  color: var(--secondary-colour);
  text-decoration: underline;
}
/* Optional: Keep the mobile squish just in case it's a tiny 320px screen */
@media (max-width: 575px) {
  .yourin a.nav-link {
    font-size: 0.9rem !important;
    padding: 10px 0px 0px 0px !important;
    letter-spacing: -0.5px;
  }
  .yourin.main-menu ul {
    height: 40px;
  }
}

@media screen and (max-width: 991px) {
  .navbar {
    margin-top: 60px;
  }
}
.navbar.yourin {
  margin-top: 0px;
}
.front-overlay {
  background-color: transparent;
  max-width: 800px;
  width: 60%;
  height: 80px;
  margin-top: -80px;
}
.front-overlay form {
  width: 80%;
}
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: #6c757d; /* Bootstrap 4 gray-600 */
  pointer-events: none; /* Allows clicks to pass through to the input */
}

.search-input {
  border: 0;
  width: 90%;
  padding-left: 35px !important; /* Makes room for the icon */
  height: 60px;
  outline: none;
}

/* 1. The Base Input */
#searchbox {
  margin: 0 0 20px;
  width: 100%;

  /* Make it taller. 48px to 54px is the modern standard for text inputs */
  height: 50px;
  padding: 10px 24px;

  font-size: 1.2rem;
  color: var(--main-colour);
  background-color: #f9fafb; /* A very soft off-white */

  /* Soften the box */
  border: 2px solid #e5e7eb;
  border-radius: 25px; /* Creates a modern 'pill' shape. Change to 8px for a soft rectangle */

  /* Prepare for a smooth hover/focus animation */
  transition: all 0.25s ease-in-out;
  outline: none; /* We disable the default browser outline so we can custom-style it */
}

/* 2. The Focus State (Crucial for a premium feel) */
#searchbox:focus {
  background-color: #ffffff;

  /* Change this to your primary brand color! */
  border-color: var(--main-colour);

  /* Gives it a subtle 'lift' off the page when typing */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* 3. The Placeholder Text */
#searchbox::placeholder {
  color: #9ca3af;
  font-style: italic;
  opacity: 1; /* Override Firefox's default opacity fade */
}
/* 
.quicklinks2 a {
  color: #003048;
  text-decoration: none;
  margin-bottom: 60px;
  font-size: 24px;
  font-weight: 700;
  transition: all 0.6s ease;
  line-height: 1.2;
}
.quicklinks2 a:hover {
  color: #607c13;
  transform: translateY(-2px) translateX(-2px) rotate(-0.5deg);
  transition: all 2s ease;
}
.quicklinks2 .row {
  padding: 0px auto;
  border: 0px solid red;
}
.quicklinks2 {
  text-align: center;
  margin: 0px auto;
  border: 0px solid red;
}
  */

form input[type="search"] {
  height: 60px;
  border: 0;
}
/*
.front-news {
  background-color: #fff;
}
.front-news > div {
  width: 100%;
}
.front-news-text p:first-of-type {
  margin-bottom: 0;
}
.news-block {
  padding-top: 10px;
  padding-bottom: 20px;
}
.news-block h2 {
  background-color: transparent;
}
.news-block h2 a {
  text-align: left;
  color: #607c13;
  font-weight: 700;
  font-size: 1.5rem;
}
.news-block h2 a:hover,
.news-events h2 a,
.news-public-notices h2 a {
  color: #003048;
}
.news-events h2 a:hover,
.news-public-notices h2 a:hover {
  color: #607c13;
}
.news-news {
  margin-top: 0px;
}
.news-events,
.news-events .front-news {
  background-color: #edf4f6;
}
.news-public-notices,
.news-public-notices .front-news {
  background-color: #eff2e9;
}
body#home:has(.news-block) footer {
  margin-top: 0;
}
.front-news h3 a {
  color: #607c13;
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: underline;
}
.front-news h3 a:hover {
  color: #003048;
}
.front-news p {
  font-size: 1.15rem;
}
.front-news p.news-post-date {
  font-size: 0.9rem;
  margin-top: -2px;
  margin-bottom: 5px;
}
  */
/*
@media screen and (max-width: 800px) {
  .quicklinks2 .display-2 {
    font-size: 4rem;
  }
  .quicklinks2 a {
    font-size: 1.25rem;
  }
}
  */
header .logo {
  margin: 0;
  margin-left: 5px;
}
@media screen and (min-width: 801px) and (max-width: 1024px) {
  .main-menu li.contact-us {
    display: inline-block;
  }
}
@media screen and (min-width: 801px) {
  li.contact-us {
    display: inline-block;
  }
}

@media screen and (max-width: 800px) {
  .move-up {
    margin-top: -40px;
  }
}
@media screen and (max-width: 800px) {
  .main-menu {
    width: auto;
    height: auto;
  }
}

/* 3. Mobile adjustments (Targeting Bootstrap's 'md' breakpoint and below) */
@media (max-width: 767px) {
  .banner-image {
    /* Switch to a taller, boxier ratio so it fills out the mobile screen */
    aspect-ratio: 6 / 3;

    /* Safety net: Ensures it never gets too small to hold your text */
    min-height: 260px;
  }
}

.search-overlay {
  width: 100%;
  max-width: 600px;
  z-index: 2; /* Ensures it stays above the image */
}

/* Your "I want to..." menu pinned to the bottom right */
.do-it {
  position: absolute;
  bottom: 20px;
  right: 20px;
  margin: 0;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark for contrast */
  padding: 10px;
  border-radius: 8px;
  list-style: none;
  z-index: 3;
}

/* Standardizing the search box look */
.search-container {
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Makes it float off the image */
}

.row.tight-gutters {
  margin-left: -10px;
  margin-right: -10px;
}
.row.tight-gutters > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}
footer {
  background-color: var(--footer-row-bg);
}

.footer-bottom-bar {
  background-color: var(--brand-blue);
  margin: 0px -30px -5px;
  padding: 20px 20px 0px;
}

@media screen and (min-width: 1025px) {
  footer > div > div.col-lg-3:nth-of-type(2) {
    margin-left: -60px;
  }
}

@media screen and (min-width: 1500px) {
  footer > div > div.col-lg-3 {
    margin-right: 40px;
  }
  footer > div > div.col-lg-3:nth-of-type(2) {
    margin-left: -100px;
  }
  footer > div > div.col-lg-3:first-of-type {
    margin-left: 0px;
  }
}

.theme-visit h3 {
  font-style: normal;
  font-weight: 400;
}

/* 1. The Row Layout */
.search-result-card {
  display: flex;
  flex-direction: column; /* Stacks image above text on mobile */
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

@media (min-width: 768px) {
  .search-result-card {
    flex-direction: row; /* Side-by-side on desktop */
    align-items: flex-start;
  }
}

/* 2. The Image Wrapper (Controls the dimensions) */
.result-image-wrapper {
  flex-shrink: 0; /* Prevents the image box from collapsing */
  width: 100%;
  height: 300px; /* Mobile image height */
  border-radius: 8px;
  overflow: hidden;
  background-color: #f4f4f4; /* Placeholder color while loading */
}

@media (min-width: 768px) {
  .result-image-wrapper {
    width: 200px; /* Fixed width on desktop */
    height: 180px; /* Fixed height on desktop */
  }
}

/* 3. The Image Element (The object-fit magic) */
.result-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Forces the image to fill the box without squishing */
  object-position: center;
  transition: transform 0.3s ease;
}

.search-result-card:hover .result-image {
  transform: scale(1.05); /* Slight zoom on hover */
}

/* 4. Typography & Spacing */
.result-content {
  flex-grow: 1;
}

.result-type {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0rem;
}

.result-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

.result-title a {
  color: #111;
  text-decoration: none;
}

.result-title a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.result-description {
  color: #444;
  line-height: 1.3;
  font-size: 1.1rem;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#stats {
  color: var(--main-colour);
  padding: 10px 0;
  font-size: 1.3rem;
}
footer h3 {
  color: #fff;
}

.display-2 {
  font-size: 3.5rem;
  font-weight: normal;
  line-height: 1;
}
.block-quicklinks a {
  color: var(--main-colour);
  text-decoration: none;
  transition: all 0.6s ease;
}
.block-quicklinks a:hover {
  color: var(--secondary-colour);
  text-decoration: underline;
  transform: translateY(-6px) translateX(0px) rotate(0deg);
  transition: all 0.6s ease;
}

.quicklinks2 a {
  color: #003048;
  text-decoration: none;
  margin-bottom: 60px;
  font-size: 24px;
  font-weight: 700;
  transition: all 0.6s ease;
  line-height: 1.2;
}
.quicklinks2 a:hover {
  color: #607c13;
  transform: translateY(-2px) translateX(-2px) rotate(-0.5deg);
  transition: all 2s ease;
}

nav.breadcrumb {
  padding: 10px 5px;
}
.content-mid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}
.content-narrow {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}
@media (max-width: 1930px) {
  main {
    margin: 0 10px;
  }
}

div.hit {
  padding: 10px;
}
div.hit:nth-child(odd) {
  background-color: #b7e2e8;
}

.theme-visit .search-container {
  border-radius: 0;
}

.main-menu li.contact-us {
  position: relative;
}

.main-menu .dropdown-menu a:hover,
.main-menu .dropdown-menu a:hover span {
  color: var(--main-colour);
}
.main-menu {
  z-index: 9;
}
@media (min-width: 768px) {
  .top-menu {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}
.top-menu a {
  color: #fff;
  text-decoration: none;
}

.main-menu {
  z-index: 9;
  background-color: rgba(0, 48, 72, 0.75);
  padding: 0;
}

.main-menu .navbar-nav .nav-link {
  padding: 19px 30px;
  white-space: nowrap;
}
.main-menu a {
  color: #fafafa;
  text-transform: uppercase;
}

.main-menu .dropdown-toggle::after {
  border: 0;
}

@media (max-width: 1300px) {
  .main-menu .navbar-nav .nav-link {
    padding: 18px 20px 12px 20px;
    white-space: nowrap;
  }
}
.navbar-toggler {
  border-radius: 0;
  color: #fff;
  border: 0;
  padding: 10px;
}
@media (max-width: 991px) {
  .main-menu {
    background-color: transparent;
  }
}

@media screen and (max-width: 991px) {
  .navbar-collapse .navbar-nav {
    width: 100%;
  }
}
.main-menu button {
  color: #fafafa;
  text-transform: uppercase;
  border-radius: 0;
  width: 100%;
  overflow: visible;
  margin-top: -40px;
}

@media screen and (max-width: 991px) {
  .main-menu button {
    margin-top: -50px;
  }
}
.main-menu li.nav-item {
  border-right: 2px solid #e5e5e5;
  display: inline-block;
}
@media screen and (max-width: 799px) {
  .main-menu .navbar-nav .nav-link {
    padding: 10px 2vw;
  }
}
@media screen and (max-width: 1024px) {
  .main-menu .navbar-nav .nav-link {
    padding: 15px 1.8vw;
  }
}

@media screen and (max-width: 800px) {
  .main-menu a {
    text-transform: none;
  }
}
.main-menu a {
  color: #fafafa;
  text-transform: uppercase;
}
@media screen and (max-width: 799px) {
  .main-menu .navbar-nav .nav-link {
    padding: 10px 2vw;
  }
}

@media screen and (max-width: 991px) {
  .navbar-collapse .navbar-nav li.nav-item {
    border: 0;
    margin: 2px;
    background-color: var(--main-colour);
    min-height: 38px;
  }
  .main-menu {
    background-color: #fff;
  }
}

.navbar-toggler:focus {
  text-decoration: none;
  outline: 0;
  box-shadow: 0 0 0 0;
}
@media screen and (max-width: 991px) {
  .move-up {
    margin-top: -45px;
  }
}

/* =========================================
   CUSTOM CAROUSEL STYLING (NEO SLIDER)
   ========================================= */

/* 1. Move the left/right arrows closer to the edge */
.block-slider .carousel-control-prev,
.block-slider .carousel-control-next {
  /* Bootstrap's default width is 15%. Shrinking the container 
       pushes the icon much closer to the outside edges. */
  width: 8%;
  opacity: 0.7;
}

/* 2. Arrows inside a semi-transparent white circle with a transparent knockout */
.block-slider .carousel-control-prev-icon {
  width: 3rem;
  height: 3rem;

  /* This custom SVG uses an internal mask to punch a perfectly transparent 
       hole (the arrow) straight through the white circle */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cmask id='hole'%3E%3Crect width='100%25' height='100%25' fill='white'/%3E%3Cpath d='M15 18l-6-6 6-6' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/mask%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='12' fill='rgba(255,255,255,1)' mask='url(%23hole)'/%3E%3C/svg%3E");
}

.block-slider .carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cmask id='hole'%3E%3Crect width='100%25' height='100%25' fill='white'/%3E%3Cpath d='M9 18l6-6-6-6' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/mask%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='12' fill='rgba(255,255,255,1)' mask='url(%23hole)'/%3E%3C/svg%3E");
}

/* 3. Indicators: Dashes into circles */
.block-slider .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: transparent; /* Inactive states are hollow */

  /* We have to override border-top and border-bottom because Bootstrap 
       uses 10px invisible borders here to make the hit-area larger for mobile */
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-top: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);

  margin: 0 6px -0.5rem;
  opacity: 1;
}

/* The active indicator gets the solid fill */
.block-slider .carousel-indicators .active {
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

/* Mobile Adjustments for Carousel Arrows */
@media (max-width: 767px) {
  /* 1. Push the arrows further inward by widening their container */
  .block-slider .carousel-control-prev,
  .block-slider .carousel-control-next {
    width: 15%; /* Increases from the 8% desktop width */
  }

  /* 2. Shrink the size of the white circles */
  .block-slider .carousel-control-prev-icon,
  .block-slider .carousel-control-next-icon {
    width: 2rem; /* Shrinks from the 3rem desktop size */
    height: 2rem;
  }
  .block-slider .carousel-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    margin: 0 3px -20px;
  }
}
/* =========================================
   SLIDER OVERLAY TEXT & LINKS
   ========================================= */

/* 1. Ensure all links in the overlay are underlined */
.block-slider .carousel-caption a {
  text-decoration: underline !important;
  text-underline-offset: 3px; /* Drops the underline slightly so it doesn't cut through letters like 'p' and 'g' */
  text-decoration-thickness: 2px;
  color: #fff;
  padding-bottom: 5%;
}

/* 2. Mobile Adjustments for the Overlay */
@media (max-width: 767px) {
  /* Push the content up by overriding the flex alignment center point */
  .block-slider .carousel-caption {
    padding-bottom: 10%;
  }

  /* Scale the SVG, Title, and Subtitle down by 20% all at once */
  .block-slider .slider-overlay-content {
    transform: scale(0.8);
    transform-origin: center center;
  }
}
/* Add space between the SVG stars and the text below them */
.block-slider .slider-image {
  margin-bottom: 20px;
}
@media (min-width: 992px) and (max-width: 1024px) {
  .move-up {
    margin-top: -60px;
  }
}

/* 1. Remove the margin from the button */
.block-eventfinda .link-button-outline {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-bottom: 0 !important; /* Kill the margin so it stops poking through */
  margin-top: -10px;
}

/* 2. Add padding to the parent block to stretch the background */
.block-eventfinda {
  padding-bottom: 20px; /* This creates the space inside the colored box */
}

.block-raPostAggregator .link-button-outline {
  display: block;
  width: fit-content;
  margin-left: auto;
}
ul.icons li i {
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 18px !important;
}
ul.icons li {
  padding: 0 4px;
}
