/* ------------------ Styling for gerneral use ------------------- */
body {
  color: #2B2B2B;
  font-family: 'Source Serif 4', serif;
  background-color: #E2D8C9;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.mb-10 {
  margin-bottom: 150px;
}

ul, li {
  list-style-position: inside;
  padding-left: 0;
  margin-left: 0;
}

/* --------------------------- Agenda ---------------------------- */
.agenda-date {
  min-width: 180px;
}

.agenda-icon {
  opacity: 0.9;
  font-size: 0.9em;
}

.login-container {
  max-width: 520px;
}

/* --------------------------- Buttons --------------------------- */
.general-btn {
  background-color: #A65A2A;
  color: #FFF;
  width: 250px;
  border-radius: 25px;
}

.btn-gen-spec {
  width: 250px;
  border-radius: 25px;
}

.btn-gen-spec-sm {
  border-radius: 25px;
}

.custom-danger-btn {
  background-color: #da1111;
  color: #FFF;
  width: 250px;
  border-radius: 25px;
}

.hvr-grow {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale;
  -webkit-transition-duration: 0.3s;
  -o-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: -webkit-transform;
  transition-property: -webkit-transform;
  -o-transition-property: transform;
  transition-property: transform;
  transition-property: transform, -webkit-transform;
}

.hvr-grow:hover,
.hvr-grow:focus,
.hvr-grow:active {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
}

.general-btn.hvr-grow:hover,
.general-btn.hvr-grow:focus {
  background-color: #8F4C22;
  color: #FFF;
}

.general-btn.hvr-grow:active {
  background-color: #7A411D;
  color: #FFF;
}

.custom-danger-btn.hvr-grow:hover,
.custom-danger-btn.hvr-grow:focus,
.custom-danger-btn.hvr-grow:active {
  background-color: #910909;
  color: #FFF;
}

/* -------------------------- Contact ---------------------------- */
.stripe-style-input::-webkit-input-placeholder:after {
  content: " *";
}

.stripe-style-input::-moz-placeholder:after {
  content: " *";
}

.stripe-style-input:-ms-input-placeholder:after {
  content: " *";
}

.stripe-style-input::-ms-input-placeholder:after {
  content: " *";
}

.stripe-style-input::placeholder:after {
  content: " *";
}

.form-control {
  background-color: #F5F0E6;
  border-radius: 20px;
}

.form-control:focus {
  background-color: #C9A48E;
}

.captcha img {
  width: 200px;
  height: auto;
  margin-top: 10px;
}

#div_id_captcha legend {
  display: none;
}

.captcha input {
  font-size: 1.2rem;
  padding: 8px;
  margin-top: 5px;
  text-align: center;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.contact-block a {
  color: inherit;
  text-decoration: none;
}

.contact-block a:hover {
  color: #A65A2A;
}

/* --------------------------- Footer ---------------------------- */
footer {
  padding: 0.8rem;
  background-color: #25324A;
  color: #FFF;
}

.footer-text {
  line-height: 1.4;
}

.footer-copyright {
  font-size: 12px;
}

.footer-link::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  -ms-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.footer-link:hover::before,
.footer-link:focus::before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  -ms-transform: scaleX(1);
  transform: scaleX(1);
}

/* ---------------------------- Home ----------------------------- */
.hero-image {
  position: relative;
  width: 100%;
  height: clamp(260px, 28vw, 520px);
  /* min, schaal, max */
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.caption {
  position: absolute;
  padding: 8px 12px;
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
  font-size: 25px;
  color: #E2D8C9;
  background: rgba(0, 0, 0, 0.45);
}

.credit {
  font-size: 10px;
  text-align: center;
  margin-bottom: 20px;
  color: #E2D8C9;
  font-style: italic;
}

.carousel-item img {
  height: 50vh;
  object-fit: cover;
}

.sponsor-logo-wrap--home {
  width: 260px;
  height: 120px;
}


.sponsor-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.sponsor-link:hover {
  color: #25324A;
}

.carousel {
  position: relative;
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%);
  height: auto;
  width: 5%;
  align-items: center;
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
  width: 2.5rem;
  height: 2.5rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #25324A;
  border-radius: 50%;
  padding: 10px;
}

/* -------------------------- Liederen --------------------------- */
.lied-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #F5F0E6;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
  color: inherit;
}

.lied-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.lied-nummer { font-weight: 700; min-width: 3.2rem; opacity: 0.9; }
.lied-titel { flex: 1; font-weight: 600; }
.lied-open { font-size: 0.95rem; opacity: 0.8; }


