/******************************************************
  LEISURE @ WORK — Standalone Layout
******************************************************/
:root {
  --purple: #65128f;
  --green: #008000;
  --red: #b00;
  --max-width: 980px;
  --leisure-left-col-width: 45%;
  --leisure-right-col-width: 55%;
  --leisure-columns-gap: 15px;
  --leisure-title-shift-x: 10px;
  --font: "Segoe UI", Arial, sans-serif;
}

/* Page wrapper */
.leisure-page {
  font-family: var(--font);
  color: #333;
  margin: calc(var(--header-height, 88px) + 20px) auto 40px;
  max-width: var(--max-width);
  padding: 0 20px;
}

/* ===========================
   Header + Horizontal Line Fix
   =========================== */
/* Styling for the horizontal line block */
.leisure-header-line {
  /* This is what creates the visual line based on your original CSS */
  border-bottom: 3px solid #65128f;
  margin-top: -17px;
  /* You can remove margin-bottom: -10px from the original CSS now, 
     as you'll control the space between these two elements. */
}

/* Styling for the text block container */
.leisure-title-container {
  /* Controls the spacing/position of the text block */
  text-align: right; /* To position the text on the right side */
  padding-right: 20px; /* Optional: Adds some space from the right edge */
  
  /* Optional: Add some space below the text before the line starts */
  margin-bottom: 10px; 
  transform: translateX(var(--leisure-title-shift-x));
}

/* You might need to adjust the font size or colors for the H1 */
.leisure-title {
  font-size: 28px; /* Example size */
  font-weight: normal;
  margin: 0; /* Remove default H1 margins */
  padding: 0;
  color: #65128f; /* Example color */
}

/* Color classes (based on what's visible in the image) */
.red {
  color: #d9534f; /* Example color for SHARE */
}

.green {
  color: #5cb85c; /* Example color for with you */
}

.leisure-title {
  font-size: 42px;
  font-weight: 500;
  color: var(--purple);
  margin: 12px 0 18px 0;
  text-align: right;
}

.leisure-title .red { color: var(--red); }
.leisure-title .green { color: var(--green); }

/* Keeps left and right columns side by side */
.leisure-layout {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--leisure-columns-gap);
  align-items: stretch;
}

.leftcol {
  flex: 0 0 var(--leisure-left-col-width);
  max-width: var(--leisure-left-col-width);
  min-width: 0;
}

.rightcol {
  flex: 0 0 var(--leisure-right-col-width);
  max-width: var(--leisure-right-col-width);
  min-width: 0;
}

.leisure-search {
  display: flex;
  gap: 8px;
  margin: 10px 0 15px;
}

.leisure-search-count {
  font-size: 17px;
  color: #08a755;
  margin: -6px 0 12px;
}

.search-hit {
  background: #bfefff;
  color: #000;
  padding: 0 2px;
  border-radius: 2px;
}

.leisure-search input {
  flex: 1;
  padding: 6px 10px;
  border: 2px solid #c8c8c8;
  border-radius: 20px;
  font-size: 16px;
  font-family: 'Segoe UI';
  font-weight: 500px;
}

.leisure-search button {
  padding: 6px 12px;
  border: 1px solid var(--purple);
  border-radius: 20px;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
}

.leisure-search button:hover {
  background: #4a0d6d;
}

/* Video list styles */
.video-list {
  list-style: decimal inside;
  padding-left: 0;
}
.video-title {
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.5;
}
.video-title a {
  color: var(--purple);
  text-decoration: none;
}
.video-title a:hover {
  text-decoration: underline;
}
.video-link {
  font-family: monospace;
  font-size: 15px;
  line-height: 1.4;
  word-break: break-all;
  margin-bottom: 12px;
}

.warn { color: var(--red); }

/* Bottom quote box */
.leisure-footer {
  text-align: center;
  background: #f8f8f8;
  border-top: 1px solid #ddd;
  margin-top: 40px;
  padding: 20px;
}
.leisure-footer h1 {
  font-weight: 500;
  font-size: 26px;
  color: var(--purple);
}
.leisure-footer .red { color: var(--red); }
.leisure-footer .green { color: var(--green); }

/* ======================================================
   LEFT COLUMN (Number + Title/Link alignment)
   ====================================================== */
.video-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.video-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.video-serial {
  flex: 0 0 40px;             /* fixed width for serial number */
  text-align: right;
  font-weight: bold;
  color: #444;
}

.video-details {
  flex: 1;                    /* take remaining space */
}

/* ======================================================================= */

@media (min-width: 901px) {
  .page-leisure {
    --leisure-right-edge-offset: max(0px, calc((min(100vw, 1200px) - min(100vw, 960px)) / 2));
  }

  .page-leisure #site-header .brand-lines {
    margin-left: max(0px, calc((min(100vw, 1200px) - min(100vw, 960px)) / 2));
    align-items: flex-end;
  }

  .page-leisure #site-header #header-menu {
    position: absolute;
    right: var(--leisure-right-edge-offset);
    bottom: 0;
    transform: none;
  }

  .page-leisure #site-header .brand-main {
    transform: translate(0, var(--brand-main-shift-y));
  }

  .page-leisure #site-header .brand-sub {
    transform: translate(0, var(--brand-sub-shift-y));
  }

  .page-leisure #site-header .slogan-img {
    margin-left: auto;
    margin-right: var(--leisure-right-edge-offset);
    flex: 0 0 auto;
    transform: translate(0, var(--tryjesus-shift-y));
  }

  .page-leisure #site-header .tryjesus-img {
    height: var(--tryjesus-height);
    width: auto;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .leisure-page {
    margin: calc(var(--header-height, 88px) + 12px) auto 30px;
    padding: 0 14px;
  }

  .leisure-layout {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .leftcol,
  .rightcol {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
  }

  .leisure-title-container {
    transform: none;
    padding-right: 0;
  }

  .leisure-title {
    margin: 20px 0;
    text-align: left;
    font-size: 36px;
  }

  .leisure-search {
    flex-direction: column;
    align-items: stretch;
  }
}
