body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
.form-label {
  color: #222;
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.header {
  text-align: center;
  padding: 1.2rem 1rem 2rem 1rem;
  background: #f5f5f5;
}
.header h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.1rem;
  font-weight: 900;
  color: #d50032;
  margin-bottom: 0.2rem;
  letter-spacing: 2px;
}
.header p {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 0;
}
.header-divider {
  border: none;
  border-top: 1.5px solid #e0e0e0;
  margin: 0 0 0.05rem 0;
  width: 100%;
  opacity: 0.7;
}
.main-section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  min-height: 0;
  height: 480px;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0rem 0 2.2rem 0;
  margin-bottom: 2rem;
}
.content-section {
  max-width: 700px;
  margin: 3rem 0 0 0;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px 0 rgba(0,56,101,0.07);
  padding: 2.5rem 2rem;
  text-align: center;
  flex: 1 1 0;
  z-index: 2;
  color: #222;
}
.content-section h2 {
  color: #d50032;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.content-section p {
  color: #222;
  font-size: 1.1rem;
  line-height: 1.7;
}
.lines-section {
  position: relative;
  width: 320px;
  min-width: 200px;
  max-width: 340px;
  height: 440px;
  margin: 0 0 0 1vw;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 1;
  flex-shrink: 0;
}
.lines-svg {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 200px;
  max-height: 440px;
}
.darkgrey-section {
  background: #222;
  color: #222;
  padding: 4rem 1rem 4rem 1rem;
  text-align: center;
}
.darkgrey-section h2 {
  color: #d50032;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.darkgrey-section p {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}
.stats-section {
  background: #f5f5f5;
  color: #fff;
  padding: 3.5rem 1rem 3.5rem 1rem;
  text-align: center;
}
.stats-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.stat {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 1.2rem;
  padding: 2rem 1rem 1.5rem 1rem;
  box-shadow: 0 2px 16px 0 rgba(0,56,101,0.04);
  min-width: 160px;
  color: #f5f5f5;
}
.stat-number {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #d50032;
  display: block;
  letter-spacing: 1px;
}
.stat-label {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 500;
  margin-top: 0.2rem;
  display: block;
}
.footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1.2rem 1rem 1rem 1rem;
  font-size: 0.98rem;
  margin-top: 0;
  letter-spacing: 1px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  border-top: 1px solid #d50032;
  box-shadow: 0 -2px 12px 0 rgba(0,56,101,0.04);
}