/* ------------------------- Media pages ------------------------- */
.container-narrow {
  max-width: 1100px;
}

.video-placeholder {
  height: 280px;
}

.image-placeholder {
  height: 220px;
}

.album-photo {
  height: 240px;
  object-fit: cover;
}

.member-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
}

/* --------------------------- Members --------------------------- */
.members-table thead th {
  border-bottom: 1px solid rgba(0, 0, 0, .15);
  font-weight: 600;
}

.members-table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

/* --------------------------- Navbar ---------------------------- */
.bg-marine {
  background-color: #25324A;
}

.text-sand {
  color: #E2D8C9;
}

.offcanvas {
  --bs-offcanvas-bg: #25324A;
}

.nav-item.active a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.dropdown-item {
  padding: .25rem 2rem;
  font-size: 14px;
}

.dropdown-item.active,
.dropdown-item:active {
  color: #A65A2A;
  text-decoration: underline;
  background-color: #FFF;
}

.dropdown-item:focus, .dropdown-item:hover {
  color: #A65A2A;
  background-color: #E8D3C4;
  width: 200px;
}

.dropdown-menu li {
  position: relative;
}

.dropdown-menu .dropdown-submenu {
  display: none;
  position: absolute;
  left: 0%;
  top: 28px;
  background-color: #F3F1EC;
  color: #E2D8C9;
  min-width: 1rem;
  border-radius: 0px;
}

.dropdown-menu .dropdown-submenu-left {
  right: 50%;
  left: auto;
}

.dropdown-menu>li:hover>.dropdown-submenu {
  display: block;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar-nav .nav-link.active {
  color: #A65A2A;
}

.navbar .nav-link {
  padding-left: .6rem;
  padding-right: .6rem;
  white-space: nowrap;
}

/* -------------------------- Planning --------------------------- */
.planning-card {
  background-color: #f3efe6;
  border-radius: 14px;
  padding: 12px;
  overflow-x: auto;
}

.planning-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  margin-bottom: 0;
  background: transparent;
}

.planning-table th {
  background: transparent;
}

.planning-table td:not(.planning-cell) {
  background: transparent;
}

