:root,
[data-bs-theme="light"] {
  --bs-primary: #cddf56;
  --bs-primary-rgb: 205, 223, 86;
  --bs-link-color: #cddf56;
  --bs-link-color-rgb: 205, 223, 86;
  --bs-link-hover-color: #58602c;
  --bs-link-hover-color-rgb: 88, 96, 44;
}

[data-bs-theme="dark"] {
  --bs-primary: #cddf56;
  --bs-primary-rgb: 205, 223, 86;
  --bs-link-color: #cddf56;
  --bs-link-color-rgb: 205, 223, 86;
  --bs-link-hover-color: #58602c;
  --bs-link-hover-color-rgb: 88, 96, 44;
}

/* Keep Bootstrap container widths when Tailwind CDN is present. */
@media (min-width: 576px) {
  .container,
  .container-sm {
    max-width: 540px !important;
  }
}

@media (min-width: 768px) {
  .container,
  .container-md,
  .container-sm {
    max-width: 720px !important;
  }
}

@media (min-width: 992px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm {
    max-width: 960px !important;
  }
}

@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 1140px !important;
  }
}

@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1320px !important;
  }
}

/* Restore original footer social icon spacing. */
footer .item.social .list-inline-item {
  margin: 0 5px;
}

/* Homepage quick info cards (Spoed/Openingstijden/Locaties). */
.quick-info-card {
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

.quick-info-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.35rem !important;
}

.quick-info-phone {
  font-size: clamp(2rem, 2.6vw, 2.55rem);
  font-weight: 700;
  line-height: 1.05;
}

.quick-info-card .card-title {
  font-size: clamp(1.35rem, 1.2vw + 1rem, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
}

.quick-info-card .card-subtitle,
.quick-info-card .text-muted {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
}

.quick-info-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #495057;
  text-decoration: none;
}

.quick-info-link:hover {
  color: #343a40;
}

.quick-info-link .bi {
  font-size: 1.1rem;
  vertical-align: middle;
}

.quick-info-card .card-footer {
  background: rgba(205, 223, 86, 0.16) !important;
  border-top: 1px solid rgba(205, 223, 86, 0.5) !important;
  padding: 0.9rem 1.25rem 1rem !important;
}

.quick-info-card .card-footer .quick-info-link {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

/* Navbar dropdown should never fall back to Bootstrap blue active state. */
.navbar .dropdown-menu .dropdown-item:active,
.navbar .dropdown-menu .dropdown-item.active {
  background-color: var(--bs-primary) !important;
  color: #212529 !important;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  background-color: rgba(205, 223, 86, 0.22) !important;
  color: #212529 !important;
}

.navbar .dropdown-toggle.show,
.navbar .nav-link:focus {
  color: var(--bs-primary) !important;
}

/* Homepage FAQ section. */
.faq-shell {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.9rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.06);
}

.faq-accordion .accordion-item {
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
}

.faq-accordion .accordion-item:last-child {
  border-bottom: 0;
}

.faq-accordion .accordion-button {
  background: transparent;
  box-shadow: none;
  color: var(--bs-body-color);
  padding: 1rem 1.25rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--bs-primary);
  background: rgba(205, 223, 86, 0.12);
}

.faq-accordion .accordion-button:focus {
  box-shadow: none;
}

.faq-accordion .accordion-body {
  padding: 0.25rem 1.25rem 1rem 1.25rem;
  color: var(--bs-secondary-color);
}

