/* --- Global Horizontal Overflow Killer --- */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important; /* Strictly forbids horizontal scrolling */
    margin: 0 !important;
    padding: 0 !important;
}

* {
    box-sizing: border-box !important; /* Ensures borders and padding are calculated inward, not outward */
}

.u-body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}
.u-section-1 {
  background-image: none;
  min-height: 626px;
}

.u-section-1 .u-layout-wrap-1 {
  pointer-events: auto;
  margin-top: 1px;
  margin-bottom: 0;
}

.u-section-1 .u-layout-cell-1 {
  min-height: 208px;
  pointer-events: auto;
  background-image: linear-gradient(to right, #e1368C, #f97e83);
}

.u-section-1 .u-container-layout-1 {
  padding: 0;
}

.u-section-1 .u-image-1 {
  width: 194px;
  height: 207px;
  margin: 0 auto 0 13px;
}

.u-section-1 .u-text-1 {
  width: 408px;
 font-size: 1.25rem;
  margin: -180px auto 0;
}

.u-section-1 .u-text-2 {
  box-shadow: rgba(var(---r),var(---g),var(---b),0);
  font-weight: 700;
  text-shadow: 0px 0px 8px rgba(128,128,128,1);
  font-size: 2rem;
  margin: 0 41px;
}

.u-section-1 .u-text-3 {
  margin: 0;
}

.u-section-1 .u-gallery-1 {
  height: 375px;
  margin-top: 41px;
  margin-bottom: 1px;
}

.u-section-1 .u-carousel-indicators-1 {
  position: absolute;
  bottom: 10px;
}

.u-section-1 .u-carousel-item-1 {
  margin-right: 0;
}

.u-section-1 .u-over-slide-1 {
  background-image: linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2));
  padding: 20px;
}

.u-section-1 .u-carousel-item-2 {
  margin-right: 0;
}

.u-section-1 .u-over-slide-2 {
  background-image: linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2));
  padding: 20px;
}

.u-section-1 .u-carousel-item-3 {
  margin-right: 0;
}

.u-section-1 .u-over-slide-3 {
  background-image: linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2));
  padding: 20px;
}

.u-section-1 .u-carousel-item-4 {
  margin-right: 0;
}

.u-section-1 .u-over-slide-4 {
  background-image: linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2));
  padding: 20px;
}

.u-section-1 .u-carousel-item-5 {
  margin-right: 0;
}

.u-section-1 .u-over-slide-5 {
  background-image: linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2));
  padding: 20px;
}

.u-section-1 .u-carousel-item-6 {
  margin-right: 0;
}

.u-section-1 .u-over-slide-6 {
  background-image: linear-gradient(0deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2));
  padding: 20px;
}

.u-section-1 .u-carousel-control-1 {
  position: absolute;
  left: 10px;
  width: 40px;
  height: 40px;
  padding: 4px;
}

.u-section-1 .u-carousel-control-2 {
  position: absolute;
  right: 10px;
  width: 40px;
  height: 40px;
  padding: 4px;
}

