/* ==========================================================================
   Golf Blog Post Cards Widget Styles
   ========================================================================== */

/* Blog Post Cards Modern Layout */
.blog-cards-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
  margin: 0;
}

.blog-cards-modern.golf-blog-grid.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.blog-cards-modern .blog-card.blog-card-modern {
  background: var(--golf-color-light-gray);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  position: relative;
  display: block;
  box-shadow: none;
}

/* Remove the dark overlay from existing blog card styles */
.blog-cards-modern .blog-card.blog-card-modern::before {
  display: none;
}

.blog-cards-modern .blog-card.blog-card-modern:hover::before {
  display: none;
}

.blog-cards-modern .blog-card-image-top {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--golf-color-light-gray);
  display: block;
}

.blog-cards-modern .blog-card-image-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.46) 0%,rgba(255,255,255,0) 100%);
  z-index: 2;
  pointer-events: none;
}

.blog-cards-modern .blog-card-image-top a {
  display: block;
  width: 100%;
  height: 240px;
}

.blog-cards-modern .blog-card-image-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: none;
  outline: none;
}

/* Remove any existing overlays or gradients except our custom one */
.blog-cards-modern .blog-card-image-top::after {
  display: none;
}

/* Title overlay positioned on image */
.blog-cards-modern .blog-card-title-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  max-width: calc(100% - 40px);
  pointer-events: none;
}

.blog-cards-modern .blog-card-title-overlay h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: var(--golf-color-white);
  word-wrap: break-word;
}

.blog-cards-modern .blog-card-title-overlay a {
  color: var(--golf-color-white);
  text-decoration: none;
  pointer-events: auto;
  font-size: 20px;
  line-height: 24px;
}

/* Content below image */
.blog-cards-modern .blog-card-content-bottom {
  padding: 20px;
  background: var(--golf-color-light-gray);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

.blog-cards-modern .blog-card-excerpt-bottom {
  margin: 0 0 36px 0;
  font-size: 14px;
  line-height: 25.2px;
  color: var(--golf-color-dark-gray);
  font-weight: normal;
  font-family: var(--golf-font-primary);
  flex: 1;
}

.blog-cards-modern .blog-card-button-modern {
  display: inline-block;
  padding: 11px 23px;
  margin-top: auto;
  background: var(--golf-color-white);
  color: var(--golf-color-primary);
  text-decoration: none;
  text-transform: none;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  transition: all 0.2s ease;
  align-self: flex-end;
}

.blog-cards-modern .blog-card-button-modern:hover {
  background: var(--golf-color-primary);
  color: var(--golf-color-white);
}

.blog-cards-modern .blog-card-button-modern i {
  margin-left: 8px;
  font-size: 12px;
}

/* Load More Button Styles */
.blog-cards-modern .blog-load-more-container {
  text-align: center;
  margin-top: 40px;
}

.blog-cards-modern .blog-load-more-button {
  display: inline-block;
  padding: 0;
  background: none;
  color: var(--golf-color-primary);
  text-decoration: none;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: normal;
  text-transform: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  box-shadow: none;
}

.blog-cards-modern .blog-load-more-button:hover {
  background: none;
  opacity: 0.7;
  transform: none;
}

.blog-cards-modern .blog-load-more-button:active {
  transform: none;
}

.blog-cards-modern .blog-load-more-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.blog-cards-modern .blog-load-more-button:disabled:hover {
  background: none;
  opacity: 0.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .blog-cards-modern {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .blog-cards-modern .blog-card-image-top {
    height: 200px;
  }
  
  .blog-cards-modern .blog-card-title-overlay {
    top: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
  }
  
  .blog-cards-modern .blog-card-title-overlay h3 {
    font-size: 18px;
  }
  
  .blog-cards-modern .blog-card-content-bottom {
    padding: 20px;
  }
  
  .blog-cards-modern .blog-load-more-container {
    margin-top: 30px;
  }
  
  .blog-cards-modern .blog-load-more-button {
    font-size: 14px;
  }
}
