<style>
/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
font-family: "Open Sans", Helvetica, Arial, sans-serif; 
}


/* TOP BAR */
.top-bar {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  align-items: center;
  background: #f5f5f5;
  padding: 8px 16px;
  font-size: 14px;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #000;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

/* HEADER */
header { border-bottom: 1px solid #eee; }
.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #b30000;
  text-decoration: none;
  white-space: nowrap;
}

/* NAV BASE */
nav {
  margin-left: auto;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: flex-end;
font-family: "Open Sans", Helvetica, Arial, sans-serif; 

}
nav li { position: relative; }
nav a {
  text-decoration: none;
  color: #333;
  padding-bottom: 4px;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}

/* ⭐ DESKTOP MAIN MENU — UNDERLINE ONLY ON FULL SCREEN */
@media (min-width: 769px) {

  nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background: #b30000;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  nav > ul > li > a:hover::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
  }

  nav > ul > li > a:hover {
    background: #fff7e6;
    color: #b30000;
    padding-left: 0; /* no jump */
  }
}

/* DESKTOP SUBMENU */
nav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px 0;
  min-width: 380px;
  display: none;
  z-index: 999;
}
nav li:hover > ul { display: block; }

nav li ul .menu-heading,
nav li ul .sub-item {
  position: relative;
  transition: padding-left 0.2s ease, background 0.2s ease, color 0.2s ease;
}

nav li ul .menu-heading {
  font-weight: bold;
  color: #b30000;
  padding: 6px 18px 4px;
  line-height: 1.2;
}

nav li ul .sub-item {
  padding: 6px 28px;
  display: block;
  line-height: 1.2;
}

/* ⭐ DESKTOP SUBMENU HOVER — CREAM BG + RED TEXT + RED LINE + SHIFT */
nav li ul .menu-heading::before,
nav li ul .sub-item::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: transparent;
  transition: background 0.2s ease;
}

nav li ul .sub-item::before {
  left: 28px;
}

nav li ul .menu-heading:hover,
nav li ul .sub-item:hover {
  background: #fff7e6;
  color: #b30000;
}

nav li ul .menu-heading:hover::before,
nav li ul .sub-item:hover::before {
  background: #b30000;
}

nav li ul .menu-heading:hover {
  padding-left: 24px;
}

nav li ul .sub-item:hover {
  padding-left: 34px;
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: block; margin-right: auto; }
  .logo { margin-left: auto; }

  header nav { width: 100%; order: 3; }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0 !important;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 0;
  }

  nav ul.is-open { display: flex; }

  nav ul > li {
    width: 100%;
    margin: 0;
  }

  nav > ul > li > a {
    font-weight: 700 !important;
    position: relative;
    transition: padding-left 0.2s ease, background 0.2s ease, color 0.2s ease;
  }

  nav ul > li > a {
    display: block;
    padding: 6px 20px;
    line-height: 1.2;
  }

  /* ⭐ MOBILE MAIN HOVER — CREAM BG + RED TEXT + RED LINE + SHIFT */
  nav > ul > li > a::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: transparent;
    transition: background 0.2s ease;
  }

  nav > ul > li > a:hover {
    background: #fff7e6;
    color: #b30000;
    padding-left: 26px;
  }

  nav > ul > li > a:hover::before {
    background: #b30000;
  }

  /* MOBILE SUBMENU */
  nav li ul {
    position: static;
    border: none;
    padding: 8px 0 4px 0;
    display: block;
  }

  nav li ul .menu-heading,
  nav li ul .sub-item {
    position: relative;
    transition: padding-left 0.2s ease, background 0.2s ease, color 0.2s ease;
  }

  nav li ul .menu-heading {
    padding: 6px 20px 6px 30px !important;
    font-weight: 700;
  }

  nav li ul .sub-item {
    padding: 6px 20px 6px 40px !important;
    font-weight: 400;
  }

  /* ⭐ MOBILE SUBMENU HOVER — CREAM BG + RED TEXT + RED LINE + SHIFT */
  nav li ul .menu-heading::before,
  nav li ul .sub-item::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: transparent;
    transition: background 0.2s ease;
  }

  nav li ul .menu-heading::before {
    left: 30px;
  }

  nav li ul .sub-item::before {
    left: 40px;
  }

  nav li ul .menu-heading:hover,
  nav li ul .sub-item:hover {
    background: #fff7e6;
    color: #b30000;
  }

  nav li ul .menu-heading:hover::before,
  nav li ul .sub-item:hover::before {
    background: #b30000;
  }

  nav li ul .menu-heading:hover {
    padding-left: 36px !important;
  }

  nav li ul .sub-item:hover {
    padding-left: 46px !important;
  }

  nav ul,
  nav ul li,
  nav ul li a {
    text-align: left;
  }
}


