.eftt-widget {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.eftt-widget.eftt-tabs-left {
  flex-direction: row;
  flex-wrap: wrap;
}

.eftt-search-wrapper {
    width: 100%;
}
.eftt-search-wrapper input {
    width: 100%;
}

.eftt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  width: 25%;
}

.eftt-widget.eftt-tabs-left .eftt-tabs {
  flex-direction: column;
  margin-bottom: 0;
  gap: 0;
}

.eftt-tabs button {
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #eee;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  border-bottom: 1px solid #EAEAEA;
  border-radius: 0;
  text-align: left;
}

.eftt-tabs button.active {
  background: #0073aa;
  color: #fff;
  border-color: #E24138;
}

.eftt-tabs button:hover {
  background: #005177;
  color: #fff;
}

.eftt-content {
  flex: 1;
}

.eftt-posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.eftt-post-item {
  flex: 1 1 calc(33.33% - 20px);
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 20px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/*.eftt-post-item:hover {*/
/*  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
/*}*/

/* Desktop: show tabs, hide accordion */
.eftt-widget .eftt-accordion {
    display: none;
}


@media(max-width:768px) {
  .eftt-post-item {
    flex: 1 1 calc(50% - 20px);
  }
  .eftt-widget .eftt-tabs {
        display: none;
    }

    .eftt-widget .eftt-content {
        display: none; /* hide desktop grid, use accordion bodies */
    }

    .eftt-widget .eftt-accordion {
        display: block;
    }

    .eftt-widget .eftt-accordion-header {
        width: 100%;
        text-align: left;
        cursor: pointer;
        display: block;
    }

    .eftt-widget .eftt-accordion-body {
        width: 100%;
    }
        .eftt-widget .eftt-tabs {
        display: none;
    }
    .eftt-widget .eftt-content {
        display: none;
    }
    .eftt-widget .eftt-accordion {
        display: block;
    }
}

@media(max-width:480px) {
  .eftt-post-item {
    flex: 1 1 100%;
  }
}

.eftt-thumb img {
  width: 100%;
  border-radius: 5px;
}

.eftt-title {
  font-size: 18px;
  margin-top: 10px;
}

.eftt-excerpt {
  font-size: 14px;
  margin: 10px 0;
}

.eftt-readmore {
  color: #0073aa;
  text-decoration: none;
  font-weight: bold;
}