/* Category Cards Shortcode Styles */
/* Used by [category_cards] shortcode */


#sliders {
    margin-top: 150px!important;
    margin-right: -8px!important;
    margin-left: -8px!important;
}


.tagdiv-type img {
  margin-bottom: 0 !important;
}
.custom-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.custom-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  height: 100%;
}
.custom-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
@media (max-width: 1200px) {
  .custom-card:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }
  .custom-card:hover .custom-card-image {
    transform: none;
  }
}
.custom-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.custom-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.custom-card:hover .custom-card-image {
  transform: scale(1.02);
}
.custom-card-image-wrapper {
  overflow: hidden;
}
.custom-card-footer {
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  flex: 1;
}
.custom-card-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #333;
  line-height: 1.3;
}
.custom-card-date {
  font-size: 0.85rem;
  color: #777;
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.custom-card-date i {
  color: #1E96DB;
}
.custom-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5b5b5b;
  margin-top: 8px;
  text-align: left;
}
/* Mobile Slider Styles - starts at 1200px */
@media (max-width: 1200px) {
  .custom-card-grid:not(.mobile-slider) {
    grid-template-columns: repeat(3, 1fr);
  }
  .custom-card-grid.mobile-slider {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 8px 12px 12px 24px;
    margin: 0 -12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .custom-card-grid.mobile-slider::-webkit-scrollbar {
    display: none;
  }
  .custom-card-grid.mobile-slider::before {
    content: '';
    flex: 0 0 12px;
    min-width: 12px;
  }
  .custom-card-grid.mobile-slider .custom-card {
    flex: 0 0 80%;
    max-width: 320px;
    scroll-snap-align: start;
  }
  .custom-card-grid.mobile-slider .custom-card-content {
    flex-direction: column;
  }
  .custom-card-grid.mobile-slider .custom-card-image {
    width: 100%;
    height: 180px;
    border-radius: 0;
  }
  .custom-card-grid.mobile-slider .custom-card-footer {
    width: 100%;
    padding: 12px;
  }
}
@media (max-width: 900px) {
  .custom-card-grid:not(.mobile-slider) {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .custom-card-grid:not(.mobile-slider) {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .custom-card-grid:not(.mobile-slider) .custom-card-content {
    flex-direction: row;
    align-items: stretch;
  }
  .custom-card-grid:not(.mobile-slider) .custom-card-image {
    width: 30%;
    min-width: 100px;
    flex-shrink: 0;
    height: auto;
    object-fit: cover;
    border-radius: 16px 0 0 16px;
    min-height: 120px;
    max-height: 120px;
  }
  .custom-card-grid:not(.mobile-slider) .custom-card:hover .custom-card-image {
    transform: none;
  }
  .custom-card-grid:not(.mobile-slider) .custom-card-footer {
    width: 70%;
    padding: 15px;
    justify-content: center;
  }
  .custom-card-grid:not(.mobile-slider) .custom-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #333;
  }
  .custom-card-grid:not(.mobile-slider) .custom-card-date {
    font-size: 0.8rem;
    padding-top: 8px;
  }
  .custom-card-grid:not(.mobile-slider) .custom-card-excerpt {
    font-size: 0.85rem;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Smaller slider cards on mobile */
  .custom-card-grid.mobile-slider .custom-card {
    flex: 0 0 80%;
    max-width: 300px;
  }
  .custom-card-grid.mobile-slider .custom-card-image {
    height: 160px;
  }
  .custom-card-grid.mobile-slider .custom-card-footer {
    padding: 10px;
  }
  .custom-card-grid.mobile-slider .custom-card-title {
    font-size: 0.95rem;
  }
}
/* Pull to view more indicator */
.pull-to-view-indicator {
  display: none;
}
@media (max-width: 1200px) {
  .custom-card-grid.mobile-slider .pull-to-view-indicator {
    display: flex;
    flex: 0 0 120px;
    min-width: 120px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10px 0 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
  }
  .custom-card-grid.mobile-slider .pull-to-view-indicator.visible {
    opacity: 1;
  }
  .pull-indicator-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
  }
  .pull-arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    color: #1E96DB;
    background: rgba(30, 150, 219, 0.12);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    transform: rotate(180deg);
    animation: arrow-pulse 1s ease-in-out infinite;
  }
  @keyframes arrow-pulse {
    0%,
    100% {
      transform: rotate(180deg) translateX(0);
    }
    50% {
      transform: rotate(180deg) translateX(5px);
    }
  }
  .pull-to-view-indicator.ready .pull-arrow {
    color: #fff;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
    animation: none;
    transform: rotate(0deg);
  }
  .pull-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: #1E96DB;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
    transition: color 0.2s ease;
  }
  .pull-to-view-indicator.ready .pull-text {
    color: #22c55e;
    font-weight: 700;
  }
}