.page-banner {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: var(--banner-image);
}
/* Mobile adjustment: keep the man visible */
@media (max-width: 768px) {
    .page-banner {
        background-position: 30% center; /* shifts focus left */
        height: 150px; /* optional, trims height for mobile */
    }
}

/*FOOTER */

.site-footer {
    background: #413F40;
    color: #fff;
    padding: 40px 20px;
      font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
}

.footer-column a:hover {
    color: #ff0000;
}

/*  Mobile: Stack into 1 column */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 25px;
    }
}

/* ===========================
   CAROUSEL HEIGHT
   =========================== */
.carousel {
    position: relative;
    width: 100%;
    height: 650px;      /* your requested height */
    overflow: hidden;
}

/* ===========================
   SLIDES
   =========================== */
.slides {
    position: relative;
    width: 100%;
    height: 100%;       /* match the 450px height */
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;       /* ensures background fills the 450px area */
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.8s ease-in-out;
}

input[type="radio"] {
    display: none;
}
/* Background images */
.s1 { background-image: url('Images/Home/planning.jpeg'); }
.s2 { background-image: url('Images/Home/how_much_retire.jpeg'); }
.s3 { background-image: url('Images/Home/time_and_money.jpeg'); }

/* Active slide */
#slide1:checked ~ .slides .s1,
#slide2:checked ~ .slides .s2,
#slide3:checked ~ .slides .s3 {
    opacity: 1;
}

/* ===========================
   CAPTION (DESKTOP)
   =========================== */
.caption {
    position: absolute;
    left: 11%;
    bottom: 25%;
    transform: translateY(-300px);
    opacity: 0;
    font-size: 1.9rem;
    font-weight: 700;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    color: #fff;
    padding: 12px 25px;
    background: #b30000;
    border-radius: 4px;
    line-height: 1.2;
}

.caption span {
    display: inline; /* desktop: single line */
}

/* ===========================
   ANIMATION
   =========================== */