@media (max-width: 1000px) {
  .main-section {
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding: 2.2rem 0 2.2rem 0;
    margin-bottom: 2rem;
  }
  .carousel-section {
    max-width: 98vw;
    min-width: 0;
    width: 100%;
    margin: 1.2rem 0 0 0;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    margin-bottom: 0.5rem;
  }
  .carousel-img {
    height: 140px;
    padding-bottom: 1rem;
  }
  .lines-section {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    height: 180px;
    margin: 1rem 0 0 0;
  }
  .lines-svg {
    height: 100%;
    min-height: 100px;
    max-height: 180px;
  }
  .carousel-controls {
    justify-content: center;
  }
}
@media (max-width: 900px) {
  .stats-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .stat { min-width: 0; }
}
@media (max-width: 700px) {
  .header h1 { font-size: 2rem; }
  .content-section { padding: 1.2rem 0.5rem; }
  .carousel-section { padding: 1.2rem 0.2rem; min-height: 220px; margin-bottom: 0.2rem; }
  .carousel-img { height: 90px; }
  .lines-section { height: 100px; }
  .lines-svg { max-height: 100px; }
  .carousel-controls { justify-content: center; }
}
@media (max-width: 500px) {
  .main-section {
    flex-direction: column;
    height: auto;
    min-height: unset;
    padding: 1rem 0 1rem 0;
    margin-bottom: 1.2rem;
    overflow: visible;
    width: 100vw;
    box-sizing: border-box;
  }
  .carousel-section {
    max-width: 100vw;
    min-width: 0;
    width: 100vw;
    margin: 0.5rem 0 0 0;
    padding: 0.7rem 0.7rem 0.7rem 0.7rem;
    min-height: unset;
    margin-bottom: 1.2rem;
    border-radius: 0 !important;
    box-sizing: border-box;
    overflow: visible;
  }
  .carousel-img {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 40px;
    border-radius: 0 !important;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .content-section, .darkgrey-section, .stats-section {
    width: 100vw;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .main-section {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    height: auto;
    min-height: 0;
    padding: 2.2rem 0 2.2rem 0;
    margin-bottom: 2rem;
  }
  .carousel-section {
    flex: 1 1 0;
    min-width: 0;
    max-width: 60vw;
    width: 60vw;
    margin: 1.2rem 0 0 0;
    padding: 1.2rem 1.2rem 1.2rem 1.2rem;
    min-height: 220px;
    margin-bottom: 0.2rem;
    box-sizing: border-box;
  }
  .lines-section {
    display: flex !important;
    flex: 1 1 0;
    min-width: 0;
    max-width: 40vw;
    width: 40vw;
    height: 220px;
    margin: 1.2rem 0 0 1vw;
    align-items: center;
    justify-content: center;
  }
}
.btn-xs {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.2;
}

.modern-contact-row {
  margin-top: 2rem;
}
  .contact-card {
  /* make cards visually flat while preserving spacing/layout */
  background: transparent;
  border: none;
  border-radius: 1rem;
  box-shadow: none;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  transition: box-shadow 0.2s;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  }
.contact-card:hover {
  box-shadow: none;
}
.contact-icon {
  background: #fff6fa;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
  font-size: 2rem;
  color: #e40046;
  box-shadow: 0 2px 8px 0 rgba(255,0,64,0.07);
}
.contact-link {
  color: #222;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s;
  word-break: break-word;
}
.contact-link:hover {
  color: #d50032;
  text-decoration: underline;
}
.contact-text {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #222;
  font-weight: 400;
}
/* Compact contact methods list beside the main contact heading */
.contact-method-list {
  margin-top: 0.75rem;
}
.contact-method {
  /* base spacing handled via Bootstrap flex utilities in template */
}
.contact-icon-sm {
  background: #fff6fa;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #e40046;
  box-shadow: 0 2px 6px 0 rgba(255,0,64,0.06);
}
@media (max-width: 767.98px) {
  .modern-contact-row {
    flex-direction: column !important;
  }
  .contact-card {
    margin-bottom: 1.5rem;
    min-height: 160px;
  }
  .contact-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
}
.enquiry-pill-link {
    display: inline-block;
    background: #f8d7da;
    color: #d50032;
    border-radius: 2rem;
    padding: 0.45em 1.2em 0.45em 1em;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 2px 8px 0 rgba(213,0,50,0.07);
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    vertical-align: middle;
  }
  .enquiry-pill-link:hover, .enquiry-pill-link:focus {
    background: #d50032;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px 0 rgba(213,0,50,0.15);
  }
  .enquiry-pill-link i {
    margin-right: 0.4em;
  }

/* Calendar base text color */
#calendar, #calendar .fc {
  color: #222;
}

/* Calendar event text color */
#calendar .fc-event, #calendar .fc-event-title, #calendar .fc-event-time {
  color: #222 !important;
  background: #fff !important;
  border: 1.5px solid #d50032 !important;
  border-radius: 0.5rem !important;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(213,0,50,0.08);
}

/* Calendar day numbers */
#calendar .fc-daygrid-day-number {
  color: #222;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Calendar grid background */
#calendar .fc-daygrid-day {
  background: #fff;
}

/* Calendar today highlight */
#calendar .fc-day-today {
  background: #ffe6ec !important;
  border-radius: 0.5rem;
}

/* Remove blue focus/active states */
#calendar .fc-button-primary,
#calendar .fc-button-primary:focus,
#calendar .fc-button-primary:active {
  background: #d50032 !important;
  border: none !important;
  color: #fff !important;
  box-shadow: none !important;
}
#calendar .fc-button-primary:hover {
  background: #222 !important;
  color: #fff !important;
}

#calendar .fc-button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 2rem;
  padding: 0.4rem 1.2rem;
  font-size: 1rem;
}

/* Remove border from calendar container */
#calendar .fc-scrollgrid,
#calendar .fc-scrollgrid-section {
  border: none !important;
}

/* Set the days of the week labels color and style */
#calendar .fc-col-header-cell {
  color: #222;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: #f5f5f5;
  border-bottom: 1.5px solid #e0e0e0;
}
#calendar .fc-col-header-cell a {
  color: #222 !important;
  text-decoration: none;
}
#calendar .fc-col-header-cell a:hover {
  color: #d50032 !important;
}

/* Pagination: small buttons, red active background, icons for prev/next */
.pagination .page-link {
  padding: 0.25rem 0.5rem; /* small buttons */
  font-size: 0.85rem;
  border-radius: 0.35rem;
}

.pagination .page-item + .page-item { margin-left: 0.25rem; }

