/* ===============================
   ROOT VARIABLES (COLOURS & FONTS)
   =============================== */

@font-face {
    font-family: 'Poppins';
    src: url('_assets/_fonts/Poppins-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('_assets/_fonts/Poppins-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('_assets/_fonts/Roboto-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('_assets/_fonts/Roboto-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* visible focus ring for accessibility: */
input.ring,
input:focus,
.select:focus {
    outline: 3px solid #111;
    outline-offset: 2px;
}
.section-wrapper{

}
.section-fullwidth {
  width: 100vw;
  max-width: 100vw;
}

@media (max-width: 1200px){
    .section-wrapper{
        padding: 1.5rem !important;
    }
}

@media (max-width: 991px){
    .section-wrapper{
        padding: 1rem !important;
    }
}

@media (max-width: 768px){

    .section-wrapper{
        padding: .1rem !important;
    }

}


:root {
  --font-primary: "Poppins", sans-serif;
  --font-default: "Roboto", sans-serif;

  --color-background: #f1f1f1;
  --color-primary: #306294;
  --color-secondary: #515151;
  --color-accent: #ff5a00;
  --color-bg-dark-gh: #172f47;
  --color-user-subnav:#172f47;

  scroll-behavior: smooth;
}

/* ==========================
   TOAST
   ========================== */
.toast {
    background-color: #323232;
    color: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-success { background-color: #2e7d32; }
.toast-error { background-color: #c62828; }
.toast-warning { background-color: #f9a825; color: #000; }
.toast-info { background-color: #0288d1; }
.toast-danger { background-color: #b71c1c; }


/* ==========================
   BASE RESET / ACCESSIBILITY
   ========================== */
.bg-user{
    background-color: var(--color-user-subnav); 
    padding: 8px;
}
.bg-user a{
    padding: 4px;
    text-decoration: none !important;
}
.bg-dark-gh{
    background-color: var(--color-bg-dark-gh);
    padding: 1rem;
}
.visually-hidden-focusable {
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 10000;
  transform: translateY(-100%);
  transition: transform 0.3s;
}
.visually-hidden-focusable:focus {
  transform: translateY(0);
}

*, *::before, *::after {
  box-sizing: border-box;
}
#main-content {
    /*
    background: #ffffff;
    background: -webkit-linear-gradient(0deg, #ffffff 0%, #f4f4f4 100%);
    background: linear-gradient(0deg, #ffffff 0%, #f4f4f4 100%);;    
    */
    min-height: 28em;
    flex: 1;  
    /*margin-bottom: 1rem;  */
}
header,
.navbar {
    z-index: 1050; /* Ensure it's above offcanvas and backdrop */
}

.offcanvas-backdrop {
    z-index: 1040 !important; /* Behind the panel */
}
.offcanvas {
    z-index: 1051;
}
.offcanvas-body ul li{
    font-family: var(--font-primary);
    
}
.nav-item.hidden {
    display: none;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}



body {
  margin: 0;
  font-family: var(--font-default);
  color: var(--color-default);
 /* background-color: var(--color-background);*/
  line-height: 1.6;
  font-size: 1rem;
}
h1,h2,h3,h4,h5,h6{
    font-family: var(--font-primary);
}

a {
    color: var(--color-bg-dark-gh);
    text-decoration: underline;
    font-weight: bold;
}

a:hover, a:focus {
  text-decoration: none;
}

input:focus,
button:focus,
textarea:focus,
select:focus {
  outline: 3px solid #005ea5; /* GOV.UK-style visible focus */
  outline: 4px solid #000000; /* GOV.UK-style visible focus */
  outline-offset: 2px;
}
footer{
    background: #4d86b8;
    background: radial-gradient(circle, rgb(64, 113, 155) 24%, rgb(19, 40, 60) 100%);
}
footer h4{
}
img{
    max-width: 100%;
}

ul.list-gh {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  display: block; /* This is key */
}

ul.list-gh li {
  display: block;       /* Enforces vertical stacking */
  margin-bottom: 0.5rem;
}

ul.list-gh a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
}

ul.list-gh a:hover {
  text-decoration: underline;
  color: #ccc;
}

.lead-gh {
    font-size: 1.1rem;
    line-height: 1.5rem;
    font-family: 'poppins', sans-serif;
}



/* ====================
   BREAKPOINTS
   ==================== */

.breakpoint-xs .hide-xs,
.breakpoint-sm .hide-sm {
  display: none !important;
}

.breakpoint-lg .desktop-only,
.breakpoint-xl .desktop-only {
  display: block !important;
}

.breakpoint-xs .desktop-only,
.breakpoint-sm .desktop-only,
.breakpoint-md .desktop-only {
  display: none !important;
}

.breakpoint-md .some-box {
  padding: 2rem;
}

.breakpoint-sm .some-box {
  padding: 1rem;
}
.btn-login{
    
}
.btn-cta {
    background-color: #3D6A97 ;
    color: #fff;
    border: none;
}
.btn-cta:hover,
.btn-cta:focus {
    background-color: #198754;
    color: #fff;
    text-decoration: none;
}
.navbar {
    box-shadow: none;
}
.nav-link {
    color: #000;
}
.nav-link:hover,
.nav-link:focus {
    color: var(--color-accent);
}

.nav-item {
    padding: 15px;
}
@media (max-width: 1200px){
    .nav-item {
        padding: 4px;
    }
}

@media (max-width: 991px){
    .nav-item {
        padding: 2px;
    }
}

@media (max-width: 768px){
    .nav-item {
        padding: 2px;
    }
}


/* ==================
   HERO SECTION
   ================== */

.user-banner {
    height: clamp(350px, 5vh, 400px);
    overflow: hidden;
}
.user-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30%;
    display: block;
}

.hero-section {
    min-height: 90vh;
    background: url('_assets/_img/hero-bg.jpg') center center no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* dark overlay */
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.text-accent {
    color: var(--color-accent); 
}

input:focus,
button:focus {
    outline: 3px solid #005ea5;
    outline-offset: 2px;
}

/* ====================
   Responsive Helpers
   ==================== */

@media (max-width: 575.98px) {
  .text-sm-center {
    text-align: center !important;
  }
}

/* ==================
   UTILITY CLASSES
   ================== */


.pulse {
  --pulse-color: rgba(0, 0, 0, 0.4); /* default gray */
  animation: pulse-animation 1.7s ease-out infinite;
}
@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0 var(--pulse-color);
  }
  100% {
    box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
  }  
 
}

/* Optional modifiers */
.pulse-green { --pulse-color: rgba(25, 135, 84, 0.4); }
.pulse-blue { --pulse-color: rgba(0, 123, 255, 0.4); }
.pulse-red { --pulse-color: rgba(220, 53, 69, 0.4); }


.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.btn-accent {
  background-color: var(--color-accent);
  color: #fff;
  border: none;
}

.btn-accent:hover {
  background-color: var(--color-accent);
  color: #fff;
}


.resizable-image {
  display: block;
  text-align: center; /* fallback */
}

.resizable-image[data-align="left"] {
  margin: 0 auto 0 0;
}

.resizable-image[data-align="center"] {
  margin: 0 auto;
}

.resizable-image[data-align="right"] {
  margin: 0 0 0 auto;
}

.resizable-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.homepagespacer{
    height: 225px;
}

@media (max-width: 1200px){
    .homepagespacer{
        display: none;
    }
}

@media (max-width: 991px){
    .homepagespacer{
        display: none;
    } 
}

@media (max-width: 768px){
    .homepagespacer{
        display: none;
    }
}

 /* ==================
    ARTICLES
    ================== */

.article-content p {
  margin: 0.75em 0;
}
.article-content blockquote {
  border-left: 5px solid #ccc;
  padding-left: 1em;
  color: #555;
}
.article-content img {
  max-width: 100%;
  height: auto;
}
    
.resizable-video {
  display: inline-block;
  position: relative;
  resize: both;
  overflow: hidden;
  padding: 4px;
  border: 1px dashed #ccc;
  max-width: 100%;
  min-width: 150px;
  min-height: 100px;
}

.resizable-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

@media (max-width: 1200px){
    .article-content .row {
        padding: 1.5rem !important;
    }
}

@media (max-width: 991px){
    .article-content .row {
        padding: 1rem !important;
    }
}

@media (max-width: 768px){
    .article-content .row {
        padding: 1rem !important;
    }
    .img-fluid {
        max-width: 100%;
        height: auto;
        min-width: 100%;
    }    
}


 /* ==================
    SUPPORT PROVIDERS
    ================== */

#support_providers h1{
    margin-top: 2rem;
}

#support_providers .email-link a {
  color: var(--color-bg-dark-gh);
  text-decoration: none;
}
#support_providers .card-title{
    font-weight: 800;
}
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}


 /* ==================
    FAQ
    ================== */

.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #172f47;
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
}

 /* ==================
    SUCCESS STORIES
    ================== */
