body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #101331;
  overflow-x: hidden;
  background-color: #eee;
  scroll-behavior: auto;

  background-image: linear-gradient(180deg, #4169a9c2 0%, #ffffffa8 100%),
    url("https://nmpsia.com/images/banner5.jpg");
  background-attachment: fixed;
  width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* html {
  scroll-behavior: smooth;
} */

main.container {
  margin-top: 1.5rem;
  padding: 2rem;
}

.go-back {
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.bx {
  font-size: 1.5rem;
  color: #204f9a;
}

.accordion-body i.bx {
  font-size: 24px;
}

/* Prevent layout shifts when accordions expand/collapse */
.accordion-collapse {
  transition: height 0.35s ease;
}

.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.125);
  margin-bottom: 0;
}

.accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  background-color: #fff;
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out,
    border-radius 0.15s ease;
}

.accordion-button:not(.collapsed) {
  color: #0c63e4;
  background-color: #e7f1ff;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
  z-index: 3;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.italic {
  font-style: italic;
}

.btn.btn-outline-primary,
.btn.btn-primary {
  background-color: #204f9a;
  color: #fff;
  border-color: #204f9a;
}
.btn.btn-outline-primary:hover,
.btn.btn-primary:hover {
  background-color: #163465;
  color: #fff;
  border-color: #163465;
}

main a:link,
main a:visited,
.breadcrumb-item a:link,
.breadcrumb-item a:visited {
  color: #204f9a;
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb-item a:link,
.breadcrumb-item a:visited {
  text-decoration: underline;
}
ul li a:link,
ul li a:visited {
  list-style: none;
}

/* HERO SECTION HOME PAGE */
.hero {
  min-height: 60vh;
  height: auto;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  /* margin-top: 72px; */
  padding-bottom: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  margin-bottom: 2rem;
}

.hero-btn-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1400px;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.hero-btn-container a {
  padding: 16px 24px;
  flex: 0 1 auto;
  white-space: nowrap;
}

/* HAPPENING NOW */

.happening-now {
  background: linear-gradient(135deg, #547dcaad 0%, #4169a9c2 100%);
  color: #193753;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  margin-top: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Swiper Container Styling */
.happening-now .swiper {
  padding: 1rem 0 3rem 0; /* Extra padding for pagination */
  margin: 0 -0.5rem;
}

/* Swiper Slide Cards */
#news-container .swiper-slide {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  height: auto;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

#news-container .swiper-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.swiper-slide div.lower {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1rem;
}

.happDate {
  background: linear-gradient(135deg, #204f9a 0%, #163465 100%);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(32, 79, 154, 0.3);
}

.happDate span {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.happTitle {
  color: #204f9a;
}

.happTitle a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.happTitle h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.happTitle a:hover h3 {
  color: #163465;
  text-decoration: none;
}

.happContent {
  color: #495057;
  font-size: 1rem;
  line-height: 1.6;
  overflow-y: auto;
  max-height: 150px;
  padding-right: 0.5rem;
}

/* Custom scrollbar for content */
.happContent::-webkit-scrollbar {
  width: 6px;
}

.happContent::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.happContent::-webkit-scrollbar-thumb {
  background: #204f9a;
  border-radius: 10px;
}

.happContent::-webkit-scrollbar-thumb:hover {
  background: #163465;
}

/* Swiper Navigation Buttons - Enhanced */
.swiper-button-prev,
.swiper-button-next {
  background: linear-gradient(135deg, #204f9a 0%, #163465 100%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(32, 79, 154, 0.3);
  transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: linear-gradient(135deg, #163465 0%, #0f2a4a 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(32, 79, 154, 0.4);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}

/* Swiper Pagination - Enhanced */
.swiper-pagination {
  bottom: 0 !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ffffff;
  opacity: 0.6;
  border: 2px solid #204f9a;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #204f9a;
  opacity: 1;
  width: 32px;
  border-radius: 6px;
}

.happButtons {
  margin-top: 2rem;
}

.happButtons span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.happButtons span:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.happButtons i {
  color: #e9eff9;
  font-size: 1.25rem;
}

.happButtons a:link,
.happButtons a:visited {
  color: #e9eff9;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.happButtons a:hover,
.happButtons a:active {
  text-decoration: underline;
  color: #ffffff;
}
.show-aside {
  display: none;
}

.show-aside .bx-x {
  display: none;
}

.show-aside .bx-menu-alt-left {
  display: block;
}

.show-aside.open .bx-x {
  display: block;
}

.show-aside.open .bx-menu-alt-left {
  display: none;
}

.sidenav-layout {
  display: flex;
  min-height: 100vh;
  margin-top: 1rem;
  justify-content: center;
  align-items: flex-start;
  transition: none !important;
  scroll-behavior: auto !important;
}

.sidenav-layout * {
  scroll-behavior: auto !important;
  transition: none !important;
}

/* Chrome/Edge specific fix for shaking */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .sidenav-layout {
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

aside {
  position: relative;
  top: 1rem;
  min-width: 276px;
  max-width: 296px;
  background-color: #204f9a;
  background: linear-gradient(135deg, #204f9a, #163465);
  padding: 10px;
  /* margin-top: 1.5rem; */
  transition: transform 0.3s ease-in-out;
  /* make scrollable for smaller viewport height */
  height: calc(100vh - 2rem);
  overflow-y: auto;
  border-radius: 0.25rem;
  z-index: 100;
  flex-shrink: 0;
}

.nav-section {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #163465;
  padding-bottom: 1rem;
}

.nav-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.nav-section-title {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #163465;
}

aside a {
  display: block;
  padding: 8px;
  color: #eee;
  text-decoration: none;
  margin-bottom: 5px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

aside a:hover,
aside a.active {
  background-color: #163465af;
  color: #eee;
  text-decoration: underline;
  /* border-bottom: 1px solid #fff; */
  transform: translateX(4px);
}

/* aside.open {
  margin-top: 120px;
} */

.breadcrumb-banner {
  height: 42px;
  background-color: #f8f9fa;
  margin-bottom: 1rem;
}
.breadcrumb-banner .breadcrumb {
  margin-bottom: 0;
}

.breadcrumb-item.active {
  color: #42494f;
}

main {
  background-color: #f8f9fa;
  flex: 1;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  /* margin-top: 1.5rem; */
  border-radius: 0.25rem;
  min-width: 0;
  transition: none !important;
}

main.no-sidenav {
  margin: 0 auto;
  margin-top: 3rem;
}

.container.banner img {
  border-radius: 4px;
  width: 100%;
  margin-top: 1rem;
}

.section {
  display: none;
  min-height: fit-content;
  transition: none !important;
}

.section.active {
  display: block;
}

.section .content-list {
  padding-left: 0;
}

.heading-and-element-flexbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.heading-and-element-flexbox img {
  max-height: 76px;
  width: auto;
  max-width: 240px;
}

h2.display-4 {
  font-size: 2.7rem;
  margin-bottom: 2rem;
}

h3.sub-heading {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.section p {
  font-size: 18px;
}

.fw-bold {
  font-weight: bold;
}

.past-drug-list ul li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.past-drug-list ul li i {
  font-size: 1.5rem;
}

.content-list {
  list-style-type: none;
}

.content-list.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1rem;
  padding-left: 0;
  margin-top: 2.2rem;
}

.content-list li {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.content-list.grid-layout li {
  display: flex;
  gap: 8px;
  align-items: center;
  background-color: #e3e2e8;
  padding: 8px 6px;
  border-radius: 4px;
  /* align-items: center; */
  box-shadow: 2px 2px 12px #cccccc49;
}

.content-list.with-descriptions li {
  flex-direction: column;
}

.content-list.with-descriptions li span {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
}

.content-list li i {
  color: #204f9a;
  font-size: 20px;
}

.content-list.grid-layout li i {
  color: #0c3b69;
  font-size: 36px;
}

.content-list li a:link,
.content-list li a:visited,
.content-list p a:link,
.content-list p a:visited {
  color: #204f9a;
  text-decoration: none;
  font-weight: 600;
}

.content-list li a:hover,
.content-list li a:active,
.content-list p a:hover,
.content-list p a:active {
  text-decoration: underline;
}

.content-images {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 16px;
}

.content-images img {
  max-width: 200px;
}

#stopIt iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.support-grid .col {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;

  background-size: cover;
  background-position: center;
  /* background-attachment: fixed; */
  background-repeat: no-repeat;
  overflow: hidden;
  height: 240px;
  width: 240px;
  margin: 4px;
  border-radius: 4px;

  /* height: 420px; */
  /* width: 420px; */
}

.bx-menu-alt-left {
  color: #333;
  font-size: 32px;
}

.section table {
  max-width: 100%;
  border-collapse: collapse;
}
/* select all tables under all procurments */
.procurements table {
  width: 100%;
  border-collapse: collapse;
}

/* Carrier Contacts Table - NEW LAYOUT */
section {
  margin-bottom: 64px;
}

section h3 i.bx,
section h3 i.fa-solid {
  color: #193753;
}

.carrier-contacts {
  padding: 1rem;
}

.carrier-contacts h3 {
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.carrier-card {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  background-color: #f8f9fa;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.carrier-logo img {
  max-width: 100px;
  height: auto;
  object-fit: contain;
}

.carrier-info {
  flex: 1;
}

.carrier-info h4 {
  margin: 0 0 0.5rem;
  font-weight: bold;
}

.contact-field-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.carrier-phone,
.carrier-website {
  display: block;
  /* margin-top: 0.5rem; */
  color: #007bff;
  text-decoration: none;
}

.carrier-phone:hover,
.carrier-website:hover {
  text-decoration: underline;
}

/* Contact us */
.new-form-container {
  margin-top: 64px;
  background-color: #ffffffe1;
  border-radius: 12px;
  max-width: 960px;
  min-height: 60vh;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

/* Enhanced form styling */
.new-form-container form {
  margin-top: 2rem;
}

.new-form-container .form-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.new-form-container .form-control,
.new-form-container .form-select {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.new-form-container .form-control:focus,
.new-form-container .form-select:focus {
  border-color: #204f9a;
  box-shadow: 0 0 0 0.2rem rgba(32, 79, 154, 0.25);
  outline: none;
}

.new-form-container .form-control:hover,
.new-form-container .form-select:hover {
  border-color: #204f9a;
}

/* Required field indicator */
.new-form-container .form-label::after {
  content: " *";
  color: #dc3545;
  font-weight: bold;
}

/* Form section styling */
.new-form-container .main-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
}

.new-form-container .main-section-header h2 {
  color: #2c3e50;
  font-weight: 700;
  margin: 0;
}

.new-form-container .main-section-header .logo {
  width: 140px;
  height: auto;
}

/* Form row spacing */
.new-form-container .row {
  margin-bottom: 1.5rem;
}

.new-form-container .col-md-6,
.new-form-container .col-md-4,
.new-form-container .col-md-2 {
  margin-bottom: 1rem;
}

/* Submit button styling */
.new-form-container .btn-primary {
  background: linear-gradient(135deg, #204f9a 0%, #163465 100%);
  border: none;
  border-radius: 8px;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(32, 79, 154, 0.3);
}

.new-form-container .btn-primary:hover {
  background: linear-gradient(135deg, #163465 0%, #0f2a4a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32, 79, 154, 0.4);
}

.new-form-container .btn-primary:active {
  transform: translateY(0);
}

/* Checkbox styling */
.new-form-container .form-check {
  display: inline-flex;
  align-items: center;
  margin: 0 1rem 0.5rem 0;

  background: transparent;
  border: none;
  border-radius: 0;
}

.new-form-container .form-check-inline {
  display: inline-flex;
  align-items: center;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}

.new-form-container .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0;
  margin-right: 0.35rem;
  border: 1.5px solid #6c757d;
  border-radius: 4px;
}

.new-form-container .form-check-input:checked {
  background-color: #204f9a;
  border-color: #204f9a;
}

.new-form-container .form-check-label {
  font-weight: 500;
  color: #495057;
  line-height: 1.5;
}

/* Warning text styling */
.new-form-container p.text-secondary {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  padding: 0.75rem;
  margin: 1.5rem 0;
  color: #856404;
  font-style: italic;
}

/* PDF links styling */
.new-form-container .d-flex.gap-1 {
  background-color: #f8f9fa;
  padding: 0.75rem;
  border-radius: 6px;
  margin: 0.5rem 0;
  transition: all 0.3s ease;
}

.new-form-container .d-flex.gap-1:hover {
  background-color: #e9ecef;
  transform: translateX(4px);
}

.new-form-container .d-flex.gap-1 a {
  color: #204f9a;
  text-decoration: none;
  font-weight: 500;
}

.new-form-container .d-flex.gap-1 a:hover {
  text-decoration: underline;
}

/* Loading state improvements */
.loading {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  color: #204f9a;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  text-align: center;
  width: 100%;
  height: 100%;
  font-size: 1.5rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid #e9ecef;
  border-top: 4px solid #204f9a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Modal improvements */
.modal {
  z-index: 9999 !important;
}

.modal-backdrop {
  z-index: 9998 !important;
}

.modal-dialog {
  z-index: 10000;
  margin: 1.75rem auto;
}

.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: linear-gradient(135deg, #204f9a 0%, #163465 100%);
  color: white;
  border-radius: 12px 12px 0 0;
  border-bottom: none;
}

/* Make close button white on blue gradient modal headers */
.modal-header .btn-close {
  filter: invert(1) brightness(1);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-title {
  font-weight: 600;
}

.modal-body {
  padding: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  overflow-y: auto;
  flex: 1 1 auto;
}

/* Remove bullet points from modal lists */
.modal-body ul {
  list-style: none;
  padding-left: 0;
}

.modal-body ul li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.modal-body ul li i {
  flex-shrink: 0;
  margin-top: 0.25rem;
  font-size: 1.25rem;
}

/* Specific styling for PDF/document lists in modals */
.modal-body.list-of-pdfs ul {
  margin-bottom: 1.5rem;
}

.modal-body.list-of-pdfs h4 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #204f9a;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-body.list-of-pdfs h4:first-child {
  margin-top: 0;
}

.modal-body.list-of-pdfs ul li {
  padding: 0.5rem 0;
  transition: transform 0.2s ease;
}

.modal-body.list-of-pdfs ul li:hover {
  transform: translateX(4px);
}

.modal-body.list-of-pdfs ul li a {
  color: #204f9a;
  text-decoration: none;
  font-weight: 500;
}

.modal-body.list-of-pdfs ul li a:hover {
  text-decoration: underline;
  color: #163465;
}

.modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 1rem 2rem;
  flex-shrink: 0;
}

/* Responsive improvements */
@media screen and (max-width: 768px) {
  .new-form-container {
    margin-top: 32px;
    border-radius: 8px;
    padding: 1rem;
  }

  .new-form-container .main-section-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .new-form-container .main-section-header .logo {
    width: 120px;
  }

  .new-form-container .form-control,
  .new-form-container .form-select {
    padding: 0.875rem;
  }

  .new-form-container .btn-primary {
    width: 100%;
    padding: 1rem;
  }

  .new-form-container .col-md-6,
  .new-form-container .col-md-4,
  .new-form-container .col-md-2 {
    margin-bottom: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .new-form-container {
    margin: 16px;
    padding: 1rem;
  }

  .new-form-container .main-section-header h2 {
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
    font-size: 1rem;
  }
}

#NMPSIA,
#Erisa {
  display: none;
}

.main-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.main-section-header .logo {
  width: 160px;
}

.bx-file {
  color: #193753;
  font-size: 24px;
}
/* ---------- */

/* Google search */
table.gsc-search-box td.gsc-input {
  padding-right: 0;
  border-radius: 0.25rem;
  border: none;
  height: 36px;
}
.gsc-search-button.gsc-search-button-v2 {
  height: 36px;
  background-color: #21509b;
  border: none;
  border-radius: 0.25rem;
}

.accordion.be-your-best-self {
  margin-top: 1rem;
}

/* natural disaster aid */
.big-links-container {
  margin-top: 64px;
  display: flex;
  gap: 32px;
  justify-content: flex-start;
}

.big-links-container .bx {
  font-size: 3rem;
}

.big-box-link:link,
.big-box-link:visited {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 1rem;
  background-color: #eeecfa;
  border-radius: 8px;
  box-shadow: 0 5px 14px -1px #dbdbdb;
  text-decoration: none;
}

.big-box-link:hover {
  transform: scale(1.05);
  background-color: #e1effb;
  transition: all 0.2s ease-in;
}

.flexbox {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.flexbox h4 {
  font-size: 1.4rem;
}

.flexbox #do h4 {
  color: green;
  font-weight: 700;
  margin-bottom: 1rem;
}

.flexbox #dont h4 {
  color: red;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media screen and (max-width: 768px) {
  .flexbox {
    flex-direction: column;
  }
}

/* RISK PAGE */
.risk-logos {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  align-items: center;
  margin-bottom: 42px;
}
.basic-phases {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  margin-top: 1rem;
}

.basic-phases li {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style-type: none;
  font-weight: 600;
}

/* for nmpsia mobile link on home page */
/* "CLICK HERE TO UPDATE HOME ADDRESS" ANIMATION */
/* it's a <a> inside a <div class="promo-banner"> */
.promo-banner {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 500;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  margin-top: 28px;
  margin-bottom: 28px;
  animation: slidein 1s ease-in-out;
}

.promo-banner a:link,
.promo-banner a:visited {
  text-decoration: none;
  font-size: 18px;
  color: #fff;
  font-weight: 500;
  margin: 0 auto;
}

.promo-banner a:hover,
.promo-banner a:active {
  text-decoration: none;
  color: #dfe0f5;
}

.step {
  /* text-decoration: underline; */
  font-style: italic;
  color: #647691;
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: 1rem;
}

@keyframes slidein {
  0% {
    transform: translateX(100%);
  }

  80% {
    transform: translateX(-10%);
  }

  100% {
    transform: translateX(0%);
  }
}

/* ********************** */
/* DARK STYLES BEGIN HERE */
/* ********************** */

body.dark {
  background-color: #101331;
  color: #fff;
  background-image: linear-gradient(180deg, #101331e3 0%, #10132cba 100%),
    /* url('https://images.unsplash.com/photo-1419242902214-272b3f66ee7a?q=80&w=1813&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); */
      url("https://images.unsplash.com/photo-1502581827181-9cf3c3ee0106?q=80&w=1576&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: cover;
  background-position: 25%;
}

.dark nav,
.dark main {
  background-color: #101331a9;
}

.dark .content-list.grid-layout li {
  background-color: #101331;
  box-shadow: 2px 2px 12px #362a408d;
}

.dark .content-list.grid-layout li i,
.dark .content-list li i,
.dark .content-list li ion-icon,
.dark .content-list li a:link,
.dark .content-list li a:visited {
  color: #7cb6f1;
}

/* this is just for obfuscating the larger headings during time lapse clips */
/*
  .dark h2.display-4 {
    color: #101331;
  }
  */

.dark h2.display-4,
.dark i.bx-menu,
.dark .breadcrumb-item,
.dark .breadcrumb-item a:link,
.dark .breadcrumb-item a:visited,
.dark .bx-menu-alt-left,
.dark .bx-x {
  color: #dddddd;
}

.dark aside {
  background-color: #101331;
}

.dark aside a {
  color: #7cb6f1;
}

.dark footer {
  background-color: #101331;
}

.dark .modal-content {
  background-color: #101331;
  color: #fff;
}

.dark .modal-header .btn-close {
  /* make it white */
  filter: invert(1) brightness(1);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.dark .modal-header .btn-close:hover {
  opacity: 1;
}

/* Document links styling */
.new-form-container .document-links {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid #204f9a;
}

.new-form-container .document-links h5 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 1rem;
}

.new-form-container .document-link {
  color: #204f9a;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.new-form-container .document-link:hover {
  color: #163465;
  text-decoration: underline;
}

/* Alert styling */
.new-form-container .alert {
  border-radius: 8px;
  border: none;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.new-form-container .alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

.new-form-container .alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

.new-form-container .alert i {
  font-size: 1.1rem;
}

/* Form help text */
.new-form-container .form-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
  font-style: italic;
}

/* Form intro section */
.new-form-container .form-intro {
  margin-bottom: 2rem;
}

.new-form-container .form-intro .lead {
  color: #495057;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Enhanced form validation styling - only show when classes are applied */
.new-form-container .form-control:not(.is-valid):valid,
.new-form-container .form-select:not(.is-valid):valid,
.new-form-container .form-control:not(.is-invalid):invalid,
.new-form-container .form-select:not(.is-invalid):invalid {
  border-color: #e9ecef; /* neutral default */
  box-shadow: none;
}

.new-form-container .form-control.is-invalid,
.new-form-container .form-select.is-invalid {
  border-color: #dc3545;
}

.new-form-container .form-control.is-valid,
.new-form-container .form-select.is-valid {
  border-color: #28a745;
}

/* Focus states for better accessibility */
.new-form-container .form-control:focus,
.new-form-container .form-select:focus,
.new-form-container .form-check-input:focus {
  outline: 2px solid #204f9a;
  outline-offset: 2px;
}

/* Button loading state */
.new-form-container .btn-primary:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.new-form-container .btn-primary:disabled:hover {
  background: #6c757d;
  transform: none;
  box-shadow: none;
}

/* Responsive improvements for new elements */
@media screen and (max-width: 768px) {
  .new-form-container .document-links {
    padding: 1rem;
  }

  .new-form-container .alert {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .new-form-container .form-text {
    font-size: 0.8rem;
  }

  .new-form-container .form-intro .lead {
    font-size: 1rem;
  }
}

/* Quick Actions Dashboard */
.quick-actions-dashboard {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dashboard-title {
  color: #204f9a;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.dashboard-toggle {
  background: none;
  border: none;
  color: #204f9a;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-toggle:hover {
  background: rgba(32, 79, 154, 0.1);
  transform: scale(1.1);
}

.dashboard-toggle.collapsed i {
  transform: rotate(180deg);
}

.quick-actions-content {
  transition: all 0.3s ease;
  overflow: hidden;
}

.quick-actions-content.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.quick-action-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e9ecef;
}

.quick-action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.quick-action-card i {
  font-size: 2rem;
  color: #204f9a;
  margin-bottom: 0.75rem;
  display: block;
}

.quick-action-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.quick-action-card p {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.quick-action-card .btn {
  width: 100%;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

@media (max-width: 1200px) {
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .quick-action-card {
    padding: 1.25rem;
  }

  .quick-action-card i {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }

  .quick-action-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .quick-action-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .quick-action-card .btn {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 768px) {
  .quick-actions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .quick-actions-dashboard {
    padding: 1.5rem;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .dashboard-title {
    font-size: 1.25rem;
  }

  .quick-action-card {
    padding: 1.5rem;
  }

  .quick-action-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .quick-action-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .quick-action-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .quick-action-card .btn {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
}

/* Contact Cards Improvements */
#lossPrevContacts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.contact-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin: 0 auto 1rem;
  border: 3px solid #204f9a;
}

.contact-card span {
  display: block;
  margin-bottom: 0.5rem;
}

.contact-card span:first-of-type {
  font-weight: 600;
  color: #204f9a;
  font-size: 1.1rem;
}

.contact-card span:nth-of-type(2) {
  color: #6c757d;
  font-size: 0.9rem;
}

.contact-card span:nth-of-type(3) {
  color: #204f9a;
  font-size: 0.9rem;
}

.contact-card span:last-of-type {
  background: #e3f2fd;
  color: #0c3b69;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  #lossPrevContacts {
    grid-template-columns: 1fr;
  }
}

/* Search Section */
.search-section {
  margin-bottom: 2rem;
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1.2rem;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 3rem;
  border: 2px solid #e9ecef;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: #204f9a;
  box-shadow: 0 0 0 3px rgba(32, 79, 154, 0.1);
}

.clear-search-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.clear-search-btn:hover {
  background: #e9ecef;
  color: #495057;
}

.search-results {
  margin-top: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.search-result-item h5 {
  color: #204f9a;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.search-result-item p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 0;
}

.search-highlight {
  background-color: #fff3cd;
  padding: 0.1rem 0.2rem;
  border-radius: 2px;
}

@media screen and (max-width: 768px) {
  .sidenav-layout {
    flex-direction: column;
  }

  aside {
    min-width: 100%;
    max-width: 100%;
    margin-top: 0;
    border-radius: 0;
    order: 2;
    transform: translateX(-100%);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: none;
    /* Override sticky positioning on mobile */
    position: fixed !important;
    top: 0 !important;
  }

  aside.open {
    transform: translateX(0);
  }

  main {
    order: 1;
    margin-top: 0;
    padding: 1rem;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions-dashboard {
    padding: 1.5rem;
  }

  #lossPrevContacts {
    grid-template-columns: 1fr;
  }

  .content-list.grid-layout {
    grid-template-columns: 1fr;
  }

  .heading-and-element-flexbox {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .heading-and-element-flexbox img {
    max-height: 60px;
  }

  h2.display-4 {
    font-size: 2rem;
  }
}

/* Homepage mobile improvements */
@media screen and (max-width: 768px) {
  /* Avoid janky fixed backgrounds on mobile (override inline) */
  body.homepage {
    background-attachment: scroll !important;
    background-size: cover;
  }

  /* Promo banner: make non-overlapping and readable */
  .promo-banner {
    position: static;
    margin-top: 8px;
    margin-bottom: 8px;
  }
  .promo-banner a {
    display: inline-block;
    font-size: 16px;
    background: rgba(32, 79, 154, 0.9);
    padding: 8px 16px;
    border-radius: 6px;
    text-align: center;
    width: 100%;
    max-width: 400px;
  }

  /* Hero: reduce height and stack actions */
  .homepage .hero {
    height: auto;
    min-height: 60vh;
    margin-top: 64px;
    padding-bottom: 24px;
    padding-top: 16px;
  }
  .homepage .hero h1.display-4 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  .homepage .hero-btn-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
    max-width: 100%;
  }
  .homepage .hero-btn-container a {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 14px 16px;
    font-size: 16px;
    white-space: normal;
    word-wrap: break-word;
  }

  /* Happening Now: tighter layout */
  .happening-now {
    padding: 1rem;
    margin: 1rem 8px;
  }

  .happening-now h2.display-5 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.75rem;
  }

  .happening-now p {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }

  .happening-now .swiper {
    padding: 0.5rem 0 2.5rem 0;
    margin: 0;
  }

  #news-container .swiper-slide {
    min-height: 420px;
    max-height: 500px;
    padding: 1rem;
    margin: 0;
  }

  .swiper-slide div.lower {
    margin-top: 0.75rem;
  }

  .happDate {
    padding: 6px 10px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .happDate span {
    font-size: 0.85rem;
  }

  .happTitle h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }

  .happContent {
    font-size: 0.9rem;
    line-height: 1.5;
    max-height: 180px;
    overflow-y: auto;
  }

  /* Swiper navigation improvements for mobile */
  .swiper-button-prev,
  .swiper-button-next {
    width: 36px;
    height: 36px;
    top: 50%;
    margin-top: -18px;
  }

  .swiper-button-prev {
    left: 5px;
  }

  .swiper-button-next {
    right: 5px;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 15px;
  }

  /* Swiper pagination for mobile */
  .swiper-pagination {
    bottom: 5px !important;
  }

  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 4px !important;
  }

  .swiper-pagination-bullet-active {
    width: 20px;
  }

  /* Happening buttons on mobile */
  .happButtons {
    margin-top: 1.5rem;
  }

  .happButtons span {
    padding: 0.5rem;
    font-size: 0.95rem;
  }

  /* Happening buttons layout */
  .happButtons {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .happButtons span {
    justify-content: center;
  }

  /* Container adjustments */
  .homepage main .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Modal improvements for mobile */
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .modal-content {
    max-height: calc(100vh - 1rem);
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-body {
    padding: 1.25rem;
    font-size: 1rem;
    overflow-y: auto;
  }

  .modal-body ul {
    padding-left: 0;
  }

  .modal-body ul li {
    margin-bottom: 0.5rem;
    gap: 0.5rem;
  }

  .modal-footer {
    padding: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .homepage .hero h1.display-4 {
    font-size: 1.7rem;
    padding: 0 8px;
  }

  .homepage .hero-btn-container a {
    padding: 12px 12px;
    font-size: 15px;
  }

  .happening-now {
    margin: 0.75rem 4px;
    padding: 0.875rem;
  }

  .happening-now h2.display-5 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .happening-now p {
    font-size: 0.9rem;
  }

  #news-container .swiper-slide {
    min-height: 400px;
    max-height: 480px;
    padding: 0.875rem;
  }

  .happTitle h3 {
    font-size: 1.05rem;
  }

  .happContent {
    font-size: 0.875rem;
    max-height: 160px;
    line-height: 1.4;
  }

  .happDate {
    padding: 5px 8px;
  }

  /* Reduce button text size for very small screens */
  .homepage .hero-btn-container a {
    font-size: 14px;
    padding: 10px 8px;
  }

  /* Smaller navigation buttons */
  .swiper-button-prev,
  .swiper-button-next {
    width: 32px;
    height: 32px;
  }

  .swiper-button-prev {
    left: 2px;
  }

  .swiper-button-next {
    right: 2px;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 13px;
  }

  /* Smaller pagination dots */
  .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 3px !important;
  }

  .swiper-pagination-bullet-active {
    width: 16px;
  }
}

@media screen and (max-width: 360px) {
  .homepage .hero h1.display-4 {
    font-size: 1.5rem;
  }

  .homepage .hero-btn-container a {
    font-size: 13px;
    padding: 8px 6px;
  }

  .happening-now {
    padding: 0.75rem;
    margin: 0.5rem 2px;
  }

  .happening-now h2.display-5 {
    font-size: 1.3rem;
  }

  #news-container .swiper-slide {
    min-height: 380px;
    padding: 0.75rem;
  }

  .happTitle h3 {
    font-size: 1rem;
  }

  .happContent {
    font-size: 0.85rem;
    max-height: 140px;
  }
}