@keyframes flydown {
    0% { transform: translateY(-300px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

#slide1:checked ~ .slides .s1 .caption,
#slide2:checked ~ .slides .s2 .caption,
#slide3:checked ~ .slides .s3 .caption {
    animation: flydown 2.5s ease-out forwards;
}

/* ===========================
   DOT NAVIGATION
   =========================== */
.dots {
    position: absolute;
    bottom: 20px;
    left: 25px;      /* back where you wanted it */
    display: flex;
    gap: 10px;
}

.dots label {
    position: relative;         /* required for the red centre */
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
}

#slide1:checked ~ .dots label:nth-child(1)::after,
#slide2:checked ~ .dots label:nth-child(2)::after,
#slide3:checked ~ .dots label:nth-child(3)::after {
    content: "";
    position: absolute;
    inset: 3px;                 /* controls inner dot size */
    background: #b30000;        /* red centre */
    border-radius: 50%;
}

/* ===========================
   MOBILE OVERRIDES
   =========================== */
@media screen and (max-width: 768px) {

    .caption {
        position: absolute;
        left: 5%;
        bottom: 25%;
        transform: translateY(0);
        text-align: left;
	    font-size: 1.2rem;   /* smaller text, cleaner fit */
        max-width: 70%;        /* <<< THIS forces wrapping */
        width: auto;

        background: none;
        padding: 0;
        line-height: 1.2;
 -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
    }

    .caption span {
        display: block;
        background: #b30000;
        padding: 6px 12px;
        margin-bottom: 4px;
        line-height: 1.2;
        box-sizing: border-box;
        width: fit-content;    /* <<< SHRINK WRAPS each line */
        max-width: 100%;       /* <<< prevents overflow */
        white-space: normal;   /* <<< FORCES wrapping */
    }

    .caption span:last-child {
        margin-bottom: 0;
    }
}

/* -------------------------------------------------------- */
/* - Text Columns with Alternate Colours and Red Divider  - */
/* -------------------------------------------------------- */
/* Full-width background wrapper */
.fullwidth-bg {
    width: 100%;
    padding: 40px 0; /* vertical spacing */
}

.content-box {
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
    box-sizing: border-box;

}

.fullwidth-bg.lb {
    background: #e7ecf0; 
}

.fullwidth-bg.red {
    background: #d23637; 
}
/* Optional red divider */
.content-box.with-divider .content-columns {
    column-rule: 2px solid #ce3938;
    column-gap: 80px;   
}

.content-box h2 {
    margin: 0 0 20px 0;   
    padding: 0;           
    background: none; 
    color: #222;    
    font-size: 36px;
    font-weight: 600;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
}
.content-box h1 {
    margin: 0 0 20px 0;   
    padding: 0;           
    background: none; 
    color: #222;    
    font-size: 40px;
    font-weight: 600;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

.content-no-columns {
    color: #444;
	font-size: 18px;
    line-height: 1.6;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

.content-columns {
    color: #444;
    column-count: 2;
    column-gap: 40px;
    font-size: 18px;
    line-height: 1.6;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
}
.column-break {
    break-before: column;
}
.no-break {
    break-inside: avoid;              /* Standard */
    -webkit-column-break-inside: avoid; /* Safari / older WebKit */
    page-break-inside: avoid;         /* Legacy support */
}
/* Image wrapper that stays inside a single column */
.column-image {
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 20px 0;
    width: 100%;
    text-align: center; /* optional */
}

.column-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.spaced-list li {
    margin-bottom: 0.5em; /* half-line spacing */
}


/* Contact section layout */
.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    color: #fff;
}

.contact-left {
    flex: 1; /* takes remaining width */
    padding-right: 40px;
}

.contact-right {
    flex: 0 0 auto; /* fixed width for button */
}

/* Button variant for white background with red text */
.red-btn.invert {
    background: #fff;
    color: #b30000;
    border-color: #fff;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

.red-btn.invert:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;

}

.fullwidth-bg.red .contact-section,
.fullwidth-bg.red .contact-section h1,
.fullwidth-bg.red .contact-section h2,
.fullwidth-bg.red .contact-section p {
    color: #fff;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

.aligned-list {
  list-style-position: outside;   /* keeps text aligned, not under bullet */
  margin: 0;
  padding-left: 1.2em;            /* adjust until bullet aligns with paragraph */
}

.aligned-list li {
  margin-bottom: 0.5em;           /* half-line spacing */
  padding-left: 0;                /* ensures text aligns cleanly */
}

/*  Mobile: collapse to 1 column */
@media screen and (max-width: 768px) {
    .content-box {
        width: 100%;
        padding: 15px;
    }

    .content-columns {
        column-count: 1;
        column-gap: 0;
    }
.column-break {
        break-before: auto;
    }
    .contact-section {
        flex-direction: column;
        text-align: center;
    }
    .contact-left {
        padding-right: 0;
        margin-bottom: 20px;
    }

}

.hspace {
    margin-bottom: 0.6em; /* half a line */
    margin-top: 0.6em; /* half a line */

}
.red-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #b30000;     /* red background */
    color: #fff;             /* white text */
    border: 2px solid #b30000;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    font-size: 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.red-btn:hover {
    background: #fff;        /* white fill */
    color: #b30000;          /* red text */
    border-color: #b30000;   /* border stays red */
}
/* ================================ */
/* Red Circles			    */
/* ================================
   WRAPPER GRID LAYOUT
   ================================ */
.redifa-dots-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  row-gap: 40px;
  text-align: center;
  background: #fff;
}

/* ================================
   CLICKABLE BLOCK (THE GRID ITEM)
   ================================ */
.redifa-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ================================
   DIAMOND LAYOUT POSITIONING
   ================================ */
/* Row 1: icons 1, 2, 3 */
.redifa-link:nth-child(1) { grid-column: 1; }
.redifa-link:nth-child(2) { grid-column: 3; }
.redifa-link:nth-child(3) { grid-column: 5; }

/* Row 2: icons 4, 5 */
.redifa-link:nth-child(4) { grid-column: 2; }
.redifa-link:nth-child(5) { grid-column: 4; }

/* ================================
   IMAGE STYLING (120x120)
   ================================ */
.redifa-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 12px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Hovering the image itself */
.redifa-img:hover {
  box-shadow: 0 0 12px 5px rgba(206, 57, 56, 0.8);
  transform: scale(1.05);
  cursor: pointer;
}

/* Hovering ANYWHERE in the block (title, text, etc.) */
.redifa-link:hover .redifa-img {
  box-shadow: 0 0 12px 5px rgba(206, 57, 56, 0.8);
  transform: scale(1.05);
}

/* ================================
   TITLE + TEXT
   ================================ */
.redifa-title {
  font-size: 20px;
  color: #222;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  margin: 10px 0 5px;
  font-weight: 600;
}

.redifa-text {
  color: #444;
  font-size: 18px;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  line-height: 1.4;
  max-width: 260px;
  margin: 0 auto;
}
.redifa-cta {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 1px;      /* spaced caps */
  color: #ce3938;           /* redifa red */
  font-weight: 600;
font-family: "Open Sans", Helvetica, Arial, sans-serif;

  text-transform: uppercase;
}
/* ================================
   IMAGE STYLING (CIRCULAR PHOTOS)
   ================================ */
.redifa-img {
  width: 160px;               /* match Redifa circle size */
  height: 160px;
  border-radius: 50%;
  object-fit: cover;          /* ensures photo fills the circle */
  object-position: center;    /* keeps subject centred */
  display: block;
  margin: 0 auto 12px;
  border: 4px solid #ce3938;  /* Redifa red border */
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* Hover glow */
.redifa-link:hover .redifa-img {
  box-shadow: 0 0 12px 5px rgba(206, 57, 56, 0.8);
  transform: scale(1.05);
}
/* Pension-only circles: no red border */
.redifa-img.pension {
  border: none;
}

/* ================================
   MOBILE: SINGLE COLUMN
   ================================ */
@media screen and (max-width: 768px) {
  .redifa-dots-wrapper {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .redifa-link {
    grid-column: 1 !important;
  }
}



/* ================================ */
/* Our Team Layout */
/* ================================ */

/* Full-width coloured background */
.team-wrapper {
    width: 100%;
    background: #e7ecf0; /* light blue */
    padding: 60px 20px;  /* space above/below the cards */
}

/* Centred grid inside the coloured area */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;

    justify-content: center;   /* ⬅ centres every row, including the last */
    margin: 0 auto;
}

/* Individual cards */
.team-member {
flex: 0 0 260px; 
    text-align: left;
 background: #fff;


}

/* Photo container */
.team-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
   
}

/* Image behaviour */
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text styling */
.team-name {
    margin: 15px 0 8px;
    font-size: 1.1rem;
    color: #222;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    text-align: center;

}

.team-text {
    margin: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;

}

/* Responsive layout */
@media (max-width: 900px) {
    .team-grid {
 max-width: 85%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .team-member {
        text-align: center;   /* centre name + text */
    }

    .team-photo img {
        margin: 0 auto;       /* centre the photo */
        display: block;
    }
}
a.redlink {
  color: #d23637;
  text-decoration: none;
}

a.redlink:hover {
  color: #000000;
}

/* ============================================= */
/* =    	    CONTACT PAGE               = */
/* ============================================= */
.contact-form-section h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.contact-form-section p {
    margin-bottom: 20px;
}

.contact-form .form-row {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 6px;
    font-weight: 400;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-submit {
    background: #b30000;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.contact-submit:hover {
    background: #000000;
    color: #ffffff
}
@media (max-width: 768px) {

    /* Stack the contact page columns vertically */
    .media-layout {
        flex-direction: column;
        padding: 10px;
        gap: 20px;
    }

    /* Make the Google Map responsive */
    iframe {
        width: 100% !important;
        max-width: 100%;
        height: 500px;
        display: block;
    }

    /* Prevent horizontal scrolling */
    .right-column,
    .map-container {
        overflow: hidden;
    }
}
/* ============================
   LAYOUT
   ============================ */
.media-layout {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    display: flex;
    gap: 30px;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
}

/* LEFT COLUMN (viewer + scroll button) */
.left-column {
    flex: 2;
    display: flex;
    flex-direction: column;
}

/* Hide Back button on desktop */
.viewer-back {
    display: none;
}
/* ============================
   VIEWER (DESKTOP)
   ============================ */
.media-viewer {
    background: #e7ecf0;
    color: #444;
    font-size: 18px;
    line-height: 1.6;
    border-radius: 6px;
    padding: 15px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 350px;
}

/* Enlarge button */
.viewer-enlarge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    color: #b30000;
    border: 2px solid #b30000;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10000;
}

/* Fullscreen viewer */
.media-viewer.fullscreen {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background: #e7ecf0;
    padding: 20px;
    box-sizing: border-box;

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 9999;
}

.media-viewer.fullscreen .viewer-enlarge {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 100000;
}

/* Viewer content */
.viewer-content {
    margin-top: 40px;
  	font-size: 18px;
    line-height: 1.6;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;

    overflow-wrap: break-word;
    margin-bottom: 40px;
}


/* Centre title */
.viewer-content h2 {
    text-align: center;
    margin-bottom: 20px;
    margin-left: 10%;
    margin-right: 10%;

}

/* Centre thumbnail */
.viewer-content img {
    display: block;
    margin: 0 auto 20px auto;
}



/* Only justify the summary paragraph if you have one */
.viewer-content .article-body {
    text-align: justify;
    margin: auto;
}

/* ============================
   SCROLL-TO-TOP BUTTON (UNDER VIEWER)
   ============================ */
.scroll-top-btn {
    margin-top: 10px;
    align-self: flex-end; /* align right inside left column */

    background: #b30000;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: none; /* JS toggles this */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.25s ease;
}

.scroll-top-btn:hover {
    background: #000;
}

/* ============================
   LIST (RIGHT COLUMN)
   ============================ */
.media-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.media-item {
    background: #f5f5f5;
    padding: 14px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s ease, padding-left 0.25s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
 position: relative; /* allows absolute positioning inside */
}

.media-item:hover {
    background: #fff7e6;
    color: #b30000;
    padding-left: 24px;
    border-left: 3px solid #b30000;
}

/* Thumbnail */
.item-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}


/* Text column */
.item-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-right: 10px; /* prevents text touching the right edge */
}