.faq-accordion .accordion-body a {
  color: var(--bs-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-accordion .accordion-body a:hover {
  color: var(--bs-link-hover-color);
}

/* Consistent alignment for article cards on listing pages. */
.aligned-card-grid > [class*="col"] {
  display: flex;
}

.aligned-card-grid .card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.aligned-card-grid .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.65rem 1.4rem rgba(0, 0, 0, 0.1);
}

.aligned-card-grid .card-img-top {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.aligned-card-grid .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem !important;
  gap: 0.3rem;
}

.aligned-card-grid .card-body > a:last-child {
  margin: auto -1.25rem -1.25rem;
  align-self: stretch;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  width: auto;
  padding: 0.9rem 1.25rem 1rem;
  border-top: 1px solid rgba(205, 223, 86, 0.5);
  background: rgba(205, 223, 86, 0.16);
  font-weight: 700;
  text-decoration: none;
  color: #495057;
}

.aligned-card-grid .card-body > a:last-child::after {
  content: "\2192";
  font-size: 1.05rem;
  line-height: 1;
}

.aligned-card-grid .card-body > a:last-child:hover {
  color: #343a40;
  background: rgba(205, 223, 86, 0.28);
  text-decoration: none;
}

/* Restore larger listing-page typography (title/subtitle/card text). */
.listing-page-hero h2 {
  font-size: clamp(1.9rem, 2vw + 1rem, 2.6rem);
}

.listing-page-hero p {
  font-size: 1.08rem;
  line-height: 1.5;
}

.listing-page-cards .card .card-title {
  font-size: clamp(1.05rem, 0.65vw + 0.9rem, 1.28rem);
  font-weight: 700;
  line-height: 1.35;
}

.listing-page-cards .card .card-text {
  font-size: 0.96rem;
  line-height: 1.55;
}

.listing-page-cards .card .text-primary.card-text {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Social embeds styled like content cards on nieuws.html. */
.social-embed-card {
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.social-embed-shell {
  max-width: 360px;
  margin: 0 auto;
}

.social-embed-card .instagram-media {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  border-radius: 0.75rem !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.social-embed-frame {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  border-radius: 0.75rem;
  background: #f8f9fa;
}

@media (max-width: 575.98px) {
  .social-embed-frame {
    height: 560px;
  }
}

/* Vacatures page: restore brand-colored headings in content area. */
.vacatures-page article h1,
.vacatures-page article h2,
.vacatures-page article h3,
.vacatures-page article h4,
.vacatures-page article h5,
.vacatures-page article h6 {
  color: var(--bs-primary);
  font-weight: 700;
  line-height: 1.25;
}

.vacatures-page article h1 {
  font-size: clamp(2rem, 1.6vw + 1.4rem, 2.5rem);
}

.vacatures-page article h5 {
  font-size: clamp(1.2rem, 0.7vw + 1rem, 1.45rem);
  margin-top: 1rem;
  margin-bottom: 0.45rem;
}

.vacatures-page article .fs-6 {
  font-size: 1.05rem !important;
  line-height: 1.6;
}

.vacatures-page .vacature-cta-link {
  color: var(--bs-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vacatures-page .vacature-cta-link:hover {
  color: var(--bs-link-hover-color);
}

.vacatures-page .vacature-job-link {
  color: var(--bs-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vacatures-page .vacature-job-link:hover {
  color: var(--bs-link-hover-color);
}

/* Contact page intro (top block). */
.contact-page .contact-hero {
  background: linear-gradient(180deg, #1f2328 0%, #272b31 100%);
}

.contact-page .contact-intro-card {
  background: rgba(255, 255, 255, 0.06);
  color: #f8f9fa;
  border: 1px solid rgba(205, 223, 86, 0.34);
  border-radius: 1rem;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.28);
  padding: clamp(1.25rem, 2vw, 1.8rem);
  backdrop-filter: blur(2px);
}

.contact-page .contact-intro-title {
  font-size: clamp(1.8rem, 1.1vw + 1.4rem, 2.25rem);
  font-weight: 800;
  color: #ffffff;
}

.contact-page .contact-intro-lead {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.contact-page .contact-intro-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.contact-page .contact-intro-cta {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(205, 223, 86, 0.42);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
}

.contact-page .contact-intro-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.35rem;
}

.contact-page .contact-intro-label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.contact-page .contact-intro-phone {
  color: var(--bs-primary);
  font-size: clamp(1.3rem, 0.9vw + 1.05rem, 1.6rem);
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
}

.contact-page .contact-intro-phone:hover {
  color: #ffffff;
}

/* Global footer layout polish (all content pages). */
footer.bg-dark {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer.bg-dark .container {
  padding-top: 3rem !important;
  padding-bottom: 2rem !important;
}

footer.bg-dark .row.justify-content-center {
  row-gap: 1.5rem;
}

footer.bg-dark .item.social {
  gap: 0.35rem;
}

footer.bg-dark .item.social .fw-bold span {
  font-size: 1.1rem;
  line-height: 1.35;
}

footer.bg-dark .copyright,
footer.bg-dark p {
  line-height: 1.55;
}

footer.bg-dark .list-unstyled li + li {
  margin-top: 0.45rem;
}

footer.bg-dark .footer-contact-link {
  color: var(--bs-primary) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer.bg-dark .footer-contact-link:hover {
  color: #ffffff !important;
}

footer.bg-dark a {
  text-decoration: none;
  transition: color 0.15s ease;
}

footer.bg-dark a:hover {
  color: #ffffff !important;
}

footer.bg-dark hr {
  margin: 1.5rem 0 1rem;
  border-color: rgba(255, 255, 255, 0.15);
}

footer.bg-dark .d-flex.justify-content-between.align-items-center.justify-content-xl-center.pt-3 {
  justify-content: center !important;
  text-align: center;
}

@media (max-width: 991.98px) {
  footer.bg-dark .item {
    text-align: center !important;
    align-items: center !important;
  }
}