.pagination .page-item.active .page-link {
  background: #d50032 !important;
  border-color: #d50032 !important;
  color: #fff !important;
  box-shadow: none !important;
}

.pagination .page-link {
  color: #222;
}

/* Replace next/previous text with Font Awesome chevrons via pseudo-elements.
   Targets links that use aria-label="Previous" / "Next" so numeric
   page links are unaffected. Hides the original visible text for screen
   readers remain accessible via the aria-label. */
.pagination .page-link[aria-label="Previous"],
.pagination .page-link[aria-label="Next"] {
  color: #222;
  position: relative;
  overflow: visible;
}

.pagination .page-link[aria-label="Previous"]::before,
.pagination .page-link[aria-label="Next"]::before {
  font-family: "Font Awesome 5 Free"; /* used elsewhere in the project */
  font-weight: 900; /* solid */
  display: inline-block;
  vertical-align: middle;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1;
}

/* Hide textual content inside previous/next links (if present) but keep it visually-hidden for screen readers */
.pagination .page-link[aria-label="Previous"] > span,
.pagination .page-link[aria-label="Next"] > span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Fix pagination controls right for datatables  */
.dataTables_wrapper .dataTables_paginate {
    float: right;
    padding: 0.5rem 0; /* add vertical breathing room */
}
/* DataTables v2+ (new markup) — ensure pagination sits bottom-right */
.dt-paging {
  float: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0.25rem 0 0 0;
  padding: 0.5rem 0; /* add top/bottom padding so controls don't butt to table */
}
.dt-info {
  float: left;
  margin: 0.25rem 0;
  padding: 0.5rem 0;
}
.dt-paging .pagination {
  margin: 0;
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
}
/* Responsive: stack controls on small screens */
@media (max-width: 575px) {
  .dt-info, .dt-paging {
    float: none;
    display: block;
    text-align: center;
    width: 100%;
    margin: 0.2rem 0;
    padding: 0.35rem 0;
  }
  .dt-paging .pagination { justify-content: center; }
}

/* Modern separator used between video and contact rows on large screens */
.section-separator {
  width: 65%;
  margin: 2.2rem auto;
  height: 2px; /* central hairline */
  position: relative;
  border-radius: 2px;
  /* strong center, transparent edges for fade-to-points */
  background: linear-gradient(90deg,
    rgba(213,0,50,0) 0%,
    rgba(213,0,50,0.65) 18%,
    rgba(213,0,50,0.95) 50%,
    rgba(213,0,50,0.65) 82%,
    rgba(213,0,50,0) 100%);
  overflow: visible;
}

.section-separator::before {
  /* soft white highlight above the line (very subtle) */
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  top: -5px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0) 100%);
  border-radius: 1px;
  filter: blur(1.5px);
  opacity: 0.9;
}

.section-separator::after {
  /* broader, very soft tinted glow below the line to give depth */
  content: "";
  position: absolute;
  left: 0%;
  right: 0%;
  height: 14px;
  top: 6px;
  background: radial-gradient(50% 50% at 50% 20%, rgba(213,0,50,0.12), rgba(213,0,50,0.06) 40%, rgba(213,0,50,0) 70%);
  filter: blur(8px);
  border-radius: 8px;
}

/* Desktop: reduce separator width on very large screens for a subtler look */
@media (min-width: 1200px) {
  .section-separator { width: 65%; }
}
@media (min-width: 1600px) {
  .section-separator { width: 65%; }
}

/* Mobile / small devices: increase visibility on iPhone-sized screens */
@media (max-width: 575.98px) {
  .section-separator {
    width: 65%;
    height: 3px; /* slightly thicker for visibility */
    background: linear-gradient(90deg,
      rgba(213,0,50,0.12) 0%,
      rgba(213,0,50,0.85) 30%,
      rgba(213,0,50,0.95) 50%,
      rgba(213,0,50,0.85) 70%,
      rgba(213,0,50,0.12) 100%);
  }
  .section-separator::before {
    top: -4px;
    height: 1px;
    filter: blur(1px);
  }
  .section-separator::after {
    top: 6px;
    height: 10px;
    filter: blur(4px);
  }
}

/* Tighten spacing for the contact icons row (use grid columns to bring icons closer) */
@media (min-width: 768px) {
  /* reduce horizontal padding on the contact columns so icons sit nearer */
  #contact .modern-contact-row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  /* reduce vertical gap between separator and icons on larger screens */
  #contact .modern-contact-row {
    margin-top: 1rem;
  }
}