/* Mannkal Timeline — fully scoped under .mannkal-timeline so nothing leaks
   into the site theme. Self-contained (no Bootstrap dependency): the few
   Bootstrap pieces the markup used (.container, .nav-tabs, .table) are
   reproduced here, namespaced. */

@font-face {
  font-family: "MannkalMontserrat";
  src: url("fonts/Montserrat-Medium.ttf") format("truetype");
}

.mannkal-timeline {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 400;
  background: #eee;
  padding: 30px 0;
  overflow-x: hidden;
}
.mannkal-timeline *,
.mannkal-timeline *::before,
.mannkal-timeline *::after { box-sizing: border-box; }

.mannkal-timeline .container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}
.mannkal-timeline .text-center { text-align: center; }

.mannkal-timeline h1 {
  font-family: 'MannkalMontserrat', 'Roboto', sans-serif;
  font-size: 200%;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 400;
}
.mannkal-timeline h2 { font-size: 24px; line-height: 1.2; color: #333; }
.mannkal-timeline h5 { font-size: 16px; color: #333; margin: 5px 0; }

/* ---- Year tabs (replaces Bootstrap .nav-tabs) ---- */
.mannkal-timeline .nav-tabs {
  list-style: none;
  margin: 0 0 25px;
  padding: 0;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.mannkal-timeline .nav-tabs > li { margin-bottom: -1px; }
.mannkal-timeline .nav-tabs > li > a {
  display: block;
  padding: 10px 15px;
  line-height: 1.4;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  text-decoration: none;
  background: #f5f5f5;
  color: #111111;
  cursor: pointer;
}
.mannkal-timeline .nav-tabs > li > a:hover,
.mannkal-timeline .nav-tabs > li > a:focus {
  background: #C89B70;
  color: #111111;
}
.mannkal-timeline .nav-tabs > li.active > a,
.mannkal-timeline .nav-tabs > li.active > a:hover,
.mannkal-timeline .nav-tabs > li.active > a:focus {
  background: #000000;
  color: #FFFFFF;
  border-color: #000000;
}

/* ---- Timeline structure ---- */
.mannkal-timeline .timeline { position: relative; }
.mannkal-timeline .timeline-item { width: 100%; margin-bottom: 70px; }
.mannkal-timeline .timeline-item::after { content: ''; display: block; clear: both; }
.mannkal-timeline .timeline-item .timeline-content { padding: 40px 20px 10px 20px; }
.mannkal-timeline .timeline-content {
  position: relative;
  width: 100%;
  border-radius: 4px;
  background: #f5f5f5;
  box-shadow: 0 20px 25px -15px rgba(0, 0, 0, 0.3);
}
.mannkal-timeline .timeline-img { display: none; }

/* Generic action links inside a card render as black buttons (the photo
   link is excluded — it stays an icon). Theme links are untouched. */
.mannkal-timeline .timeline-content a:not(.photoLink) {
  background: #000000;
  color: #FFFFFF;
  padding: 8px 20px;
  text-transform: uppercase;
  font-size: 14px;
  margin: 10px 0 20px;
  display: inline-block;
  border-radius: 2px;
  box-shadow: 0 1px 3px -1px rgba(0, 0, 0, 0.6);
  text-decoration: none;
}
.mannkal-timeline .timeline-content a:not(.photoLink):hover {
  background: #C89B70;
  color: #FFFFFF;
}

.mannkal-timeline .timeline-card { padding: 0 !important; }
.mannkal-timeline .timeline-card p { padding: 0 20px; }

.mannkal-timeline .timeline-item .timeline-img-header {
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
  background-size: cover;
}
.mannkal-timeline .timeline-img-header {
  height: 200px;
  position: relative;
  margin-bottom: 20px;
}
.mannkal-timeline .timeline-img-header h2 { color: #FFFFFF; }
.mannkal-timeline .timeline-img-header .title-row {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 5px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.mannkal-timeline .title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.mannkal-timeline .title-row h2 { margin: 0; }

.mannkal-timeline .date {
  background: #C89B70;
  display: inline-block;
  color: #FFFFFF;
  padding: 6px 10px;
  white-space: nowrap;
}

.mannkal-timeline a.photoLink {
  font-size: 48px;
  background: none;
  text-decoration: none;
}
.mannkal-timeline .highlight { background-color: #FFFF6B; }

/* ---- Event details table (replaces Bootstrap .table .table-bordered) ---- */
.mannkal-timeline .table {
  width: 100%;
  margin-top: 15px;
  border-collapse: collapse;
  background: transparent;
}
.mannkal-timeline .table th,
.mannkal-timeline .table td {
  padding: 8px;
  text-align: left;
  vertical-align: top;
}
.mannkal-timeline .table-bordered,
.mannkal-timeline .table-bordered th,
.mannkal-timeline .table-bordered td {
  border: 1px solid #ddd;
}

/* ---- Description clamp ---- */
.mannkal-timeline .timeline-content p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Facebook embeds + loading spinner ---- */
.mannkal-timeline iframe[src*="facebook.com"] {
  min-height: 750px;
  width: 100%;
  max-width: 100%;
  border: none;
  display: block;
}
.mannkal-timeline .iframe-loading-container { position: relative; }
.mannkal-timeline .fb-iframe-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #eee;
  border-top: 4px solid #3b5998;
  border-radius: 50%;
  animation: mkt-fbspin 1s linear infinite;
  z-index: 2;
  background: transparent;
}
@keyframes mkt-fbspin {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@media screen and (max-width: 768px) {
  .mannkal-timeline .timeline-content { max-width: 100%; width: 100%; margin-left: 0; }
}
