.tab-content .text_underline {
	text-decoration: underline;
	cursor: pointer;
}

#file_upload .drag_drop{
  color: #444444;
  border-width: 2px;
  position: relative;
}
/* Tribute template listing (/designs/prayer-card/).
   NOTE: the template CARDS (.templatebox / .inner_template / .templateimage /
   .templatename / .img-holder) are intentionally NOT styled here - they keep the
   theme's original look and hover. This file only adds the pagination and the
   slider LAYOUT below. */
/* Center the AJAX loader within the listing area (it was sitting on the left). */
#templatelist.tribute-custom #templates_listing_area .loading-container,
#templatelist.tribute-custom #templates_listing_area .loading-container-lg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
  text-align: center;
}
#templatelist.tribute-custom .tribute-pagination {
  clear: both;
}
#templatelist.tribute-custom .tribute-pagination ul.pagination {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
}
#templatelist.tribute-custom .tribute-pagination .page-link {
  border-radius: 4px;
  min-width: 2.5rem;
  text-align: center;
}
#templatelist.tribute-custom .tribute-pagination .page-item.active .page-link {
  font-weight: 600;
}
/* Previous / Next on the slider pagination - same page-link look as paging mode,
   with the chevron icon and a touch of extra horizontal padding. */
#templatelist.tribute-custom .tribute-pagination .tribute-prev-item .page-link,
#templatelist.tribute-custom .tribute-pagination .tribute-next-item .page-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}
#templatelist.tribute-custom .tribute-pagination .page-item.disabled .page-link {
  opacity: 0.6;
  pointer-events: none;
}
/* Tribute listing - slider mode. Only LAYOUT is handled here (4-across CSS grid per
   slide + side arrows). The cards themselves keep the theme's native styling and hover,
   identical to the original - no card appearance overrides. */
#templatelist.tribute-custom #templates_listing_area.slick-slider {
  display: block;
  position: relative;
  /* leave room on each side so the arrows sit fully OUTSIDE the cards */
  margin-left: 3.25rem;
  margin-right: 3.25rem;
}
/* Each slide is a grid of cards. Use an explicit CSS grid (not Bootstrap columns /
   Slick grid mode) so the layout is deterministic and immune to Slick's slide width
   and float handling - which is what kept collapsing the cards into one column. */
/* Slick adds .slick-slide (display:inline-block) to these elements and that was
   beating our rule, so force the grid display with !important. */
#templatelist.tribute-custom #templates_listing_area.slick-slider .tribute-slide-grid,
#templatelist.tribute-custom #templates_listing_area.slick-slider .slick-slide.tribute-slide-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
  width: 100%;
}
/* LAYOUT ONLY (slider): the card keeps its Bootstrap col-* width, which fights the
   CSS grid, so neutralise width/float here. This only affects placement inside the
   slider grid - it does NOT change the card's appearance (border/image/title/hover). */
#templatelist.tribute-custom #templates_listing_area.slick-slider .tribute-slide-grid .templatebox {
  width: auto !important;
  max-width: none;
  float: none;
  margin: 0;
  flex: none;
}
/* Slick sometimes sets the slide inner div to inline-block with a fixed width; make
   sure the slide spans the full track so the 4-column grid has room. */
#templatelist.tribute-custom #templates_listing_area.slick-slider .slick-slide > div {
  width: 100%;
}
@media (max-width: 1024px) {
  #templatelist.tribute-custom #templates_listing_area.slick-slider .tribute-slide-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 575.98px) {
  #templatelist.tribute-custom #templates_listing_area.slick-slider .tribute-slide-grid {
    grid-template-columns: 1fr !important;
  }
}
/* Side chevron arrow buttons on the slider (prev on the left edge, next on the right,
   vertically centered over the slide area). */
#templatelist.tribute-custom #templates_listing_area.slick-slider .tribute-slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d9e0d2;
  border-radius: 50%;
  background: #fff;
  color: #6a7a5e;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
#templatelist.tribute-custom #templates_listing_area.slick-slider .tribute-slide-arrow:before {
  content: none; /* using the FontAwesome icon inside the button, not Slick's glyph */
}
/* Sit the arrows fully outside the slide area (to the left/right of the cards) */
#templatelist.tribute-custom #templates_listing_area.slick-slider .tribute-slide-arrow.slick-prev {
  left: -3.25rem;
}
#templatelist.tribute-custom #templates_listing_area.slick-slider .tribute-slide-arrow.slick-next {
  right: -3.25rem;
}
#templatelist.tribute-custom #templates_listing_area.slick-slider .tribute-slide-arrow:hover {
  background: #7f9170;
  border-color: #7f9170;
  color: #fff;
}
#templatelist.tribute-custom #templates_listing_area.slick-slider .tribute-slide-arrow.slick-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
/* Mobile: hide the side prev/next arrows and reclaim the side margin so cards use the
   full width. Navigation on mobile is the numbered Previous/Next pagination below. */
@media (max-width: 767.98px) {
  #templatelist.tribute-custom #templates_listing_area.slick-slider .tribute-slide-arrow {
    display: none !important;
  }
  #templatelist.tribute-custom #templates_listing_area.slick-slider {
    margin-left: 0;
    margin-right: 0;
  }
}