#success-stories {
    background-color: #f1f1f1;
    background-image: url(_assets/_img/arrows.png);
    background-repeat: no-repeat;
    background-position-x: 100%;
    overflow: hidden;
}

#success-stories h2{
    color: #336195;
}

.btn-gh{
    min-width: 200px;
}

.btn-primary,
.btn-primary-gh{
    background-color: var(--color-primary);
    color: #fff;
} 

.btn-primary-gh:hover{
    background-color: var(--color-secondary);
    color: #fff;
} 

#success-stories .grid-5-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

#success-stories .grid-5-cols > div {
  max-width: 100%;
}
#events h2,
#success-stories h2 {
    font-size: clamp(36px,5vw,50px) !important;
}
.col-xl-2-gh {
    flex: 0 0 auto;
    width: 20%;
}

@media (max-width: 1200px){
    .col-xl-2-gh {
        width: 33.33%;
    }
}

@media (max-width: 991px){
    .col-xl-2-gh {
        width: 50%;
    }
}

@media (max-width: 768px){
    .col-xl-2-gh {
        width: 100%;
    }
}



 /* ==================
    EVENTS
    ================== */
#events {
    padding: 60px 0;
    overflow: hidden;
      
}

#events h2{
    color: #336195;
}

.testimonial {
    background-color: #f8f9fa;
    border-left: 4px solid #d1d1d1;
    padding: 1rem;
    margin-bottom: 1rem;
}
.testimonial blockquote {
  font-size: 1rem;
  font-style: italic;
  border-left: none;
  padding-left: 0;
}
.testimonial-name-wrapper {
  margin-top: 1rem;
}
.testimonial-name-preview {
  text-align: left;    
    font-style: italic;
    color: #555;
    font-weight: 800;
    font-size: 1.1rem;
}