.planning-table tbody tr+tr td {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.planning-table th.sticky-col,
.planning-table td.sticky-col {
  min-width: 180px;
}

.planning-table thead th:not(.sticky-col),
.planning-table tbody td:not(.sticky-col) {
  min-width: 220px;
  max-width: 340px;  
}

.planning-table thead th {
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

.sticky-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background-color: #f3efe6;
}

.sticky-col {
  position: sticky;
  left: 0;
  z-index: 4;
  background-color: #f3efe6;
}

.planning-cell {
  padding: 8px;
  transition: background-color .15s ease;
}

.planning-cell .planning-select {
  width: 100%;
  max-width: 100%;
  background-color: transparent;
}

.planning-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.planning-cell[data-status="aanwezig"] {
  background-color: #419e50;
}

.planning-cell[data-status="afwezig"] {
  background-color: #e7412f;
}

.planning-cell[data-status="onzeker"] {
  background-color: #ecac37;
}

.planning-cell[data-status=""] {
  background-color: transparent;
}

.planning-cell[title] {
  cursor: help;
}

.planning-table th:nth-child(2),
.planning-table td:nth-child(2) {
  width: 100px;
  white-space: nowrap;
}

.tooltip-inner {
  background-color: #25324A;
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 6px;
  max-width: 240px;
  text-align: center;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #25324A;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #25324A;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: #25324A;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: #25324A;
}

.planning-table th.sticky-col,
.planning-table td.sticky-col {
  min-width: 140px;
}

.planning-table th:nth-child(2),
.planning-table td:nth-child(2) {
  min-width: 110px;
  width: 110px;
  max-width: 110px;
  white-space: nowrap;
}

.planning-table thead th:nth-child(2),
.planning-table tbody td:nth-child(2) {
  min-width: 110px;
  max-width: 110px;
}

.planning-table td:nth-child(2) {
  color: #555;
  font-weight: 400;
}

.planning-table {
  border-collapse: separate;
  border-spacing: 8px 0;
}

/* =========================
   Planning custom dropdown (mobiel)
   ========================= */

.planning-dropdown{
  position: relative;
  width: 100%;
}

/* Button (de "select") */
.planning-dd-btn{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;

  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: .75rem 1rem;

  background: rgba(255,255,255,0.35);
}

.planning-dd-btn:disabled{
  opacity: .6;
  cursor: not-allowed;
}

.planning-dd-label{
  font-weight: 600;
}

.planning-dd-icon{
  opacity: .75;
}

/* Menu container */
.planning-dd-menu{
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 9999;

  box-sizing: border-box;
  padding: .25rem;
  border-radius: 14px;

  background: #f6f1e7;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);

  /* voorkomt mega menu op mobiel */
  max-height: 240px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.planning-dropdown.is-open .planning-dd-menu{
  display: block;
}

/* Items (keuzes) - compacter maar nog goed leesbaar */
.planning-dd-item{
  width: 100%;
  text-align: left;
  border: 0;

  background: transparent;
  color: inherit;

  font-size: 1.05rem;
  line-height: 1.2;
  padding: .65rem .85rem;
  border-radius: 12px;
}

.planning-dd-item:hover{
  background: rgba(0,0,0,0.06);
}

.planning-dd-item.is-selected{
  background: rgba(0,0,0,0.08);
}

/* Omhoog openen */
.planning-dropdown.open-up .planning-dd-menu{
  top: auto;
  bottom: calc(100% + 8px);
}

/* --------------------------- Profile --------------------------- */
.profile-avatar {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 999px;
}

.profile-avatar-fallback {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background-color: #f0f0f0;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.profile-badge--public {
  background-color: rgba(40, 167, 69, 0.12);
  color: #2f6f44;
}

.profile-badge--private {
  background-color: rgba(108, 117, 125, 0.15);
  color: #5a5a5a;
}

/* --------------------------- Toasts ---------------------------- */
.message-container {
  position: fixed;
  top: 72px;
  right: 150px;
  z-index: 99999999999;
}

.hd-toast {
  overflow: visible;
  border-radius: 25px;
}

.bg-success-custom {
  background-color: #25324A;
}

.border-success-custom {
  border-color: #25324A;
}

.bg-sand {
  background-color: #E2D8C9;
}

.toast .btn-close {
  filter: invert(1);
  opacity: 0.85;
}

.toast .btn-close:hover {
  opacity: 1;
}

/* --------------------- Vrienden & Sponsors --------------------- */
.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.sponsor-item {
  text-decoration: none;
}

.sponsor-logo-wrap {
  width: 300px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.sponsor-item:hover img {
  transform: scale(1.05);
}

.kt-table {
  border-radius: 12px;
  overflow: hidden;
}

.kt-table thead th {
  background-color: #F5F0E6;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.kt-table tbody td,
.kt-table tbody th {
  background-color: #F5F0E6;
}

.kt-table tbody tr:not(:last-child) td,
.kt-table tbody tr:not(:last-child) th {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.kt-table .col-logo {
  width: 160px;
}

.kt-table .col-volgorde {
  width: 110px;
}

.kt-table .col-actief {
  width: 90px;
}

.kt-table .col-acties {
  width: 190px;
}

.sponsor-logo-admin {
  max-height: 60px;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* -------------------------- Zing mee --------------------------- */
.info-card {
  background: #F5F0E6;
}

.contact-link {
  color: #A65A2A;
  text-decoration: underline;
}

.btn-primary-custom {
  background-color: #A65A2A;
  color: #fff;
  border: none;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: #8f4d24;
  color: #fff;
}

/* ----------------------- Media queries ------------------------- */
@media (min-width: 1200px) {
  .sponsor-grid {
    gap: 2.5rem;
  }

  .sponsor-logo-wrap {
    width: 260px;
    height: 150px;
  }
}

@media (min-width: 1600px) {
  .sponsor-grid {
    gap: 2rem;
  }

  .sponsor-logo-wrap {
    width: 230px;
    height: 140px;
  }
}

@media (max-width: 767.98px) {

  body,
  a.dropdown-item {
    font-size: 14px;
  }

  .mb-10 {
    margin-bottom: 250px;
  }

  .hero-image {
    height: 250px;
  }

  .caption {
    bottom: 27px;
    font-size: 15px;
  }

  .gtt-btn {
    bottom: 120px;
    right: 30px;
  }

  .home_photo {
    width: 200px;
  }

  .message-container {
    width: 80%;
    right: 40px;
  }

  .agenda-date {
    min-width: auto;
  }

  .carousel-control-next {
    top: 80%;
    right: 5%;
  }

  .carousel-control-prev {
    top: 80%;
    left: 5%;
  }

   .tooltip-inner {
    font-size: 0.95rem;
    padding: 8px 12px;   
    margin: 0 auto;
    max-width: calc(100vw - 32px);
    line-height: 1.35;
    text-align: center;
  }
  .tooltip {
    padding: 0 10px;
  }
}

@media (max-width: 576px) {
  .sponsor-logo-wrap {
    width: 240px;
    height: 130px;
  }  
}