.navbar-brand img {
  aspect-ratio: 16 / 3;
}

h1, h2, h3, h4, h5, h6,
.navbar-nav > li > a,
.btn {
  font-family: "Space Grotesk", "Source Sans 3", sans-serif;
  letter-spacing: 0.2px;
}

.box-image-text .image {
    min-height: 190px;
    max-height: 190px;
}

.box-image-text .image img {
    max-height: 190px;
    margin: auto;
}

.box-simple {
  background: rgba(70, 120, 191, 0.06);
  border: 1px solid rgba(70, 120, 191, 0.18);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(26, 58, 102, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 28px 24px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.box-simple .icon {
  align-items: center;
  background: rgba(70, 120, 191, 0.16);
  border-radius: 14px;
  color: #1f5fab;
  display: inline-flex;
  font-size: 26px;
  height: 56px;
  justify-content: center;
  margin: 0 0 16px;
  width: 56px;
}

.box-simple h3 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  min-height: 2.6em;
  text-transform: none;
}

.box-simple p {
  color: #3f4f66;
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.box-simple:hover {
  box-shadow: 0 16px 34px rgba(26, 58, 102, 0.14);
  transform: translateY(-3px);
}


.box-simple li {
  text-align: left;
}

.home-carousel h1, .home-carousel ul {
  text-transform: none;
}

.home-carousel h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.home-carousel h2 {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 500;
  margin-bottom: 24px;
}

.home-carousel {
   background: url(../img/carousel-switch-new.webp) center center / cover no-repeat;
   position: relative;
   overflow: hidden;
   min-height: 492px;
 }

 .dark-mask {
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Not in use right now, but will be when we have a good video to use */
.home-carousel video {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  height: 150%; /* Used to align the video vertically without video editing :-) */
  width: 100%;
}

.bar.background-image-fixed-2 {
  background: url(../img/carousel.webp) center top no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

.bar .dark-mask {
  opacity: 0.7;
}

.home-carousel .img-responsive {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: 0;
}

.image-container {
  height: 120px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
}

.image-container img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.modal-dialog {
  max-width: 760px;
}
.graph {
  width: auto;
  margin: 4rem auto;
  margin-top:0;
  margin-bottom:0;
}
#cy {
  width: 100%;
  min-height: 400px;
  height: 40vh;
  z-index: 999;
}

.chart-box {
  padding: 1.5rem;
  margin: 1.5em;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 1.5rem;
}

.traffic-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 20px auto 10px;
}

.traffic-stat {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 180px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.traffic-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #6a6a6a;
  margin-bottom: 6px;
}

.traffic-value {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: #1c4a75;
}

.traffic-updated {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

html {
  scroll-padding-top: 72px;
}

.chart-box canvas {
  width: 100% !important;
}

#search-input {
    margin-bottom: 10px;
    width: 100%;
}

#members-table {
    width: 100%;
    border-collapse: collapse;
}

#members-table th {
    cursor: pointer;
    background-color: #f8f8f8;
}

#members-table th:hover {
    background-color: #e8e8e8;
}

#members-table td, #members-table th {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

#members-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.responsive-iframe-container {
    position: relative;
    padding-bottom: 400%;  /* Adjust based on your form's height */
    height: 0;
    overflow: hidden;
    box-sizing: border-box;
}
.responsive-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (min-width: 768px) {
    .responsive-iframe-container {
        position: relative;
        padding-bottom: 150%;
    }
   .responsive-iframe-container iframe {
        width: 50%;
  }

  .responsive-iframe-container.join-form iframe {
    width: 70%;
    left: 0;
    transform: none;
  }
}

.responsive-iframe-container.join-form iframe {
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 767px) {
  .navbar-affixed-top .navbar-collapse,
  .navbar-fixed-top .navbar-collapse {
    max-height: none;
  }

  .navbar-collapse.in {
    overflow-y: visible;
  }

  .navbar-nav {
    margin: 6px -15px;
  }

  .navbar-nav > li > a {
    padding: 8px 12px;
    font-size: 13px;
    line-height: 18px;
  }

  .navbar-nav .open .dropdown-menu > li > a,
  .navbar-nav .open .dropdown-menu .dropdown-header {
    padding: 6px 18px;
    font-size: 12px;
    line-height: 16px;
  }
  #members-table th:nth-child(2),
  #members-table td:nth-child(2),
  #members-table th:nth-child(4),
  #members-table td:nth-child(4),
  #members-table th:nth-child(5),
  #members-table td:nth-child(5) {
    display: none;
  }

  #members-table tr {
    cursor: pointer;
  }

  #members-table tr.is-expanded {
    background: #f7f9fb;
  }

  .member-toggle {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 12px;
    border: 1px solid #cfd6dc;
    background: #fff;
    border-radius: 999px;
  }

  .member-toggle:active,
  .member-toggle:focus {
    outline: none;
  }


  .member-details-inline {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
  }

  #members-table tr.is-expanded .member-details-inline {
    display: grid;
    gap: 8px;
  }

  .member-details-inline div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
  }

  .member-details-inline strong {
    color: #555;
    font-weight: 600;
  }
}

@media (min-width: 768px) {
  #members-table .member-details-inline {
    display: none;
  }

  #members-table tr.is-expanded .member-details-inline {
    display: none;
  }

  #members-table .member-toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  .member-toggle {
    display: inline-block;
  }
}