#event-view .card-title {
  margin-bottom: 0.5rem;
}

#event-view .btn {
  font-weight: 600;
}

#event-view .bg-light p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

#event-view .bg-light i {
  margin-right: 0.5rem;
  color: #555;
}



 /* ==================
    ACCESSIBILITY CHANGES
    ================== */

.form-select,.form-control{
    border: 2px solid #000;
    border-radius: 10px;
}

.input-group {
    border: 2px solid #000;
    border-radius: 10px;
}
.form-control::placeholder {
    color: rgba(0, 0, 0, 0.75);
    opacity: 1;
}


.step,
#address-fields { display: none; }
.step.active { display: block; }


#step1,#step2,#step3{
  position: relative;
  margin-left: auto;
  margin-right: auto;
  max-width: 50vw;
  padding: 60px 0;  
}



#postcode_lookup {
  margin-bottom: 1rem;
}
#getaddress_input {
  width: 40%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 2px solid #000;
  border-radius: 4px;
  margin-right: 1rem;
}
#getaddress_button {
  background-color: #0d6efd;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  min-width: 150px;
  text-align: center;
}
#getaddress_dropdown {
  width: 100%;
  padding: 0.5rem;
  border-radius: 4px;
  border: 0;
}

.error {
  color: #b30000;
  font-weight: 600;
  margin-top: 1rem;
  border-left: 4px solid #b30000;
  padding-left: 1rem;
  background: #fff5f5;
}
.visually-hidden {
  display: none !important;
}


 /* ==================
    AI ASSISTANT (LEWIE)
    ================== */
    .btn-lewie {
        min-width: 200px;
        background-color: var(--color-accent);
        border: 0;
    }    
    .assistant {
        position: relative;
        margin-top: -30px;
        padding: 4rem !important;
        background-color: #f1f1f1;
        background-image: url(_assets/_img/arrows.png);
        background-repeat: no-repeat;
        background-position-x: 100%;
        overflow: hidden;
        margin-bottom: 40px;
    }



    #assistant-title{
        font-size: clamp(30px,5vw,55px);
        letter-spacing: -1px;
        margin-bottom: 2rem;
    }
    .chat-window {
        max-height: 300px !important;
        overflow-y: auto;
        margin-bottom: 1em;
    }

    .chat-message {
        margin: 0.5em 0;
        padding: 0.5em;
        border-radius: 8px;
        line-height: 1.4;
    }
    .chat-message h1,.chat-message h2,.chat-message h3,.chat-message h4,.chat-message h5,.chat-message h6 {
        font-size: 1.125rem;
        font-weight: 600;
        margin: 0.5em 0 0.25em;
        line-height: 1.3;
    }
    .from-user {
        background: #d9f2fd;
        text-align: right;
        margin-left: 5em;
    }

    .from-ai {
        background: #f0f0f0;
        text-align: left;
        margin-right: 5em;
    }

    .chat-form {
        gap: 0.5em;
    }

    #chat-input {
        flex: 1;
        padding: 0.5em;
        border-radius: 6px;
        border: 1px solid #ccc;
        width: 100%;
    }

    .chat-message.from-user {
        text-align: right;
    }

    .chat-message.from-user .chat-header {
        justify-content: flex-end;
    }

    .chat-message.from-user .chat-body {
        text-align: right;
    }


    .chat-message.typing .chat-body::after {
        content: '';
        display: inline-block;
        width: 0.75em;
        height: 0.75em;
        border: 2px solid #999;
        border-radius: 50%;
        border-top-color: transparent;
        animation: spin 0.6s linear infinite;
        margin-left: 0.5em;
        vertical-align: middle;
    }

    #typing-dots .dots {
        animation: pulseDots 1.2s infinite steps(3);
        font-size: 1.5rem;
        font-weight: bold;
        letter-spacing: 2px;
    }


    .chat-message.from-ai {
        opacity: 0;
        transform: translateY(10px);
        animation: fadeInUp 0.4s ease forwards;
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    @keyframes pulseDots {
        0%   { content: ''; }
        33%  { content: '.'; }
        66%  { content: '..'; }
        100% { content: '...'; }
    }



    @keyframes spin {
        to { transform: rotate(360deg); }
    }


@media (max-width: 1200px){
    .assistant {
        padding: 2rem !important;
        margin-bottom: 2rem;        
    }
}

@media (max-width: 991px){
    .assistant {
        padding: 3rem !important;
        margin-bottom: 2rem;        
    }
}

@media (max-width: 768px){
    .spacer{
        max-height: 15px;
    }
    .assistant {
        padding: 1.5rem 1rem !important;
        margin-bottom: 2rem;
    }
    #step1,#step2,#step3{
      position: relative;
      margin-left: auto;
      margin-right: auto;
      max-width: 90vw;
      padding: 30px;  
    }
    .btn-gh {
        min-width: unset;
        max-width: auto;
    }
}



.ql-align-center {
  text-align: center;
}
.ql-indent-1{
    padding-left: 3em;
}
.ql-editor .ql-indent-1:not(.ql-direction-rtl) {
    padding-left: 3em;
}
.breadcrumb a:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}
.breadcrumb a {
  text-decoration: underline;
}


.opacity-50:hover,
.opacity-50:focus {
    opacity: 1 !important;
}
.alert-sm {
    font-size: .9rem;
    padding: .25rem;
    margin-bottom: 0;
}