:root{
  --tile-radius: 1rem;
}
.page-shell{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.main{
  flex: 1 1 auto;
}
.library-tile{
  border: 1px solid rgba(0,0,0,.08);
  /* border-radius: var(--tile-radius); */
  background: #fff;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
  height: 100%;
}
.library-tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.08);
}
.library-tile .tile-media{
  aspect-ratio: 16/9;
  aspect-ratio: 17/22;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 1.25rem;
  background: #ffffff;
}
.library-tile img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.safety-block{
  font-size: .925rem;
  line-height: 1.35;
}

.disabled {
  pointer-events: none;
}

.page-title img {
  max-height: 90px;
}

.main a {
  display: block;
}

h1 {
  color: rgb(255, 255, 255);
  direction: ltr;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 120%;
  text-align: center;
}

.bg-green {
  background: #08312A;
}

.main {
  background: #f3f4f1
}


.btn {
  background-color: rgb(0, 228, 124);
border-radius: 4px;
color: rgb(30, 33, 55);
direction: ltr;
font-family: inherit;
font-size: 14px;
font-weight: 400;
letter-spacing: 0px;
line-height: 200%;
padding: 5px 20px;

}

.btn:hover {
  background-color: rgb(0, 228, 124);

  color: rgb(30, 33, 55);
}

.nav-tabs {
  font-size: 24px;
}

.bordered {

  border: 2px solid #08312A;
}



/* Category tiles (match screenshot) */
.category-grid a {
  display: block;
}

/* Outer card */
.category-grid .library-tile {
  background: #fff;
  border: 2px solid #d7d7d7;
  padding: 10px;              /* space around inner green panel */
  position: relative;
  height: 200px;              /* adjust if you want taller/shorter */
  display: flex;
  align-items: stretch;
}

/* Inner green panel */
.category-grid .library-tile .p-3 {
  background: #0b3b2f;         /* dark green */
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px  !important;    /* override BS padding if needed */
}

/* Title text */
.category-grid .library-tile .h3, .category-grid .library-tile .h2 {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
  margin: 0;
}

/* Remove link styling + keep it “tile-like” */
.category-grid a.text-decoration-none {
  color: inherit;
}

/* Hover (subtle) */
.category-grid a:hover .library-tile {
  border-color: #bfbfbf;
}

/* The little green + badge */
.category-grid .library-tile::before {
  content: "+";
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: #20e07a;         /* bright green badge */

  display: grid;
  place-items: center;
  color: #0b3b2f;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;


  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: #20e07a;
  color: #08312A;
  font-size: 34px;
  font-weight: bold;
  font-weight:100;
  margin-right: 8px;
  line-height: 1;
  padding-bottom: 5px; /* Fine-tune vertical centering */
}

/* Make sure the badge sits above everything */
.category-grid .library-tile {
  overflow: visible;
}

/* Optional: tighter spacing on small screens */
@media (max-width: 575.98px) {
  .category-grid .library-tile {
    height: 140px;
  }
}


.back-button {
  margin-top:3rem;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #333;
  font-size: 14px;
  font-family: system-ui, -apple-system, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-decoration: none;
}

.back-button.top {
  margin-top:0;
  margin-bottom:1rem;
}

a.back-button:hover {
  background: #f5f5f5;
  border-color: #ccc;
  transform: translateX(-2px);
}
a.back-button:active {
  transform: translateX(-1px);
}
