/* --- Variables & Base --- */
:root {
  --merseyside-blue: #004d91;
  --merseyside-teal: #005668;
  --merseyside-light-blue: #eef4f9;
  --text-dark: #333333;
  --white: #ffffff;
  --red-brand: #b11e2d;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  line-height: 1.6;
  color: var(--text-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 8px 16px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  align-self: flex-start;
}

/* --- Header & Navigation --- */
/* new stuff to incorporate search bar */
/* The wrapper for the top bar content */
.utility-flex {
    display: flex;
    align-items: center; /* Vertically center search and links */
    justify-content: center; /* Push search to center */
    position: relative; /* Allows absolute positioning for links */
    padding: 8px 0;
}

/* Center the search container */
.search-container {
    flex: 0 1 400px; /* Adjust 400px to your preferred search width */
}

.search-form {
    display: flex;
}

    .search-form input {
        flex-grow: 1;
        padding: 5px 10px;
        border: 1px solid #ccc;
        border-radius: 4px 0 0 4px;
    }

    .search-form button {
        padding: 5px 15px;
        background-color: #004a99; /* Adjust to match your Merseyside Prepared blue */
        color: white;
        border: none;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
    }

/* Position the "About Us" links to the far right of the row */
/*.top-nav {
    position: absolute;
    right: 0;
    display: flex;
    gap: 15px;
}

    .top-nav a {
        text-decoration: none;
        font-size: 0.9rem;
        color: #333;
    }*/

/* Responsive: On small screens, stack them */
/*@media (max-width: 768px) {
    .utility-flex {
        flex-direction: column;
        gap: 10px;
    }

    .top-nav {
        position: static;
    }
}*/
.utility-bar {
  background-color: var(--red-brand);
  padding: 10px 0;
}

.utility-flex {
  display: flex;
  justify-content: flex-end;
}

.top-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 20px;
  transition: opacity 0.3s;
}

.top-nav a:hover {
  opacity: 0.8;
}

.branding-area {
  padding: 15px 0;
  background-color: var(--white);
  display: flex;
  justify-content: flex-start;
}

.main-logo {
  max-height: 105px;
  width: auto;
}

.main-nav-wrapper {
  background-color: var(--white);
  border-top: 1px solid #e9ecef;
  border-bottom: 2px solid var(--merseyside-blue);
  position: relative;
}

.main-navigation {
  width: 100%;
}

.main-navigation .nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: space-between;
}

.main-navigation .nav-list li {
  flex: 1;
  text-align: center;
  border-right: 1px solid #eee;
  position: static;
}

.main-navigation .nav-list li:first-child {
  border-left: 1px solid #eee;
}

.main-navigation .nav-list li a {
  display: block;
  padding: 15px 10px;
  text-decoration: none;
  color: var(--merseyside-blue);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  transition: background 0.3s;
}

/* --- Mega Menu --- */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--red-brand);
  padding: 40px 0;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
}

.has-dropdown:hover .mega-menu {
  visibility: visible;
  opacity: 1;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 40px;
  text-align: left;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  color: var(--white) !important;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
}

.mega-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-icon {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  filter: brightness(0) invert(1);
}

/* --- Hero Section --- */
.hero-banner {
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: left;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.5rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* --- Homepage Components --- */
.action-cards-wrapper {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.action-card {
  padding: 20px;
  color: var(--white);
  border-radius:16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

.action-card:hover {
  transform: translateY(-5px);
}

    .action-card.blue {
        background-color: #00819E;
    }
    .action-card.dark-blue {
        background-color: #2832fa;
    }
    .action-card.red {
        background-color: #A22A1A;
    }
    .action-card.purple {
        background-color: #b63d80;
    }
    .action-card.green {
        background-color: #068439;
    }
    .action-card.light-green {
        background-color: #537F24;
    }
    .action-card.orange {
        background-color: #000000;
    }
    .action-card.brown {
        background-color: #99582a;
    }

.action-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: bold;
}
    .action-card a {
        text-decoration:none;
        color:white;
    }
.latest-news-section {
  background-color: #e9ecef;
  padding: 60px 0;
  text-align: center;
}

.section-title {
  color: var(--merseyside-blue);
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
  text-align: left;
}

.news-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
  flex-grow: 1;
}

.news-content h3 {
  color: var(--merseyside-blue);
  font-size: 1.4rem;
  margin: 0 0 15px 0;
}

.btn-news,
.btn-see-all {
  background-color: var(--red-brand);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 0.3s;
}

.btn-news:hover,
.btn-see-all:hover {
  background-color: #8a1723;
}

/* --- Block: Header Seperator --- */
.block-header-separator {
  padding: 0px 0; /* More space to act as a section break */
  text-align: center;
}

.separator-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
}

.separator-line {
    height: 6px;
    width: 30%; /* Small centered line */
    background-color: #000; /* Use your brand color */
    margin: 0 auto;
    border-radius: 8px;
}
/* --- Block: Image and Text (Strict 50/50 Fix) --- */
.block-image-text {
  width: 100%;
}

.image-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin: 0;
  align-items: stretch;
}

