body {
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
.form-label {
  color: #222;
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.navbar {
  width: 100%;
  background: #222;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 12px 0 rgba(0,56,101,0.04);
}
.navbar .brand {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: #fff; /* Cardiff Red */
  margin-left: 2.5rem;
  letter-spacing: 2px;
  text-decoration: none;
}
.navbar .nav-links {
  margin-right: 2.5rem;
}
.navbar .nav-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.navbar .nav-links a:hover {
  color: #d50032;
}
.header {
  text-align: center;
  padding: 1.2rem 1rem 2rem 1rem;
  background:rgb(233, 228, 228);
}
.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;
}
.carousel-section {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 900px;
  min-width: 400px;
  width: 100%;
  margin: 1.8rem 0 0 0;
  padding: 2.2rem 2rem 2.2rem 2rem;
  min-height: 390px;
  border-radius: 1.2rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.carousel-slide {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 260px;
}
.carousel-slide.active {
  display: flex;
}
.carousel-img {
  width: 100%;
  max-width: 600px;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1.3rem;
  box-shadow: 0 2px 12px 0 rgba(0,56,101,0.08);
}
.carousel-headline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #d50032;
  margin-bottom: 0.7rem;
  letter-spacing: 1px;
}
.carousel-subtitle {
  color: #222;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}
.carousel-btn {
  background: #d50032;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.7rem 2.2rem;
  border: none;
  border-radius: 2rem;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 2px 8px 0 rgba(213,0,50,0.08);
  margin-bottom: 1.2rem;
}
.carousel-btn:hover {
  background: #222;
  color: #fff;
}
.carousel-controls {
  position: static;
  left: unset;
  bottom: unset;
  margin-top: 0.2rem;
  display: flex;
  gap: 0.7rem;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 2px solid #d50032;
  cursor: pointer;
  opacity: 0.7;
  transition: background 0.2s, border 0.2s;
}
.carousel-dot.active {
  background: #d50032;
  border: 2px solid #222;
  opacity: 1;
}
.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.5rem;
  font-weight: 900;
  color: #d50032;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.stat-label {
  font-size: 1.1rem;
  color: #222;
  font-weight: 500;
  margin-top: 0.2rem;
}
.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);
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-toggle {
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.dropdown-toggle:hover {
  color: #d50032;
}
.dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 2.2rem;
  background: #222;
  min-width: 160px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 0.5rem;
  z-index: 100;
  flex-direction: column;
  padding: 0.5rem 0;
}
.dropdown-menu a {
  color: #fff;
  padding: 0.7rem 1.2rem;
  display: block;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover {
  color: #fff;
}
.dropdown.open .dropdown-menu {
  display: flex;
}

/* Mobile navbar hamburger styles */
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  margin-right: 1.5rem;
}
.navbar-toggler-icon {
  display: inline-block;
  font-size: 2rem;
  line-height: 1;
}
@media (max-width: 900px) {
  .navbar {
    position: relative;
  }
  .navbar-toggler {
    display: block !important;
    position: absolute;
    right: 0rem;
    top: 0.8rem;
    background: none;
    border: none;
    z-index: 1100;
  }
  .navbar .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #222;
    position: absolute;
    top: 60px;
    left: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 0.5rem 0;
  }
  .navbar .nav-links.active {
    display: flex;
  }
  .navbar .nav-links > a,
  .navbar .nav-links > .dropdown {
    width: 100%;
    text-align: left;
    padding: 0.7rem 1.5rem;
    margin-left: 0;
    box-sizing: border-box;
    display: block;
  }
  .navbar .dropdown {
    width: 100%;
  }
  .navbar .dropdown-toggle {
    width: 100%;
    display: block;
    padding: 0;
    margin-left: 0;
  }
  .navbar .dropdown-menu {
    position: static;
    border-radius: 0;
    min-width: 0;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .navbar .dropdown-menu a {
    padding: 0.7rem 2.5rem 0.7rem 2.5rem;
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    display: block;
  }
}
@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;
  }
  .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; }
  .navbar .brand { margin-left: 1rem; font-size: 1.1rem; }
  .navbar .nav-links { margin-right: 1rem; }
  .navbar .nav-links a { margin-left: 1rem; font-size: 1rem; }
  .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.7rem;
    box-sizing: border-box;
    overflow: visible;
  }
  .carousel-img {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 40px;
    border-radius: 0.7rem 0.7rem 0 0;
    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;
}
/* Custom DataTables active page link color and border */
body #requestsTable_paginate .paginate_button.current,
body #requestsTable_paginate .paginate_button.current:focus,
body #requestsTable_paginate .paginate_button.current:active {
  color: #fff !important;
  background: #d50032 !important;
  border: 1px solid #d50032 !important;
  box-shadow: none !important;
}

/* 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;
}