/* --- Navbar --- */
.navbar-custom { background-color: #198754; }
.navbar-custom .navbar-brand, .navbar-custom .nav-link, .navbar-custom .navbar-text { color:#fff !important; }
.navbar-custom .nav-link:hover { color:#d4edda !important; }

/* --- Shared padding --- */
.layout-padding { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 992px) {
  .layout-padding { padding-left: 20rem; padding-right: 20rem; }
}

.content-centered { max-width: 1200px; margin: 0 auto; }

/* --- Banner directly under navbar --- */
/* Body keeps the offset for all content, banner is pulled up to sit right under the navbar */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { padding-top: 50px;
       font-family: var(--bs-font-sans-serif);
} /* keep this */

.banner {
  position: relative;
  overflow: hidden;
  background: #fff;
  background: url("../images/managedlinux.png") no-repeat;
  background-size: cover;
  height: min(550px, 54vw);   /* <= responsive height */
  top: -20px;        /*  pull the banner up by the navbar height */
  /* margin-bottom: 0px;  neutralize spacing below so next section starts correctly */
}
.banner .block {
  padding: 50px 0px 10px;
  margin-top: 10px;
  line-height: 1.0;
}

.banner .block h2 {
  color: green;
}

@media (min-width: 992px) {
  .banner .block h2 {
    color: green;
    padding-top: 0px;
    margin-top: 10px !important;
    line-height: 1.2;
  }
}

@media (min-width: 992px) {
  .banner { height: min(370px, 54vw); }
}

/* --- Blocks (equal height, clickable) --- */
.info-link { text-decoration: none; color: inherit; display:block; height:100%; }
.info-block {
  background-color:#f8f9fa; border-radius:.5rem; padding:2rem; text-align:center;
  box-shadow:0 2px 6px rgba(0,0,0,.1); transition:transform .2s, box-shadow .2s;
  height:100%; display:flex; flex-direction:column; justify-content:space-between;
}
.info-link:hover .info-block { transform:translateY(-4px); box-shadow:0 4px 12px rgba(0,0,0,.15); }

/* Back to Top button */
#backToTop {
  position: fixed; bottom: 40px; right: 40px; display: none;
  background:#198754; color:#fff; border:0; border-radius:50%;
  width:45px; height:45px; font-size:22px; align-items:center; justify-content:center;
  box-shadow:0 3px 6px rgba(0,0,0,.2); cursor:pointer;
}
#backToTop:hover { background:#157347; }

/* Anchor offset for sections */
/* does this work? */
/*
#beheer, #maatwerk, #overons { scroll-margin-top: 0px; }
@media (min-width: 992px) {
  #beheer, #maatwerk, #overons { margin-top: 0px; }
}
*/

/* Contact links in navbar */
.contact-link {
  color: #ffffff !important;      /* force white color */
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #d4edda !important;      /* light green on hover */
  text-decoration: underline;
}
.text-left {
  text-align: left !important;
}
.divider {
  width: 200px;
  height: 5px;
  background: green;
}
@media (min-width: 992px) {
  .divider {
    width: 260px;
    height: 5px;
    background: green;
  }
}
/* accordion */
.toggle-bar {
  background: light-grey;           /* green */
  color: #198754;                   /* white text */
  border: 0;
  width: 100%;
  text-align: left;
  padding: .9rem 1rem;
  border-radius: .75rem;         /* rounded corners */
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: filter .15s ease;
  margin-bottom: .5rem;
}
.toggle-bar:hover { filter: brightness(1.05); }
.toggle-bar:focus-visible {
  outline: 3px solid rgba(25,135,84,.35);
  outline-offset: 2px;
}
.toggle-bar .label { font-weight: 600; }
.toggle-bar .chev { transition: transform .2s ease; }
.toggle-bar[aria-expanded="true"] .chev { transform: rotate(90deg); } /* rotate right chevron */

.toggle-content {
  background: #f8f9fa;
  border-left: 4px solid #198754;
  border-radius: .5rem;
  padding: 1rem;
  margin-top: .0rem;             /* sits right under the bar */
  margin-bottom: .3rem;
}
