body,
html {
  height: 100%;
  margin: 0;
}

.ad-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  border-top-width: 16px !important;
  border-right-width: 16px !important;
  border-bottom-width: 16px !important;
  border-left-width: 16px !important;
}

.ad-content {
  flex: 1;
}

.blog-header {
  border-bottom: 1px solid #e5e5e5;
  background-color: #42006a;
  height: 80px;
}

.blog-header-logo {
  font-family: Elderkin, "Arial Narrow", Arial, sans-serif;
  font-size: 2.25rem;
}

.blog-header-logo:hover {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Elderkin", "Arial Narrow", Arial, sans-serif;
}

.display-4 {
  font-size: 2.5rem;
}

@media (min-width: 768px) {
  .display-4 {
    font-size: 3rem;
  }
}

.flex-auto {
  flex: 0 0 auto;
}

.h-250 {
  height: 250px;
}
@media (min-width: 768px) {
  .h-md-250 {
    height: 250px;
  }
}

/* Pagination */
.blog-pagination {
  margin-bottom: 4rem;
}

/*
* Blog posts
*/
.blog-post {
  margin-bottom: 4rem;
}
.blog-post-title {
  font-size: 2.5rem;
}
.blog-post-meta {
  margin-bottom: 1.25rem;
  color: #727272;
}

/*
* Footer
*/
.blog-footer {
  padding: 2.5rem 0;
  color: #727272;
  text-align: center;
  background-color: #f9f9f9;
  border-top: 0.05rem solid #e5e5e5;
}
.blog-footer p:last-child {
  margin-bottom: 0;
}

/* TWH */
@font-face {
  font-family: "Elderkin";
  src: url(/fonts/Elderkin.woff2);
}

.ad-nav {
  padding: 10px;
  border-top: 2px solid #212529;
  border-bottom: 2px solid #212529;
  overflow-x: auto;
  flex-wrap: nowrap;
  background-color: #212529;
  height: 50px;
}

.ad-circle {
  width: 100%;
  height: 100%;
  z-index: 2;
}

@font-face {
  font-family: "Miller Text";
  src: url(/fonts/Miller_Text_Roman.woff2);
}

@font-face {
  font-family: "Pitch";
  src: url(/fonts/Pitch.woff2);
}

@font-face {
  font-family: "Futura";
  src: url(/fonts/Futura_Extra_Bold.otf);
}

.ad-results {
  font-family: "Elderkin", "Arial Narrow", Arial, sans-serif;
  font-size: 1.1em;
  font-weight: normal;
}

.ad-left {
  border-left: 3px solid #212529;
  margin-top: 2px;
  padding-left: 3px;
}

