/* Original Style (Default) */
.akp-ecl-card-original {
  display: flex;
  position: relative;
}

/* Vertical Thumbnail Style */
.akp-ecl-card-vertical_thumb {
  display: flex;
  flex-direction: row;
  position: relative;
}

.akp-ecl-card-vertical_thumb .akp-ecl-thumb-wrap {
  width: 40%;
  margin: 0;
  padding-bottom: 0;
  height: auto;
  border-radius: 25px 0 0 25px;
  position: relative;
}

.akp-ecl-card-vertical_thumb .akp-ecl-thumb-wrap img {
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  height: 100%;
  border-radius: 25px 0 0 25px;
}

.akp-ecl-card-vertical_thumb .akp-ecl-content {
  width: 60%;
  padding: 20px;
  position: relative;
}

.akp-ecl-container {
  position: relative;
}

.akp-ecl-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -12px;
  /* Negative half-gap */
}

.akp-ecl-grid>.akp-ecl-card {
  margin: 12px;
  /* Half-gap */
  display: flex;
  flex-direction: column;
}

/* Flexbox Column Widths */
.akp-ecl-grid.cols-1>.akp-ecl-card {
  flex: 0 0 calc(100% - 24px);
}

.akp-ecl-grid.cols-2>.akp-ecl-card {
  flex: 0 0 calc(50% - 24px);
}

.akp-ecl-grid.cols-3>.akp-ecl-card {
  flex: 0 0 calc(33.3333% - 24px);
}

.akp-ecl-grid.cols-4>.akp-ecl-card {
  flex: 0 0 calc(25% - 24px);
}

.akp-ecl-card {
  background: #fff;
  border-radius: 25px 25px 0px 25px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.akp-ecl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
}

.akp-ecl-thumb-wrap {
  display: block;
  line-height: 0;
  position: relative;
  overflow: hidden;
}

.akp-ecl-thumb {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.akp-ecl-content {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.akp-ecl-title {
  font-size: 23px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.akp-ecl-title a {
  text-decoration: none;
  color: #1e293b;
  transition: color 0.2s ease;
}

.akp-ecl-title a:hover {
  color: #F47A1F;
}

.akp-ecl-excerpt {
  color: #475569;
  font-size: .95rem;
  line-height: 1.6;
}

.akp-ecl-actions {
  margin-top: 4px;
}

.akp-ecl-btn,
.akp-ecl-btn:visited {
  display: flex;
  background: #008767;
  font-weight: 400;
  border-radius: 50px 50px 0px 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  text-decoration: none;
  color: #fff !important;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.akp-ecl-btn:hover {
  background: #F47A1F;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 122, 31, 0.3);
  color: #fff;
}

.akp-ecl-title a {
  color: #009F79;
  line-height: 32px;
  font-weight: 600;
  display: -webkit-box;
  min-height: 64px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.akp-ecl-empty {
  color: #64748b;
  text-align: center;
  padding: 40px 20px;
  font-style: italic;
}

a.akp-ecl-thumb-wrap {
  display: block;
  padding-bottom: calc(0.64 * 100%);
  position: relative;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  overflow: hidden;
  border-radius: 25px 25px 0px 25px;
  border-top-left-radius: 0;
  border-bottom-right-radius: 0;
  margin: 16px 18px 0px;
}

a.akp-ecl-thumb-wrap img {
  height: 100%;
  width: 100%;
  position: absolute;
  top: calc(50% + 1px);
  left: calc(50% + 1px);
  -webkit-transform: scale(1) translate(-50%, -50%);
  -ms-transform: scale(1) translate(-50%, -50%);
  transform: scale(1) translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
  border-radius: 25px 25px 0px 25px;
}

/* View All Button */
.akp-ecl-view-all-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  padding-top: 24px;
}

.akp-ecl-view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 19px;
  background: #eb6a00;
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  border: none;
  cursor: pointer;
  min-height: 44px;
}

.akp-ecl-view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
  color: #fff;
}

.akp-ecl-view-all-btn:active {
  transform: translateY(0);
}

.akp-ecl-view-all-btn:visited {
  color: #fff;
}

/* Category Tabs Styling */
.akp-ecl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
  padding: 6px;
  background: transparent;
  border-radius: 25px 25px 0px 25px;
  box-shadow: none;
  border: 0;
  justify-content: center;
}