td, th {
  padding: 0.6em;
}
table {
  border-radius: 14px;
  border: 1px solid lightgray;
  border-collapse: separate;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  margin-bottom: 24px;
}
body {
  font-size: 16px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.6;
}
.btn-template-transparent-black,
.btn-template-main {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.icon {
  font-size: 40px;
  border: 0;
}

.client-name {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-top: 10px;
  line-height: 1.2;
  min-height: 1.4em;
}

.full-width-quote {
  width: 100%;
  background-color: #f9f9f9;
  text-align: center;
  padding: 20px 20px;
  margin: 0 auto;
}

.quote-text {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}


.bar {
  position: relative;
  background: var(--primary-accent);
  padding: 56px 0;
}

.bar.background-pentagon {
  background: url(../img/texture-bw.png) center center repeat;
  border: none;
}

section, div.section {
  margin-bottom: 0px;
}

.homepage-swiper {
  margin-bottom: 0;
}

.bar.background-pentagon.no-mb {
  padding: 72px 0;
}

/* Specific styles for the front page */
.home .bar.background-pentagon {
  border: none; /* Remove borders */
  padding: 30px 0; /* Adjust padding */
}

.lead {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.description {
  margin-bottom: 40px; /* Add bottom margin */
}

.section-see-more p {
  margin-bottom: 0;
}

.section-see-more {
  margin-bottom: 0;
}

/* Clients carousel tweaks */
.clients-section {
  margin-bottom: 80px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.customers-swiper .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 16px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.customers-swiper .swiper-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
}

.customers-swiper .swiper-slide img {
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.customers-swiper .swiper-slide img:hover {
  filter: grayscale(0%);
}

.customers-swiper .swiper-pagination {
  position: relative;
  bottom: auto;
  top: auto;
  text-align: center;
  margin-bottom: 20px;
}

.ix-location {
  text-align: center;
  margin-bottom: 20px;
  padding: 24px 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.ix-location h4 {
  font-size: 1.5rem;
  color: #007bff;
  margin-bottom: 10px;
}

.ix-location ul {
  list-style: none;
  padding: 0;
}

.ix-location ul li {
  margin: 5px 0;
}

.ix-location ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.ix-location ul li a:hover {
  text-decoration: underline;
  color: #007bff;
}

.btn-lg {
  margin-top: 10px;
}

.home-carousel .text-box .btn-lg {
  font-size: 3.5rem;
  padding: 1.2rem 2.8rem;
}

.text-box {
  background-color: rgba(70, 120, 191, 0.9); /* Semi-transparent blue overlay */
  padding: clamp(24px, 4vw, 64px);
  border-radius: 18px;
  text-align: left;
  color: #fff; /* White text for contrast */
  display: inline-block;
  margin-bottom: 20px;
  max-width: 720px;
}

@media (min-width: 992px) {
  .home-carousel .text-box {
    max-width: 900px;
  }
}

#footer {
  background: #333;
  color: #fff;
  padding: 56px 0 32px;
}

#footer h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fff;
}

#footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer ul li {
  margin-bottom: 10px;
}

#footer ul li a {
  color: #aaa;
  text-decoration: none;
}

#footer ul li a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-social-icon {
  width: 1.1rem;
  height: 1.1rem;
  filter: invert(1);
  opacity: 0.9;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.contact-card {
  background: rgba(70, 120, 191, 0.06);
  border: 1px solid rgba(70, 120, 191, 0.18);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 10px 24px rgba(26, 58, 102, 0.08);
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-card p {
  margin: 0 0 8px;
  color: #3f4f66;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(70, 120, 191, 0.16);
  color: #1f5fab;
  margin-bottom: 12px;
}

.contact-icon img,
.contact-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.contact-social-logos {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.contact-social-logos img {
  width: 20px;
  height: 20px;
  display: block;
}

.contact-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.contact-card-compact {
  padding: 18px 18px;
}

.contact-card-compact ul {
  margin: 8px 0 10px;
  padding-left: 18px;
  color: #3f4f66;
}

.contact-card-compact li {
  margin-bottom: 6px;
}

.donate-cta-card {
  background: rgba(70, 120, 191, 0.06);
  border: 1px solid rgba(70, 120, 191, 0.18);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(26, 58, 102, 0.1);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 20px;
  margin-top: 24px;
}

.donate-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(70, 120, 191, 0.16);
  color: #1f5fab;
}

.donate-cta-icon svg {
  width: 22px;
  height: 22px;
}

.donate-cta-content h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
}

.donate-cta-content p {
  margin: 0;
  color: #3f4f66;
}

.donate-cta-button {
  font-size: 1.1rem;
  padding: 0.9rem 1.6rem;
  white-space: nowrap;
  background: #1f5fab;
  border-color: #1f5fab;
  color: #fff;
  text-decoration: none;
}

.donate-cta-button:hover,
.donate-cta-button:focus {
  background: #174a87;
  border-color: #174a87;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 767px) {
  .donate-cta-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .donate-cta-button {
    width: 100%;
    text-align: center;
  }
}

.matrix-room {
  display: block;
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 5px;
}

#copyright {
  background: #222;
  color: #aaa;
  padding: 15px 0;
  text-align: center;
  font-size: 0.9rem;
}

#copyright a {
  color: #fff;
  text-decoration: none;
}

#copyright a:hover {
  text-decoration: underline;
}