.ad-left-purple {
  transform: rotate(5deg) skewX(5deg) scaleY(cos(5deg));
  filter: drop-shadow(-0.5rem 0.5rem 0.1rem #000);
}

.ad-bg-card {
  /* for opaque background image */
  position: relative;
  overflow: hidden;
}

.ad-bg-card-txt {
  /* for opaque background image */
  position: relative;
  z-index: 2;
}

/* League card title background helpers */
.ad-league-title {
  display: inline-block;
  padding: 2px 6px;
  font-weight: 600;
  border-radius: 3px;
  letter-spacing: 0.5px;
  font-size: 0.95em;
}

.ad-title-purple {
  background-color: #42006a; /* matches section 5 purple */
  color: #fff;
}

.ad-title-orange {
  background-color: #ff6700; /* matches section 6 orange */
  color: #111;
}

/* Compact league card variant */
.ad-league-compact .card-body {
  padding: 0.5rem 0.5rem 0.25rem 0.5rem;
}

.ad-league-compact table.table td,
.ad-league-compact table.table th {
  padding: 0.25rem 0.4rem;
  line-height: 1.15;
}

.ad-league-compact h5.card-title {
  margin-bottom: 0.35rem !important;
}

.ad-league-compact .ad-league-title {
  padding: 1px 5px;
  font-size: 0.9em;
}

.ad-league-compact .outlined-text h6 {
  font-size: 0.65rem;
  letter-spacing: 0.5px;
}

.ad-card-img-top {
  height: 200px;
  object-fit: cover;
}

.ad-right {
  border-right: 3px solid #212529;
  margin-top: 2px;
  padding-right: 3px;
}

.ad-right-orange {
  transform: rotate(-5deg) skewX(-5deg) scaleY(cos(-5deg));
  filter: drop-shadow(0.5rem 0.5rem 0.1rem #000);
}

.ad-results a {
  color: #212529;
  text-decoration: none;
}

.ad-results a:hover {
  color: #212529;
  border-bottom: 3px solid #9f00ff;
}

.card-header {
  font-family: Elderkin, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
}

.card-subtitle {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 0.9em;
}

.ad-clip-left5 {
  background-color: #42006a;
  clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
  -webkit-clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
  /* opacity: 0.6; */
}

.ad-clip-left5-6 {
  background-color: #ff6700;
  clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
  -webkit-clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
  /* opacity: 0.6; */
}

.ad-clip-left5-B {
  background-color: #000;
  clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
  -webkit-clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
  /* opacity: 0.6; */
}

.ad-clip-right5 {
  background-color: #42006a;
  clip-path: polygon(0 0, 100% 0%, 100% 100%, 25% 100%);
}

.ad-clip-left6 {
  background-color: #ff6700;
  clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
  -webkit-clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
  /* opacity: 0.6; */
}

.ad-clip-right6 {
  background-color: #ff6700;
  clip-path: polygon(0 0, 100% 0%, 100% 100%, 25% 100%);
}

.ad-clip-right6-B {
  background-color: #000;
  clip-path: polygon(0 0, 100% 0%, 100% 100%, 25% 100%);
}

.ad-clip-right6-5 {
  background-color: #42006a;
  clip-path: polygon(0 0, 100% 0%, 100% 100%, 25% 100%);
}

.ad-clip-left-1st {
  background-color: #0d6efb;
  clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
  -webkit-clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
  /* opacity: 0.6; */
}

.ad-clip-right-2nd {
  background-color: #dc3545;
  clip-path: polygon(0 0, 100% 0%, 100% 100%, 25% 100%);
}

.ad-rotated-left {
  transform: rotate(-80deg);
  white-space: nowrap;
}

.ad-rotated-right {
  transform: rotate(80deg);
  white-space: nowrap;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image: url('{{ new.og_image|e }}'); Dynamic image URL in HTML */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: 1;
}

.highlighted-text {
  background-color: #343a40; /* bg-dark */
  color: white; /* text-white */
  line-height: 1.6; /* Adjust line height for gap */
  padding: 0.2em; /* Add padding for extra spacing */
  display: inline; /* Ensure the background doesn't fill the margin */
  background-clip: padding-box; /* Prevent background from filling margins */
}

.outlined-text {
  color: white; /* Text color */
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000; /* Outline color */
}

.ad-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-container {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 16px;
}

.date-text {
  margin-right: 10px; /* Adjust as needed */
}

.line {
  flex-grow: 1;
  height: 1px;
  background-color: #dfe1e5;
}

/* https://codingyaar.com/bootstrap-accordion-color-change/ */

.accordion {
  --bs-accordion-btn-focus-box-shadow: none;
}

.accordion-button {
  padding-top: 8px;
  padding-right: 8px;
  padding-left: 12px;
  padding-bottom: 0px;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' class='bi bi-plus' viewBox='0 0 16 16'%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");
  transition: all 0.5s;
}

.accordion-button:not(.collapsed) {
  box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' class='bi bi-dash' viewBox='0 0 16 16'%3E%3Cpath d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3E%3C/svg%3E");
}

.btn-outline-dark {
  --bs-btn-hover-bg: none;
}

.ad-wire {
  font-family: "Elderkin", "Arial Narrow", Arial, sans-serif;
}

.ad-wire a {
  color: #42006a;
}

.ad-wire a:hover {
  text-decoration: none;
  color: #ff6700;
}

.ad-team {
  font-family: "Elderkin", "Arial Narrow", Arial, sans-serif;
}

.ad-label {
  font-family: Elderkin, "Arial Narrow", Arial, sans-serif;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.ad-calendar-highlight {
  background-color: #ff6700 !important;
  color: white !important;
  font-weight: bold;
}

.ad-calendar-highlight-label {
  background-color: #ff6700;
  color: white;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 3px;
}

article a {
  color: #42006a;
  font-weight: bold;
}

article a:hover {
  text-decoration: none;
  color: #ff6700;
}

.ad-pre,
.ad-pre a {
  /* font-family: "Pitch", "Courier New", monospace; */
  font-family: monospace;
  background-color: #f6f6f6;
  color: #42006a;
  /* max-height: 400px; */
}

.ad-pre a:hover {
  text-decoration: none;
  color: #ff6700;
}

.ad-code {
  /* font-family: "Pitch", "Courier New", monospace; */
  font-family: monospace;
  overflow-x: scroll;
  width: auto;
  white-space: normal;
}

.text-with-lines {
  display: flex;
  align-items: center;
  text-align: center;
}

.text-with-lines::before {
  content: "";
  flex: 1;
  border-bottom: 12px solid #212529;
  margin: 0 10px 0 0;
}

.text-with-lines::after {
  content: "";
  flex: 1;
  border-bottom: 12px solid #212529;
  margin: 0 0 0 10px;
}

.text-with-lines p {
  margin: 0;
}

.huge {
  font-family: "Elderkin", "Arial Narrow", Arial, sans-serif;
  font-size: 94px;
}

.huger {
  font-family: "Elderkin", "Arial Narrow", Arial, sans-serif;
  font-size: 128px;
  line-height: 100%;
}

.cred {
  font-size: 1.2em;
  letter-spacing: -2px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