.akp-ecl-tab {
  border: none;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 155px;
  max-width: fit-content;
  background: #fff;
  color: #eb6a00;
  border-radius: 50px 50px 0px 50px;
}

.akp-ecl-tab:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.akp-ecl-tab.active {
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  font-weight: 600;
  background: #009780;
  border-radius: 50px 50px 0px 50px;
}

.akp-ecl-tab:active {
  transform: scale(0.98);
}

/* Tab Content */
.akp-ecl-posts-container {
  position: relative;
}

.akp-ecl-tab-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.akp-ecl-tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.5s ease-out;
}

/*orange*/
.akp-ecl-color-scheme-orange .akp-ecl-tab {
  color: #eb6a00;
  box-shadow: none;
  background: #FFF9F5;
}

.akp-ecl-color-scheme-orange .akp-ecl-tab.active {
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  background: #009F79;
}

.akp-ecl-color-scheme-orange .akp-ecl-card.akp-ecl-card-two_column_card {
  background: #ebebeb;
  border: 1px solid #e9e9e9;
  position: relative;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading Animation */
.akp-ecl-tab-content:not(.active) {
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .akp-ecl-grid.cols-4>.akp-ecl-card {
    flex: 0 0 calc(33.3333% - 24px);
  }

  .akp-ecl-tabs {
    gap: 10px;
    padding: 5px;
  }

  .akp-ecl-tab {
    padding: 10px 20px;
    font-size: 13px;
    min-height: 40px;
  }

  .akp-ecl-title {
    font-size: 21px;
  }
}

@media (max-width: 768px) {
  .akp-ecl-card-vertical_thumb {
    flex-direction: column;
  }

  .akp-ecl-card-vertical_thumb .akp-ecl-thumb-wrap,
  .akp-ecl-card-vertical_thumb .akp-ecl-content {
    width: 100%;
  }

  .akp-ecl-card-vertical_thumb .akp-ecl-thumb-wrap {
    padding-bottom: calc(0.60 * 100%);
    position: relative;
    border-radius: 25px 25px 0 25px;
  }

  .akp-ecl-card-vertical_thumb .akp-ecl-thumb-wrap img {
    position: absolute;
    top: calc(50% + 1px);
    left: calc(50% + 1px);
    transform: scale(1) translate(-50%, -50%);
    border-radius: 25px 25px 0 25px;
  }

  .akp-ecl-grid.cols-3>.akp-ecl-card,
  .akp-ecl-grid.cols-4>.akp-ecl-card {
    flex: 0 0 100%;
  }

  .akp-ecl-tabs {
    justify-content: center;
    margin-bottom: 24px;
    gap: 3px;
    padding: 4px;
  }

  .akp-ecl-tab {
    padding: 8px 16px;
    font-size: 12px;
    min-height: 36px;
  }
}

@media (max-width: 520px) {
  .akp-ecl-grid>.akp-ecl-card {
    flex: 0 0 calc(100% - 24px);
  }

  .akp-ecl-tabs {
    flex-direction: row;
    align-items: stretch;
    padding: 4px;
    gap: 13px 13px;
  }

  .akp-ecl-tab {
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 25px 25px 0px 25px;
    min-height: 44px;
  }

  .akp-ecl-view-all-wrapper {
    margin-top: 24px;
    padding-top: 16px;
  }

  .akp-ecl-view-all-btn {
    padding: 14px 28px;
    font-size: 19px;
    min-height: 48px;
  }

  .akp-ecl-grid {
    justify-content: center;
  }

  .akp-ecl-tab-content {
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .akp-ecl-tab-content.active {
    display: flex;
  }

  .akp-ecl-grid {
    margin: 0;
  }
}