/* Title stays at the top-left */
.item-title {
    display: block;
    margin-bottom: 4px;
}

/* Metadata anchored bottom-right */
.article-metadata {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.85rem;
    color: #999;
    text-align: right;
    pointer-events: none; /* avoids interfering with clicks */
}

/* MOBILE */
@media (max-width: 768px) {

    .media-layout {
        flex-direction: column;
        padding: 10px;
    }

    .media-viewer {
        display: none;
    }

    .viewer-enlarge {
        display: none;
    }

    .scroll-top-btn {
        display: none !important;
    }

    /* Back button only on mobile */
    .viewer-back {
        display: inline-block;
        position: sticky;
        top: 0;
        right: 12px;
        background: #fff;
        color: #b30000;
        border: 2px solid #b30000;
        padding: 10px 16px;
        border-radius: 4px;
        cursor: pointer;
        z-index: 100000;
        margin-bottom: 10px;
    }

    /* Mobile overlay viewer */
    .media-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: #e7ecf0;
        color: #000;
        z-index: 9999;
        padding: 20px;
        overflow-y: auto;
    }

    .media-overlay.active {
        display: block;
    }

    /* IMPORTANT: match desktop font */
    .overlay-content {
    margin-top: 40px;
    font-size: 18px;
    line-height: 1.6;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    overflow-wrap: break-word;
    margin-bottom: 40px;
}

/* Mobile overlay title */
.overlay-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Mobile overlay thumbnail */
.overlay-content img {
    display: block;
    margin: 0 auto 20px auto;
}

/* Mobile overlay body text */
.overlay-content div {
    text-align: justify;
    margin-left: 5%;
    margin-right: 5%;
    }
}

/* ===========================
   COOKIE BANNER - DESKTOP BASE
   =========================== */
#cookieBanner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #3b2a1f;
    color: #fff;
    padding: 20px;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    z-index: 999999999;

    /* Desktop layout: text + buttons on one line */
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

#cookieBanner button {
    background: #ce3938;
    color: #fff;
    border: none;
    padding: 10px 18px;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
}

#cookieBanner button:hover {
    background: #a52a2a;
}
/* ===========================
   COOKIE BANNER - MOBILE LAYOUT
   =========================== */
@media (max-width: 768px) {
    #cookieBanner {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    #cookieBanner p {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    #cookieBanner button {
        display: inline-block;
        margin-right: 10px;
        margin-top: 10px;
        flex: 0 0 auto;
    }
}

</style>