@media (max-width: 1199px) {
   .u-section-1 {
    min-height: 1038px;
  }

  .u-section-1 .u-layout-cell-1 {
    min-height: 172px;
  }

  .u-section-1 .u-container-layout-1 {
    padding-top: 88px;
  }

  .u-section-1 .u-image-1 {
    margin-top: -11px;
  }

  .u-section-1 .u-text-1 {
    margin-top: -124px;
  }

  .u-section-1 .u-text-2 {
    transition-duration: 0.5s;
    transform: translateX(0px) translateY(0px) scale(1.84) rotate(0deg);
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 991px) {
   .u-section-1 {
    min-height: 937px;
  }

  .u-section-1 .u-layout-cell-1 {
    min-height: 100px;
  }

  .u-section-1 .u-container-layout-1 {
    padding-top: 0;
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media (max-width: 767px) {
  .u-section-1 .u-container-layout-1 {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 575px) {
   .u-section-1 {
    min-height: 907px;
  }

  .u-section-1 .u-layout-wrap-1 {
    margin-top: 30px;
  }

  .u-section-1 .u-layout-cell-1 {
    min-height: 257px;
  }

  .u-section-1 .u-image-1 {
    width: 99px;
    height: 106px;
    margin-top: 54px;
    margin-left: 157px;
  }

  .u-section-1 .u-text-1 {
    width: auto;
    font-size: 0.75rem;
    margin-top: 30px;
    margin-right: 63px;
    margin-left: 37px;
  }

  .u-section-1 .u-text-2 {
    font-size: 0.75rem;
    width: auto;
    margin-top: 8px;
    margin-left: 0;
    margin-right: 0;
  }

  .u-section-1 .u-text-3 {
    margin-top: -818px;
  }

  .u-section-1 .u-gallery-1 {
    margin-top: 245px;
    margin-bottom: 0;
  }
} .u-section-2 {
  background-image: linear-gradient(#e13690, #f9e79b);
  border-style: none;
}

.u-section-2 .u-sheet-1 {
  min-height: 1179px;
}

.u-section-2 .u-text-1 {
  font-weight: 700;
  line-height: 1.3;
  margin: 23px 0 0 419px;
}

.u-section-2 .u-list-1 {
  width: 373px;
  margin: 7px auto 0 0;
}

.u-section-2 .u-repeater-1 {
  grid-template-columns: 100%;
  min-height: 374px;
  grid-gap: 10px 10px;
}

.u-section-2 .u-list-item-1 {
  box-shadow: 0px -2px 8px 0px rgba(128,128,128,1);
}

.u-section-2 .u-container-layout-1 {
  padding: 30px;
}

.u-section-2 .u-icon-1 {
  height: 85px;
  width: 80px;
  background-image: none;
  color: rgb(255, 255, 255) !important;
  margin: 0 auto;
}

.u-section-2 .u-text-2 {
  background-image: none;
  margin: 20px auto 0;
}

.u-section-2 .u-text-3 {
  margin: 20px 0 0;
}

.u-section-2 .u-btn-1 {
  border-style: solid;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0px;
  margin: 27px auto 0;
}

/* Original u-group-1 fully restored */
.u-section-2 .u-group-1 {
  width: 299px;
  min-height: 386px;
  height: auto;
  box-shadow: 5px 5px 20px 0 rgba(0,0,0,0.4);
  margin: -351px 409px 0 auto;
}

/* --- NEW IMP ANNOUNCEMENT RULES --- */
.imp-ann-box {
    position: relative; /* Anchors the absolute text solely to this box */
}

.u-text-imp-ann-absolute {
    position: absolute;
    top: -35px; /* Pulls text above the container visually */
    left: 10px; /* Aligns smoothly with container padding */
    margin: 0;
    font-weight: bold;
    font-size: 1.15rem;
    color: #111;
    width: 100%;
    text-align: left;
}

@media (max-width: 991px) {
    .imp-ann-box {
        margin-top: 45px !important; /* Forces enough space on mobile so absolute text won't touch box above it */
    }
}
/* ---------------------------------- */

.u-section-2 .u-container-layout-2 {
  padding: 0 10px 1px;
}

.u-section-2 .u-text-4 {
  margin: 1px 20px 0;
}

.u-section-2 .u-custom-html-1 {
  height: auto;
  min-height: 275px;
  margin-top: 24px;
  margin-bottom: -41px;
}

.u-section-2 .u-text-5 {
  margin: -368px -360px 0 780px;
}

.u-section-2 .u-group-2 {
  width: 332px;
  min-height: 324px;
  box-shadow: 5px 5px 20px 0 rgba(0,0,0,0.4);
  margin: 20px 24px 0 auto;
}

.u-section-2 .u-container-layout-3 {
  padding: 30px;
}

.u-section-2 .u-text-6 {
  margin: 0;
}

.u-section-2 .u-btn-2 {
  background-image: none;
  padding: 0;
}

.u-section-2 .u-btn-3 {
  background-image: none;
  padding: 0;
}

.u-section-2 .u-btn-4 {
  background-image: none;
  padding: 0;
}

.u-section-2 .u-btn-5 {
  background-image: none;
  padding: 0;
}

.u-section-2 .u-list-2 {
  width: 373px;
  margin: 26px auto 0 0;
}

.u-section-2 .u-repeater-2 {
  grid-template-columns: 100%;
  min-height: 328px;
  grid-gap: 10px 10px;
}

.u-section-2 .u-list-item-2 {
  box-shadow: 0px -2px 8px 0px rgba(128,128,128,1);
}

.u-section-2 .u-container-layout-4 {
  padding: 0 23px;
}

.u-section-2 .u-text-7 {
  margin: 30px auto 0;
}

.u-section-2 .u-custom-html-2 {
  border-style: double;
  height: auto;
  min-height: 162px;
  transition-duration: 0.5s;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  text-shadow: rgba(var(---r),var(---g),var(---b),0);
  width: 338px;
  transform: translateX(0px) translateY(0px) scale(1) rotate(0deg);
  margin: 20px auto 0;
}

.u-section-2 .u-group-3 {
  width: 332px;
  min-height: 322px;
  box-shadow: 5px 5px 20px 0 rgba(0,0,0,0.4);
  height: auto;
  margin: -324px auto 60px;
}

.u-section-2 .u-container-layout-5 {
  padding: 14px 17px;
}

.u-section-2 .u-text-8 {
  margin: 43px auto 0;
}

.u-section-2 .u-text-9 {
  margin: 28px 7px 0;
}

.u-section-2 .u-btn-6 {
  background-image: none;
  margin-top: 0;
  padding: 0;
}

@media (max-width: 1199px) {
  .u-section-2 .u-text-1 {
    margin-left: 200px;
  }

  .u-section-2 .u-group-1 {
    height: auto;
  }

  .u-section-2 .u-text-5 {
    margin-left: 680px;
  }

  .u-section-2 .u-custom-html-2 {
    width: 326px;
  }

  .u-section-2 .u-group-3 {
    height: auto;
  }
}

@media (max-width: 991px) {
  .u-section-2 .u-text-1 {
    margin-left: 0;
  }

  /* Restored u-group-1 original mobile settings */
  .u-section-2 .u-group-1 {
    margin-top: 20px;
  }

  .u-section-2 .u-text-5 {
    margin-left: 570px;
  }

  .u-section-2 .u-group-3 {
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .u-section-2 .u-container-layout-1 {
    padding-left: 10px;
    padding-right: 10px;
  }

  .u-section-2 .u-group-1 {
    margin-right: 241px;
  }

  .u-section-2 .u-text-5 {
    margin-left: 480px;
  }

  .u-section-2 .u-container-layout-3 {
    padding-left: 10px;
    padding-right: 10px;
  }

  .u-section-2 .u-container-layout-4 {
    padding-left: 10px;
    padding-right: 10px;
  }

  .u-section-2 .u-container-layout-5 {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 575px) {
  .u-section-2 .u-list-1 {
    width: 340px;
  }

  .u-section-2 .u-group-1 {
    margin-right: 41px;
  }

  .u-section-2 .u-text-5 {
    margin-top: 20px;
    margin-right: 0;
    margin-left: 0;
  }

  .u-section-2 .u-group-2 {
    margin-right: 8px;
  }

  .u-section-2 .u-list-2 {
    width: 340px;
  }

  .u-section-2 .u-custom-html-2 {
    width: 320px;
  }
}

.u-section-2 .u-custom-html-2,
.u-section-2 .u-custom-html-2:before,
.u-section-2 .u-custom-html-2 > .u-container-layout:before {
  transition-property: fill, color, background-color, stroke-width, border-style, border-width, border-top-width, border-left-width, border-right-width, border-bottom-width, custom-border, borders, box-shadow, text-shadow, opacity, border-radius, stroke, border-color, font-size, font-style, font-weight, text-decoration, letter-spacing, transform, background-image, image-zoom, background-size, background-position;
}

.u-section-2 .u-custom-html-2.u-custom-html-2.u-custom-html-2:hover {
  box-shadow: 2px 2px 8px 0px rgba(128,128,128,1) !important;
  transform: translateY(px) !important;
  text-shadow: rgba(var(---r),var(---g),var(---b),0) !important;
}

.u-section-2 .u-custom-html-2 {
  border-color: transparent !important;
}

.u-section-2 .u-custom-html-2.u-custom-html-2.u-custom-html-2.hover {
  box-shadow: 2px 2px 8px 0px rgba(128,128,128,1) !important;
  transform: translateY(px) !important;
  text-shadow: rgba(var(---r),var(---g),var(---b),0) !important;
}

.u-section-2 .u-custom-html-2 {
  border-color: transparent !important;
}

.u-section-2 .u-container-layout:hover .u-custom-html-2 {
  transform: rotate(0deg) scale(1) translateX(0px) translateY(0px) !important;
}

.u-container-layout.hover .u-section-2 .u-custom-html-2 {
  transform: rotate(0deg) scale(1) translateX(0px) translateY(0px) !important;
}

/* --- Adjusted Ticker Height & Centering --- */
.horizontal-ticker-container {
    background-color: #f0a997;
    overflow: hidden;
    white-space: nowrap;
    width: 100%; 
    box-sizing: border-box;
    margin: 0; 
    height: 40px; 
    display: flex;
    align-items: center; 
    padding: 0; 
}

.horizontal-ticker {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-animation 30s linear infinite;
    line-height: 40px; 
}

.horizontal-ticker span {
    font-size: 15px; 
    font-weight: 500; 
    color: #333333; 
    letter-spacing: 0.5px; 
    display: inline-block;
    vertical-align: middle; 
}

@keyframes ticker-animation {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.vertical-scroll-box {
    height: 300px;
    overflow-y: auto;
    border: none;
    padding: 0 15px 15px 15px;
    background: transparent; /* Fixed white background issue */
    text-align: left;
}

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

.announcement-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-list a, .custom-link {
    color: #000;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.announcement-list a:hover, .custom-link:hover {
    color: #e1368C;
}

/* Mobile fixes for responsive layout */
@media (max-width: 768px) {
  .iframe-responsive-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
  }
  .iframe-responsive-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
  }
  iframe[src*="http://googleusercontent.com/maps.google.com/"] {
    width: 100% !important;
    height: 250px !important;
  }
}

/* --- Perfect Single-Line Navigation Fix --- */
.u-custom-menu .u-nav-1 {
    display: flex !important;
    flex-wrap: nowrap !important; /* Forces the menu to stay on one line */
    justify-content: flex-start !important; 
    margin-left: 10px !important; 
    gap: 0px !important; /* Completely removes the space between buttons */
}

/* Optimize the button sizes to fit the screen */
.u-custom-menu .u-nav-1 .u-nav-item .u-nav-link {
    white-space: nowrap !important; /* Prevents text from breaking */
    font-size: 14px !important; 
    padding: 5px 6px !important; /* Slightly tighter internal padding to save space */
    letter-spacing: 0px !important; 
}

/* --- Perfect Single-Line Footer Fix --- */
.single-line-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important; /* Forces a thin background strip */
    height: 40px !important;
    padding: 0 10px !important;
}

.single-line-footer p {
    white-space: nowrap !important; /* Forbids the text from dropping to a second line */
    margin: 0 !important;
    font-size: 14px !important;
}

/* Shrink the text on mobile screens so it stays on one line */
@media (max-width: 768px) {
    .single-line-footer p {
        font-size: 10px !important; 
    }
}

/* --- Absolute Override for Single Line Footer --- */
#strict-single-footer {
    display: block !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    line-height: 40px !important; /* Vertically centers the text */
    padding: 0 10px !important;
    text-align: center !important;
    overflow: hidden !important; /* Chops off any invisible expanding margins */
    white-space: nowrap !important; /* Absolutely forbids line breaks */
    box-sizing: border-box !important;
}

#strict-single-footer p, 
#strict-single-footer strong, 
#strict-single-footer span {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    color: white !important;
    white-space: nowrap !important; /* Absolutely forbids line breaks */
    /* Fluid text: Scales automatically between 8px on mobile and 14px on desktop to ensure it fits on one line */
    font-size: clamp(8px, 1.2vw, 14px) !important; 
}

/* --- Perfect Background Size & Scaling Fix --- */
.u-section-1, 
.u-section-2, 
.horizontal-ticker-container,
#strict-single-footer {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}

/* --- Nav Bar Logo Adjustment (If applicable) --- */
.u-header img {
    height: 100% !important;
    max-height: 50px !important; /* Matches standard navigation bar heights */
    width: auto !important;
    object-fit: contain !important;
}

/* --- Mobile Layout Fix for Header Text & Black Box --- */
@media (max-width: 768px) {
    /* 1. Remove the hardcoded heights causing the black gap */
    .u-section-1 {
        min-height: auto !important;
        height: auto !important;
    }
    
    .u-section-1 .u-layout-cell-1 {
        min-height: auto !important;
        padding: 20px 0 !important;
    }

    /* 2. Force all text to stay within the screen and stack cleanly */
    .u-section-1 .u-text-1,
    .u-section-1 .u-text-2,
    .u-section-1 .u-text-3 {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 10px 0 !important; /* Kills all the negative margins */
        padding: 0 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important; /* Allows text to wrap to a new line */
        word-wrap: break-word !important;
    }

    /* 3. Scale down the main title so it looks professional on mobile */
    .u-section-1 .u-text-2 {
        font-size: 0.5rem !important; 
        line-height: 1.3 !important;
    }

    /* 4. Snap the carousel directly under the text without a huge gap */
    .u-section-1 .u-gallery-1 {
        margin-top: 0 !important; 
        min-height: 250px !important; /* Adjusts carousel height for mobile */
    }
}

/* --- Stats Banner (62+ Years) Fix --- */
.u-layout-wrap-stats {
    margin: 30px auto !important; /* Centers the banner on the page */
    padding: 25px 15px !important; /* Increases breathing room vertically */
    border-radius: 8px !important; /* Slightly softer corners */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15); /* Adds subtle depth to make it pop */
    width: 95% !important; /* Prevents edge-touching on smaller screens */
    max-width: 1200px !important; /* Constrains max width on large desktop monitors */
    box-sizing: border-box;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 768px) {
    .u-layout-wrap-stats .u-layout-cell {
        border-right: none !important; /* Removes vertical dividers on mobile */
        border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important; /* Adds horizontal dividers */
        padding: 15px 0 !important;
    }
    
    /* Removes the bottom border from the very last stat block */
    .u-layout-wrap-stats .u-layout-cell:last-child {
        border-bottom: none !important; 
    }
}
/* =====================================================
   NAV BAR — Clean, fixed above carousel, no overlap
   ===================================================== */

/* 1. Header sits in normal flow — never overlaps the carousel */
.u-header {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background-color: #1a1a1a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;

    /* Collapse to only the nav bar height — kills the big black gap */
    min-height: 0 !important;
    height: auto !important;
    max-height: 60px !important;
    overflow: visible !important;   /* still allows dropdowns to show */

    display: flex !important;
    align-items: center !important;
    padding: 4px 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Kill any inner container/sheet that Nicepage uses to pad the header */
.u-header > *,
.u-header .u-sheet,
.u-header .u-container-layout,
.u-header > div {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

/* 2. The Nicepage menu wrapper fills the full header width */
.u-header .u-menu {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

/* 3. Centre the nav list inside the header */
.u-header .u-nav-container {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

/* 4. Single-row, centred, evenly spaced nav links */
.u-header .u-nav-1 {
    display: flex !important;
    flex-wrap: nowrap !important;       /* single row on desktop */
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
}

/* 5. Individual items — no extra height */
.u-header .u-nav-item {
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 6. Link styling — readable on dark bar */
.u-header .u-nav-link {
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    padding: 7px 10px !important;
    white-space: nowrap !important;
    border-radius: 3px !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    border-color: rgba(255,255,255,0.12) !important;
}

/* 7. Hover / active highlight */
.u-header .u-nav-link:hover,
.u-header .u-nav-link:focus {
    background-color: #e13690 !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/* 8. Dropdown popup inherits the dark theme */
.u-header .u-nav-popup {
    background-color: #1a1a1a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    border-top: 2px solid #e13690 !important;
    z-index: 1100 !important;
}

.u-header .u-nav-popup .u-nav-link {
    color: #eeeeee !important;
    font-size: 13px !important;
    padding: 7px 14px !important;
}

.u-header .u-nav-popup .u-nav-link:hover {
    background-color: #e13690 !important;
    color: #ffffff !important;
}

/* 9. Hamburger icon colour on small screens */
.u-header .menu-collapse a {
    color: #ffffff !important;
}

/* 10. OVERLAP KILLER:
       Nicepage's .u-overlap class normally pulls section-1 up
       behind the header — this stops that entirely */
.u-body.u-overlap .u-section-1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 11. Carousel sits flush with the bottom edge of the nav */
.u-section-1 .u-gallery-1 {
    margin-top: 41px !important;   /* preserve original gap to logo row */
}

/* 12. Mobile — allow nav to wrap if needed on very small screens */
@media (max-width: 768px) {
    .u-header {
        min-height: 44px !important;
        padding: 2px 0 !important;
    }

    .u-header .u-nav-1 {
        flex-wrap: wrap !important;
        gap: 2px !important;
    }

    .u-header .u-nav-link {
        font-size: 12px !important;
        padding: 5px 7px !important;
    }
}
/* =====================================================
   BLACK GAP KILLER — targets Nicepage's header ID
   ===================================================== */

/* Override Nicepage's forced large min-height on the header section */
#sec-9b54,
header#sec-9b54,
.u-header#sec-9b54 {
    min-height: 0 !important;
    height: auto !important;
    max-height: 60px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: visible !important;   /* keep dropdowns visible */
}

/* Collapse any direct child wrappers Nicepage injects */
#sec-9b54 > div,
#sec-9b54 > section,
#sec-9b54 .u-sheet,
#sec-9b54 .u-container-layout {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* The nav itself should naturally size to its content */
#sec-9b54 nav,
#sec-9b54 .u-menu {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* =====================================================
   RELOCATED NAV — sits between logo and carousel
   ===================================================== */

/* The wrapper div we injected - FROZEN/STICKY */
.relocated-nav {
    width: 100% !important;
    background-color: #1a1a1a !important;
    position: sticky !important; /* Changes from relative to sticky */
    top: 0 !important;           /* Tells it to lock at the very top of the viewport */
    z-index: 9999 !important;    /* Increased to ensure it stays above the carousel and popups */
    box-shadow: 0 4px 12px rgba(0,0,0,0.8) !important; /* Slightly stronger shadow when scrolling */
}

/* Nav element inside the wrapper */
.relocated-nav .u-menu {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Nav container holds the ul */
.relocated-nav .u-nav-container {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

/* The nav list itself — single centred row */
.relocated-nav .u-nav-1 {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    gap: 2px !important;
}

/* Nav items */
.relocated-nav .u-nav-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* Links — white text on dark bar */
.relocated-nav .u-nav-link {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 6px 9px !important;
    white-space: nowrap !important;
    border-color: rgba(255,255,255,0.15) !important;
    border-radius: 2px !important;
    transition: background 0.2s, color 0.2s !important;
}

.relocated-nav .u-nav-link:hover,
.relocated-nav .u-nav-link:focus {
    background-color: #e13690 !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/* Dropdowns */
.relocated-nav .u-nav-popup {
    background-color: #1a1a1a !important;
    border-top: 2px solid #e13690 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.55) !important;
    z-index: 1100 !important;
}

.relocated-nav .u-nav-popup .u-nav-link {
    color: #eeeeee !important;
    font-size: 13px !important;
    padding: 7px 14px !important;
}

.relocated-nav .u-nav-popup .u-nav-link:hover {
    background-color: #e13690 !important;
    color: #ffffff !important;
}

/* Hamburger on mobile */
.relocated-nav .menu-collapse a {
    color: #ffffff !important;
}

/* Carousel sits immediately under the nav — no gap */
.u-section-1 .u-gallery-1 {
    margin-top: 0 !important;
}

/* Hide the now-empty original header entirely */
.u-header,
#sec-9b54 {
    display: none !important;
}

@media (max-width: 768px) {
    .relocated-nav .u-nav-1 {
        flex-wrap: wrap !important;
    }
    .relocated-nav .u-nav-link {
        font-size: 11px !important;
        padding: 4px 6px !important;
    }
}

/* Remove gap between marquee ticker and the banner below it */
.horizontal-ticker-container {
    margin-bottom: 0 !important;
    display: block !important;
}

.u-section-2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Fix marquee line height so text is vertically centred */
.horizontal-ticker-container {
    height: auto !important;
    min-height: 36px !important;
    padding: 6px 0 !important;
    line-height: normal !important;
    align-items: center !important;
}

.horizontal-ticker {
    line-height: normal !important;
    vertical-align: middle !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.horizontal-ticker span {
    line-height: 1.4 !important;
    vertical-align: middle !important;
    display: inline !important;
}

/* Fix stats banner — all 4 stats in one row, height hugs content */
.u-layout-wrap-stats {
    margin: 0 !important;
    padding: 8px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.u-layout-wrap-stats .u-layout,
.u-layout-wrap-stats .u-layout-row {
    display: flex !important;
    flex-wrap: nowrap !important;        /* force single row */
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
}

.u-layout-wrap-stats .u-layout-cell {
    flex: 1 1 0 !important;
    min-width: 0 !important;            /* remove the 200px min-width */
    padding: 4px 8px !important;
    box-sizing: border-box !important;
}

/* Scale down numbers and labels so they fit on one line */
.u-layout-wrap-stats h2.u-text {
    font-size: 2rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.u-layout-wrap-stats p.u-text {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    margin: 2px 0 0 !important;
    white-space: nowrap !important;
}

/* On small screens allow wrapping into 2×2 grid */
@media (max-width: 600px) {
    .u-layout-wrap-stats .u-layout-row {
        flex-wrap: wrap !important;
    }
    .u-layout-wrap-stats .u-layout-cell {
        flex: 1 1 50% !important;
        min-width: 50% !important;
    }
}

/* Nav button color — white text on brand pink, white hover */
.relocated-nav .u-nav-link {
    background-color: #e13690 !important;
    color: #ffffff !important;
    border-color: #c42d7e !important;
    border-width: 1px !important;
    border-style: solid !important;
}

.relocated-nav .u-nav-link:hover,
.relocated-nav .u-nav-link:focus {
    background-color: #ffffff !important;
    color: #e13690 !important;
    border-color: #e13690 !important;
}

/* Dropdown links stay consistent */
.relocated-nav .u-nav-popup .u-nav-link {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.relocated-nav .u-nav-popup .u-nav-link:hover {
    background-color: #e13690 !important;
    color: #ffffff !important;
}

/* Dark pink gradient lines above and below the carousel */
.u-section-1 .u-gallery-1::before,
.u-section-1 .u-gallery-1::after {
    content: '' !important;
    display: block !important;
    width: 100% !important;
    height: 6px !important;
    background: linear-gradient(to right, #6b0033, #e13690, #c42d7e, #6b0033) !important;
}

.u-section-1 .u-gallery-1::before {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 10 !important;
}

.u-section-1 .u-gallery-1::after {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 10 !important;
}

.u-section-1 .u-gallery-1 {
    position: relative !important;
}

/* Remove black gap between carousel bottom gradient line and marquee */
.u-section-1 {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}

.u-section-1 .u-gallery-1 {
    margin-bottom: 0 !important;
}
/* =====================================================
   FROZEN HEADER WRAPPER (Logo Banner + Navigation)
   ===================================================== */
.frozen-header-wrapper {
    position: -webkit-sticky !important; /* For Safari compatibility */
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important; /* Ensures it stays above the carousel and popups */
    background-color: #1a1a1a !important; /* Dark background to stop scrolling text from bleeding through the gradient */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.7) !important;
}

/* Optional: Smooth out the gradient banner so it looks flush against the edges when scrolling */
.frozen-header-wrapper .u-layout-wrap-1 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
/* =====================================================
   PRINCIPAL'S DIALOG FIXES
   ===================================================== */

/* Fix 1: Enable internal scrolling for the dialog box */
.u-dialog-1 {
    max-height: 85vh !important; /* Constrains the box to 85% of the screen height */
    overflow-y: auto !important; /* Enables vertical scrolling for long text */
    position: relative !important; /* Ensures the close button anchors to the box properly */
    padding-bottom: 30px !important; /* Adds breathing room at the bottom */
}

/* Fix 2: Resize and position the close button */
.u-dialog-close-button {
    width: 44px !important; /* Standard, accessible touch-target size */
    height: 44px !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    padding: 10px !important; /* Creates padding inside the button around the SVG */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border: none !important;
    border-radius: 50% !important; /* Makes the button perfectly round */
    z-index: 1000 !important; /* Keeps the button above the scrolling text */
    cursor: pointer !important;
}

/* Ensure the SVGs inside the button don't overflow */
.u-dialog-close-button svg {
    width: 100% !important;
    height: 100% !important;
}
/* --- New Rules for a Double-Line Footer --- */
#strict-double-footer {
    display: block !important;
    width: 100% !important;
    min-height: 60px !important; /* Taller height to accommodate two lines */
    height: auto !important;
    padding: 10px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

#strict-double-footer p, 
#strict-double-footer strong, 
#strict-double-footer span {
    display: block !important; /* Allows elements to break onto new lines */
    margin: 5px 0 !important; /* Adds a little breathing room between the lines */
    color: white !important;
    white-space: normal !important; /* Permits standard text wrapping */
    font-size: clamp(10px, 1.2vw, 14px) !important; 
}