.grid-image {
  line-height: 0;
  font-size: 0;
}

.grid-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-text {
  display: flex;
  align-items: center;
}

.text-inner {
  padding: 60px;
  width: 100%;
}

.image-right .image-text-grid .grid-image {
  order: 2;
}
.image-right .image-text-grid .grid-text {
  order: 1;
}

.block-image-text.blue {
  background-color: var(--merseyside-blue);
}
.block-image-text.red {
  background-color: var(--red-brand);
}
.block-image-text.white {
  background-color: var(--white);
}

.block-image-text.text-white,
.block-image-text.text-white * {
  color: var(--white) !important;
}

@media (max-width: 768px) {
  .image-text-grid {
    grid-template-columns: 1fr;
  }
  .image-right .image-text-grid .grid-image {
    order: 1;
  }
  .image-right .image-text-grid .grid-text {
    order: 2;
  }
  .text-inner {
    padding: 40px 20px;
  }
}

/* --- Block: List Links --- */
.block-list-links {
  padding: 80px 0 !important;
  width: 100%;
  display: block;
  box-sizing: border-box;
  clear: both;
}

.block-list-links h2,
.block-list-links .section-title {
  margin: 0 0 40px 0 !important;
  padding: 0;
}

.link-column-grid {
  display: grid !important;
  gap: 30px;
  width: 100%;
  margin: 0 !important;
  grid-template-columns: repeat(var(--columns, 3), 1fr);
  align-items: stretch;
}

.link-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: auto;
  margin: 0 !important;
  box-sizing: border-box;
}

.block-list-links.blue {
  background-color: var(--merseyside-blue);
  color: var(--white);
}
.block-list-links.red {
  background-color: var(--red-brand);
  color: var(--white);
}

@media (max-width: 991px) {
  .link-column-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .link-column-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --- Block: CTA Banner --- */
.block-cta-banner {
  padding: 80px 0 !important;
  width: 100%;
  color: var(--white);
  display: block;
  box-sizing: border-box;
}

.cta-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cta-headline {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 20px 0 !important;
  line-height: 1.2;
}

.cta-subline {
  font-size: 1.4rem;
  margin: 0 0 35px 0 !important;
  opacity: 0.9;
}

.block-cta-banner.blue {
  background-color: var(--merseyside-blue);
}
.block-cta-banner.red {
  background-color: var(--red-brand);
}
.block-cta-banner.teal {
  background-color: var(--merseyside-teal);
}

.block-cta-banner .btn-outline {
  padding: 12px 30px;
  font-size: 1.1rem;
  border-width: 3px;
}

@media (max-width: 768px) {
  .cta-headline {
    font-size: 2rem;
  }
  .cta-subline {
    font-size: 1.1rem;
  }
}

/* --- Block: Accordion --- */
.block-accordion {
  /*padding: 120px 0 !important;*/
  background-color: var(--white);
}

.accordion-main-title {
  padding-top: 20px;
  text-align: center;
  color: black;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 50px 0 !important;
}

.accordion-container {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid #ddd;
  margin-bottom: 40px;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--merseyside-blue);
  font-weight: 600;
  font-size: 1.25rem;
}

.accordion-icon::before {
  content: "+";
  font-size: 1.6rem;
  color: var(--red-brand);
}

.is-active .accordion-icon::before {
  content: "-";
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.is-active .accordion-panel {
  max-height: 1000px;
  transition: max-height 0.5s ease-in;
}

.panel-inner {
  padding: 10px 0 30px 0;
}

/* --- Block: Quote --- */
.block-quote {
  padding: 100px 0 !important;
  background-color: var(--merseyside-light-blue);
  text-align: center;
}

.quote-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.quote-wrapper::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 8rem;
  color: var(--merseyside-blue);
  opacity: 0.1;
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.quote-text {
  font-size: 2rem;
  font-style: italic;
  font-weight: 300;
  color: var(--merseyside-blue);
  line-height: 1.4;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.quote-footer {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red-brand);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

/* --- Block: Partner Logos (Contained Slider) --- */
.block-partner-logos-contained {
  padding: 60px 0 !important;
  background-color: var(--white);
}

.logo-slider-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 60px;
}

.partner-title {
  text-align: center;
  color: var(--merseyside-blue);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px !important;
}

/* Symmetrical Chevron Arrows */
.slick-prev,
.slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0;
  z-index: 10;
}

.slick-prev::before,
.slick-next::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  border-top: 3px solid var(--merseyside-blue);
  border-left: 3px solid var(--merseyside-blue);
  transition: border-color 0.3s ease;
}

.slick-prev {
  left: 0;
}
.slick-prev::before {
  transform: rotate(-45deg);
}

.slick-next {
  right: 0;
}
.slick-next::before {
  transform: rotate(135deg);
}

.slick-prev:hover::before,
.slick-next:hover::before {
  border-color: var(--red-brand);
}

.partner-slider .logo-slide img {
  max-height: 70px;
  margin: 0 auto;
  display: block;
}

/* --- Block: Common Layouts --- */
.block-rich-text {
  padding: 40px 0;
}

/* Container for the two columns */
.block-grid-row {
  display: flex;
  flex-wrap: wrap; /* Allows columns to stack on mobile */
  gap: 30px; /* Space between columns */
  margin-bottom: 2rem;
}

/* Individual columns */
.block-grid-col {
  flex: 1; /* Default equal width */
  min-width: 300px; /* Forces stacking on small screens */
}

/* Specific Sidebar/Main Content ratio (Optional) */
.left-col {
  flex: 1; /* Takes up 75% of the width */
}

.right-col {
  flex: 3; /* Takes up 25% of the width */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .block-grid-row {
    flex-direction: column;
  }
  .left-col,
  .right-col {
    flex: none;
    width: 100%;
  }
}

/* NEWS Items and List page*/
/* News List Page */
.news-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 10px;
    text-align: left;
}
/* News Item Page */

.news-card-item {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.news-image-item img {
    width: auto;
    height: 250px;
    
}

.news-content-item {
    padding: 20px;
    flex-grow: 1;
}

    .news-content-item h1 {
        color: var(--merseyside-blue);
        font-size: 1.4rem;
        margin: 0 0 15px 0;
    }
.news-footer-item {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.figcaption-title {
    color: var(--merseyside-blue);
    font-weight:600;
}
.figcaption-date {
    color: var(--red-brand);
    font-weight: 600;
}

/* SLIDER */
.slider-container {
    position: relative;
    /*max-width: 1000px;*/
    width:100%;
    margin: 0 auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 450px;
}

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Navigation buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 18px;
    cursor: pointer;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.nav-btn:hover {
    background: rgba(0,0,0,0.7);
}

/* --- FIX: Navigation dots visible --- */

.dots {
    position: absolute; /* ensures they appear on top */
    bottom: 15px; /* move into view */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20; /* makes sure they're above images */
}

.dot {
    width: 14px;
    height: 14px;
    background: white; /* HIGH CONTRAST */
    border-radius: 50%;
    border: 2px solid #000; /* visible outline on any colour */
    cursor: pointer;
    opacity: 0.8;
}

    .dot.active {
        background: #000; /* filled black */
        opacity: 1;
    }

    .dot:hover {
        opacity: 1;
    }


    /* TEST copilot css for slider*/
.slider-item {
    position: relative;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.55); /* semi‑transparent black */
    padding: 20px 30px;
    border-radius: 16px;
    color: #fff;
    max-width: 80%;
    min-width:20%;
    z-index:2;
}
/* TEST copilot css for slider*/

/* Responsive */
@media (max-width: 768px) {
    .slide {
        height: 250px;
    }

    .nav-btn {
        font-size: 22px;
    }
}

.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: var(--slider-height, 500px);
}

.slider-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    height: 100%;
}

.slide {
    position: relative;
    min-width: 100%;
    height: 100%;
}

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* FADE TRANSITION */
.slider-container.fade .slider-track {
    display: block;
}

.slider-container.fade .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

    .slider-container.fade .slide:first-child {
        opacity: 1;
    }


    /* Partnet Slider Home Page */

.partner-section {
    width: 100%;
    padding: 60px 0;
    overflow: hidden;
}

    .partner-section .swiper {
        height: auto !important;
        min-height: 150px;
    }

.partner-ticker .swiper-wrapper {
    display: flex !important;
    align-items: center;
    transition-timing-function: linear !important;
}

.partner-ticker-item {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 0 60px;
    box-sizing: border-box;
    height: 150px !important;
}

    .partner-ticker-item img {
        position: relative !important;
        display: block !important;
        width: auto !important;
        max-width: 280px !important;
        height: auto !important;
        max-height: 70px !important;
        object-fit: contain !important;
        filter: grayscale(100%);
        opacity: 0.7;
        transition: all 0.3s ease;
    }

        .partner-ticker-item img:hover {
            filter: grayscale(0%);
            opacity: 1;
            transform: scale(1.05);
        }

.theme-dark .partner-ticker-item img {
    filter: grayscale(100%) invert(100%);
}
/* --- Footer --- */
.site-footer {
    background-color: #222;
    color: #fff; /* Changed from var(--white) for safety, update if needed */
    padding: 40px 0;
    margin-top: 50px;
}

/* New: Styling for the row of links */
.footer-links-row {
    display: flex;
    gap: 30px; /* Spacing between links */
    margin-bottom: 25px; /* Space between links and the info bar */
    border-bottom: 1px solid #444; /* Subtle separator */
    padding-bottom: 15px;
}

    .footer-links-row a {
        color: #fff;
        text-decoration: none;
        font-size: 0.95rem;
    }

        .footer-links-row a:hover {
            text-decoration: underline;
        }

/* Your Original Footer Info Styling */
.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

    .footer-info p {
        margin: 0;
        flex: 1;
    }

        /* Forces the "Managed by" text to the right */
        .footer-info p:last-child {
            text-align: right;
        }

.footer-logo {
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 20px;
}

    .footer-logo img {
        height: 24px;
        width: auto;
    }